没找到 /Users/bixiaopeng/workspace/source-github/appium/sample-code/examples/java/junit/../../../apps/TestApp/build/Release-iphonesimulator/TestApp.app
Okay this is my current setup
1) One Nexus 4 and one emulator running on Mac
2) two appium instances running on different ports
3) Parallel execution two threads to run same test
This is the error I am getting
" A session is either terminated or not started (WARNING: The server did not provide any stacktrace information)"
Appium log
First one runs but other one says this ADB Error:
info: [ADB] Forwarding system:4724 to device:4724
info: [ANDROID] [debug] Could not start socket server listening on 4724
For both threads it says this - any insights if I need to change something?
These are my capabilities:
capabilities = new DesiredCapabilities();
capabilities.setCapability(CapabilityType.BROWSER_NAME, "Android");
capabilities.setCapability(CapabilityType.VERSION, "4.2");
capabilities.setCapability(CapabilityType.PLATFORM, "Mac");
capabilities.setCapability("device", Device);
capabilities.setCapability("app", app.getAbsolutePath());
capabilities.setCapability("app-package", "blah");
capabilities.setCapability("app-activity", "blah");
try {
driver = new RemoteWebDriver(
new URL("http://localhost:" + Port + "/wd/hub"), capabilities);
} catch (Exception e) {
e.printStackTrace();
}
Started two Appium servers with different ports defining -U flags
能在试试看不?
你用的不是 deb 系列的 linux,配置起来是很难的。
#1 楼 @vigossjjj 来 share 一个?
#2 楼 @jerryzhang 以前的帖子里有说过,sudo chmod 777 /usr/local/lib/node_modules/appium/
权限 permission denied '/usr/local/lib/node_modules/appium/ 把 appium 权限全给上
#3 楼 @meimeiyuyun sally@yeahmobi.com
#1 楼 @meimeiyuyun 直接在这里回复我啊~
赞~,恭喜
#10 楼 @benlooking 哦 是嘛。。。。 那我不知道了诶。。。我回头帮你看看。
#8 楼 @benlooking 不是啊 selendroid 是为了兼容 4.1 一下的吧?
很不错啊,@seveniruby 这个可以 merge 了。
#7 楼 @seveniruby 安卓客户端的评论
xcodebuild build -workspace JLRubyChina.xcworkspace -scheme JLTesterHome -sdk iphonesimulator7.0
#17 楼 @benlooking 感觉是你的 bootstrap.jar 没有打进去手机。
#17 楼 @benlooking 没有 odex 应该无所谓,那就是说你有 uiautomator.jar 这个可以排除掉。 别的不知道啥原因了。。
#15 楼 @benlooking 你有看到我的图片么? 我里面有 pwd,然后显示的是 /system/.framework/, uiautomator.jar 应该出现在这里面。