我为自己录制并测试生成了Robotium代码:
public void testRecorded() throws Exception {
try {
solo.waitForActivity("SplashScreen");
solo.waitForActivity("TutorialActivity");
solo.sleep(3100);
solo.drag(solo.toScreenX(0.988f), solo.toScreenX(0.134f),
solo.toScreenY(0.523f), solo.toScreenY(0.581f), 6);但是,当我在我的Robotium代码中粘贴我手动编写的相同代码时,它无法识别solo.toScreen、solo.clickOnView(solo.findViewById
它会给出错误,因为无法解决..
Robotium中有没有一些testroid的内置类?
发布于 2012-12-09 02:24:07
Testdroid Recorder使用额外的库,它有ExtSolo类。这个类扩展了Solo并提供了额外的方法。接口和库可以在这里找到:http://docs.testdroid.com/_pages/extsolo.html
https://stackoverflow.com/questions/13761342
复制相似问题