austgl / robotium

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

Getting "Instrumentation run failed due to 'java.lang.NoClassDefFoundError'" while Using ErrorCollector #216

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.
@Rule
ErrorCollector errCollect = new ErrorCollector();
2.try{
assertFalse("Error occured",solo.searchText("Sorry, no results were found."));
}
catch(Throwable e){
errCollect.addError(e);
}
3.

What is the expected output? What do you see instead?
Not able to collect the errors. Throwing the above error and testcase is not 
getting executed.

Note: I am using Junit4 and I have imported the required package for error 
Collector and Rule.
What version of the product are you using? On what operating system?
Android:2.2,2.3, OS-Window vista, Robotium 3.1 jar

Please provide any additional information below.

If i am not using the error collector the app is launching and test case is 
getting passed.

Requirement: My test case should catch the multiple assertion failure and 
should move forward and my test case should fail finally with a collection of 
assertion failure. My test case should not break in between if assert failure 
occur.

Is there any other way to meet my requirement?

Original issue reported on code.google.com by itsme.va...@gmail.com on 23 Jan 2012 at 6:22

GoogleCodeExporter commented 9 years ago
This is just a tracker for Robotium issues. 

Original comment by renasr...@gmail.com on 23 Jan 2012 at 7:32

GoogleCodeExporter commented 9 years ago
I too go this error when trying to test apk from testdroid (basically it 
generates code to be tested for robotium)

When i record a testcase it works fine but after some time when i play it .. i 
do get the above error

Original comment by teja...@gmail.com on 17 Apr 2012 at 10:26