When we run our test cases in in parallel using TestNg in selenium, you might have faced issues like some environmental, or some unknown issues halting the parallel execution.
Parallel execution is nothing but running the selenium in multiple threads, when one thread interrupts the other thread then JVM throws exceptions
Like webdriver listener we have to wrap the webdriver instance using the ThreadGuard class, for that purpose we a methods called
WebDriver driver = ThreadGuard.protect(new FirefoxDriver());
This class has no importance than protecting the webdriver on the multi-threads.
Article is written by Pavan (a) KarthiQ. Well, I am serving notice period in an MNC, Bangalore. I thought to enrich every person knowledge a little, I always have a feeling, when we teach something, we will learn more than what you know.
Knowledge is the only thing that doubles when you spend it.
I have also created the reporter for Protractor Jasmine. Use for your projects without any hesitation