I'm trying to run the LeanFT tests parallely using TestNg XML in Chrome browser.
It runs fine, but it opens every test session in the same browser causing issues with cookies for logins and log outs.
Example:
I'm running test from TestNG XML with parallel="tests" thread-count="2"
and
launching the browser in LeanFT with
public Browser getbrowser() {
Browser browser = null;
browser = BrowserFactory.launch(BrowserType.CHROME);
browser.clearCache();
return browser;
}
So every time I run the test from TestNG XML in parallel, all tests opens up in the same browser causing cookies issue, as I have browser.clearCache()
in getbrowser()
method.
I want to run the LeanFT tests in parallel with each thread opening new instance of Chrome window and running parallely on the same machine.
Please share if any one has implemented the parallel execution for LeanFT in same machine.