Chapter 4
Advanced TestNG — quiz
5 questions · ~4 min
Chapter 4 quiz
Question 1 of 5
Your Selenium suite has 80 tests. You set parallel="methods" and thread-count="4" in testng.xml. A test starts failing intermittently because a WebDriver instance initialized in @BeforeClass is shared across threads. What is the correct fix?