Appium v1.15.1 Mac 10.14.6 Xcode 11.2.1 Python测试文件。 我能够成功地在iPhone设备上运行测试,但在iPhone模拟器上没有。
错误:
[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[HTTP] --> GET /status
[HTTP] {}
[debug] [HTTP] No route found. Setting content type to 'text/plain'
[HTTP] <-- GET /status 404 1 ms - 49
[HTTP]
[WD Proxy] Got an unexpected response with status 404: The URL '/status' did not map to a valid resource
这是Appium Server的详细信息:
Welcome to Appium v1.15.1
[Appium] Non-default server args:
[Appium] address: 127.0.0.1
[Appium] port: 8100
[Appium] Appium REST http interface listener started on 127.0.0.1:8100
功能(Python):
def setUp(self):
app = ('/Users/...app')
self.driver = webdriver.Remote(
command_executor='http://127.0.0.1:8100/wd/hub',
desired_capabilities={
'app': app,
'platformName': 'iOS',
'platformVersion': '13.1',
'deviceName': 'iPhone Simulator',
"automationName": "XCUITest",
"xcodeOrgId": "F75354763R",
"xcodeSigningId": "iPhone Developer"
}
)
有什么建议吗?
deviceName”、“PlatformVersion”功能应该等于设备模拟器名称。
就像这样,
capabilities.setCapability("deviceName", "iPhone 8 Plus");
capabilities.setCapability("platformVersion", "12.2");
capabilities.setCapability("automationName": "XCUITest");
iPhoneX,XS不适合我(因为我猜是“X”!)
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。