Seems to be working as it should....what is the behavior you want? TestNG will instantiate your test classes (creating two browser instances...one for each test class) before it starts running tests.
If you don't want the browsers started by simply instantiating the classes, move the driver initialization code into the @BeforeClass method.
My phone is having sync issues...did my last response go through?
--
--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to testng-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/testng-users/f66ecb33-78aa-471a-a62c-0948480dd385o%40googlegroups.com.
The TestNG will scan all of your test classes then automatic convert all fields and methods to static, that's why two WebDriver driver be initialized.
--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to testng-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/testng-users/8f9d6689-d991-4de1-9d0e-6fea017f87fbo%40googlegroups.com.