${after?counter}.
- ${after.result.returnDurationString()}
-
- <@common.status status=after.consolidatedStatusString/>
+ <#if after.hasContent()>
+
+
+ ${after?counter}.
+ ${after.glueMethodName}
+
+
+ ${after.result.returnDurationString()}
+
+
+ <@common.status status=after.consolidatedStatusString/>
+
+ <@scenario.errorMessage step=after/>
+ <@scenario.output step=after/>
+ <@scenario.attachments step=after/>
- <@scenario.errorMessage step=after/>
- <@scenario.output step=after/>
- <@scenario.attachments step=after/>
-
+ #if>
#list>
@page.card>
diff --git a/plugin-code/src/test/java/com/trivago/cluecumber/json/pojo/EmbeddingTest.java b/plugin-code/src/test/java/com/trivago/cluecumber/json/pojo/EmbeddingTest.java
index fbef9c90..6e54ff8b 100644
--- a/plugin-code/src/test/java/com/trivago/cluecumber/json/pojo/EmbeddingTest.java
+++ b/plugin-code/src/test/java/com/trivago/cluecumber/json/pojo/EmbeddingTest.java
@@ -67,6 +67,15 @@ public void getDecodedDataTest() {
assertThat(embedding.getDecodedData(), is("This is getDecodeData() Test !!!"));
}
+ @Test
+ public void getDecodedDataHtmlTest() {
+ String originalInput = "
";
+ String encodeString = new String(Base64.encodeBase64(originalInput.getBytes()));
+ embedding.setMimeType(MimeType.HTML);
+ embedding.decodeData(encodeString);
+ assertThat(embedding.getDecodedData(), is("
"));
+ }
+
@Test
public void getDecodedDataForXMLTest() {
String originalInput = "
";
diff --git a/plugin-code/src/test/java/com/trivago/cluecumber/json/processors/ReportJsonPostProcessorTest.java b/plugin-code/src/test/java/com/trivago/cluecumber/json/processors/ReportJsonPostProcessorTest.java
index f0eaa706..447ff705 100644
--- a/plugin-code/src/test/java/com/trivago/cluecumber/json/processors/ReportJsonPostProcessorTest.java
+++ b/plugin-code/src/test/java/com/trivago/cluecumber/json/processors/ReportJsonPostProcessorTest.java
@@ -72,11 +72,14 @@ public void postDeserializeTest() {
Element firstElement = report.getElements().get(0);
assertThat(firstElement.getTags().size(), is(2));
List