I have 100s of tests in my testng.xml, most of tests failing due to timing issue, but when I am running them in chunks it works fine
One ineffective solution I tried is to divide the small number of tests in to multiple testng.xml file and run one by one, looking for alternate which I can do the same at run time
Here is how my testng.xml looks like
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd" >
<suite name="Suite">
    <listeners>
        <listener class-name="baseClasses.TestListener"></listener>
    </listeners>
    <test name="Android">
        <parameter name="platform" value="android"></parameter>
        <classes>
           <class name="testCases.android.VerifyLoginLogout" />
           <class name="testCases.android.test1" /> 
           <class name="testCases.android.test2" />
           ...
           <class name="testCases.android.test100" />
        </classes>
    </test>
</suite>
Any suggestions on how to divide the tests in chunks and run them one by one at run time so I need not to divide the tests into multiple testng.xml files
Note - even tried with package wise run inside testng.xml