when i run my tests as single test (Run as -> TestNG test) it's working properly (it's ok, its' working)
when i use my testng.xml file the tests fail because some static variables are going to initialize first and get used later. Thus using static variables gives null pointer exception.
Please help me to know the reason of such behavior. Because same test execute perfectly and static variable going to initialize later where it get called.