Appium 模拟器打开 APP 一直闪退

Tsn_09 · 2017年03月05日 · 最后由 Jake 回复于 2017年04月08日 · 1406 次阅读
#! /usr/bin/env python3
# -*- coding: utf-8 -*-

import os
import time
from appium import webdriver

desired_caps = {}
desired_caps['automationName'] = 'XCUITest'
# desired_caps['appium-version'] = '1.6.3'
desired_caps['platformName'] = 'iOS'
desired_caps['platformVersion'] = '10.2'
desired_caps['deviceName'] = 'iPhone 6'
desired_caps['autoAcceptAlerts'] = True
desired_caps['noReset'] = True
desired_caps['app'] = os.path.abspath('/Users/tian/Downloads/iOS/HappyWeek.app')
driver = webdriver.Remote('http://0.0.0.0:4723/wd/hub',desired_caps)



debug:

[debug] [XCUITest] WebDriverAgent running on ip '192.168.1.9'
[debug] [XCUITest] WebDriverAgent successfully started after 20962ms
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.kumi.HappyWeek","arguments":[],"environment":{},"shouldWaitForQuiescence":true}}
[debug] [JSONWP Proxy] Got response with status 200: {"value":"Failed to launch com.kumi.HappyWeek application","sessionId":"14B9AF96-E2B0-4E90-955A-294ADA2F46EB","status":13}
[debug] [XCUITest] Failed to create WDA session. Retrying...
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.kumi.HappyWeek","arguments":[],"environment":{},"shouldWaitForQuiescence":true}}
 [debug] [JSONWP Proxy] Got response with status 200: {"value":"Failed to launch com.kumi.HappyWeek application","sessionId":"14B9AF96-E2B0-4E90-955A-294ADA2F46EB","status":13}
[debug] [XCUITest] Failed to create WDA session. Retrying...
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.kumi.HappyWeek","arguments":[],"environment":{},"shouldWaitForQuiescence":true}}
 [debug] [JSONWP Proxy] Got response with status 200: {"value":"Failed to launch com.kumi.HappyWeek application","sessionId":"14B9AF96-E2B0-4E90-955A-294ADA2F46EB","status":13}
[debug] [XCUITest] Failed to create WDA session. Retrying...
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.kumi.HappyWeek","arguments":[],"environment":{},"shouldWaitForQuiescence":true}}
 [debug] [JSONWP Proxy] Got response with status 200: {"value":"Failed to launch com.kumi.HappyWeek application","sessionId":"14B9AF96-E2B0-4E90-955A-294ADA2F46EB","status":13}
[debug] [XCUITest] Failed to create WDA session. Retrying...
[debug] [XCUITest] Sending createSession command to WDA
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.kumi.HappyWeek","arguments":[],"environment":{},"shouldWaitForQuiescence":true}}

xcode-8.2.1
appium-1.6.4-beta

共收到 1 条回复 时间 点赞

解决了吗?

需要 登录 后方可回复, 如果你还没有账号请点击这里 注册