toast-tk / toast-tk-engine

The core automation framework for your acceptance tests
http://toast-tk.io
Other
12 stars 5 forks source link

Test isolation in campaign #84

Closed cyterdan closed 7 years ago

cyterdan commented 8 years ago

When running a campaign with multiple web tests. The campaign fails if one of the tests closes the browser at the end. I get this error Using WebDriver after calling quit()

The tests apparently share the same webdriver session. Is this the expected behavior ?

Thanks

skokaina commented 8 years ago

For the time being, the "Close browser" action calls the "quit()" method.
Hence, it kills the webdriver session. The error you get is the expected behavior. What are you looking to test ? Do you need multiple session support or just closing and opening back the browser ?

cyterdan commented 8 years ago

My use case is running a project with multiple web scenarios :

|| campaign || multiple ||
| scenario1 | scenario1.script |
| scenario2 | scenario2.script |

scenario1.script :

| Naviguer vers *http://www.google.fr/* |
| Fermer le navigateur |

scenario2.script :

| Naviguer vers *http://www.google.com/* |
| Fermer le navigateur |

When running the campaign (with CIMongoStorageProjectRunner in the examples), it fails (the driver is reused between runs.

I have a fix for this and can submit a PR to toast-tk-selenium-plugin (if this is a indeed a bug of course)

skokaina commented 8 years ago

Sure, please submit your PR, we'll have a look..

skokaina commented 7 years ago

@cyterdan this issue will be closed, you can re-open a new one if you are still experiencing this with v0.1.5