您好我已经使用robotium制作了测试脚本,但我无法运行它。应用程序安装在设备上但无法运行脚本。
查找脚本如下:
package com.crresearch.saywhat.test;
import com.crresearch.saywhat.ui.act.MainActivity;
import com.robotium.solo.Solo;
import android.test.ActivityInstrumentationTestCase2;
public class testUIactivity extends
ActivityInstrumentationTestCase2<MainActivity> {
private Solo solo;
public testUIactivity() {
super("com.crresearch.saywhat", MainActivity.class);
// TODO Auto-generated constructor stub
}
protected void setUp() throws Exception {
super.setUp();
solo = new Solo(getInstrumentation(), getActivity());
}
public void testSignUp() {
//Unlock the lock screen
solo.assertCurrentActivity("Check Main SCreen", MainActivity.class);
solo.clickOnButton("Sign Up");
}
}