Hi All,
I am using TestNG in my framework and its working pretty well. Here I got a requirement where I need to execute kind of load using same framework.
TestNG provides Thread-Count parameter where we can pass n number of thread to execute. Here what I did:
I have created a script and its working perfectly when running alone (tried running more than 20-30 times).
Now I have to run same script in parallel with 3 users. so What I did is
<suite name="Suite1" parallel="tests" thread-count="3" >
<test name="Reg1" >
<classes>
<class name="testCases.Test1" />
</classes>
</test>
<test name="Reg1" >
<classes>
<class name="testCases.Test1" />
</classes>
</test>
<test name="Reg1" >
<classes>
<class name="testCases.Test1" />
</classes>
</test>
</suite>
Now When I execute it my scripts start getting failed at random step. I tried introducing wait statement (even hard sleep) but still getting exception "Unable to find element" where I can see page is loaded already.
Any suggestion please.
Thanks
Arun Vats