In tests with Selenium, running through Eclipse, when I run several at the same time. The errors happen:
- First, do not finish running the task open another browser.
- Begins to run the second test without even finishing the first
- Problem as it is with the same user, and a user can only have one session then
- When the first test is completed again, the system has already invalidated the session.
- Failing the test that you did not even execute because you missed the session.
I've tried many settings already so that it runs as follows. Only a thread and to the end , but I did not succeed.
Two reasons for these tests to be so are integration tests validate many complex scenarios that simulate a user doing the operations sequences within the system.
How do I reach this goal. 1 - Thread per time running the task until end, then goes to the next so until you reach the last test