[英]Running Android emulator from Jenkins to run Junit test with Robotium
How can I run Android emulator from Jenkins to run my tests? 如何从Jenkins运行Android模拟器来运行我的测试? When I write in Execiute Windows bath comand, command to run emulator:
当我在Execiute Windows浴缸命令中编写时,命令运行模拟器:
emulator -avd Tester
模拟器-avd测试仪
and run my tests I have this errors: 并运行我的测试我有这个错误:
..>emulator -avd Tester 'emulator' is not recognized as an internal or external command, operable program or batch file.
..> emulator -avd Tester'emulator'不被识别为内部或外部命令,可操作程序或批处理文件。
..>exit 9009 Build step 'Execute Windows batch command' marked build as failure
..>退出9009构建步骤'执行Windows批处理命令'将构建标记为失败
I set path for Android_SDK, java in Windows path and it works from cmd. 我在Windows路径中设置了Android_SDK,java的路径,它可以从cmd开始工作。 What should I do to run emulator?
我该怎么做才能运行模拟器?
您可以使用Jenkins的Android Emulator插件自动执行该过程。
You just need to find where the file "emulator.exe" is located, and then run the command in that location. 您只需要找到文件“emulator.exe”所在的位置,然后在该位置运行该命令。 For example, the most probably is that it is located in C:...android-sdk\\tools
例如,最可能的是它位于C:... android-sdk \\ tools中
so, go to the command promt, type cd C:\\android-sdk\\tools. 所以,转到命令promt,输入cd C:\\ android-sdk \\ tools。 Then type the command, and it will work just fine.
然后键入命令,它将正常工作。 I hope this is the answer even though it´s late.
我希望这是答案,尽管已经很晚了。 So, accept the answer.
所以,接受答案。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.