austgl / robotium

Automatically exported from code.google.com/p/robotium
0 stars 0 forks source link

I am getting one crash after calling any robotium api after launching my activity #105

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.After calling constructing the solo object in the setup -> mySolo = new 
Solo(getInstrumentation(), getActivity());
2.Now just check my simple code:

public  void test_BasicTest() throws Exception {
   solo.waitForActivity("SocialExtLauncher", 10000)
   solo.wait(10000);
   solo.searchText("android");
   solo.clickOnText("android");
}

What is the expected output? What do you see instead?
Should be able to perform any operation.

Actual:
Is giving null pointer exception.

What version of the product are you using? On what operating system?
Gingerbread 2.3 and Robotium2.2

Please provide any additional information below.
As you have asked me to use the solo.wait, i had used this but it was giving 
"IllegalMonitorStateException" exception.

The activity was ready when these operations were performed.

Original issue reported on code.google.com by anandpai...@gmail.com on 19 Apr 2011 at 12:56

Attachments:

GoogleCodeExporter commented 9 years ago
Dont use solo.wait(10000); Use waitForActivity() and add solo.sleep(x) after 
the waitForX. Either way, the crash is not in Robotium but in the application 
so please do not submit this issue again.

Original comment by renasr...@gmail.com on 20 Apr 2011 at 7:29