austgl / robotium

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

Problem with testing multiple activities #222

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Import Notepadv3Solution project in Eclipse
2. Import Notepadv3SolutionTest project in Eclipse
3. Go to Notepadv3SolutionTest project, select TestNotepadv3 and run it as 
Junit Android Test

What is the expected output? What do you see instead?
TestNotepadv3.testCreateNote() should pass. The 'Add Note' menu item looks like 
it is selected, but the activity is not chnaged.
Instead it fails because the activity is not changed.

What version of the product are you using? On what operating system?
I am using Android2.3.3, with robotium-solo-3.1.jar, on Ubuntu Maverick 10.10.

Please provide any additional information below.
I have attached the projects needed for reproducing the error.

Notepadv3Solution is the project from android tutorial.
Notepadv3SolutionTest is the test project that I have created for 
Notepadv3Solution project.

Original issue reported on code.google.com by victorba...@gmail.com on 5 Feb 2012 at 1:40

Attachments:

GoogleCodeExporter commented 9 years ago
Please see: "Why do text and button clicks get wrong?"

http://code.google.com/p/robotium/wiki/QuestionsAndAnswers

Original comment by renasr...@gmail.com on 5 Feb 2012 at 7:14

GoogleCodeExporter commented 9 years ago
Already did that, but forgot to mention in the description.
Both of the suggested fixes are included in the AndroidManifest file of the 
test project.

Original comment by victorba...@gmail.com on 5 Feb 2012 at 7:30

GoogleCodeExporter commented 9 years ago
You need to include it to the application under test. I tried and it worked. 

Original comment by renasr...@gmail.com on 6 Feb 2012 at 5:23

GoogleCodeExporter commented 9 years ago
Added <supports-screens android:anyDensity="true"/> to the application under 
test, and worked. Cheers.

Original comment by victorba...@gmail.com on 6 Feb 2012 at 9:10

GoogleCodeExporter commented 9 years ago
@ victorba...@gmail.com
did u add that line in Manifest file?

Original comment by techacti...@gmail.com on 1 Jun 2012 at 8:59

GoogleCodeExporter commented 9 years ago
Yes, I did manage to finish up my test configuration.

Thanks.

Original comment by victorba...@gmail.com on 4 Jun 2012 at 6:34