DEV Community

Discussion on: What was your win this week?

Collapse
 
jckuhl profile image
Jonathan Kuhl

This week, I learned to make parallel tests in Selenium WebDriver and TestNG. Pro-tip, don't write your WebDriver objects as singletons! I did everything else right, puzzled over why my tests wouldn't run parallel only to realize I had different pages running off the same Driver instance because it was a singleton! Doh.

Fixed that and it worked.