1
In tests with Selenium, running by Eclipse, when I run several at the same time. Errors happen:
- First, does not finish running the task opens another browser.
- Starts running the second test without even having finished the first
- Problem as it is with the same user, and a user can only have one session so
- When the first test is finished, the system has already invalidated the session.
- Failing the test you didn’t even run because you missed the session.
I tried many settings already so that it runs as follows. Only one thread and all the way, but I was unsuccessful.
Two reasons for these tests to be so, are integration tests validate very complex scenarios simulate a user doing sequential operations within the system.
How I reach that goal. 1 - Thread at a time running the task until the end, then go to the next so until you get to the last test
Save! Already solved? Can you post your configuration? You are using the Maven plugin (failsafe)?
– Ricardo Zanini
I posted how I solved, but I wanted it to be just with Annotation, but in these versions Selenium has many unresolved problems regarding this
– Marcelo Ferreira
And there he comments on the answer of right, it was useful. when it goes right there put as it did.
– Marcelo Ferreira