sangmingming / robotium

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

run robotium in only have apk file #205

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.follow site tutorial setup environment
2.only tearCanOpenSettings()can work fine
3.add other method may cause fail

What is the expected output? What do you see instead?
it can add more test item, but it can't.

What version of the product are you using? On what operating system?
robotium 3.0.  windows XP/eclipse ee/jdk 6.20/android platform 2.3.3

Please provide any additional information below.
What steps will reproduce the problem?
1.follow site tutorial setup environment
2.only tearCanOpenSettings()can work fine
3.add other method may cause fail

What is the expected output? What do you see instead?
it can add more test item, but it can't.

What version of the product are you using? On what operating system?
robotium 3.0.  windows XP/eclipse ee/jdk 6.20/android platform 2.3.3

I follow tutorials page do. Something are wrong.
In my case, it have five test case, when the first test case work failure, the 
test is stop not escape the failure one and go to next test case.

Original issue reported on code.google.com by allen119...@gmail.com on 9 Jan 2012 at 1:38

Attachments:

GoogleCodeExporter commented 9 years ago
Please only use this tracker for Robotium defects. All tests need to start with 
test for JUnit 3 to run them.

Original comment by renasr...@gmail.com on 9 Jan 2012 at 3:03

GoogleCodeExporter commented 9 years ago
It work fine, after change finishOpenedActivities()instead of finalize()

Original comment by allen119...@gmail.com on 10 Jan 2012 at 5:33

GoogleCodeExporter commented 9 years ago
Hi Allen, 

Thanks for your feedback, I am not able to understand exactly your points. Can 
you please explain the exact problem you were facing using tutorial? and what 
you did't find in it according to your expectations?
We will surely incorporate your points in coming updated version of tutorial if 
possible.

Original comment by luckynav...@gmail.com on 10 Jan 2012 at 6:07

GoogleCodeExporter commented 9 years ago
I follow the tutorial "BLACK BOX TESTING WITH ROBOTIUM ON APK FILES" and add 
some test methods not only one. But the tutorial still use old version 
solo.finalize. It causes run test process may one failure test method and stop 
not go the next test method. Finally, I change it to finishOpenedActivities(). 
It work fine. 
In this process, still meet some trouble, when you want to create a android 
test project in eslipse, in finally step you must click "finish" button double 
click quiuckly you can possible then sucess build a test project, otherwise you 
get fail to build a test project. I don't know this bug whether it only exist 
in eslipse.

Original comment by allen119...@gmail.com on 10 Jan 2012 at 7:32