Skip to content

Commit

Permalink
#78: webdriver tear down without the Scenario as a parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcel Pfotenhauer committed Apr 17, 2019
1 parent 119a993 commit 7f6f816
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/main/java/com/xceptance/neodymium/util/WebDriverUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,16 @@ public static void setUpWithBrowserTag(Scenario scenario)
**/
public static void tearDown(Scenario scenario)
{
browserStatement.get().teardown(scenario.isFailed());
tearDown(scenario.isFailed());
}

/**
* @param isFailed
* boolean to pass if the test failed in order to use Neodymium's keepBrowserOpenOnFailure feature
**/
public static void tearDown(boolean isFailed)
{
browserStatement.get().teardown(isFailed);
}

static String getFirstMatchingBrowserTag(Scenario scenario)
Expand Down

0 comments on commit 7f6f816

Please sign in to comment.