我的设置: - 带有手机和平板电脑版本的Android应用程序 - 我正在使用Android Espresso进行UI测试(现在仅用于手机版,在buildagent上使用手机)
我想做什么: - 现在我希望Espresso区分手机和平板电脑的测试 - 所以测试A应该只能通过平板电脑执行,测试B应该只能通过手机和测试C执行 - 测试应该可以通过gradle任务
我的设置:
PC-1:
PC-2:
问题: 当我想要进行测试时
org.openqa.selenium.SessionNotCreatedException:
A new session could not be created.
(Original error: Bad app: <<local_path>>myApp.apk.
App paths need to be absolute, or relative to the appium server install dir, or a URL to compressed file, or a special app name.
cause: Error: Error locating the app:
ENOENT, stat '<<local_path>>myApp.apk') (WARNING: The server did not provide any stacktrace information)
Build info: version: '2.41.0', revision: '3192d8a6c4449dc285928ba024779344f5423c58', time: '2014-03-27 11:29:39'
System info: host: 'my-PC', ip: …Run Code Online (Sandbox Code Playgroud)