Geb with Selenoid - new session for each test in a class/spec

95 Views Asked by At

Currently trying to run Geb tests on Selenoid docker instance. I want Selenoid to generate video reports for each test in a class/spec, but it seems like Geb runs all the tests in one driver session therefore Selenoid generates a single video for all of them.

I've tried different combinations of driver caching configurations like

cacheDriver = false
quitDriverOnBrowserReset = false

or calling CachingDriverFactory.clearCacheAndQuitDriver() on cleanup

but it's either all tests using the same instance or the second test fails with "Session ID is null. Using WebDriver after calling quit()?"

Is it possible to have separate selenoid videos for each test in a class/spec?

0

There are 0 best solutions below