RE: Selenium Factory Design Pattern For Parallel Test Executtion
I read the article http://toolsqa.com/selenium-webdriver/factory-design-principle-in-frameworks/ which is very informative. I am already using such design in my framework. But not sure on the modifications to this design make it suitable for “Parallel Test Execution” . I did not find the follow-up articles as mentioned in the above article. Can someone point me to the article or give idea on improving the design ?
I am also using TestNG and Java.
I want to use this DriverFactory for my project. But according to you this is not thread safe and will not work for parallel tests. I want to run my test in multi browsers and parallel as well please help me how to create such type of objects.
- As you can see that this is not thread safe, it means that it will not be able to work on parallel test environments. A few modifications in this class and it will become capable of handling parallel requests. We will learn about it in coming articles on design principles in test frameworks.