Robotium Problem

Hello Everyone,

I am a newbie to Robotium. I had copied the entire script from the below website:

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

When I am running the script I am facing the below mentioned problem.

java.lang.NoClassDefFoundError: com.jayway.android.robotium.solo.Solo
at com.calculator.test.TestMain.setUp(TestMain.java:21)
at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:169)
at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:154)
at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:529)
at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1448)

Please help me to get rid of this problem. Thanks in advance.

Regards,

Devraj Kanti

You need to be a member of Mobile QA Zone to add comments!

Join Mobile QA Zone

Email me when people reply –

Replies

  • Hello Everyone,


    Thanks a lot for your concern. Actually there was a problem with the code. I had sorted it out with help of my colleague.

    Thanks & Regards,

    Devraj Kanti

  • I guess If Solo jar is not there, while writing Solo.method it will give error. It will be highlighted in red. It wont allow you to run the app. Here he is able to run. So problem is something else (This is just a guess).

    Robotium is not a 100% perfect framework. If it could not find the element in  some duration it may fail.

    So its better to give some  delay 

    Solo.sleep(time);

    Please try test droid, automation version of this framework. It will save your time.

    regards,

    Divya

  • its something robotium-solo..jar

  • there is no solo.jar. Looks like that the robotium.jar file is missing in the build path.

  • Include solo.jar file into project's library.. download it from google.

This reply was deleted.
    results->result as $result) { ?>
  1. jobtitle;?>
    company;?>(formattedRelativeTime;?>)city;?>, state;?>
    Welcome to Mobile QA Zone, a Next Generation Software Testing Community.Invite your friends to join this community.Write to us to become a featured member.