还未发布过话题
  • appium1.3.4,安卓测试机 htc 4.4.2 的系统
    native_app 中嵌入了 webview,但检测不到 webview,怎么办?
    UI Automator Viewer 中 webview 显示为 view

  • 问题已解决,udid 一定要小写

  • Appium IOS 真机测试 iphone at 2015年06月09日

    appium 1.3.7
    @testly 我的也是这个错误,请问你怎么解决的
    info: <-- GET /wd/hub/status 200 1.319 ms - 178 {"status":0,"value":{"build":{"version":"1.3.7","revision":"72fbfaa116d3d9f6a862600ee99cf02f6d0e2182"},"isShuttingDown":false},"sessionId":"5e6c2df1-01c0-4041-86d6-a6fd98324b42"}

    error: Log capture did not start in a reasonable amount of time

    info: [debug] Cleaning up appium session

    error: Failed to start an Appium session, err was: Error: Log capture did not start in a reasonable amount of time

    info: [debug] Error: Log capture did not start in a reasonable amount of time
    at null._onTimeout (/Applications/Appium.app/Contents/Resources/node_modules/appium/lib/devices/ios/ios-log.js:137:10)
    at Timer.listOnTimeout (timers.js:110:15)

  • xcode 版本:6.3
    appium 版本:1.3.7
    ipod 版本:8.3
    请问:我按照上述的操作仍然存在报错信息
    信息为:

    请问要如何解决?
    log 为:

    Launching Appium with command: '/Applications/Appium.app/Contents/Resources/node/bin/node' lib/server/main.js --address "127.0.0.1" --command-timeout "7200" --platform-version "8.3" --platform-name "iOS" --app "com.ruijie.whistle.activity" --udid "95C36D7083AF19C104A61532BD98F88F8907AECD" --device-name "iPhone 6"
    
    info: Welcome to Appium v1.3.7 (REV 72fbfaa116d3d9f6a862600ee99cf02f6d0e2182)
    
    info: Appium REST http interface listener started on 127.0.0.1:4723
    info: [debug] Non-default server args: {"app":"com.ruijie.whistle.activity","udid":"95C36D7083AF19C104A61532BD98F88F8907AECD","address":"127.0.0.1","deviceName":"iPhone 6","platformName":"iOS","platformVersion":"8.3","defaultCommandTimeout":7200}
    
    info: Console LogLevel: debug
    
    info: --> GET /wd/hub/status {}
    
    info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.3.7","revision":"72fbfaa116d3d9f6a862600ee99cf02f6d0e2182"}}}
    
    info: <-- GET /wd/hub/status 200 7.044 ms - 104 {"status":0,"value":{"build":{"version":"1.3.7","revision":"72fbfaa116d3d9f6a862600ee99cf02f6d0e2182"}}}
    
    info: --> GET /wd/hub/status {}
    
    info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.3.7","revision":"72fbfaa116d3d9f6a862600ee99cf02f6d0e2182"}}}
    
    info: <-- GET /wd/hub/status 200 3.161 ms - 104 {"status":0,"value":{"build":{"version":"1.3.7","revision":"72fbfaa116d3d9f6a862600ee99cf02f6d0e2182"}}}
    
    info: --> GET /wd/hub/sessions {}
    info: [debug] Responding to client with success: {"status":0,"value":[]}
    info: <-- GET /wd/hub/sessions 200 0.949 ms - 23 {"status":0,"value":[]}
    
    info: --> POST /wd/hub/session {"desiredCapabilities":{"platformName":"iOS","platformVersion":"8.3","newCommandTimeout":"999999","automationName":"Appium","deviceName":"iPhone 6"}}
    info: Client User-Agent string: Appium (unknown version) CFNetwork/720.3.13 Darwin/14.3.0 (x86_64)
    
    info: [debug] App is an iOS bundle, will attempt to run as pre-existing
    info: [debug] Creating new appium session 1a4ac54c-a53e-4d5d-9c65-f6095efaa2e1
    
    info: [debug] Removing any remaining instruments sockets
    info: [debug] Cleaned up instruments socket /tmp/instruments_sock
    info: [debug] Setting Xcode folder
    
    info: [debug] Setting Xcode version
    
    info: [debug] Setting iOS SDK Version
    
    info: [debug] Getting sdk version from xcrun with a timeout
    info: [debug] iOS SDK Version set to 8.3
    info: [debug] Not checking whether simulator is available since we're on a real device
    info: [debug] Detecting automation tracetemplate
    info: [debug] Not auto-detecting udid, running on sim
    info: [debug] Could not parse plist file (as binary) at /Applications/Appium.app/Contents/Resources/node_modules/appium/com.ruijie.whistle.activity/en.lproj/Localizable.strings
    info: Will try to parse the plist file as XML
    info: [debug] Could not parse plist file (as XML) at /Applications/Appium.app/Contents/Resources/node_modules/appium/com.ruijie.whistle.activity/en.lproj/Localizable.strings
    warn: Could not parse app Localizable.strings assuming it doesn't exist
    info: [debug] Creating instruments
    info: On some xcode 6 platforms, instruments-without-delay does not work. If you experience this, you will need to re-run appium with the --native-instruments-lib flag
    info: [debug] Preparing uiauto bootstrap
    info: [debug] Dynamic bootstrap dir: /Users/limei/Library/Application Support/appium/bootstrap
    info: [debug] Dynamic env: {"nodePath":"/Applications/Appium.app/Contents/Resources/node/bin/node","commandProxyClientPath":"/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-uiauto/bin/command-proxy-client.js","instrumentsSock":"/tmp/instruments_sock","interKeyDelay":null,"justLoopInfinitely":false,"autoAcceptAlerts":false,"autoDismissAlerts":false,"sendKeyStrategy":"grouped"}
    
    info: [debug] Dynamic bootstrap code: // This file is automatically generated. Do not manually modify!
    ...
    info: [debug] Dynamic bootstrap path: /Users/limei/Library/Application Support/appium/bootstrap/bootstrap-d5a0fb924946d8d3.js
    info: [debug] Reusing dynamic bootstrap: /Users/limei/Library/Application Support/appium/bootstrap/bootstrap-d5a0fb924946d8d3.js
    info: [debug] Getting device string from opts: {"forceIphone":false,"forceIpad":false,"xcodeVersion":"6.3","iOSSDKVersion":"8.3","deviceName":"iPhone 6","platformVersion":"8.3"}
    info: [debug] fixDevice is on
    info: [debug] Final device string is: 'iPhone 6 (8.3 Simulator)'
    info: [debug] Not setting device type since we're on a real device
    info: [debug] Checking whether we need to set app preferences
    info: [debug] Not setting iOS and app preferences since we're on a real device
    info: [debug] Running ios sim reset flow
    info: [debug] Killing the simulator process
    info: [debug] Killall iOS Simulator
    info: [debug] Killing any other simulator daemons
    
    info: [debug] On a real device; cannot clean device state
    info: [debug] Not setting locale because we're using a real device
    info: [debug] No iOS / app preferences to set
    info: [debug] Starting iOS device log capture via deviceconsole
    
    info: --> GET /wd/hub/status {}
    
    info: [debug] Responding to client with success: {"status":0,"value":{"build":{"version":"1.3.7","revision":"72fbfaa116d3d9f6a862600ee99cf02f6d0e2182"},"isShuttingDown":false},"sessionId":"1a4ac54c-a53e-4d5d-9c65-f6095efaa2e1"}
    info: <-- GET /wd/hub/status 200 1.101 ms - 178 {"status":0,"value":{"build":{"version":"1.3.7","revision":"72fbfaa116d3d9f6a862600ee99cf02f6d0e2182"},"isShuttingDown":false},"sessionId":"1a4ac54c-a53e-4d5d-9c65-f6095efaa2e1"}
    
    info: [debug] Cleaning up appium session
    
    info: [debug] Error: Log capture did not start in a reasonable amount of time
        at null._onTimeout (/Applications/Appium.app/Contents/Resources/node_modules/appium/lib/devices/ios/ios-log.js:137:10)
        at Timer.listOnTimeout (timers.js:110:15)
    
    error: Log capture did not start in a reasonable amount of time
    
    info: [debug] Responding to client with error: {"status":33,"value":{"message":"A new session could not be created. (Original error: Log capture did not start in a reasonable amount of time)","origValue":"Log capture did not start in a reasonable amount of time"},"sessionId":null}
    info: <-- POST /wd/hub/session 500 10095.340 ms - 234 
    
    error: Failed to start an Appium session, err was: Error: Log capture did not start in a reasonable amount of time
    
    info: [debug] Not pre-launching simulator
    info: [debug] Creating iDevice object with udid 95C36D7083AF19C104A61532BD98F88F8907AECD
    info: [debug] Checking app install status using: /Applications/Appium.app/Contents/Resources/node_modules/appium/build/fruitstrap/fruitstrap isInstalled --id 95C36D7083AF19C104A61532BD98F88F8907AECD --bundle com.ruijie.whistle.activity