austgl / robotium

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

getActivity hangs #172

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Two test methods
2.When second test is issued the getActivity in the setUp method hangs. 
3.

What is the expected output? What do you see instead?

Expected to get the activity and run the test.

What version of the product are you using? On what operating system?
Robotium 2.5

Please provide any additional information below.

Original issue reported on code.google.com by slott.ha...@gmail.com on 12 Oct 2011 at 9:05

GoogleCodeExporter commented 9 years ago
I have found a solution to my problem however this might still be an actual 
issue for you guys to look into. The app that I am testing requires me to login 
and thus the activity that I have marked as my start activity might redirect me 
to another activity and I recon that is why it hangs as it gets confused that 
it is not getting the activity it expects.

Changing my start activity solved my problem.

Original comment by slott.ha...@gmail.com on 12 Oct 2011 at 9:32

GoogleCodeExporter commented 9 years ago
In cases like this I would recommend you to use the constructor in which you 
only give the instrumentation object. You first set up solo and then call 
getActvitiy(). 

Original comment by renasr...@gmail.com on 12 Oct 2011 at 4:43

GoogleCodeExporter commented 9 years ago
Same problem.
What constructor are you referring to?
SoloWrapper only has one constructor.

Original comment by Marcus.W...@gmail.com on 17 Nov 2011 at 10:01

GoogleCodeExporter commented 9 years ago
There are to constructors. You also have Solo solo = new 
Solo(getInstrumentation());

Original comment by renasr...@gmail.com on 17 Nov 2011 at 11:38