Skip to content

Commit

Permalink
Merge branch 'jane_defect_last_line_without_star'
Browse files Browse the repository at this point in the history
  • Loading branch information
bingyujin committed Nov 7, 2022
2 parents b88071d + fb91096 commit c220e99
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 64 deletions.
2 changes: 1 addition & 1 deletion src/test/java/com/microfocus/bdd/ut/FilesLocatorTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,6 @@ public void matchPatternFailTest() {
public void matchPatternPassTest() {
final String pattern = "src/**/*junit*.xml";
List<String> reports = FilesLocator.getReportFiles(pattern);
Assert.assertEquals(15, reports.size());
Assert.assertEquals(16, reports.size());
}
}
28 changes: 14 additions & 14 deletions src/test/resources/cucumber-jvm/separate-test5/junit.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<testsuite errors="0" failures="7" name="io.cucumber.core.plugin.JUnitFormatter" skipped="0" tests="31" time="884.541">
<testcase classname="MyAccountFooterUIValidations" name="Verify Footer - Important Information About Us Hyperlink" time="157.348">
<failure message="Expected condition failed: waiting for com.hastings.automation.function.pageaction.webpageaction.ClickAction$1@7b93d7e1 (tried for 30 second(s) with 200 milliseconds interval)" type="org.openqa.selenium.TimeoutException"><![CDATA[Given User login into My Account with Multi Product Policies................passed
When User clicks on "Important Information About Us" link in My Account Footer.failed
Then User should be navigated to the respective footer page.................skipped
StackTrace:
org.openqa.selenium.TimeoutException: Expected condition failed: waiting for com.hastings.automation.function.pageaction.webpageaction.ClickAction$1@7b93d7e1 (tried for 30 second(s) with 200 milliseconds interval)
at org.openqa.selenium.support.ui.FluentWait.timeoutException(FluentWait.java:263)
at org.openqa.selenium.support.ui.FluentWait.until(FluentWait.java:231)
at com.hastings.automation.function.pageaction.webpageaction.ClickAction.waitAndClickElement(ClickAction.java:45)
at com.hastings.automation.function.ui.pageobjects.digital.reactmyaccount.MaReactMarketingPreferenceOverlayPage.clickMarketingPreferenceCloseButton(MaReactMarketingPreferenceOverlayPage.java:68)
at com.hastings.automation.automationtest.bdd.definitions.stepdefinitions.digital.digitalsteps.MyAccountReactSteps.userClickOnFooterLink(MyAccountReactSteps.java:179)
at ✽.User clicks on "Important Information About Us" link in My Account Footer(classpath:src/test/resources/features/MyAccountFooterUIValidations.feature:51)
]]></failure>
</testcase>
<testcase classname="MyAccountFooterUIValidations" name="Verify Footer - Our Fees Hyperlink" time="172.683">
<failure message="Expected condition failed: waiting for com.hastings.automation.function.pageaction.webpageaction.ClickAction$1@149b6966 (tried for 30 second(s) with 200 milliseconds interval)" type="org.openqa.selenium.TimeoutException"><![CDATA[Given User logs into My Account with a policy...............................passed
When User clicks on "Our Fees" link in My Account Footer....................failed
Expand Down Expand Up @@ -107,19 +121,5 @@ Then User should be presented with Help us go green modal overlay...........pass
]]></system-out>
</testcase>

<testcase classname="MyAccountFooterUIValidations" name="Verify Footer - Important Information About Us Hyperlink" time="157.348">
<failure message="Expected condition failed: waiting for com.hastings.automation.function.pageaction.webpageaction.ClickAction$1@7b93d7e1 (tried for 30 second(s) with 200 milliseconds interval)" type="org.openqa.selenium.TimeoutException"><![CDATA[Given User login into My Account with Multi Product Policies................passed
When User clicks on "Important Information About Us" link in My Account Footer.failed
Then User should be navigated to the respective footer page.................skipped

StackTrace:
org.openqa.selenium.TimeoutException: Expected condition failed: waiting for com.hastings.automation.function.pageaction.webpageaction.ClickAction$1@7b93d7e1 (tried for 30 second(s) with 200 milliseconds interval)
at org.openqa.selenium.support.ui.FluentWait.timeoutException(FluentWait.java:263)
at org.openqa.selenium.support.ui.FluentWait.until(FluentWait.java:231)
at com.hastings.automation.function.pageaction.webpageaction.ClickAction.waitAndClickElement(ClickAction.java:45)
at com.hastings.automation.function.ui.pageobjects.digital.reactmyaccount.MaReactMarketingPreferenceOverlayPage.clickMarketingPreferenceCloseButton(MaReactMarketingPreferenceOverlayPage.java:68)
at com.hastings.automation.automationtest.bdd.definitions.stepdefinitions.digital.digitalsteps.MyAccountReactSteps.userClickOnFooterLink(MyAccountReactSteps.java:179)
at ✽.User clicks on "Important Information About Us" link in My Account Footer(classpath:src/test/resources/features/MyAccountFooterUIValidations.feature:51)
]]></failure>
</testcase>
</testsuite>
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" ?>
<!--Generated by bdd2octane 1.0-SNAPSHOT-->
<!--Generated by bdd2octane 1.2.0-SNAPSHOT-->
<features version="1">
<feature name="MyAccountFooterUIValidations" path="src\test\resources\features\MyAccountFooterUIValidations.feature" started="1667549668904" tag="BSPID174090REV0.18.0">
<feature name="MyAccountFooterUIValidations" path="src\test\resources\features\MyAccountFooterUIValidations.feature" started="1667807715470" tag="BSPID174090REV0.18.0">
<file>
<![CDATA[#Auto generated Octane revision tag
@BSPID174090REV0.18.0
Expand Down Expand Up @@ -113,14 +113,37 @@ Session ID: 0eff3e94bb4a19c40ab2338acfa32771
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:833)
]]></error_message>
</step>
<step name="Then User should be navigated to the respective footer page" duration="0" status="skipped"></step>
</steps>
</scenario>
<scenario name="Verify Footer - Important Information About Us Hyperlink">
<steps>
<step name="Given User login into My Account with Multi Product Policies
| Bike | 1 |
| Van | 1 |" duration="0" status="passed"></step>
<step name="When User clicks on &quot;Important Information About Us&quot; link in My Account Footer" duration="0" status="failed">
<error_message><![CDATA[Given User login into My Account with Multi Product Policies................passed
When User clicks on "Important Information About Us" link in My Account Footer.failed
Then User should be navigated to the respective footer page.................skipped
StackTrace:
org.openqa.selenium.TimeoutException: Expected condition failed: waiting for com.hastings.automation.function.pageaction.webpageaction.ClickAction$1@7b93d7e1 (tried for 30 second(s) with 200 milliseconds interval)
at org.openqa.selenium.support.ui.FluentWait.timeoutException(FluentWait.java:263)
at org.openqa.selenium.support.ui.FluentWait.until(FluentWait.java:231)
at com.hastings.automation.function.pageaction.webpageaction.ClickAction.waitAndClickElement(ClickAction.java:45)
at com.hastings.automation.function.ui.pageobjects.digital.reactmyaccount.MaReactMarketingPreferenceOverlayPage.clickMarketingPreferenceCloseButton(MaReactMarketingPreferenceOverlayPage.java:68)
at com.hastings.automation.automationtest.bdd.definitions.stepdefinitions.digital.digitalsteps.MyAccountReactSteps.userClickOnFooterLink(MyAccountReactSteps.java:179)
at ✽.User clicks on "Important Information About Us" link in My Account Footer(classpath:src/test/resources/features/MyAccountFooterUIValidations.feature:51)
]]></error_message>
</step>
<step name="Then User should be navigated to the respective footer page" duration="0" status="skipped"></step>
</steps>
</scenario>
</scenarios>
</feature>
<feature name="MyAccountHelpUIValidation" path="src\test\resources\features\MyAccountHelpUIValidation.feature" started="1667549668919" tag="BSPID183048REV0.5.0">
<feature name="MyAccountHelpUIValidation" path="src\test\resources\features\MyAccountHelpUIValidation.feature" started="1667807715470" tag="BSPID183048REV0.5.0">
<file>
<![CDATA[#Auto generated Octane revision tag
@BSPID183048REV0.5.0
Expand All @@ -142,7 +165,7 @@ Feature: MyAccountHelpUIValidation
</scenario>
</scenarios>
</feature>
<feature name="MyAccount GoGreen Overlay Ui Validations" path="src\test\resources\features\MyAccountGoGreenOverlayUiValidations.feature" started="1667549668904" tag="BSPID182030REV0.12.0">
<feature name="MyAccount GoGreen Overlay Ui Validations" path="src\test\resources\features\MyAccountGoGreenOverlayUiValidations.feature" started="1667807715470" tag="BSPID182030REV0.12.0">
<file>
<![CDATA[#Auto generated Octane revision tag
@BSPID182030REV0.12.0
Expand All @@ -164,49 +187,4 @@ Feature: MyAccount GoGreen Overlay Ui Validations
</scenario>
</scenarios>
</feature>
<feature name="MyAccountFooterUIValidations" path="src\test\resources\features\MyAccountFooterUIValidations.feature" started="1667549668904" tag="BSPID174090REV0.18.0">
<file>
<![CDATA[#Auto generated Octane revision tag
@BSPID174090REV0.18.0
Feature: MyAccountFooterUIValidations
@TSCID523715 @TemenosReactTeam
Scenario: Verify Footer - Our Fees Hyperlink
Given User logs into My Account with a policy
When User clicks on "Our Fees" link in My Account Footer
Then User should be navigated to the respective footer page
@TSCID523721 @TemenosReactTeam
Scenario: Verify Footer - Important Information About Us Hyperlink
Given User login into My Account with Multi Product Policies
|Bike | 1 |
|Van | 1 |
When User clicks on "Important Information About Us" link in My Account Footer
Then User should be navigated to the respective footer page]]>
</file>
<scenarios>
<scenario name="Verify Footer - Important Information About Us Hyperlink">
<steps>
<step name="Given User login into My Account with Multi Product Policies
| Bike | 1 |
| Van | 1 |" duration="0" status="passed"></step>
<step name="When User clicks on &quot;Important Information About Us&quot; link in My Account Footer" duration="0" status="failed">
<error_message><![CDATA[Given User login into My Account with Multi Product Policies................passed
When User clicks on "Important Information About Us" link in My Account Footer.failed
Then User should be navigated to the respective footer page.................skipped
StackTrace:
org.openqa.selenium.TimeoutException: Expected condition failed: waiting for com.hastings.automation.function.pageaction.webpageaction.ClickAction$1@7b93d7e1 (tried for 30 second(s) with 200 milliseconds interval)
at org.openqa.selenium.support.ui.FluentWait.timeoutException(FluentWait.java:263)
at org.openqa.selenium.support.ui.FluentWait.until(FluentWait.java:231)
at com.hastings.automation.function.pageaction.webpageaction.ClickAction.waitAndClickElement(ClickAction.java:45)
at com.hastings.automation.function.ui.pageobjects.digital.reactmyaccount.MaReactMarketingPreferenceOverlayPage.clickMarketingPreferenceCloseButton(MaReactMarketingPreferenceOverlayPage.java:68)
at com.hastings.automation.automationtest.bdd.definitions.stepdefinitions.digital.digitalsteps.MyAccountReactSteps.userClickOnFooterLink(MyAccountReactSteps.java:179)
at ✽.User clicks on "Important Information About Us" link in My Account Footer(classpath:src/test/resources/features/MyAccountFooterUIValidations.feature:51)
]]></error_message>
</step>
<step name="Then User should be navigated to the respective footer page" duration="0" status="skipped"></step>
</steps>
</scenario>
</scenarios>
</feature>
</features>

0 comments on commit c220e99

Please sign in to comment.