Having eror running tutorial

346 views
Skip to first unread message

jacaline

unread,
May 6, 2012, 7:36:27 AM5/6/12
to Robotium Developers
HI there,

I am new in Robotium as well as in Eclipse.

I try running the tutorial in http://code.google.com/p/robotium/wiki/RobotiumTutorials

and I follow step by step written in "Test Sample Android Application
with Robotium" but until step5 : Run test case->Right click on
TestMain.java file select Run As option and then click on Android
Junit Test. It will start running Junit test.
, I have error message appear as below:

E/dalvikvm(1130): Could not find class
'com.jayway.android.robotium.solo.Solo', referenced from method
com.calculator.test.TestMain.setUp

May I know how can I solve this problem?

thank you for your time.

Sergey Tolkachov

unread,
May 7, 2012, 12:32:00 AM5/7/12
to robotium-...@googlegroups.com
1. Right click on project
2. Properties
3. Java Build Path
4. Order and Export
5. Make sure you have check mark on robotium.jar

Since r17 you have to mark it.

naveed

unread,
May 7, 2012, 3:09:02 AM5/7/12
to robotium-...@googlegroups.com
jacaline, 

Is it like,

You made new workspace, and created first TestProject in it? 

If this is so, make new workspace, create an Android Sample Project in it first (you can also use any from android sample projects bundled with SDK) & run it. 

Now follow Robotium tutorials, it should work now. 
Reply all
Reply to author
Forward
0 new messages