I am trying to create a threadLocal webdriver.
Trying to initialize and login into over application in @BeforeClass.
@test is having functionality. This test is working properly but whenever i use @test(timeOut=1200) it is getting failed due to timeOut's in Testng run on a different thread.
But whenever there is a timeOut in the @test(timeOut=1200) TestNG is creating Two new thread for the @beforeclass and @test.
Is there a possibility that it will run in a single thread.
I have tried TestNG-7.0.0-beta1 with -Dtestng.thread.affinity=true JVM agrument. But it stills fails to fulfill my requirement.
Thanks, balraj