From b3956e017197087d95ed8603193ddd6944de9d9a Mon Sep 17 00:00:00 2001 From: anup-nehe <117707464+anup-nehe@users.noreply.github.com> Date: Thu, 1 Aug 2024 11:41:39 +0530 Subject: [PATCH] [DSD-5765] added extend reports (#125) * MOSIP-34140 Signed-off-by: Anup Nehe * resolve conflicts Signed-off-by: Anup Nehe * updated pom.xml Signed-off-by: Anup Nehe * DSD-5765 Signed-off-by: Anup Nehe --------- Signed-off-by: Anup Nehe --- ui-test/src/test/java/runnerfiles/Runner.java | 16 ++++++++++++---- ui-test/src/test/resources/extent.properties | 5 +++++ 2 files changed, 17 insertions(+), 4 deletions(-) create mode 100644 ui-test/src/test/resources/extent.properties diff --git a/ui-test/src/test/java/runnerfiles/Runner.java b/ui-test/src/test/java/runnerfiles/Runner.java index 8734f175..afbd0e86 100644 --- a/ui-test/src/test/java/runnerfiles/Runner.java +++ b/ui-test/src/test/java/runnerfiles/Runner.java @@ -8,11 +8,19 @@ import io.cucumber.testng.CucumberOptions; @RunWith(Cucumber.class) -@CucumberOptions(features = { "src/test/resources/featurefiles" }, dryRun = !true, glue = { "stepdefinitions", - "utils" }, snippets = SnippetType.CAMELCASE, monochrome = true, plugin = { "pretty", "html:reports", "summary" } -// tags = "@smoke" +@CucumberOptions( + features = {"src/test/resources/featurefiles/"}, + dryRun = !true, + glue = {"stepdefinitions", "utils"}, + snippets = SnippetType.CAMELCASE, + monochrome = true, + plugin = {"pretty", + "html:reports", + "html:target/cucumber.html", "json:target/cucumber.json", + "summary","com.aventstack.extentreports.cucumber.adapter.ExtentCucumberAdapter:"} + //tags = "@smoke" ) -public class Runner extends AbstractTestNGCucumberTests { +public class Runner extends AbstractTestNGCucumberTests{ } \ No newline at end of file diff --git a/ui-test/src/test/resources/extent.properties b/ui-test/src/test/resources/extent.properties new file mode 100644 index 00000000..c929d21c --- /dev/null +++ b/ui-test/src/test/resources/extent.properties @@ -0,0 +1,5 @@ +basefolder.name=test-output/ExtentReport +basefolder.datetimepattern=d-MMM-YY HH-mm-ss +extent.reporter.spark.start=true +extent.reporter.spark.out=test-output/SparkReport/Spark.html +screenshot.dir=test-output/SparkReport/screenshots \ No newline at end of file