作者热门文章
- c - 在位数组中找到第一个零
- linux - Unix 显示有关匹配两种模式之一的文件的信息
- 正则表达式替换多个文件
- linux - 隐藏来自 xtrace 的命令
对于 selenium grid 来说是新的,同时针对 selenium grid 端口启动驱动程序产生了无法访问的错误:
ionixx@thangaraj:/$ **appium -a 127.0.0.1 -p 33431 -bp 2254 --udid 4100fd5a18d17000 --session-override** [Appium] Welcome to Appium v1.5.3 (REV 55db1892873be30aebbb9afe1adcd36a94d1a450)
[Appium] Non-default server args: [Appium] address: '127.0.0.1'
[Appium] port: 33431 [Appium] bootstrapPort: 2254 [Appium]
sessionOverride: true [Appium] udid: '4100fd5a18d17000' [Appium]
Deprecated server args: [Appium] -U,--udid =>
--default-capabilities '{"udid":"4100fd5a18d17000"}' [Appium] Default capabilities, which will be added to each request unless overridden
by desired capabilities: [Appium] udid: '4100fd5a18d17000' [Appium]
Appium REST http interface listener started on 127.0.0.1:**33431**
[HTTP] --> POST /wd/hub/session
{"capabilities":{"desiredCapabilities":{"app":"/home/ionixx/Android/Sdk/platform-tools/xxxxxxxxxxxx.apk","appPackage":"
cxxxxxxxxxxxxxxxx","appActivity":"xxxxxxxxxxxxxx","noReset":"true","newCommandTimeout":500000,"BROWSER_NAME":"","VERSION":"4.4.2","platformName":"Android","deviceName":"Nexas"},"requiredCapabilities":null},"desiredCapabilities":{"app":"/home/ionixx/Android/Sdk/platform-tools/xxxxxxxx.apk","appPackage":"
xxxxxxxxxxxxxxxxx","appActivity":"xxxxxxxxxx","noReset":"true","newCommandTimeout":500000,"BROWSER_NAME":"","VERSION":"4.4.2","platformName":"Android","deviceName":"Nexas"},"requiredCapabilities":null}
[debug] [MJSONWP] **Bad parameters: BadParametersError: Parameters
were incorrect. We wanted
{"required":["desiredCapabilities"],"optional":["requiredCapabilities","sessionId","id"]}
and you sent
["capabilities","desiredCapabilities","requiredCapabilities"]**
[HTTP] <-- POST /wd/hub/session 400 7 ms - 201 [HTTP] --> POST
/wd/hub/session
{"capabilities":{"desiredCapabilities":{"app":"/home/ionixx/Android/Sdk/platform-toolsxxxxxxxxxxxx.apk","appPackage":"
xxxxxxxxxxxxxxxx","appActivity":"xxxxxxxxxxxxxxxxxxxx","noReset":"true","newCommandTimeout":500000,"BROWSER_NAME":"","VERSION":"4.4.2","platformName":"Android","deviceName":"Nexas"},"requiredCapabilities":null}}
最佳答案
我已经通过更改应用程序解决了这个问题,问题似乎来 self 使用的旧 apk 文件!
关于java - 参数错误 : BadParametersError: Parameters were incorrect. 我们希望在运行 Appium 时在 Selenium 网格上具有所需的功能,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40721674/
我正在尝试在真实的 Android 设备上运行 Appium 测试。 java 类是使用 Appium Inspector 生成的: package some.package; import io.a
对于 selenium grid 来说是新的,同时针对 selenium grid 端口启动驱动程序产生了无法访问的错误: ionixx@thangaraj:/$ **appium -a 127.0.
我是一名优秀的程序员,十分优秀!