简体   繁体   English

在Android Studio中运行Robotium Black-box测试

[英]Run Robotium Black-box test in Android studio

I have Robotium black-box tests which I use to test apps without the source code. 我有Robotium黑盒测试,可用来测试没有源代码的应用程序。 I can run the tests from Eclipse ADT, but I can't run them from Android Studio. 我可以从Eclipse ADT运行测试,但不能从Android Studio运行它们。 In Android Studio I get an error: "Empty test suite." 在Android Studio中,我收到一个错误:“空测试套件”。 "No tests were found" “未找到测试”

How can I Robotium tests without having the source of the apps, in Android Studio? 在Android Studio中如何在没有应用源的情况下进行Robotium测试? Should the test project have any special structure? 测试项目应该具有任何特殊的结构吗?

Please check if you have specified the test application in the build.gradle file. 请检查是否在build.gradle文件中指定了测试应用程序。 In defaultConfig section, add testApplicationId "com.external.apptotest" defaultConfig部分中,添加testApplicationId "com.external.apptotest"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM