When you have many test cases that are dependant on each other – by default a new session is started only for the first test case, the rest are assumed to reuse the browser session
While running dependant test cases – if the current test case requires audio or video capability – then a check is made to confirm whether the current session has audio/video turned on – if it is not turned on a new session is created for the current test execution. So if there are dependant test cases – then ideally either all of them should have audio/video turned on or off.
While running dependant test cases – if the current test case requires a fresh session , then the current browser session will be ended and the test case will start with a fresh session
Have other questions? Access our full knowledge base!