serenity-bdd / serenity-cucumber

Cucumber integration for the Serenity BDD Reporting library
Other
78 stars 74 forks source link

Cucumber + Serenity serenity.use.unique.browser does not work #72

Closed derkoe closed 7 years ago

derkoe commented 7 years ago

When running Serenity with Cucumber then the serenity.use.unique.browser setting does not work - a browser (webdriver) is opened for each cucumber "Feature" (and closed after each "Feature").

derkoe commented 7 years ago

Anyone want's to merge this?

jeromevdl commented 7 years ago

Why the commit has not been merged on master ?

Tests are already quite long to execute. So if in addition, the browser is killed each time, it's just too long.

I really need this or any other solution (as the intended property does not work).

wakaleo commented 7 years ago

See https://github.com/serenity-bdd/serenity-cucumber/pull/73

jeromevdl commented 7 years ago

Yes, I've seen it. In which version is it available?

By the way, maybe you could update the documentation http://thucydides.info/docs/serenity-staging/

serenity.use.unique.browser Set this to true for running all web tests in a single browser, for one test. Can be used for configuring Junit and Cucumber, default value is false.

restart.browser.each.scenario Set this to false for running all web tests in same story file with one browser, can be used when Jbehave is used. default value is false

wakaleo commented 7 years ago

It is available in the most recent version, from 1.2.x I believe.