serenity-bdd / serenity-documentation

The main Serenity BDD documentation
Apache License 2.0
41 stars 61 forks source link

Update documentation for chapter Running all tests in a single browser window #67

Closed YamStranger closed 8 years ago

YamStranger commented 8 years ago

Problem in: http://thucydides.info/docs/serenity-staging/#_running_all_tests_in_a_single_browser_window

instead of

All web tests can be run in a single browser window

should be

All web tests can be run in a single browser window for one test case (story file) if property restart.browser.each.scenario = false //default behaving
if restart.browser.each.scenario = true - browser will be restarted for each scenario.

For junit all tests in same test class can be ran with same browser if is defined

serenity.use.unique.browser = true

For cucumber you also should use

serenity.use.unique.browser = true
YamStranger commented 8 years ago

Fixed