Closed serpro69 closed 7 years ago
Do you have evidence the hang up is happening in TestNG and not Selenium?
No, I don't. How can I verify that?
Get a stack trace during the freeze and see who is waiting. I'll close this issue for now, please reopen once you have something like that showing an issue in TestNG.
TestNG Version
6.11
Expected behavior
Tests running one after another without interruption
Actual behavior
test1() runs successfully, after that test2() hangs for 5+ minutes (but resumes if I manually interact with browser)
Is the issue reproductible on runner?
Test case sample
I have two test cases that run one after the other and both use same dataProvider, and a @BeforeMethod that verifies the state of the page before executing test method.
After first test case passes, @BeforeMethod starts, verification (simply checking that header is correct) passes, PageObject Factory is getting initialized for Page that is used in DataProvider and test execution just hangs for a very long time. If I interact with the browser manually, then test execution resumes. I've tried executing test1(), testX() (w/o dataProvider), then test2() and everything works fine.