-
-
Notifications
You must be signed in to change notification settings - Fork 523
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #220 from YamStranger/218_issue
218 issue
- Loading branch information
Showing
3 changed files
with
56 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
...ty-junit/src/test/java/net/thucydides/samples/LongSamplePassingScenarioUsingHTMLUnit.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package net.thucydides.samples; | ||
|
||
import net.serenitybdd.junit.runners.SerenityRunner; | ||
import net.thucydides.core.annotations.Managed; | ||
import net.thucydides.core.annotations.ManagedPages; | ||
import net.thucydides.core.annotations.Screenshots; | ||
import net.thucydides.core.annotations.Steps; | ||
import net.thucydides.core.pages.Pages; | ||
import org.junit.Test; | ||
import org.junit.runner.RunWith; | ||
import org.openqa.selenium.WebDriver; | ||
|
||
@RunWith(SerenityRunner.class) | ||
public class LongSamplePassingScenarioUsingHTMLUnit { | ||
|
||
@Managed(uniqueSession = true, driver="htmlunit") | ||
public WebDriver webdriver; | ||
|
||
@ManagedPages(defaultUrl = "http://www.wikipedia.org") | ||
public Pages pages; | ||
|
||
@Steps | ||
public SampleScenarioSteps steps; | ||
|
||
@Test | ||
public void happy_day_scenario() throws Throwable { | ||
steps.stepThatUsesABrowser(); | ||
steps.anotherStepThatUsesABrowser(); | ||
steps.aStepThatAlsoUsesABrowser(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters