现在正在做并发测试,启动 appium 是-p 指定端口号,使用两台 android 手机执行两个脚本进行并发测试。
node 1.js 等待 5 秒 node2.js 运行正常
node 1.js 同时 node2.js appium 服务 1 会报错:
info: [debug] App already signed.
info: [debug] Zip-aligning C:\Users\zhaozhihao\Desktop\appium\parallelTest\walle
t\1_2.apk
info: [debug] Checking whether zipalign is present
info: [debug] Using zipalign from D:\androidSDK\sdk\tools\zipalign.exe
info: [debug] zipAlignApk: "D:\androidSDK\sdk\tools\zipalign.exe" -f 4 "C:\Users
\zhaozhihao\Desktop\appium\parallelTest\wallet\1_2.apk" "C:\Users\ZHAOZH~1\AppDa
ta\Local\Temp\appium11513-1820-12v794c.tmp"
info: [debug] Stopping logcat capture
info: [debug] Logcat terminated with code null, signal SIGTERM
info: [debug] Sent shutdown command, waiting for UiAutomator to stop...
warn: UiAutomator did not shut down fast enough, calling it gone
info: [debug] Cleaning up android objects
info: [debug] Cleaning up appium session
error: Failed to start an Appium session, err was: Error: EPERM, rename 'C:\User
s\zhaozhihao\Desktop\appium\parallelTest\wallet\1_2.apk'
info: [debug] Error: EPERM, rename 'C:\Users\zhaozhihao\Desktop\appium\parallelT
est\wallet\1_2.apk'
info: [debug] Responding to client with error: {"status":33,"value":{"message":"
A new session could not be created. (Original error: EPERM, rename 'C:\\Users\\z
haozhihao\\Desktop\\appium\\parallelTest\\wallet\\1_2.apk')","errno":50,"code":"
EPERM","path":"C:\\Users\\zhaozhihao\\Desktop\\appium\\parallelTest\\wallet\\1_2
.apk","origValue":"EPERM, rename 'C:\\Users\\zhaozhihao\\Desktop\\appium\\parall
elTest\\wallet\\1_2.apk'"},"sessionId":null}
info: <-- POST /wd/hub/session 500 13226.086 ms - 397
求助