When executing a test suite collection in sequential mode, I would like in some cases to use the same browser instance when executing all my different test suites. Currently, each time a test suite is booted, a new browser instance is started.
How would it be possible to share same browser instance ?
- Test Case: âLoginâ: Open Browser ()=> Login and so on.
- Test Case: âSomething after loginâ: click here and there.
and then I have many of these:
- Test Suite: âSomething beautifulâ:
â Test case âLoginâ;
â Test case âSomething after loginâ;
â Test case âAnother one test case and so onâŚâ
and then I have also:
- Test Suite Collection: âAll my test suite!â
â Test suite: âSomething beautifulâ
â Test suite: âAnother one test suite and so onâŚâ
What I need (and what the author of the question needs I think) is that in my Test Suite Collection I can avoid every time the âLoginâ step (which is in every Test Suite).
Maybe also with an âif (GlobalVariable.skip_login)â.
Today also if I do one Test Suite with just âOpen Browserâ action the browser close itself after that step and reopen itself for the next step in Test Suite Collection.
In that case, you can have a test suite call âOpen Browserâ test case only which will always execute first. Other test suites beyond it donât need to have âOpen Browserâ step so that they can re-use the same browser instance from the first test suite.
I have used âOpen Browserâ command in first test suite only. But still i am facing the issue like second test suite are always try to open new window or session. But i want to open the same browser only rather than it took always new window. Could you please assist me?