From 0e81fec560f177c13a0d746aeaa093e6371afeda Mon Sep 17 00:00:00 2001 From: dadgam3er Date: Tue, 8 Oct 2024 03:16:03 -0400 Subject: [PATCH] BDDpluging, reports, and tags --- BDDrepo/bddReports | 50 ++++++++++++++++++++++ reports/index.html | 12 +++--- src/main/java/features/HomePage.feature | 6 ++- src/main/java/testNGRunner/TestRunner.java | 6 +-- 4 files changed, 62 insertions(+), 12 deletions(-) create mode 100644 BDDrepo/bddReports diff --git a/BDDrepo/bddReports b/BDDrepo/bddReports new file mode 100644 index 0000000..2a8f21e --- /dev/null +++ b/BDDrepo/bddReports @@ -0,0 +1,50 @@ + + + + Cucumber + + + + + + +
+
+ + + + diff --git a/reports/index.html b/reports/index.html index fcd77ba..eeb58a1 100644 --- a/reports/index.html +++ b/reports/index.html @@ -35,7 +35,7 @@ Zenful
  • -Oct 4, 2024 03:29:39 AM +Oct 8, 2024 03:09:11 AM
  • @@ -81,7 +81,7 @@

    Test msg

    - 3:29:42 AM / 00:00:00:000 + 3:09:17 AM / 00:00:00:000 Pass

    @@ -90,8 +90,8 @@
    Test msg
    -10.04.2024 3:29:42 AM -10.04.2024 3:29:42 AM +10.08.2024 3:09:17 AM +10.08.2024 3:09:17 AM 00:00:00:000 · #test-id=1 @@ -115,13 +115,13 @@

    Started

    -

    Oct 4, 2024 03:29:39 AM

    +

    Oct 8, 2024 03:09:11 AM

    Ended

    -

    Oct 4, 2024 03:29:42 AM

    +

    Oct 8, 2024 03:09:18 AM

    diff --git a/src/main/java/features/HomePage.feature b/src/main/java/features/HomePage.feature index e724016..dcfedac 100644 --- a/src/main/java/features/HomePage.feature +++ b/src/main/java/features/HomePage.feature @@ -1,6 +1,8 @@ Feature: Home page of the application + + @Smoke Scenario: Leave a comment into Zenful.cloud Given Initialize the remote webdriver Firefox And navigate to "https://zenful.cloud" - When User type text into the text box and hit click - Then Text is displayed "True" + When User type text into the text box and hit click + Then Text is displayed "True" diff --git a/src/main/java/testNGRunner/TestRunner.java b/src/main/java/testNGRunner/TestRunner.java index c55ecca..ca35c3d 100644 --- a/src/main/java/testNGRunner/TestRunner.java +++ b/src/main/java/testNGRunner/TestRunner.java @@ -3,10 +3,8 @@ package testNGRunner; import io.cucumber.testng.AbstractTestNGCucumberTests; import io.cucumber.testng.CucumberOptions; -@CucumberOptions( - features = "src/main/java/features", - glue = "stepDefinition" -) +@CucumberOptions(features = "src/main/java/features", glue = "stepDefinition", monochrome = false, plugin = { "pretty", + "html:BDDrepo/bddReports" }, tags = "@Smoke") public class TestRunner extends AbstractTestNGCucumberTests { }