Skip to content

Commit

Permalink
Adding ignore test failure option to sure fire config
Browse files Browse the repository at this point in the history
  • Loading branch information
bhargavkumar-65 committed Mar 23, 2021
1 parent d90551c commit f8db71c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Suites/Testng.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<test name="Sample-Tests">
<classes>
<class name="healenium.amazontest" />
<!-- <class name="healenium.MarkupTest"></class>-->
<class name="healenium.MarkupTest"></class>
</classes>
</test>

Expand Down
2 changes: 2 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.1</version>
<configuration>
<testFailureIgnore>true</testFailureIgnore> <!--Added to get Healenium report when there is a failure in tests-->

<suiteXmlFiles>
<suiteXmlFile>./Suites/Testng.xml</suiteXmlFile>
</suiteXmlFiles>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/pagefactory/amazonPage.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public amazonPage(SelfHealingDriver driver) {

//@FindBy(css = "#nav-link-accountList-nav-line-1")
// @FindBy(xpath = "//span[@class='nav-line-2 nav-long-width']")
@FindBy(xpath = "/html[1]/body[1]/div[1]/header[1]/div[1]/div[1]/div[3]/div[1]/a[2]/span[1]")
@FindBy(xpath = "/html[1]/body[1]/div[1]/header[1]/div[1]/div[1]/div[3]/div[1]/a[2]/span[2]")
WebElement signinbtn;

public amazonPage open() {
Expand Down

0 comments on commit f8db71c

Please sign in to comment.