appium 1.7.1連結真機測試記錄

來源:互聯網
上載者:User

標籤:appium連結真機測試記錄


ogon:~ zhouhaijun$ appium

[Appium] Welcome to Appium v1.7.1

[Appium] Appium REST http interface listener started on 0.0.0.0:4723

[HTTP] --> POST /wd/hub/session {"desiredCapabilities":{"app":"/Users/zhouhaijun/workspace/.metadata/appium1.6/app/Toon.ipa","newCommandTimeout":3600,"platformVersion":"11.0.3","useNewWDA":false,"automationName":"XCUITest","bundleId":"com.systoon.beijingtong","platformName":"iOS","udid":"0259411d3508a459149c8aec521ff5845a2e835b","deviceName":"iPhonexq"}}

[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"app":"/Users/zhouhaijun/workspace/.metadata/appium1.6/app/Toon.ipa","newCommandTimeout":3600,"platformVersion":"11.0.3","useNewWDA":false,"automationName":"XCUITest","bundleId":"com.systoon.beijingtong","platformName":"iOS","udid":"0259411d3508a459149c8aec521ff5845a2e835b","deviceName":"iPhonexq"},null,null]

[debug] [BaseDriver] Event ‘newSessionRequested‘ logged at 1510800431256 (10:47:11 GMT+0800 (CST))

[Appium] Creating new XCUITestDriver (v2.58.1) session

[Appium] Capabilities:

[Appium]   app: ‘/Users/zhouhaijun/workspace/.metadata/appium1.6/app/Toon.ipa‘

[Appium]   newCommandTimeout: 3600

[Appium]   platformVersion: ‘11.0.3‘

[Appium]   useNewWDA: false

[Appium]   automationName: ‘XCUITest‘

[Appium]   bundleId: ‘com.systoon.beijingtong‘

[Appium]   platformName: ‘iOS‘

[Appium]   udid: ‘0259411d3508a459149c8aec521ff5845a2e835b‘

[Appium]   deviceName: ‘iPhonexq‘

[BaseDriver] Session created with session id: d563a918-d8e7-448b-9d2d-e4de703426fe

[debug] [XCUITest] Current user: ‘zhouhaijun‘

[debug] [XCUITest] Xcode version set to ‘9.1‘ (tools v9.0.1.0.1.1506734476)

[debug] [XCUITest] iOS SDK Version set to ‘11.1‘

[debug] [BaseDriver] Event ‘xcodeDetailsRetrieved‘ logged at 1510800432392 (10:47:12 GMT+0800 (CST))

[debug] [XCUITest] Available devices: 4059b719867c2ed5b3535a3e49f82cd181259b28, 0259411d3508a459149c8aec521ff5845a2e835b

[debug] [XCUITest] Creating iDevice object with udid ‘0259411d3508a459149c8aec521ff5845a2e835b‘

[XCUITest] Determining device to run tests on: udid: ‘0259411d3508a459149c8aec521ff5845a2e835b‘, real device: true

[BaseDriver] Using local app ‘/Users/zhouhaijun/workspace/.metadata/appium1.6/app/Toon.ipa‘

[debug] [BaseDriver] Copying local zip to tmp dir

[debug] [BaseDriver] Unzipping /var/folders/l_/ptwfq82j1wjg5_y08tp1gmnm0000gn/T/20171016-1957-1y50jw7.tdi06enrk9/appium-app.zip

[debug] [BaseDriver] Testing zip archive: /var/folders/l_/ptwfq82j1wjg5_y08tp1gmnm0000gn/T/20171016-1957-1y50jw7.tdi06enrk9/appium-app.zip

[BaseDriver] Unzipped local app to ‘/var/folders/l_/ptwfq82j1wjg5_y08tp1gmnm0000gn/T/20171016-1957-1y50jw7.tdi06enrk9/Payload/toon.app‘

[debug] [BaseDriver] Event ‘appConfigured‘ logged at 1510800436360 (10:47:16 GMT+0800 (CST))

[debug] [XCUITest] Checking whether app ‘/var/folders/l_/ptwfq82j1wjg5_y08tp1gmnm0000gn/T/20171016-1957-1y50jw7.tdi06enrk9/Payload/toon.app‘ is actually present on file system

[debug] [XCUITest] App is present

[debug] [BaseDriver] Event ‘resetStarted‘ logged at 1510800436362 (10:47:16 GMT+0800 (CST))

[debug] [XCUITest] Reset: running ios real device reset flow

[debug] [BaseDriver] Event ‘resetComplete‘ logged at 1510800436363 (10:47:16 GMT+0800 (CST))

[debug] [iOSLog] Attempting iOS device log capture via libimobiledevice idevicesyslog

[debug] [iOSLog] Starting iOS device log capture with: ‘idevicesyslog‘

[debug] [BaseDriver] Event ‘logCaptureStarted‘ logged at 1510800436546 (10:47:16 GMT+0800 (CST))

[XCUITest] Setting up real device

[debug] [XCUITest] Reset requested. Removing app with id ‘com.systoon.beijingtong‘ from the device

[debug] [XCUITest] Installing ‘/var/folders/l_/ptwfq82j1wjg5_y08tp1gmnm0000gn/T/20171016-1957-1y50jw7.tdi06enrk9/Payload/toon.app‘ on device with UUID ‘0259411d3508a459149c8aec521ff5845a2e835b‘...

[debug] [XCUITest] Stdout: ‘[....] Waiting for iOS device to be connected

Skipping 4059b719867c2ed5b3535a3e49f82cd181259b28 (N71AP, iPhone 6s, iphoneos, arm64) a.k.a. ‘iPhone‘.

[....] Using 0259411d3508a459149c8aec521ff5845a2e835b (N56AP, iPhone 6 Plus, iphoneos, arm64) a.k.a. ‘iPhonexq‘.

------ Install phase ------

[  0%] Found 0259411d3508a459149c8aec521ff5845a2e835b (N56AP, iPhone 6 Plus, iphoneos, arm64) a.k.a. ‘iPhonexq‘ connected through USB, beginning install


[ 52%] CreatingStagingDirectory

[ 57%] ExtractingPackage

[ 60%] InspectingPackage

[ 60%] TakingInstallLock

[ 65%] PreflightingApplication

[ 65%] InstallingEmbeddedProfile

[ 70%] VerifyingApplication

‘. Stderr: ‘2017-11-16 10:50:31.060 ios-deploy[1985:53470] [ !! ] Error 0xe8000067: There was an internal API error. AMDeviceSecureInstallApplication(0, device, url, options, install_callback, 0)

‘.

[XCUITest] Error: Could not install app: ‘Command ‘ios-deploy --id 0259411d3508a459149c8aec521ff5845a2e835b --bundle /var/folders/l_/ptwfq82j1wjg5_y08tp1gmnm0000gn/T/20171016-1957-1y50jw7.tdi06enrk9/Payload/toon.app‘ exited with code 253‘

    at IOSDeploy.install$ (../../lib/ios-deploy.js:40:13)

    at tryCatch (/usr/local/lib/node_modules/appium/node_modules/[email protected]@babel-runtime/regenerator/runtime.js:67:40)

    at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium/node_modules/[email protected]@babel-runtime/regenerator/runtime.js:315:22)

    at GeneratorFunctionPrototype.prototype.(anonymous function) [as throw] (/usr/local/lib/node_modules/appium/node_modules/[email protected]@babel-runtime/regenerator/runtime.js:100:21)

    at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium/node_modules/[email protected]@babel-runtime/regenerator/runtime.js:136:37)

 Error: Could not install app: ‘Command ‘ios-deploy --id 0259411d3508a459149c8aec521ff5845a2e835b --bundle /var/folders/l_/ptwfq82j1wjg5_y08tp1gmnm0000gn/T/20171016-1957-1y50jw7.tdi06enrk9/Payload/toon.app‘ exited with code 253‘

    at IOSDeploy.install$ (../../lib/ios-deploy.js:40:13)

    at tryCatch (/usr/local/lib/node_modules/appium/node_modules/[email protected]@babel-runtime/regenerator/runtime.js:67:40)

    at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium/node_modules/[email protected]@babel-runtime/regenerator/runtime.js:315:22)

    at GeneratorFunctionPrototype.prototype.(anonymous function) [as throw] (/usr/local/lib/node_modules/appium/node_modules/[email protected]@babel-runtime/regenerator/runtime.js:100:21)

    at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium/node_modules/[email protected]@babel-runtime/regenerator/runtime.js:136:37)

[debug] [XCUITest] Not clearing log files. Use `clearSystemFiles` capability to turn on.

[debug] [iOSLog] Stopping iOS log capture

[MJSONWP] Encountered internal error running command: Error: Could not install app: ‘Command ‘ios-deploy --id 0259411d3508a459149c8aec521ff5845a2e835b --bundle /var/folders/l_/ptwfq82j1wjg5_y08tp1gmnm0000gn/T/20171016-1957-1y50jw7.tdi06enrk9/Payload/toon.app‘ exited with code 253‘

    at IOSDeploy.install$ (../../lib/ios-deploy.js:40:13)

    at tryCatch (/usr/local/lib/node_modules/appium/node_modules/[email protected]@babel-runtime/regenerator/runtime.js:67:40)

    at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium/node_modules/[email protected]@babel-runtime/regenerator/runtime.js:315:22)

    at GeneratorFunctionPrototype.prototype.(anonymous function) [as throw] (/usr/local/lib/node_modules/appium/node_modules/[email protected]@babel-runtime/regenerator/runtime.js:100:21)

    at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium/node_modules/[email protected]@babel-runtime/regenerator/runtime.js:136:37)

[HTTP] <-- POST /wd/hub/session 500 200375 ms - 357 



^C[Appium] Received SIGINT - shutting down

bogon:~ zhouhaijun$ Not clearing log files. Use `clearSystemFiles` capability to turn on.

-bash: clearSystemFiles: command not found

-bash: Not: command not found

bogon:~ zhouhaijun$ brew update

To restore the stashed changes to /usr/local/Homebrew run:

  ‘cd /usr/local/Homebrew && git stash pop‘

Already up-to-date.

bogon:~ zhouhaijun$ brew reinstall --HEAD libimobiledevice

==> Reinstalling libimobiledevice 

==> Installing dependencies for libimobiledevice: libxml2, openssl

==> Installing libimobiledevice dependency: libxml2

==> Downloading https://homebrew.bintray.com/bottles/libxml2-2.9.7.sierra.bottle.tar.gz

######################################################################## 100.0%

==> Pouring libxml2-2.9.7.sierra.bottle.tar.gz

==> Caveats

This formula is keg-only, which means it was not symlinked into /usr/local,

because macOS already provides this software and installing another version in

parallel can cause all kinds of trouble.


If you need to have this software first in your PATH run:

  echo ‘export PATH="/usr/local/opt/libxml2/bin:$PATH"‘ >> ~/.bash_profile


For compilers to find this software you may need to set:

    LDFLAGS:  -L/usr/local/opt/libxml2/lib

    CPPFLAGS: -I/usr/local/opt/libxml2/include

For pkg-config to find this software you may need to set:

    PKG_CONFIG_PATH: /usr/local/opt/libxml2/lib/pkgconfig



If you need Python to find bindings for this keg-only formula, run:

  echo /usr/local/opt/libxml2/lib/python2.7/site-packages >> /usr/local/lib/python2.7/site-packages/libxml2.pth

  mkdir -p /Users/zhouhaijun/Library/Python/2.7/lib/python/site-packages

  echo ‘import site; site.addsitedir("/usr/local/lib/python2.7/site-packages")‘ >> /Users/zhouhaijun/Library/Python/2.7/lib/python/site-packages/homebrew.pth

==> Summary

  /usr/local/Cellar/libxml2/2.9.7: 281 files, 10.4MB

==> Installing libimobiledevice dependency: openssl

==> Downloading https://homebrew.bintray.com/bottles/openssl-1.0.2m.sierra.bottle.tar.gz

######################################################################## 100.0%

==> Pouring openssl-1.0.2m.sierra.bottle.tar.gz

==> Caveats

A CA file has been bootstrapped using certificates from the SystemRoots

keychain. To add additional certificates (e.g. the certificates added in

the System keychain), place .pem files in

  /usr/local/etc/openssl/certs


and run

  /usr/local/opt/openssl/bin/c_rehash


This formula is keg-only, which means it was not symlinked into /usr/local,

because Apple has deprecated use of OpenSSL in favor of its own TLS and crypto libraries.


If you need to have this software first in your PATH run:

  echo ‘export PATH="/usr/local/opt/openssl/bin:$PATH"‘ >> ~/.bash_profile


For compilers to find this software you may need to set:

    LDFLAGS:  -L/usr/local/opt/openssl/lib

    CPPFLAGS: -I/usr/local/opt/openssl/include

For pkg-config to find this software you may need to set:

    PKG_CONFIG_PATH: /usr/local/opt/openssl/lib/pkgconfig


==> Summary

  /usr/local/Cellar/openssl/1.0.2m: 1,792 files, 12.3MB

==> Installing libimobiledevice --HEAD

==> Cloning https://git.libimobiledevice.org/libimobiledevice.git

Updating /Users/zhouhaijun/Library/Caches/Homebrew/libimobiledevice--git

==> Checking out branch master

==> ./autogen.sh

==> ./configure --disable-silent-rules --prefix=/usr/local/Cellar/libimobiledevice/HEAD-5a85432_2 --witho

==> make install

  /usr/local/Cellar/libimobiledevice/HEAD-5a85432_2: 67 files, 1012.3KB, built in 1 minute 10 seconds

bogon:~ zhouhaijun$ brew reinstall -s ios-webkit-debug-proxy

==> Reinstalling ios-webkit-debug-proxy 

==> Downloading https://github.com/google/ios-webkit-debug-proxy/archive/v1.8.tar.gz

==> Downloading from https://codeload.github.com/google/ios-webkit-debug-proxy/tar.gz/v1.8

######################################################################## 100.0%

==> ./autogen.sh

==> ./configure --prefix=/usr/local/Cellar/ios-webkit-debug-proxy/1.8

==> make install

  /usr/local/Cellar/ios-webkit-debug-proxy/1.8: 13 files, 328.6KB, built in 1 minute 3 seconds


appium 1.7.1連結真機測試記錄

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.