资讯

精准传达 • 有效沟通

从品牌网站建设到网络营销策划,从策略到执行的一站式服务

appium1.7.1链接真机测试记录

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/_babel-runtime@5.8.24@babel-runtime/regenerator/runtime.js:67:40)

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

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

    at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium/node_modules/_babel-runtime@5.8.24@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/_babel-runtime@5.8.24@babel-runtime/regenerator/runtime.js:67:40)

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

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

    at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium/node_modules/_babel-runtime@5.8.24@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/_babel-runtime@5.8.24@babel-runtime/regenerator/runtime.js:67:40)

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

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

    at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium/node_modules/_babel-runtime@5.8.24@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


当前文章:appium1.7.1链接真机测试记录
网站地址:http://cdkjz.cn/article/geijso.html
多年建站经验

多一份参考,总有益处

联系快上网,免费获得专属《策划方案》及报价

咨询相关问题或预约面谈,可以通过以下方式与我们联系

大客户专线   成都:13518219792   座机:028-86922220