macacajs / app-inspector Goto Github PK
View Code? Open in Web Editor NEWApp-inspector is a mobile UI viewer in browser.
Home Page: https://macacajs.github.io/app-inspector/
License: MIT License
App-inspector is a mobile UI viewer in browser.
Home Page: https://macacajs.github.io/app-inspector/
License: MIT License
app inspector version / 版本号:1.2.18(wda我手动下的最新版的)
os version / 系统:10.11.6 (15G31)
device information / 设备版本:iphone 6 plus
terminal log / 终端输出信息:
>> server.js:16:12 [master] pid:1073 server start with config:
{ port: '56789',
verbose: true,
udid: '1e5e914480ad67295234aca86e27382644032bbf',
ip: '10.0.1.80',
host: 'allins-MacBook-Pro.local',
loaded_time: '2017-02-17 11:44:46' }
>> app-inspector.js:42:10 [master] pid:1073 server start at: http://10.0.1.80:56789
>> xctest-client.js:56:14 [master] pid:1073 project path: /usr/local/lib/node_modules/app-inspector/node_modules/.1.0.41@webdriveragent/WebDriverAgent/WebDriverAgent.xcodeproj
>> xctest-client start with port: 8900
>> xctest-client.js:233:14 [master] pid:1073 xcode version: 8.2.1
>> WebDriverAgent version: 1.0.41
>> xctest-client.js:170:14 [master] pid:1073 2017-02-17 11:44:47.774 xcodebuild[1079:53068] IDETestOperationsObserverDebug: Writing diagnostic log for test session to:
/Users/allin/Library/Developer/Xcode/DerivedData/WebDriverAgent-fufzddftjuaziqbqsgzxfgnhxfhf/Logs/Test/721CE32D-B442-4569-9309-A1570EA11B5D/Session-WebDriverAgentRunner-2017-02-17_114447-t7DPH8.log
>> xctest-client.js:171:14 [master] pid:1073 please check project: /usr/local/lib/node_modules/app-inspector/node_modules/.1.0.41@webdriveragent/WebDriverAgent/WebDriverAgent.xcodeproj
>> xctest-client.js:170:14 [master] pid:1073 2017-02-17 11:44:47.775 xcodebuild[1079:53061] [MT] IDETestOperationsObserverDebug: (2D35F829-3983-4514-BD9F-8F7FDB233F6F) Beginning test session WebDriverAgentRunner-2D35F829-3983-4514-BD9F-8F7FDB233F6F at 2017-02-17 11:44:47.774 with Xcode 8C1002 on target <DVTiOSDevice: 0x7fc81b035a10> {
deviceSerialNumber: FK2PQ3QFG5QR
identifier: 1e5e914480ad67295234aca86e27382644032bbf
deviceClass: iPhone
deviceName: iPhone (5)
deviceIdentifier: 1e5e914480ad67295234aca86e27382644032bbf
productVersion: 10.2
buildVersion: 14C92
deviceSoftwareVersion: 10.2 (14C92)
deviceArchitecture: arm64
deviceTotalCapacity: 11731079168
deviceAvailableCapacity: 8422109184
deviceIsTransient: NO
ignored: NO
deviceIsBusy: NO
deviceIsActivated: YES
deviceActivationState: Activated
deviceType: <DVTDeviceType:0x7fc81af123d0 Xcode.DeviceType.iPhone>
supportedDeviceFamilies: (
1
)
applications: (null)
provisioningProfiles: (null)
activityProgress: -2
activityTitle:
hasInternalSupport: NO
isSupportedOS: YES
developerDiskMountError: (null)
(null)
} (10.2 (14C92))
>> xctest-client.js:171:14 [master] pid:1073 please check project: /usr/local/lib/node_modules/app-inspector/node_modules/.1.0.41@webdriveragent/WebDriverAgent/WebDriverAgent.xcodeproj
>> xctest-client.js:170:14 [master] pid:1073 MDMCreateDeltaDirectory:1920 calling MDMDirectoryDiff with:
state->old_bundle: /var/folders/15/p896mlcn4jq_jr415z1yyxq00000gn/C/com.apple.DeveloperTools/All/Xcode/EmbeddedAppDeltas/7bf5fd9291e3a46adaa7d3d6139ed436/1e5e914480ad67295234aca86e27382644032bbf/WebDriverAgentRunner-Runner.app
state->new_bundle: /Users/allin/Library/Developer/Xcode/DerivedData/WebDriverAgent-fufzddftjuaziqbqsgzxfgnhxfhf/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app
state->dst_bundle: /var/folders/15/p896mlcn4jq_jr415z1yyxq00000gn/C/com.apple.DeveloperTools/All/Xcode/EmbeddedAppDeltas/WebDriverAgentRunner-Runner.app.2dRRZK/WebDriverAgentRunner-Runner.app_sparse.ipa/Payload//WebDriverAgentRunner-Runner.app, binaryDiff flag: FALSE
dst_ipa: /var/folders/15/p896mlcn4jq_jr415z1yyxq00000gn/C/com.apple.DeveloperTools/All/Xcode/EmbeddedAppDeltas/WebDriverAgentRunner-Runner.app.2dRRZK/WebDriverAgentRunner-Runner.app_sparse.ipa
>> xctest-client.js:171:14 [master] pid:1073 please check project: /usr/local/lib/node_modules/app-inspector/node_modules/.1.0.41@webdriveragent/WebDriverAgent/WebDriverAgent.xcodeproj
>> xctest-client.js:170:14 [master] pid:1073 __MDMDirectoryDiff_block_invoke.37:1473 calling writeDictToFile with: /var/folders/15/p896mlcn4jq_jr415z1yyxq00000gn/C/com.apple.DeveloperTools/All/Xcode/EmbeddedAppDeltas/WebDriverAgentRunner-Runner.app.2dRRZK/WebDriverAgentRunner-Runner.app_sparse.ipa/ManifestCache.plist
>> xctest-client.js:171:14 [master] pid:1073 please check project: /usr/local/lib/node_modules/app-inspector/node_modules/.1.0.41@webdriveragent/WebDriverAgent/WebDriverAgent.xcodeproj
>> xctest-client.js:170:14 [master] pid:1073 writeDictToFile:1278 ==== Successfully wrote Manifest cache to /var/folders/15/p896mlcn4jq_jr415z1yyxq00000gn/C/com.apple.DeveloperTools/All/Xcode/EmbeddedAppDeltas/WebDriverAgentRunner-Runner.app.2dRRZK/WebDriverAgentRunner-Runner.app_sparse.ipa/ManifestCache.plist
>> xctest-client.js:171:14 [master] pid:1073 please check project: /usr/local/lib/node_modules/app-inspector/node_modules/.1.0.41@webdriveragent/WebDriverAgent/WebDriverAgent.xcodeproj
>> proxy.js:56:14 [master] pid:1073 Proxy: /session:POST to http://127.0.0.1:8900/session:POST with body: {"desiredCapabilities":{}}
>> proxy.js:62:22 [master] pid:1073 xctest client proxy error with: Error: socket hang up
>> proxy.js:62:22 [master] pid:1073 xctest client proxy error with: Error: socket hang up
>> proxy.js:62:22 [master] pid:1073 xctest client proxy error with: Error: socket hang up
try
app-inspector -u xxxx --verbose
for more log detail.
app inspector version /
版本号:1.2.14
os version / 系统:
OS X EI Caption version 10.11.6
Xcode 8
device information / 设备版本:
Iphone 5s IOS10.0
terminal log / 终端输出信息:
jacklis-Mac:~ jackli$ app-inspector -u 6ae3e04ce93ef5680a0cd096dace6b7e67d74748 --verbose
server.js:16:12 [master] pid:483 server start with config:
{ port: 5678,
verbose: true,
udid: '6ae3e04ce93ef5680a0cd096dace6b7e67d74748',
ip: '192.168.219.108',
host: 'jacklis-Mac.local',
loaded_time: '2016-11-04 20:00:06' }
app-inspector.js:42:10 [master] pid:483 server start at: http://192.168.219.108:5678
xctest-client.js:43:14 [master] pid:483 project path: /usr/local/lib/node_modules/app-inspector/node_modules/webdriveragent/WebDriverAgent/WebDriverAgent.xcodeproj
xctest-client.js:183:12 [master] pid:483 xcode version: 8.1
WebDriverAgent version: 1.0.28
xctest-client.js:156:14 [master] pid:483 2016-11-04 20:00:11.497 xcodebuild[487:6655] IDETestOperationsObserverDebug: Writing diagnostic log for test session to:
/Users/jackli/Library/Developer/Xcode/DerivedData/WebDriverAgent-ceakatlydgitcjebccsbdhchgrpn/Logs/Test/5AADB4BB-89CC-4454-B227-51949C9AB25C/Session-WebDriverAgentRunner-2016-11-04_200011-pl0sBe.log
xctest-client.js:156:14 [master] pid:483 2016-11-04 20:00:11.499 xcodebuild[487:6644] [MT] IDETestOperationsObserverDebug: (3FEDBF41-3245-49C2-840D-2DE8DFF9B30D) Beginning test session WebDriverAgentRunner-3FEDBF41-3245-49C2-840D-2DE8DFF9B30D at 2016-11-04 20:00:11.496 with Xcode 8B62 on target <DVTiOSDevice: 0x7ff11ae440d0> {
deviceSerialNumber: C36MQZWWFRC6
identifier: 6ae3e04ce93ef5680a0cd096dace6b7e67d74748
deviceClass: iPhone
deviceName: 5s
deviceIdentifier: 6ae3e04ce93ef5680a0cd096dace6b7e67d74748
productVersion: 10.0.2
buildVersion: 14A456
deviceSoftwareVersion: 10.0.2 (14A456)
deviceArchitecture: arm64
deviceTotalCapacity: 12263628800
deviceAvailableCapacity: 9966419968
deviceIsTransient: NO
ignored: NO
deviceIsBusy: NO
deviceIsActivated: YES
deviceActivationState: Activated
deviceType: <DVTDeviceType:0x7ff118575ac0 Xcode.DeviceType.iPhone>
supportedDeviceFamilies: (
1
)
applications: (null)
provisioningProfiles: (null)
activityProgress: -2
activityTitle:
hasInternalSupport: NO
isSupportedOS: YES
developerDiskMountError: (null)
(null)
} (10.0.2 (14A456))
xctest-client.js:156:14 [master] pid:483 MDMCreateDeltaDirectory:1920 calling MDMDirectoryDiff with:
state->old_bundle: /var/folders/z3/dv8jp6ks63540gr1b6styz9m0000gn/C/com.apple.DeveloperTools/All/Xcode/EmbeddedAppDeltas/135b0fa5d8cadb8331b7178610951022/6ae3e04ce93ef5680a0cd096dace6b7e67d74748/WebDriverAgentRunner-Runner.app
state->new_bundle: /Users/jackli/Library/Developer/Xcode/DerivedData/WebDriverAgent-ceakatlydgitcjebccsbdhchgrpn/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app
state->dst_bundle: /var/folders/z3/dv8jp6ks63540gr1b6styz9m0000gn/C/com.apple.DeveloperTools/All/Xcode/EmbeddedAppDeltas/WebDriverAgentRunner-Runner.app.dW8kfW/WebDriverAgentRunner-Runner.app_sparse.ipa/Payload//WebDriverAgentRunner-Runner.app, binaryDiff flag: FALSE
dst_ipa: /var/folders/z3/dv8jp6ks63540gr1b6styz9m0000gn/C/com.apple.DeveloperTools/All/Xcode/EmbeddedAppDeltas/WebDriverAgentRunner-Runner.app.dW8kfW/WebDriverAgentRunner-Runner.app_sparse.ipa
xctest-client.js:156:14 [master] pid:483 __MDMDirectoryDiff_block_invoke.37:1473 calling writeDictToFile with: /var/folders/z3/dv8jp6ks63540gr1b6styz9m0000gn/C/com.apple.DeveloperTools/All/Xcode/EmbeddedAppDeltas/WebDriverAgentRunner-Runner.app.dW8kfW/WebDriverAgentRunner-Runner.app_sparse.ipa/ManifestCache.plist
xctest-client.js:156:14 [master] pid:483 writeDictToFile:1278 ==== Successfully wrote Manifest cache to /var/folders/z3/dv8jp6ks63540gr1b6styz9m0000gn/C/com.apple.DeveloperTools/All/Xcode/EmbeddedAppDeltas/WebDriverAgentRunner-Runner.app.dW8kfW/WebDriverAgentRunner-Runner.app_sparse.ipa/ManifestCache.plist
proxy.js:54:14 [master] pid:483 Proxy: /session:POST to http://192.168.219.102:8100/session:POST with body: {"desiredCapabilities":{}}
proxy.js:67:16 [master] pid:483 Got response with status 200: {"value":"'bundleId' desired capability not provided","sessionId":null,"status":13}
iOS device started: 6ae3e04ce93ef5680a0cd096dace6b7e67d74748
inspector start at: http://192.168.219.108:5678
<-- GET /
The source may be wrong, please report with below message at:
https://github.com/macacajs/app-inspector/issues/new
****** xctest source start *******
{"value":{"tree":{"isEnabled":"1","isVisible":"1","frame":"{{0, 0}, {320, 568}}","children":[{"isEnabled":"1","isVisible":"0","frame":"{{0, 0}, {320, 568}}","children":[{"isEnabled":"1","isVisible":"0","frame":"{{0, 0}, {320, 568}}","children":[{"isEnabled":"1","isVisible":"0","frame":"{{0, 0}, {320, 568}}","rect":{"y":0,"x":0,"width":320,"height":568},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null}],"rect":{"y":0,"x":0,"width":320,"height":568},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null},{"isEnabled":"1","isVisible":"0","frame":"{{0, 0}, {320, 568}}","rect":{"y":0,"x":0,"width":320,"height":568},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null}],"rect":{"y":0,"x":0,"width":320,"height":568},"value":null,"label":null,"type":"Window","name":null,"rawIdentifier":null},{"isEnabled":"1","isVisible":"1","frame":"{{0, 0}, {320, 568}}","children":[{"isEnabled":"1","isVisible":"1","frame":"{{0, 0}, {320, 568}}","children":[{"isEnabled":"1","isVisible":"1","frame":"{{0, 0}, {320, 568}}","children":[{"isEnabled":"1","isVisible":"1","frame":"{{0, 0}, {320, 568}}","children":[{"isEnabled":"1","isVisible":"1","frame":"{{0, 0}, {320, 568}}","children":[{"isEnabled":"1","isVisible":"1","frame":"{{0, 0}, {320, 568}}","children":[{"isEnabled":"1","isVisible":"1","frame":"{{0, 20}, {320, 436}}","children":[{"isEnabled":"1","isVisible":"0","frame":"{{-960, 20}, {0, 0}}","rect":{"y":20,"x":-960,"width":0,"height":0},"value":null,"label":null,"type":"ScrollView","name":null,"rawIdentifier":null},{"isEnabled":"1","isVisible":"0","frame":"{{-960, 0}, {320, 568}}","children":[{"isEnabled":"1","isVisible":"0","frame":"{{-960, 0}, {320, 568}}","children":[{"isEnabled":"1","isVisible":"0","frame":"{{-960, 0}, {320, 568}}","rect":{"y":0,"x":-960,"width":320,"height":568},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null}],"rect":{"y":0,"x":-960,"width":320,"height":568},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null}],"rect":{"y":0,"x":-960,"width":320,"height":568},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null},{"isEnabled":"1","isVisible":"0","frame":"{{-640, 20}, {320, 436}}","children":[{"isEnabled":"1","isVisible":"0","frame":"{{-626, 25}, {64, 86}}","rect":{"y":25,"x":-626,"width":64,"height":86},"value":null,"label":"Messages","type":"Icon","name":"Messages","rawIdentifier":"Messages"},{"isEnabled":"1","isVisible":"0","frame":"{{-550, 25}, {64, 86}}","rect":{"y":25,"x":-550,"width":64,"height":86},"value":"Friday, 04 November","label":"Calendar","type":"Icon","name":"Calendar","rawIdentifier":"Calendar"},{"isEnabled":"1","isVisible":"0","frame":"{{-474, 25}, {64, 86}}","rect":{"y":25,"x":-474,"width":64,"height":86},"value":null,"label":"Photos","type":"Icon","name":"Photos","rawIdentifier":"Photos"},{"isEnabled":"1","isVisible":"0","frame":"{{-398, 25}, {64, 86}}","rect":{"y":25,"x":-398,"width":64,"height":86},"value":null,"label":"Camera","type":"Icon","name":"Camera","rawIdentifier":"Camera"},{"isEnabled":"1","isVisible":"0","frame":"{{-626, 113}, {64, 86}}","rect":{"y":113,"x":-626,"width":64,"height":86},"value":null,"label":"Weather","type":"Icon","name":"Weather","rawIdentifier":"Weather"},{"isEnabled":"1","isVisible":"0","frame":"{{-550, 113}, {64, 86}}","rect":{"y":113,"x":-550,"width":64,"height":86},"value":"8:01 PM","label":"Clock","type":"Icon","name":"Clock","rawIdentifier":"Clock"},{"isEnabled":"1","isVisible":"0","frame":"{{-474, 113}, {64, 86}}","rect":{"y":113,"x":-474,"width":64,"height":86},"value":null,"label":"Maps","type":"Icon","name":"Maps","rawIdentifier":"Maps"},{"isEnabled":"1","isVisible":"0","frame":"{{-398, 113}, {64, 86}}","rect":{"y":113,"x":-398,"width":64,"height":86},"value":null,"label":"Videos","type":"Icon","name":"Videos","rawIdentifier":"Videos"},{"isEnabled":"1","isVisible":"0","frame":"{{-626, 201}, {64, 86}}","rect":{"y":201,"x":-626,"width":64,"height":86},"value":null,"label":"Wallet","type":"Icon","name":"Wallet","rawIdentifier":"Wallet"},{"isEnabled":"1","isVisible":"0","frame":"{{-552, 201}, {69, 86}}","rect":{"y":201,"x":-552,"width":69,"height":86},"value":null,"label":"Notes","type":"Icon","name":"Notes","rawIdentifier":"Notes"},{"isEnabled":"1","isVisible":"0","frame":"{{-474, 201}, {64, 86}}","rect":{"y":201,"x":-474,"width":64,"height":86},"value":null,"label":"Reminders","type":"Icon","name":"Reminders","rawIdentifier":"Reminders"},{"isEnabled":"1","isVisible":"0","frame":"{{-406, 201}, {80, 86}}","rect":{"y":201,"x":-406,"width":80,"height":86},"value":null,"label":"Stocks","type":"Icon","name":"Stocks","rawIdentifier":"Stocks"},{"isEnabled":"1","isVisible":"0","frame":"{{-627, 289}, {66, 86}}","rect":{"y":289,"x":-627,"width":66,"height":86},"value":null,"label":"iTunes Store","type":"Icon","name":"iTunes Store","rawIdentifier":"iTunes Store"},{"isEnabled":"1","isVisible":"0","frame":"{{-550, 289}, {64, 86}}","rect":{"y":289,"x":-550,"width":64,"height":86},"value":null,"label":"App Store","type":"Icon","name":"App Store","rawIdentifier":"App Store"},{"isEnabled":"1","isVisible":"0","frame":"{{-474, 289}, {64, 86}}","rect":{"y":289,"x":-474,"width":64,"height":86},"value":null,"label":"iBooks","type":"Icon","name":"iBooks","rawIdentifier":"iBooks"},{"isEnabled":"1","isVisible":"0","frame":"{{-398, 289}, {64, 86}}","rect":{"y":289,"x":-398,"width":64,"height":86},"value":null,"label":"Health","type":"Icon","name":"Health","rawIdentifier":"Health"},{"isEnabled":"1","isVisible":"0","frame":"{{-626, 377}, {64, 78}}","rect":{"y":377,"x":-626,"width":64,"height":78},"value":null,"label":"Home","type":"Icon","name":"Home","rawIdentifier":"Home"},{"isEnabled":"1","isVisible":"0","frame":"{{-550, 367}, {74, 96}}","rect":{"y":367,"x":-550,"width":74,"height":96},"value":"1 new item","label":"Settings","type":"Icon","name":"Settings","rawIdentifier":"Settings"},{"isEnabled":"1","isVisible":"0","frame":"{{-474, 377}, {64, 78}}","rect":{"y":377,"x":-474,"width":64,"height":78},"value":null,"label":"Chrome","type":"Icon","name":"Chrome","rawIdentifier":"Chrome"},{"isEnabled":"1","isVisible":"0","frame":"{{-398, 377}, {64, 86}}","children":[{"isEnabled":"1","isVisible":"0","frame":"{{0, 0}, {0, 0}}","rect":{"y":0,"x":0,"width":0,"height":0},"value":null,"label":"Compass","type":"Other","name":"Compass","rawIdentifier":"Compass"},{"isEnabled":"1","isVisible":"0","frame":"{{0, 0}, {0, 0}}","rect":{"y":0,"x":0,"width":0,"height":0},"value":null,"label":"Find My iPhone","type":"Other","name":"Find iPhone","rawIdentifier":"Find iPhone"},{"isEnabled":"1","isVisible":"0","frame":"{{0, 0}, {0, 0}}","rect":{"y":0,"x":0,"width":0,"height":0},"value":null,"label":"Tips","type":"Other","name":"Tips","rawIdentifier":"Tips"},{"isEnabled":"1","isVisible":"0","frame":"{{0, 0}, {0, 0}}","rect":{"y":0,"x":0,"width":0,"height":0},"value":null,"label":"Contacts","type":"Other","name":"Contacts","rawIdentifier":"Contacts"},{"isEnabled":"1","isVisible":"0","frame":"{{0, 0}, {0, 0}}","rect":{"y":0,"x":0,"width":0,"height":0},"value":null,"label":"Voice Memos","type":"Other","name":"Voice Memos","rawIdentifier":"Voice Memos"}],"rect":{"y":377,"x":-398,"width":64,"height":86},"value":"5 apps","label":"Extras folder","type":"Icon","name":"Extras","rawIdentifier":"Extras"}],"rect":{"y":20,"x":-640,"width":320,"height":436},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null},{"isEnabled":"1","isVisible":"0","frame":"{{-320, 20}, {320, 436}}","children":[{"isEnabled":"1","isVisible":"0","frame":"{{-306, 25}, {64, 86}}","rect":{"y":25,"x":-306,"width":64,"height":86},"value":null,"label":"FaceTime","type":"Icon","name":"FaceTime","rawIdentifier":"FaceTime"},{"isEnabled":"1","isVisible":"0","frame":"{{-231, 25}, {67, 86}}","rect":{"y":25,"x":-231,"width":67,"height":86},"value":null,"label":"Calculator","type":"Icon","name":"Calculator","rawIdentifier":"Calculator"},{"isEnabled":"1","isVisible":"0","frame":"{{-154, 25}, {64, 86}}","rect":{"y":25,"x":-154,"width":64,"height":86},"value":null,"label":"Podcasts","type":"Icon","name":"Podcasts","rawIdentifier":"Podcasts"},{"isEnabled":"1","isVisible":"0","frame":"{{-78, 25}, {64, 86}}","rect":{"y":25,"x":-78,"width":64,"height":86},"value":null,"label":"Watch","type":"Icon","name":"Watch","rawIdentifier":"Watch"},{"isEnabled":"1","isVisible":"0","frame":"{{-309, 113}, {71, 86}}","rect":{"y":113,"x":-309,"width":71,"height":86},"value":null,"label":"乐天免税店","type":"Icon","name":"乐天免税店","rawIdentifier":"乐天免税店"},{"isEnabled":"1","isVisible":"0","frame":"{{-230, 113}, {64, 86}}","rect":{"y":113,"x":-230,"width":64,"height":86},"value":null,"label":"WeChat","type":"Icon","name":"WeChat","rawIdentifier":"WeChat"},{"isEnabled":"1","isVisible":"0","frame":"{{-163, 113}, {83, 86}}","rect":{"y":113,"x":-163,"width":83,"height":86},"value":null,"label":"乐天釜山免税店","type":"Icon","name":"乐天釜山免税店","rawIdentifier":"乐天釜山免税店"},{"isEnabled":"1","isVisible":"0","frame":"{{-78, 113}, {64, 86}}","rect":{"y":113,"x":-78,"width":64,"height":86},"value":null,"label":"Alipay","type":"Icon","name":"Alipay","rawIdentifier":"Alipay"},{"isEnabled":"1","isVisible":"0","frame":"{{-315, 201}, {83, 86}}","rect":{"y":201,"x":-315,"width":83,"height":86},"value":null,"label":"安全支付助手","type":"Icon","name":"安全支付助手","rawIdentifier":"安全支付助手"},{"isEnabled":"1","isVisible":"0","frame":"{{-230, 201}, {64, 86}}","rect":{"y":201,"x":-230,"width":64,"height":86},"value":null,"label":"롯데면세점","type":"Icon","name":"롯데면세점","rawIdentifier":"롯데면세점"}],"rect":{"y":20,"x":-320,"width":320,"height":436},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null},{"isEnabled":"1","isVisible":"0","frame":"{{0, 20}, {320, 436}}","children":[{"isEnabled":"1","isVisible":"1","frame":"{{7, 25}, {78, 86}}","rect":{"y":25,"x":7,"width":78,"height":86},"value":null,"label":"WebDriverAgentRunner","type":"Icon","name":"WebDriverAgentRunner","rawIdentifier":"WebDriverAgentRunner"}],"rect":{"y":20,"x":0,"width":320,"height":436},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null}],"rect":{"y":20,"x":0,"width":320,"height":436},"value":null,"label":null,"type":"ScrollView","name":null,"rawIdentifier":null},{"isEnabled":"1","isVisible":"1","frame":"{{0, 445}, {320, 43}}","rect":{"y":445,"x":0,"width":320,"height":43},"value":"Page 4 of 4","label":null,"type":"PageIndicator","name":null,"rawIdentifier":null},{"isEnabled":"1","isVisible":"1","frame":"{{0, 472}, {320, 96}}","children":[{"isEnabled":"1","isVisible":"1","frame":"{{0, 471}, {320, 3}}","children":[{"isEnabled":"1","isVisible":"1","frame":"{{0, 471}, {320, 3}}","rect":{"y":471,"x":0,"width":320,"height":3},"value":null,"label":null,"type":"Image","name":null,"rawIdentifier":null}],"rect":{"y":471,"x":0,"width":320,"height":3},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null},{"isEnabled":"1","isVisible":"1","frame":"{{0, 472}, {320, 96}}","children":[{"isEnabled":"1","isVisible":"1","frame":"{{14, 484}, {64, 86}}","rect":{"y":484,"x":14,"width":64,"height":86},"value":null,"label":"Phone","type":"Icon","name":"Phone","rawIdentifier":"Phone"},{"isEnabled":"1","isVisible":"1","frame":"{{90, 484}, {64, 86}}","rect":{"y":484,"x":90,"width":64,"height":86},"value":null,"label":"Safari","type":"Icon","name":"Safari","rawIdentifier":"Safari"},{"isEnabled":"1","isVisible":"1","frame":"{{166, 484}, {64, 86}}","rect":{"y":484,"x":166,"width":64,"height":86},"value":"No unread e-mails","label":"Mail","type":"Icon","name":"Mail","rawIdentifier":"Mail"},{"isEnabled":"1","isVisible":"1","frame":"{{242, 484}, {64, 86}}","rect":{"y":484,"x":242,"width":64,"height":86},"value":null,"label":"Music","type":"Icon","name":"Music","rawIdentifier":"Music"}],"rect":{"y":472,"x":0,"width":320,"height":96},"value":null,"label":"Dock","type":"Other","name":"Dock","rawIdentifier":null},{"isEnabled":"1","isVisible":"0","frame":"{{0, 472}, {320, 126}}","children":[{"isEnabled":"1","isVisible":"0","frame":"{{0, 472}, {320, 568}}","rect":{"y":472,"x":0,"width":320,"height":568},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null}],"rect":{"y":472,"x":0,"width":320,"height":126},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null}],"rect":{"y":472,"x":0,"width":320,"height":96},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null}],"rect":{"y":0,"x":0,"width":320,"height":568},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null}],"rect":{"y":0,"x":0,"width":320,"height":568},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null}],"rect":{"y":0,"x":0,"width":320,"height":568},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null}],"rect":{"y":0,"x":0,"width":320,"height":568},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null}],"rect":{"y":0,"x":0,"width":320,"height":568},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null}],"rect":{"y":0,"x":0,"width":320,"height":568},"value":null,"label":null,"type":"Window","name":null,"rawIdentifier":null},{"isEnabled":"1","isVisible":"0","frame":"{{0, 0}, {640, 1136}}","children":[{"isEnabled":"1","isVisible":"0","frame":"{{0, 0}, {640, 1136}}","children":[{"isEnabled":"1","isVisible":"0","frame":"{{0, 0}, {640, 1136}}","children":[{"isEnabled":"1","isVisible":"0","frame":"{{0, 0}, {640, 1136}}","children":[{"isEnabled":"1","isVisible":"0","frame":"{{0, 0}, {640, 1136}}","rect":{"y":0,"x":0,"width":640,"height":1136},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null}],"rect":{"y":0,"x":0,"width":640,"height":1136},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null}],"rect":{"y":0,"x":0,"width":640,"height":1136},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null},{"isEnabled":"1","isVisible":"0","frame":"{{0, 0}, {640, 1136}}","children":[{"isEnabled":"1","isVisible":"0","frame":"{{0, 0}, {640, 1136}}","children":[{"isEnabled":"1","isVisible":"0","frame":"{{0, 0}, {640, 1136}}","rect":{"y":0,"x":0,"width":640,"height":1136},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null}],"rect":{"y":0,"x":0,"width":640,"height":1136},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null}],"rect":{"y":0,"x":0,"width":640,"height":1136},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null},{"isEnabled":"1","isVisible":"0","frame":"{{0, 0}, {640, 1136}}","children":[{"isEnabled":"1","isVisible":"0","frame":"{{0, 0}, {640, 1136}}","rect":{"y":0,"x":0,"width":640,"height":1136},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null}],"rect":{"y":0,"x":0,"width":640,"height":1136},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null},{"isEnabled":"1","isVisible":"0","frame":"{{0, 0}, {640, 1136}}","children":[{"isEnabled":"1","isVisible":"0","frame":"{{0, 0}, {640, 1136}}","rect":{"y":0,"x":0,"width":640,"height":1136},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null}],"rect":{"y":0,"x":0,"width":640,"height":1136},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null},{"isEnabled":"1","isVisible":"0","frame":"{{0, 0}, {640, 1136}}","children":[{"isEnabled":"1","isVisible":"0","frame":"{{0, 0}, {640, 1136}}","children":[{"isEnabled":"1","isVisible":"0","frame":"{{0, 0}, {640, 1136}}","rect":{"y":0,"x":0,"width":640,"height":1136},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null}],"rect":{"y":0,"x":0,"width":640,"height":1136},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null}],"rect":{"y":0,"x":0,"width":640,"height":1136},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null},{"isEnabled":"1","isVisible":"0","frame":"{{0, 0}, {640, 1136}}","children":[{"isEnabled":"1","isVisible":"0","frame":"{{0, 0}, {640, 1136}}","children":[{"isEnabled":"1","isVisible":"0","frame":"{{0, 0}, {640, 1136}}","rect":{"y":0,"x":0,"width":640,"height":1136},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null}],"rect":{"y":0,"x":0,"width":640,"height":1136},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null}],"rect":{"y":0,"x":0,"width":640,"height":1136},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null},{"isEnabled":"1","isVisible":"0","frame":"{{0, 0}, {640, 1136}}","children":[{"isEnabled":"1","isVisible":"0","frame":"{{0, 0}, {640, 1136}}","children":[{"isEnabled":"1","isVisible":"0","frame":"{{0, 0}, {640, 1136}}","rect":{"y":0,"x":0,"width":640,"height":1136},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null}],"rect":{"y":0,"x":0,"width":640,"height":1136},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null}],"rect":{"y":0,"x":0,"width":640,"height":1136},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null}],"rect":{"y":0,"x":0,"width":640,"height":1136},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null},{"isEnabled":"1","isVisible":"0","frame":"{{0, 0}, {640, 1136}}","rect":{"y":0,"x":0,"width":640,"height":1136},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null}],"rect":{"y":0,"x":0,"width":640,"height":1136},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null},{"isEnabled":"1","isVisible":"0","frame":"{{0, 0}, {320, 568}}","children":[{"isEnabled":"1","isVisible":"0","frame":"{{0, 0}, {320, 568}}","rect":{"y":0,"x":0,"width":320,"height":568},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null}],"rect":{"y":0,"x":0,"width":320,"height":568},"value":null,"label":null,"type":"Window","name":null,"rawIdentifier":null},{"isEnabled":"1","isVisible":"1","frame":"{{0, 0}, {320, 568}}","children":[{"isEnabled":"1","isVisible":"1","frame":"{{0, 0}, {320, 20}}","children":[{"isEnabled":"1","isVisible":"0","frame":"{{0, 0}, {320, 20}}","rect":{"y":0,"x":0,"width":320,"height":20},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null},{"isEnabled":"1","isVisible":"1","frame":"{{0, 0}, {320, 20}}","children":[{"isEnabled":"1","isVisible":"1","frame":"{{6, 0}, {35, 20}}","rect":{"y":0,"x":6,"width":35,"height":20},"value":null,"label":"4 of 5 bars, signal strength","type":"Other","name":"4 of 5 bars, signal strength","rawIdentifier":null},{"isEnabled":"1","isVisible":"1","frame":"{{44, 0}, {16, 20}}","rect":{"y":0,"x":44,"width":16,"height":20},"value":null,"label":"KT network","type":"Other","name":"KT network","rawIdentifier":null},{"isEnabled":"1","isVisible":"1","frame":"{{65, 0}, {13, 20}}","rect":{"y":0,"x":65,"width":13,"height":20},"value":"SSID","label":"3 of 3 Wi-Fi bars","type":"Other","name":"3 of 3 Wi-Fi bars","rawIdentifier":null},{"isEnabled":"1","isVisible":"1","frame":"{{138, 0}, {48, 20}}","rect":{"y":0,"x":138,"width":48,"height":20},"value":null,"label":"8:01 PM","type":"Other","name":"8:01 PM","rawIdentifier":null},{"isEnabled":"1","isVisible":"1","frame":"{{282, 0}, {33, 20}}","rect":{"y":0,"x":282,"width":33,"height":20},"value":null,"label":"96% battery power, Charging","type":"Other","name":"96% battery power, Charging","rawIdentifier":null}],"rect":{"y":0,"x":0,"width":320,"height":20},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null}],"rect":{"y":0,"x":0,"width":320,"height":20},"value":null,"label":null,"type":"StatusBar","name":null,"rawIdentifier":null}],"rect":{"y":0,"x":0,"width":320,"height":568},"value":null,"label":null,"type":"Window","name":null,"rawIdentifier":null},{"isEnabled":"1","isVisible":"0","frame":"{{0, 0}, {320, 568}}","children":[{"isEnabled":"1","isVisible":"0","frame":"{{0, 0}, {320, 568}}","rect":{"y":0,"x":0,"width":320,"height":568},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null}],"rect":{"y":0,"x":0,"width":320,"height":568},"value":null,"label":null,"type":"Window","name":null,"rawIdentifier":null}],"rect":{"y":0,"x":0,"width":320,"height":568},"value":null,"label":" ","type":"Application","name":" ","rawIdentifier":null}},"sessionId":"BADEC7F1-1FC6-4C82-A713-4C2907A77620","status":0}
'****** xctest source end *******
TypeError: Cannot read property 'x' of undefined
at adaptor (/usr/local/lib/node_modules/app-inspector/lib/ios.js:27:16)
at Object.exports.dumpXMLAndScreenShot (/usr/local/lib/node_modules/app-inspector/lib/ios.js:60:22)
at next (native)
at onFulfilled (/usr/local/lib/node_modules/app-inspector/node_modules/co/index.js:65:19)
at process._tickCallback (internal/process/next_tick.js:103:7)
app inspector version / 版本号:1.2.19
os version / 系统: Mac OS
device information / 设备版本: iOS 9
terminal log / 终端输出信息:
>> xctest-client.js:171:14 [master] pid:2422 please check project: /usr/local/lib/node_modules/app-inspector/node_modules/webdriveragent/WebDriverAgent/WebDriverAgent.xcodeproj
>> iOS device started: fd779ec1e9eb20bf6c875a7c3733e31fcb120529
>> inspector start at: http://172.26.35.1:5678
<-- GET /
>> ios.js:67:10 [master] pid:2422 Dump iOS XML success, save to /usr/local/lib/node_modules/app-inspector/.temp/ios.json
--> GET / 200
<-- GET /
<-- GET /
The source may be wrong, please report with below message at:
https://github.com/macacajs/app-inspector/issues/new
****** xctest source start *******
{"value":{"tree":{"bounds":"{{0, 0}, {0, 0}}","rawIdentifier":null,"isVisible":"0","value":null,"label":null,"type":"Any","name":null,"isEnabled":"0"}},"sessionId":null,"status":0}
'****** xctest source end *******
TypeError: Cannot read property 'x' of undefined
at adaptor (/usr/local/lib/node_modules/app-inspector/lib/ios.js:27:9)
at Object.exports.dumpXMLAndScreenShot (/usr/local/lib/node_modules/app-inspector/lib/ios.js:60:22)
at exports.dumpXMLAndScreenShot.next (<anonymous>)
at onFulfilled (/usr/local/lib/node_modules/app-inspector/node_modules/co/index.js:65:19)
at process._tickCallback (internal/process/next_tick.js:103:7)
不知为何,进入自家app后,刷新页面,终端一直没有响应。过了一段时间后出现上述报错。
其他App都是正常的,但自己app不知为何会出现报错,而且之前在自家也没出现过着情况
app inspector version / 版本号: 1.2.17
os version / 系统: OS 10.11.6
device information / 设备版本:iPhone6s 9.3.1 iPad Air2 10.1.1
terminal log / 终端输出信息:
<-- GET /
The source may be wrong, please report with below message at:
https://github.com/macacajs/app-inspector/issues/new
****** xctest source start *******
{"value":{"tree":{"isEnabled":"1","isVisible":"1","frame":"{{0, 0}, {375, 667}}","children":[{"isEnabled":"1","isVisible":"0","frame":"{{0, 0}, {375, 667}}","children":[{"isEnabled":"1","isVisible":"0","frame":"{{0, 0}, {375, 667}}","rect":{"y":0,"x":0,"width":375,"height":667},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null}],"rect":{"y":0,"x":0,"width":375,"height":667},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null},{"isEnabled":"1","isVisible":"1","frame":"{{0, 0}, {375, 667}}","children":[{"isEnabled":"1","isVisible":"1","frame":"{{0, 0}, {375, 667}}","children":[{"isEnabled":"1","isVisible":"1","frame":"{{119, 45}, {115, 37}}","rect":{"y":45,"x":119,"width":115,"height":37},"value":null,"label":"TextField1","type":"TextField","name":"IntegerA","rawIdentifier":"IntegerA"},{"isEnabled":"1","isVisible":"1","frame":"{{119, 90}, {115, 38}}","rect":{"y":90,"x":119,"width":115,"height":38},"value":null,"label":"TextField2","type":"TextField","name":"IntegerB","rawIdentifier":"IntegerB"},{"isEnabled":"1","isVisible":"1","frame":"{{110, 143}, {133, 45}}","rect":{"y":143,"x":110,"width":133,"height":45},"value":null,"label":"Compute Sum","type":"Button","name":"ComputeSumButton","rawIdentifier":"ComputeSumButton"},{"isEnabled":"1","isVisible":"1","frame":"{{151, 196}, {50, 25}}","rect":{"y":196,"x":151,"width":50,"height":25},"value":"SumLabel","label":"SumLabel","type":"StaticText","name":"Answer","rawIdentifier":"Answer"},{"isEnabled":"1","isVisible":"1","frame":"{{30, 243}, {90, 52}}","rect":{"y":243,"x":30,"width":90,"height":52},"value":null,"label":"show alert","type":"Button","name":"show alert","rawIdentifier":null},{"isEnabled":"1","isVisible":"1","frame":"{{128, 251}, {102, 36}}","rect":{"y":251,"x":128,"width":102,"height":36},"value":null,"label":"contact alert","type":"Button","name":"contact alert","rawIdentifier":null},{"isEnabled":"1","isVisible":"1","frame":"{{239, 251}, {105, 36}}","rect":{"y":251,"x":239,"width":105,"height":36},"value":null,"label":"location alert","type":"Button","name":"location alert","rawIdentifier":null},{"isEnabled":"1","isVisible":"1","frame":"{{142, 304}, {67, 25}}","rect":{"y":304,"x":142,"width":67,"height":25},"value":"AppElem","label":"AppElem","type":"StaticText","name":"AppElem","rawIdentifier":null},{"isEnabled":"1","isVisible":"1","frame":"{{106, 338}, {139, 35}}","rect":{"y":338,"x":106,"width":139,"height":35},"value":"50%","label":"AppElem","type":"Slider","name":"AppElem","rawIdentifier":null},{"isEnabled":"1","isVisible":"1","frame":"{{274, 341}, {35, 26}}","rect":{"y":341,"x":274,"width":35,"height":26},"value":null,"label":null,"type":"StaticText","name":"Access'ibility","rawIdentifier":"Access'ibility"},{"isEnabled":"1","isVisible":"1","frame":"{{142, 373}, {67, 25}}","rect":{"y":373,"x":142,"width":67,"height":25},"value":"AppElem","label":"AppElem","type":"StaticText","name":"AppElem","rawIdentifier":null},{"isEnabled":"0","isVisible":"1","frame":"{{97, 407}, {160, 34}}","rect":{"y":407,"x":97,"width":160,"height":34},"value":null,"label":"disabled button","type":"Button","name":"DisabledButton","rawIdentifier":"DisabledButton"},{"isEnabled":"1","isVisible":"1","frame":"{{96, 449}, {86, 26}}","rect":{"y":449,"x":96,"width":86,"height":26},"value":null,"label":null,"type":"StaticText","name":null,"rawIdentifier":null},{"isEnabled":"0","isVisible":"1","frame":"{{199, 443}, {60, 37}}","rect":{"y":443,"x":199,"width":60,"height":37},"value":true,"label":"locationStatus","type":"Switch","name":"locationStatus","rawIdentifier":"locationStatus"},{"isEnabled":"1","isVisible":"1","frame":"{{108, 465}, {137, 53}}","rect":{"y":465,"x":108,"width":137,"height":53},"value":null,"label":"Test Gesture","type":"Button","name":"Test Gesture","rawIdentifier":null},{"isEnabled":"1","isVisible":"1","frame":"{{280, 474}, {49, 36}}","rect":{"y":474,"x":280,"width":49,"height":36},"value":null,"label":"Crash","type":"Button","name":"Crash","rawIdentifier":null}],"rect":{"y":0,"x":0,"width":375,"height":667},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null}],"rect":{"y":0,"x":0,"width":375,"height":667},"value":null,"label":null,"type":"Window","name":null,"rawIdentifier":null},{"isEnabled":"1","isVisible":"1","frame":"{{0, 0}, {375, 667}}","children":[{"isEnabled":"1","isVisible":"1","frame":"{{0, 0}, {375, 25}}","children":[{"isEnabled":"1","isVisible":"0","frame":"{{0, 0}, {375, 25}}","rect":{"y":0,"x":0,"width":375,"height":25},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null},{"isEnabled":"1","isVisible":"1","frame":"{{0, 0}, {375, 25}}","children":[{"isEnabled":"1","isVisible":"1","frame":"{{7, 0}, {63, 25}}","rect":{"y":0,"x":7,"width":63,"height":25},"value":null,"label":"无 SIM 卡","type":"Other","name":"无 SIM 卡","rawIdentifier":null},{"isEnabled":"1","isVisible":"1","frame":"{{75, 0}, {16, 25}}","rect":{"y":0,"x":75,"width":16,"height":25},"value":"SSID","label":"3 of 3 WLAN bars","type":"Other","name":"3 of 3 WLAN bars","rawIdentifier":null},{"isEnabled":"1","isVisible":"1","frame":"{{160, 0}, {61, 25}}","rect":{"y":0,"x":160,"width":61,"height":25},"value":null,"label":"下午1:48","type":"Other","name":"下午1:48","rawIdentifier":null},{"isEnabled":"1","isVisible":"1","frame":"{{253, 0}, {15, 25}}","rect":{"y":0,"x":253,"width":15,"height":25},"value":null,"label":"Orientation Locked","type":"Other","name":"Orientation Locked","rawIdentifier":null},{"isEnabled":"1","isVisible":"1","frame":"{{274, 0}, {10, 25}}","rect":{"y":0,"x":274,"width":10,"height":25},"value":null,"label":"Bluetooth on","type":"Other","name":"Bluetooth on","rawIdentifier":null},{"isEnabled":"1","isVisible":"1","frame":"{{290, 0}, {80, 25}}","rect":{"y":0,"x":290,"width":80,"height":25},"value":null,"label":"100% battery power, On AC Power","type":"Other","name":"100% battery power, On AC Power","rawIdentifier":null},{"isEnabled":"1","isVisible":"1","frame":"{{290, 0}, {37, 25}}","rect":{"y":0,"x":290,"width":37,"height":25},"value":null,"label":"100% battery power","type":"Other","name":"100% battery power","rawIdentifier":null}],"rect":{"y":0,"x":0,"width":375,"height":25},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null}],"rect":{"y":0,"x":0,"width":375,"height":25},"value":null,"label":null,"type":"StatusBar","name":null,"rawIdentifier":null}],"rect":{"y":0,"x":0,"width":375,"height":667},"value":null,"label":null,"type":"Window","name":null,"rawIdentifier":null}],"rect":{"y":0,"x":0,"width":375,"height":667},"value":null,"label":"TestApp","type":"Application","name":"TestApp","rawIdentifier":null}},"sessionId":"4EF084A2-2DFA-46BD-A35F-E00C063C65A4","status":0}
'****** xctest source end *******
TypeError: Cannot read property 'x' of undefined
at node (/usr/local/lib/node_modules/app-inspector/lib/ios.js:27:16)
at Object.exports.dumpXMLAndScreenShot (/usr/local/lib/node_modules/app-inspector/lib/ios.js:60:22)
at next (native)
at onFulfilled (/usr/local/lib/node_modules/app-inspector/node_modules/.4.6.0@co/index.js:65:19)
at process._tickCallback (node.js:385:9)
<-- GET /favicon.ico
--> GET /favicon.ico 404
淘宝客户端其他页面可以显示,但登录页无法显示
app inspector version / 版本号:
@1.2.12
os version / 系统:
win 7 64位
device information / 设备版本:
android 4.4.2
terminal log / 终端输出信息:
$ app-inspector -u DU2MYN146D002912 --verbose
server.js:16:12 [master] pid:3128 server start with config:
{ port: 5678,
verbose: true,
udid: 'DU2MYN146D002912',
ip: '192.168.42.241',
host: 'shisy',
loaded_time: '2016-10-25 13:01:53' }
app-inspector.js:42:10 [master] pid:3128 server start at: http://192.168.42.2 41:5678
INSTRUMENTATION_STATUS: numtests=1
INSTRUMENTATION_STATUS: stream=
com.android.uiautomator.client.Initialize:
INSTRUMENTATION_STATUS: id=UiAutomatorTestRunner
INSTRUMENTATION_STATUS: test=testStartServer
INSTRUMENTATION_STATUS: class=com.android.uiautomator.client.Initialize
INSTRUMENTATION_STATUS: current=1
INSTRUMENTATION_STATUS_CODE: 1
uiautomator start socket server.
socket server ready
socket client ready
Android device started: DU2MYN146D002912
inspector start at: http://192.168.42.241:5678
<-- GET /
recive: {"cmd":"getSource","args":{}}
return: {"data":{"value":true,"status":0},"success":true}
Dump Android XML success, save to C:\Users\Administrator\AppData\Roaming\npm\ node_modules.app-inspector_npminstall\[email protected]\ android.json
--> GET / 200
<-- GET /
recive: {"cmd":"getSource","args":{}}
return: {"data":{"value":true,"status":0},"success":true}
Dump Android XML success, save to C:\Users\Administrator\AppData\Roaming\npm\ node_modules.app-inspector_npminstall\[email protected]\ android.json
--> GET / 200
真机问题先参考 https://testerhome.com/topics/5953
app inspector version / 版本号: [email protected]
os version / 系统: 9.3
device information / 设备版本: iPhone 6S 9.3
terminal log / 终端输出信息:
****** xctest source start *******
{"value":{"tree":{"bounds":"{{0, 0}, {375, 667}}","isEnabled":"1","isVisible":"1","children":[{"bounds":"{{0, 0}, {375, 667}}","isEnabled":"1","isVisible":"0","children":[{"bounds":"{{0, 0}, {375, 667}}","isEnabled":"1","isVisible":"0","children":[{"bounds":"{{0, 0}, {375, 667}}","isEnabled":"1","isVisible":"0","children":[{"bounds":"{{0, 0}, {375, 667}}","isEnabled":"1","isVisible":"0","rect":{"y":0,"x":0,"width":375,"height":667},"value":null,"label":null,"type":"Image","name":null,"rawIdentifier":null}],"rect":{"y":0,"x":0,"width":375,"height":667},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null},{"bounds":"{{0, 0}, {375, 667}}","isEnabled":"1","isVisible":"0","children":[{"bounds":"{{0, 0}, {375, 667}}","isEnabled":"1","isVisible":"0","rect":{"y":0,"x":0,"width":375,"height":667},"value":null,"label":null,"type":"Image","name":null,"rawIdentifier":null}],"rect":{"y":0,"x":0,"width":375,"height":667},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null},{"bounds":"{{0, 0}, {375, 667}}","isEnabled":"1","isVisible":"0","rect":{"y":0,"x":0,"width":375,"height":667},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null},{"bounds":"{{0, 0}, {375, 667}}","isEnabled":"1","isVisible":"0","rect":{"y":0,"x":0,"width":375,"height":667},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null}],"rect":{"y":0,"x":0,"width":375,"height":667},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null}],"rect":{"y":0,"x":0,"width":375,"height":667},"value":null,"label":null,"type":"Window","name":null,"rawIdentifier":null},{"bounds":"{{0, 0}, {375, 667}}","isEnabled":"1","isVisible":"1","children":[{"bounds":"{{0, 0}, {0, 0}}","isEnabled":"1","isVisible":"0","children":[{"bounds":"{{-2, 5}, {64, 78}}","isEnabled":"1","isVisible":"0","rect":{"y":5,"x":-2,"width":64,"height":78},"value":null,"label":null,"type":"Icon","name":null,"rawIdentifier":null}],"rect":{"y":0,"x":0,"width":0,"height":0},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null},{"bounds":"{{0, 0}, {375, 667}}","isEnabled":"1","isVisible":"1","children":[{"bounds":"{{0, 0}, {375, 667}}","isEnabled":"1","isVisible":"1","children":[{"bounds":"{{0, 0}, {375, 667}}","isEnabled":"1","isVisible":"1","children":[{"bounds":"{{0, 0}, {375, 667}}","isEnabled":"1","isVisible":"1","children":[{"bounds":"{{0, 20}, {375, 535}}","isEnabled":"1","isVisible":"1","children":[{"bounds":"{{-750, 20}, {0, 0}}","isEnabled":"1","isVisible":"0","rect":{"y":20,"x":-750,"width":0,"height":0},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null},{"bounds":"{{-375, 20}, {375, 535}}","isEnabled":"1","isVisible":"0","children":[{"bounds":"{{-350, 26}, {64, 85.5}}","isEnabled":"1","isVisible":"0","rect":{"y":26,"x":-350,"width":64,"height":85.5},"value":"Monday, December 19","label":"Calendar","type":"Icon","name":"Calendar","rawIdentifier":"Calendar"},{"bounds":"{{-263, 26}, {64, 85.5}}","isEnabled":"1","isVisible":"0","rect":{"y":26,"x":-263,"width":64,"height":85.5},"value":null,"label":"Photos","type":"Icon","name":"Photos","rawIdentifier":"Photos"},{"bounds":"{{-176, 26}, {64, 85.5}}","isEnabled":"1","isVisible":"0","rect":{"y":26,"x":-176,"width":64,"height":85.5},"value":null,"label":"Maps","type":"Icon","name":"Maps","rawIdentifier":"Maps"},{"bounds":"{{-89, 26}, {64, 85.5}}","isEnabled":"1","isVisible":"0","rect":{"y":26,"x":-89,"width":64,"height":85.5},"value":null,"label":"Wallet","type":"Icon","name":"Wallet","rawIdentifier":"Wallet"},{"bounds":"{{-351.5, 114}, {68, 85.5}}","isEnabled":"1","isVisible":"0","rect":{"y":114,"x":-351.5,"width":68,"height":85.5},"value":null,"label":"Reminders","type":"Icon","name":"Reminders","rawIdentifier":"Reminders"},{"bounds":"{{-263, 114}, {64, 85.5}}","isEnabled":"1","isVisible":"0","rect":{"y":114,"x":-263,"width":64,"height":85.5},"value":null,"label":"News","type":"Icon","name":"News","rawIdentifier":"News"},{"bounds":"{{-176, 114}, {64, 85.5}}","isEnabled":"1","isVisible":"0","rect":{"y":114,"x":-176,"width":64,"height":85.5},"value":null,"label":"Health","type":"Icon","name":"Health","rawIdentifier":"Health"},{"bounds":"{{-89, 114}, {64, 85.5}}","isEnabled":"1","isVisible":"0","rect":{"y":114,"x":-89,"width":64,"height":85.5},"value":null,"label":"Settings","type":"Icon","name":"Settings","rawIdentifier":"Settings"}],"rect":{"y":20,"x":-375,"width":375,"height":535},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null},{"bounds":"{{0, 20}, {375, 535}}","isEnabled":"1","isVisible":"0","children":[{"bounds":"{{15.5, 26}, {83, 85.5}}","isEnabled":"1","isVisible":"1","rect":{"y":26,"x":15.5,"width":83,"height":85.5},"value":null,"label":"Game Center","type":"Icon","name":"Game Center","rawIdentifier":"Game Center"},{"bounds":"{{112, 26}, {64, 85.5}}","isEnabled":"1","isVisible":"1","children":[{"bounds":"{{0, 0}, {0, 0}}","isEnabled":"1","isVisible":"0","rect":{"y":0,"x":0,"width":0,"height":0},"value":null,"label":"Contacts","type":"Other","name":"Contacts","rawIdentifier":"Contacts"}],"rect":{"y":26,"x":112,"width":64,"height":85.5},"value":"1 app","label":"Extras folder","type":"Icon","name":"Extras","rawIdentifier":"Extras"},{"bounds":"{{199, 26}, {64, 85.5}}","isEnabled":"1","isVisible":"1","rect":{"y":26,"x":199,"width":64,"height":85.5},"value":null,"label":"Watch","type":"Icon","name":"Watch","rawIdentifier":"Watch"},{"bounds":"{{279.5, 26}, {77, 85.5}}","isEnabled":"1","isVisible":"1","rect":{"y":26,"x":279.5,"width":77,"height":85.5},"value":null,"label":"WebDriverAgentRunner","type":"Icon","name":"WebDriverAgentRunner","rawIdentifier":"WebDriverAgentRunner"},{"bounds":"{{22.5, 114}, {70, 85.5}}","isEnabled":"1","isVisible":"1","rect":{"y":114,"x":22.5,"width":70,"height":85.5},"value":null,"label":"Health Lab","type":"Icon","name":"Health Lab","rawIdentifier":"Health Lab"}],"rect":{"y":20,"x":0,"width":375,"height":535},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null},{"bounds":"{{-375, 20}, {375, 535}}","isEnabled":"1","isVisible":"0","children":[{"bounds":"{{-372, 549.5}, {369, 2.5}}","isEnabled":"1","isVisible":"0","rect":{"y":549.5,"x":-372,"width":369,"height":2.5},"value":null,"label":null,"type":"Image","name":null,"rawIdentifier":null}],"rect":{"y":20,"x":-375,"width":375,"height":535},"value":null,"label":null,"type":"ScrollView","name":null,"rawIdentifier":null}],"rect":{"y":20,"x":0,"width":375,"height":535},"value":null,"label":null,"type":"ScrollView","name":null,"rawIdentifier":null},{"bounds":"{{0, 545}, {375, 42}}","isEnabled":"1","isVisible":"1","rect":{"y":545,"x":0,"width":375,"height":42},"value":"Page 2 of 2","label":null,"type":"PageIndicator","name":null,"rawIdentifier":null},{"bounds":"{{0, 571}, {375, 96}}","isEnabled":"1","isVisible":"1","children":[{"bounds":"{{0, 570}, {375, 2.5}}","isEnabled":"1","isVisible":"1","children":[{"bounds":"{{0, 570}, {375, 2.5}}","isEnabled":"1","isVisible":"1","rect":{"y":570,"x":0,"width":375,"height":2.5},"value":null,"label":null,"type":"Image","name":null,"rawIdentifier":null}],"rect":{"y":570,"x":0,"width":375,"height":2.5},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null},{"bounds":"{{0, 571}, {375, 96}}","isEnabled":"1","isVisible":"1","children":[{"bounds":"{{155, 583}, {64, 85.5}}","isEnabled":"1","isVisible":"1","rect":{"y":583,"x":155,"width":64,"height":85.5},"value":null,"label":"Safari","type":"Icon","name":"Safari","rawIdentifier":"Safari"}],"rect":{"y":571,"x":0,"width":375,"height":96},"value":null,"label":"Dock","type":"Other","name":"Dock","rawIdentifier":null},{"bounds":"{{0, 571}, {375, 126}}","isEnabled":"1","isVisible":"0","children":[{"bounds":"{{0, 571}, {375, 667}}","isEnabled":"1","isVisible":"0","children":[{"bounds":"{{0, 571}, {375, 667}}","isEnabled":"1","isVisible":"0","children":[{"bounds":"{{-0.21856287425148935, 571}, {375.43712574850292, 667}}","isEnabled":"1","isVisible":"0","rect":{"y":571,"x":-0.2185628742514893,"width":375.4371257485029,"height":667},"value":null,"label":null,"type":"Image","name":null,"rawIdentifier":null}],"rect":{"y":571,"x":0,"width":375,"height":667},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null}],"rect":{"y":571,"x":0,"width":375,"height":667},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null}],"rect":{"y":571,"x":0,"width":375,"height":126},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null}],"rect":{"y":571,"x":0,"width":375,"height":96},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null}],"rect":{"y":0,"x":0,"width":375,"height":667},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null},{"bounds":"{{0, 0}, {375, 667}}","isEnabled":"1","isVisible":"0","children":[{"bounds":"{{0, 0}, {375, 667}}","isEnabled":"1","isVisible":"0","children":[{"bounds":"{{0, 0}, {375, 667}}","isEnabled":"1","isVisible":"0","rect":{"y":0,"x":0,"width":375,"height":667},"value":null,"label":"Dismiss Spotlight","type":"Button","name":"Dismiss Spotlight","rawIdentifier":null},{"bounds":"{{0, 0}, {375, 667}}","isEnabled":"1","isVisible":"0","children":[{"bounds":"{{0, 0}, {375, 667}}","isEnabled":"1","isVisible":"0","children":[{"bounds":"{{0, 20}, {375, 44}}","isEnabled":"1","isVisible":"0","children":[{"bounds":"{{0, 0}, {375, 64}}","isEnabled":"1","isVisible":"0","rect":{"y":0,"x":0,"width":375,"height":64},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null},{"bounds":"{{8, 27.5}, {359, 29}}","isEnabled":"1","isVisible":"0","children":[{"bounds":"{{16, 27.5}, {343, 29}}","isEnabled":"1","isVisible":"0","children":[{"bounds":"{{16, 27.5}, {343, 29}}","isEnabled":"1","isVisible":"0","children":[{"bounds":"{{335, 32.5}, {19, 19}}","isEnabled":"1","isVisible":"0","children":[{"bounds":"{{337.5, 35}, {14, 14}}","isEnabled":"1","isVisible":"0","rect":{"y":35,"x":337.5,"width":14,"height":14},"value":null,"label":null,"type":"Image","name":null,"rawIdentifier":null}],"rect":{"y":32.5,"x":335,"width":19,"height":19},"value":null,"label":"Clear text","type":"Button","name":"Clear text","rawIdentifier":null}],"rect":{"y":27.5,"x":16,"width":343,"height":29},"value":null,"label":null,"type":"SearchField","name":null,"rawIdentifier":null}],"rect":{"y":27.5,"x":16,"width":343,"height":29},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null},{"bounds":"{{371, 27.5}, {53, 30}}","isEnabled":"1","isVisible":"0","children":[{"bounds":"{{371, 32}, {53, 20.5}}","isEnabled":"1","isVisible":"0","rect":{"y":32,"x":371,"width":53,"height":20.5},"value":"Cancel","label":"Cancel","type":"StaticText","name":"Cancel","rawIdentifier":null}],"rect":{"y":27.5,"x":371,"width":53,"height":30},"value":null,"label":"Cancel","type":"Button","name":"Cancel","rawIdentifier":null}],"rect":{"y":27.5,"x":8,"width":359,"height":29},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null},{"bounds":"{{8, 31.5}, {21, 21}}","isEnabled":"1","isVisible":"0","rect":{"y":31.5,"x":8,"width":21,"height":21},"value":null,"label":"Back","type":"Button","name":"Back","rawIdentifier":null}],"rect":{"y":20,"x":0,"width":375,"height":44},"value":null,"label":null,"type":"NavigationBar","name":"SPUISearchView","rawIdentifier":"SPUISearchView"},{"bounds":"{{0, 0}, {375, 667}}","isEnabled":"1","isVisible":"0","children":[{"bounds":"{{0, 0}, {375, 667}}","isEnabled":"1","isVisible":"0","children":[{"bounds":"{{0, 64}, {375, 603}}","isEnabled":"1","isVisible":"0","children":[{"bounds":"{{0, 64}, {375, 0.5}}","isEnabled":"1","isVisible":"0","rect":{"y":64,"x":0,"width":375,"height":0.5},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null},{"bounds":"{{0, 64}, {375, 44}}","isEnabled":"1","isVisible":"0","children":[{"bounds":"{{0, 64}, {375, 44}}","isEnabled":"1","isVisible":"0","children":[{"bounds":"{{0, 64}, {375, 44}}","isEnabled":"1","isVisible":"0","rect":{"y":64,"x":0,"width":375,"height":44},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null},{"bounds":"{{0, 64}, {375, 44}}","isEnabled":"1","isVisible":"0","rect":{"y":64,"x":0,"width":375,"height":44},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null},{"bounds":"{{0, 64}, {375, 44}}","isEnabled":"1","isVisible":"0","rect":{"y":64,"x":0,"width":375,"height":44},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null}],"rect":{"y":64,"x":0,"width":375,"height":44},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null}],"rect":{"y":64,"x":0,"width":375,"height":44},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null}],"rect":{"y":64,"x":0,"width":375,"height":603},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null}],"rect":{"y":0,"x":0,"width":375,"height":667},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null}],"rect":{"y":0,"x":0,"width":375,"height":667},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null},{"bounds":"{{0, 667}, {375, 44}}","isEnabled":"1","isVisible":"0","children":[{"bounds":"{{0, 666.5}, {375, 0.5}}","isEnabled":"1","isVisible":"0","rect":{"y":666.5,"x":0,"width":375,"height":0.5},"value":null,"label":null,"type":"Image","name":null,"rawIdentifier":null},{"bounds":"{{0, 667}, {375, 44}}","isEnabled":"1","isVisible":"0","children":[{"bounds":"{{0, 667}, {375, 44}}","isEnabled":"1","isVisible":"0","children":[{"bounds":"{{0, 667}, {375, 44}}","isEnabled":"1","isVisible":"0","rect":{"y":667,"x":0,"width":375,"height":44},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null},{"bounds":"{{0, 667}, {375, 44}}","isEnabled":"1","isVisible":"0","rect":{"y":667,"x":0,"width":375,"height":44},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null}],"rect":{"y":667,"x":0,"width":375,"height":44},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null}],"rect":{"y":667,"x":0,"width":375,"height":44},"value":null,"label":null,"type":"Image","name":null,"rawIdentifier":null}],"rect":{"y":667,"x":0,"width":375,"height":44},"value":null,"label":null,"type":"Toolbar","name":null,"rawIdentifier":null}],"rect":{"y":0,"x":0,"width":375,"height":667},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null}],"rect":{"y":0,"x":0,"width":375,"height":667},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null}],"rect":{"y":0,"x":0,"width":375,"height":667},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null}],"rect":{"y":0,"x":0,"width":375,"height":667},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null}],"rect":{"y":0,"x":0,"width":375,"height":667},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null}],"rect":{"y":0,"x":0,"width":375,"height":667},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null}],"rect":{"y":0,"x":0,"width":375,"height":667},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null}],"rect":{"y":0,"x":0,"width":375,"height":667},"value":null,"label":null,"type":"Window","name":null,"rawIdentifier":null},{"bounds":"{{0, 0}, {750, 1334}}","isEnabled":"1","isVisible":"0","children":[{"bounds":"{{0, 0}, {750, 1334}}","isEnabled":"1","isVisible":"0","children":[{"bounds":"{{0, 0}, {750, 1334}}","isEnabled":"1","isVisible":"0","children":[{"bounds":"{{0, 0}, {750, 1334}}","isEnabled":"1","isVisible":"0","children":[{"bounds":"{{0, 0}, {750, 1334}}","isEnabled":"1","isVisible":"0","rect":{"y":0,"x":0,"width":750,"height":1334},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null}],"rect":{"y":0,"x":0,"width":750,"height":1334},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null}],"rect":{"y":0,"x":0,"width":750,"height":1334},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null},{"bounds":"{{0, 0}, {750, 1334}}","isEnabled":"1","isVisible":"0","children":[{"bounds":"{{0, 0}, {750, 1334}}","isEnabled":"1","isVisible":"0","children":[{"bounds":"{{0, 0}, {750, 1334}}","isEnabled":"1","isVisible":"0","rect":{"y":0,"x":0,"width":750,"height":1334},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null}],"rect":{"y":0,"x":0,"width":750,"height":1334},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null}],"rect":{"y":0,"x":0,"width":750,"height":1334},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null},{"bounds":"{{0, 0}, {750, 1334}}","isEnabled":"1","isVisible":"0","children":[{"bounds":"{{0, 0}, {750, 1334}}","isEnabled":"1","isVisible":"0","rect":{"y":0,"x":0,"width":750,"height":1334},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null}],"rect":{"y":0,"x":0,"width":750,"height":1334},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null},{"bounds":"{{0, 0}, {750, 1334}}","isEnabled":"1","isVisible":"0","children":[{"bounds":"{{0, 0}, {750, 1334}}","isEnabled":"1","isVisible":"0","rect":{"y":0,"x":0,"width":750,"height":1334},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null}],"rect":{"y":0,"x":0,"width":750,"height":1334},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null},{"bounds":"{{0, 0}, {750, 1334}}","isEnabled":"1","isVisible":"0","children":[{"bounds":"{{0, 0}, {750, 1334}}","isEnabled":"1","isVisible":"0","children":[{"bounds":"{{0, 0}, {750, 1334}}","isEnabled":"1","isVisible":"0","rect":{"y":0,"x":0,"width":750,"height":1334},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null}],"rect":{"y":0,"x":0,"width":750,"height":1334},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null}],"rect":{"y":0,"x":0,"width":750,"height":1334},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null},{"bounds":"{{0, 0}, {750, 1334}}","isEnabled":"1","isVisible":"0","children":[{"bounds":"{{0, 0}, {750, 1334}}","isEnabled":"1","isVisible":"0","children":[{"bounds":"{{0, 0}, {750, 1334}}","isEnabled":"1","isVisible":"0","rect":{"y":0,"x":0,"width":750,"height":1334},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null}],"rect":{"y":0,"x":0,"width":750,"height":1334},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null}],"rect":{"y":0,"x":0,"width":750,"height":1334},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null}],"rect":{"y":0,"x":0,"width":750,"height":1334},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null},{"bounds":"{{0, 0}, {750, 1334}}","isEnabled":"1","isVisible":"0","rect":{"y":0,"x":0,"width":750,"height":1334},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null}],"rect":{"y":0,"x":0,"width":750,"height":1334},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null},{"bounds":"{{0, 0}, {375, 667}}","isEnabled":"1","isVisible":"0","children":[{"bounds":"{{0, 0}, {375, 667}}","isEnabled":"1","isVisible":"0","children":[{"bounds":"{{0, 667}, {375, 0}}","isEnabled":"1","isVisible":"0","rect":{"y":667,"x":0,"width":375,"height":0},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null}],"rect":{"y":0,"x":0,"width":375,"height":667},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null}],"rect":{"y":0,"x":0,"width":375,"height":667},"value":null,"label":null,"type":"Window","name":null,"rawIdentifier":null},{"bounds":"{{0, 0}, {375, 667}}","isEnabled":"1","isVisible":"1","children":[{"bounds":"{{0, 0}, {375, 20}}","isEnabled":"1","isVisible":"1","children":[{"bounds":"{{0, 0}, {375, 20}}","isEnabled":"1","isVisible":"0","rect":{"y":0,"x":0,"width":375,"height":20},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null},{"bounds":"{{0, 0}, {375, 20}}","isEnabled":"1","isVisible":"1","children":[{"bounds":"{{6, 0}, {39, 20}}","isEnabled":"1","isVisible":"1","rect":{"y":0,"x":6,"width":39,"height":20},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null},{"bounds":"{{50, 0}, {13, 20}}","isEnabled":"1","isVisible":"1","rect":{"y":0,"x":50,"width":13,"height":20},"value":"SSID","label":"3 of 3 Wi-Fi bars","type":"Other","name":"3 of 3 Wi-Fi bars","rawIdentifier":null},{"bounds":"{{165, 0}, {48, 20}}","isEnabled":"1","isVisible":"1","rect":{"y":0,"x":165,"width":48,"height":20},"value":null,"label":"5:18 PM","type":"Other","name":"5:18 PM","rawIdentifier":null},{"bounds":"{{345, 0}, {25, 20}}","isEnabled":"1","isVisible":"1","rect":{"y":0,"x":345,"width":25,"height":20},"value":null,"label":"-100% battery power","type":"Other","name":"-100% battery power","rawIdentifier":null}],"rect":{"y":0,"x":0,"width":375,"height":20},"value":null,"label":null,"type":"Other","name":null,"rawIdentifier":null}],"rect":{"y":0,"x":0,"width":375,"height":20},"value":null,"label":null,"type":"StatusBar","name":null,"rawIdentifier":null}],"rect":{"y":0,"x":0,"width":375,"height":667},"value":null,"label":null,"type":"Window","name":null,"rawIdentifier":null}],"rect":{"y":0,"x":0,"width":375,"height":667},"value":null,"label":" ","type":"Application","name":" ","rawIdentifier":null}},"sessionId":null,"status":0}
'****** xctest source end *******
try
app-inspector -u xxxx --verbose
for more log detail.
作为App inspector, 首先要有app。
目前使用inspector之前,我需要手动编译app然后安装到simulator里。然后再打开inspector。
有没有更好的建议方法?或者计划在以后实现类似功能,在inspector里直接指定app路径,然后其能完成自动安装(与Appium Inspector类似)?
真机问题先参考 https://testerhome.com/topics/5953
app inspector version / 版本号:1.2.19
os version / 系统:10.12.3
device information / 设备版本: 模拟器6s 10.2
terminal log / 终端输出信息:
Send HTTP Respone to Client: {"sessionId":"b9dfb298-6b61-402c-b359-1f8912db3412","status":0,"value":"{\"deviceName\":\"iPhone 6s\",\"autoAcceptAlerts\":\"true\",\"automationName\":\"xcuitest\",\"autoDismissAlerts\":\"true\",\"waitForAppScript\":\"$.delay(5000); $.acceptAlert();\",\"platformVersion\":\"10.2\",\"app\":\"/Users/iSteven/iSteven/AppiumProject/Xcode8.2.1_iOS10.2/Debug/FFProject.app\",\"platformName\":\"iOS\",\"showIOSLog\":\"true\"}"}
>> responseHandler.js:11:12 [master] pid:85949 Recieve HTTP Request from Client: method: POST url: /wd/hub/session/b9dfb298-6b61-402c-b359-1f8912db3412/element, jsonBody: {"using":"xpath","sessionId":"b9dfb298-6b61-402c-b359-1f8912db3412","value":"//XCUIElementTypeApplication[1]/XCUIElementTypeWindow[1]/XCUIElementTypeOther[2]/XCUIElementTypeAlert[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[2]/XCUIElementTypeOther[3]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[3]"}
>> proxy.js:56:14 [master] pid:85949 Proxy: /wd/hub/session/b9dfb298-6b61-402c-b359-1f8912db3412/element:POST to http://10.180.186.250:8900/session/BB3FF900-56EC-4A52-B967-48E49D377CBB/element:POST with body: {"using":"xpath","sessionId":"b9dfb298-6b61-402c-b359-1f8912db3412","value":"//XCUIElementTypeApplication[1]/XCUIElementTypeWindow[1]/XCUIElementTypeOther[2]/XCUIElementTypeAlert[1]/XCUIElementType...
>> proxy.js:84:20 [master] pid:85949 Got response with status 200: {"value":{"using":"xpath","value":"//XCUIElementTypeApplication[1]/XCUIElementTypeWindow[1]/XCUIElementTypeOther[2]/XCUIElementTypeAlert[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIEleme...
>> session.js:107:14 [master] pid:85949 Send HTTP Respone to Client: {"value":"{\"using\":\"xpath\",\"value\":\"//XCUIElementTypeApplication[1]/XCUIElementTypeWindow[1]/XCUIElementTypeOther[2]/XCUIElementTypeAlert[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[2]/XCUIElementTypeOther[3]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[3]\",\"description\":\"unable to find an element\"}","sessionId":"b9dfb298-6b61-402c-b359-1f8912db3412","status":7}
>> responseHandler.js:11:12 [master] pid:85949 Recieve HTTP Request from Client: method: POST url: /wd/hub/session/b9dfb298-6b61-402c-b359-1f8912db3412/element, jsonBody: {"using":"xpath","sessionId":"b9dfb298-6b61-402c-b359-1f8912db3412","value":"//XCUIElementTypeApplication[1]/XCUIElementTypeWindow[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[2]/XCUIElementTypeOther[4]/XCUIElementTypeOther[1]"}
>> proxy.js:56:14 [master] pid:85949 Proxy: /wd/hub/session/temp/accept_alert:POST to http://10.180.186.250:8900/session/BB3FF900-56EC-4A52-B967-48E49D377CBB/accept_alert:POST with body: {}
>> proxy.js:84:20 [master] pid:85949 Got response with status 200: {"value":{},"sessionId":"temp","status":0}
>> proxy.js:56:14 [master] pid:85949 Proxy: /wd/hub/session/b9dfb298-6b61-402c-b359-1f8912db3412/element:POST to http://10.180.186.250:8900/session/BB3FF900-56EC-4A52-B967-48E49D377CBB/element:POST with body: {"using":"xpath","sessionId":"b9dfb298-6b61-402c-b359-1f8912db3412","value":"//XCUIElementTypeApplication[1]/XCUIElementTypeWindow[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementType...
>> proxy.js:84:20 [master] pid:85949 Got response with status 200: {"value":{"using":"xpath","value":"//XCUIElementTypeApplication[1]/XCUIElementTypeWindow[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIEleme...
>> session.js:107:14 [master] pid:85949 Send HTTP Respone to Client: {"value":"{\"using\":\"xpath\",\"value\":\"//XCUIElementTypeApplication[1]/XCUIElementTypeWindow[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XC...","sessionId":"b9dfb298-6b61-402c-b359-1f8912db3412","status":7}
>> responseHandler.js:11:12 [master] pid:85949 Recieve HTTP Request from Client: method: DELETE url: /wd/hub/session/b9dfb298-6b61-402c-b359-1f8912db3412, jsonBody: {}
>> macaca-ios.js:336:10 [master] pid:85949 Stoping iOS driver...
>> xctest-client.js:267:14 [master] pid:85949 killing deviceLogProc pid: 89951
>> xctest-client.js:272:14 [master] pid:85949 killing runnerProc pid: 89952
>> macaca-ios.js:360:10 [master] pid:85949 iOS driver cleaned up.
>> session.js:80:12 [master] pid:85949 Delete session, sessionId: b9dfb298-6b61-402c-b359-1f8912db3412
>> responseHandler.js:47:14 [master] pid:85949 Send HTTP Respone to Client: {"sessionId":"b9dfb298-6b61-402c-b359-1f8912db3412","status":0}
test_ui_login (__main__.SimpleIOSTests) ... Traceback (most recent call last):
File "guiyang_register2.py", line 163, in test_ui_login
mine_el = self.driver.find_element_by_xpath("//XCUIElementTypeApplication[1]/XCUIElementTypeWindow[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[2]/XCUIElementTypeOther[4]/XCUIElementTypeOther[1]");
File "/usr/local/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 293, in find_element_by_xpath
return self.find_element(by=By.XPATH, value=xpath)
File "/usr/local/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 752, in find_element
'value': value})['value']
File "/usr/local/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 236, in execute
self.error_handler.check_response(response)
File "/usr/local/lib/python2.7/site-packages/appium/webdriver/errorhandler.py", line 29, in check_response
raise wde
NoSuchElementException: Message:
ok
----------------------------------------------------------------------
Ran 1 test in 31.772s
OK
try
app-inspector -u xxxx --verbose
for more log detail.
操作设备应用后刷新app-inspector页面,无法加载
app inspector version / 版本号:
1.2.14
os version / 系统:
10.11.6
device information / 设备版本:
9.3.1
terminal log / 终端输出信息:
>> ios.js:67:10 [master] pid:14175 Dump iOS XML success, save to /usr/local/lib/node_modules/.app-inspector_npminstall/node_modules/.1.2.14@app-inspector/.temp/ios.json
--> GET / 200
<-- GET /
<-- GET /
The source may be wrong, please report with below message at:
https://github.com/macacajs/app-inspector/issues/new
****** xctest source start *******
{"value":{"tree":{"bounds":"{{0, 0}, {0, 0}}","rawIdentifier":null,"isVisible":"0","value":null,"label":null,"type":"Any","name":null,"isEnabled":"0"}},"sessionId":null,"status":0}
'****** xctest source end *******
TypeError: Cannot read property 'origin' of undefined
at node (/usr/local/lib/node_modules/.app-inspector_npminstall/node_modules/.1.2.14@app-inspector/lib/ios.js:27:9)
at Object.exports.dumpXMLAndScreenShot (/usr/local/lib/node_modules/.app-inspector_npminstall/node_modules/.1.2.14@app-inspector/lib/ios.js:60:22)
at next (native)
at onFulfilled (/usr/local/lib/node_modules/.app-inspector_npminstall/node_modules/.4.6.0@co/index.js:65:19)
at process._tickCallback (node.js:379:9)
try
app-inspector -u xxxx --verbose
for more log detail.
报错信息如下所示,希望得到解答:
➜ node_modules npm i app-inspector -g
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: use cross-spawn or cross-spawn-async instead.
npm WARN deprecated [email protected]: ReDoS vulnerability parsing Set-Cookie https://nodesecurity.io/advisories/130
/Users/zxy/.nvm/versions/node/v6.2.2/bin/inspector -> /Users/zxy/.nvm/versions/node/v6.2.2/lib/node_modules/app-inspector/bin/app-inspector
/Users/zxy/.nvm/versions/node/v6.2.2/bin/app-inspector -> /Users/zxy/.nvm/versions/node/v6.2.2/lib/node_modules/app-inspector/bin/app-inspector
[email protected] install /Users/zxy/.nvm/versions/node/v6.2.2/lib/node_modules/app-inspector/node_modules/fsevents
node-pre-gyp install --fallback-to-build
node-pre-gyp ERR! Tried to download: https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.0.14/fse-v1.0.14-node-v48-darwin-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v48 ABI) (falling back to source compile with node-gyp)
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
2016-08-07 21:24:34.896 xcodebuild[2070:8873364] [MT] PluginLoading: Required plug-in compatibility UUID ACA8656B-FEA8-4B6D-8E4A-93F4C95C362C for plug-in at path '/Library/Application Support/Developer/Shared/Xcode/Plug-ins/FuzzyAutocomplete.xcplugin' not present in DVTPlugInCompatibilityUUIDs/Library/Application Support/Developer/Shared/Xcode/Plug-ins/BBUFullIssueNavigator.xcplugin' not present in DVTPlugInCompatibilityUUIDs
2016-08-07 21:24:34.902 xcodebuild[2070:8873364] [MT] PluginLoading: Required plug-in compatibility UUID ACA8656B-FEA8-4B6D-8E4A-93F4C95C362C for plug-in at path '
objc[2070]: Class MCLog is implemented in both /Users/zxy/Library/Application Support/Developer/Shared/Xcode/Plug-ins/MCLog.xcplugin/Contents/MacOS/MCLog and /Users/zxy/Library/Application Support/Developer/Shared/Xcode/Plug-ins/CodePilot3.xcplugin/Contents/MacOS/CodePilot3. One of the two will be used. Which one is undefined.
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
SOLINK_MODULE(target) Release/.node
CXX(target) Release/obj.target/fse/fsevents.o
SOLINK_MODULE(target) Release/fse.node
COPY /Users/zxy/.nvm/versions/node/v6.2.2/lib/node_modules/app-inspector/node_modules/fsevents/lib/binding/Release/node-v48-darwin-x64/fse.node
TOUCH Release/obj.target/action_after_build.stamp
[email protected] install /Users/zxy/.nvm/versions/node/v6.2.2/lib/node_modules/app-inspector/node_modules/webdriveragent
unzip -o ./WebDriverAgent.zip -d ./ 1>/dev/null[email protected] install /Users/zxy/.nvm/versions/node/v6.2.2/lib/node_modules/app-inspector/node_modules/uiautomator-client
node ./scripts/build.js
/Users/zxy/.nvm/versions/node/v6.2.2/lib/node_modules/app-inspector/node_modules/uiautomator-client/scripts/build.js:164
throw e;
^
Error: $JAVA_HOME is not set
at checkJavaHome.then.catch.then.then.catch.then.std (/Users/zxy/.nvm/versions/node/v6.2.2/lib/node_modules/app-inspector/node_modules/java-home/lib/java-home.js:89:25)
at process._tickCallback (internal/process/next_tick.js:103:7)
/Users/zxy/.nvm/versions/node/v6.2.2/lib
└── (empty)
npm ERR! Darwin 15.6.0
npm ERR! argv "/Users/zxy/.nvm/versions/node/v6.2.2/bin/node" "/Users/zxy/.nvm/versions/node/v6.2.2/bin/npm" "i" "app-inspector" "-g"
npm ERR! node v6.2.2
npm ERR! npm v3.10.6
npm ERR! code ELIFECYCLE
npm ERR! [email protected] install: node ./scripts/build.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node ./scripts/build.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the uiautomator-client package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node ./scripts/build.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs uiautomator-client
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls uiautomator-client
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/zxy/node_modules/npm-debug.log
npm ERR! code 1
真机问题先参考 https://testerhome.com/topics/5953
app inspector version / 版本号:
1.2.18
os version / 系统:
Mac 10.12.1
device information / 设备版本:
Nexus 6
版本号:NBD90Z
terminal log / 终端输出信息:
➜ ~ app-inspector -u ZX1G423SCH —-verbose
Warning: This version of UI Automator is deprecated. New tests should be written using
UI Automator 2.0 which is available as part of the Android Testing Support Library.
See https://developer.android.com/training/testing/ui-testing/uiautomator-testing.html
for more details.
INSTRUMENTATION_STATUS: numtests=1
INSTRUMENTATION_STATUS: stream=
com.android.uiautomator.client.Initialize:
INSTRUMENTATION_STATUS: id=UiAutomatorTestRunner
INSTRUMENTATION_STATUS: test=testStartServer
INSTRUMENTATION_STATUS: class=com.android.uiautomator.client.Initialize
INSTRUMENTATION_STATUS: current=1
INSTRUMENTATION_STATUS_CODE: 1
uiautomator start socket server.
>> socket server ready
>> socket client ready
>> Android device started: ZX1G423SCH
>> inspector start at: http://172.16.24.87:5678
<-- GET /
recive: {"cmd":"getSource","args":{}}
return: {"success":true,"data":{"status":0,"value":true}}
Error: Command failed: /bin/sh -c /Users/smzdm/Documents/01_Android/adt-bundle-mac-x86_64-20140702/sdk/platform-tools/adb -s ZX1G423SCH shell "cat /data/local/tmp/macaca-dump.xml"
/system/bin/sh: cat: /data/local/tmp/macaca-dump.xml: No such file or directory
at ChildProcess.exithandler (child_process.js:203:12)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:818:16)
at Socket.<anonymous> (internal/child_process.js:319:11)
at emitOne (events.js:77:13)
at Socket.emit (events.js:169:7)
at Pipe._onclose (net.js:469:12)
<-- GET /favicon.ico
--> GET /favicon.ico 404
try
app-inspector -u xxxx --verbose
for more log detail.
****** xctest source start *******
{"value":{"tree":{"bounds":"{{0, 0}, {0, 0}}","rawIdentifier":null,"isVisible":"0","value":null,"label":null,"type":"Any","name":null,"isEnabled":"0"}},"sessionId":null,"status":0}
'****** xctest source end *******
TypeError: Cannot read property 'x' of undefined
at adaptor (/usr/local/lib/node_modules/app-inspector/lib/ios.js:27:9)
at Object.exports.dumpXMLAndScreenShot (/usr/local/lib/node_modules/app-inspector/lib/ios.js:60:22)
at exports.dumpXMLAndScreenShot.next (<anonymous>)
at onFulfilled (/usr/local/lib/node_modules/app-inspector/node_modules/co/index.js:65:19)
at process._tickCallback (internal/process/next_tick.js:103:7)
<-- GET /favicon.ico
--> GET /favicon.ico 404
<-- GET /
try
app-inspector -u xxxx --verbose
for more log detail.
Hi,
I tried to run app-inspector to iOS physical device, and found that after command run in terminal app-inspector -u [My physical iPhone UDID]
, and then open the URL 192.168.x.x:5678
, the browser keep present "Waiting Device start...".
and I run command macaca doctor
and got all checklist in green.
please advise how to fix.
thanks.
Getting Following error
module.js:472
throw err;
^
Error: Cannot find module 'semver'
at Function.Module._resolveFilename (module.js:470:15)
at Function.Module._load (module.js:418:25)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Object. (/usr/local/lib/node_modules/npm/lib/utils/unsupported.js:2:14)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
I cannot build the app from source, how can I fix this error?
ERROR in ./assets/index.jsx
Module parse failed: C:\Users\ahmetkocu\AppData\Roaming\npm\node_modules\app-ins
pector\assets\index.jsx Unexpected token (8:19) --------> ReactDOM.render**(<**App/>, document.getElementById('app'));
ERROR in ./assets/index.jsx
Module parse failed: C:\Users\ahmetkocu\AppData\Roaming\npm\node_modules\app-ins
pector\assets\index.jsx Unexpected token (8:19) --------> ReactDOM.render**(<**App/>, document.getElementById('app'));
You may need an appropriate loader to handle this file type.
SyntaxError: Unexpected token (8:19)
at Parser.pp$4.raise (C:\Users\ahmetkocu\AppData\Roaming\npm\node_modules\ap
p-inspector\node_modules\webpack\node_modules\acorn\dist\acorn.js:2221:15)
at Parser.pp.unexpected (C:\Users\ahmetkocu\AppData\Roaming\npm\node_modules
\app-inspector\node_modules\webpack\node_modules\acorn\dist\acorn.js:603:10)
at Parser.pp$3.parseExprAtom (C:\Users\ahmetkocu\AppData\Roaming\npm\node_mo
dules\app-inspector\node_modules\webpack\node_modules\acorn\dist\acorn.js:1822:1
2)
at Parser.pp$3.parseExprSubscripts (C:\Users\ahmetkocu\AppData\Roaming\npm\n
ode_modules\app-inspector\node_modules\webpack\node_modules\acorn\dist\acorn.js:
1715:21)
at Parser.pp$3.parseMaybeUnary (C:\Users\ahmetkocu\AppData\Roaming\npm\node_
modules\app-inspector\node_modules\webpack\node_modules\acorn\dist\acorn.js:1692
:19)
at Parser.pp$3.parseExprOps (C:\Users\ahmetkocu\AppData\Roaming\npm\node_mod
ules\app-inspector\node_modules\webpack\node_modules\acorn\dist\acorn.js:1637:21
)
at Parser.pp$3.parseMaybeConditional (C:\Users\ahmetkocu\AppData\Roaming\npm
\node_modules\app-inspector\node_modules\webpack\node_modules\acorn\dist\acorn.j
s:1620:21)
at Parser.pp$3.parseMaybeAssign (C:\Users\ahmetkocu\AppData\Roaming\npm\node
modules\app-inspector\node_modules\webpack\node_modules\acorn\dist\acorn.js:159
7:21)
at Parser.pp$3.parseFunctionBody (C:\Users\ahmetkocu\AppData\Roaming\npm\nod
e_modules\app-inspector\node_modules\webpack\node_modules\acorn\dist\acorn.js:20
98:24)
at Parser.pp$3.parseArrowExpression (C:\Users\ahmetkocu\AppData\Roaming\npm
node_modules\app-inspector\node_modules\webpack\node_modules\acorn\dist\acorn.js
:2087:10)
at Parser.pp$3.parseParenArrowList (C:\Users\ahmetkocu\AppData\Roaming\npm\n
ode_modules\app-inspector\node_modules\webpack\node_modules\acorn\dist\acorn.js:
1902:17)
at Parser.pp$3.parseParenAndDistinguishExpression (C:\Users\ahmetkocu\AppDat
a\Roaming\npm\node_modules\app-inspector\node_modules\webpack\node_modules\acorn
\dist\acorn.js:1870:21)
at Parser.pp$3.parseExprAtom (C:\Users\ahmetkocu\AppData\Roaming\npm\node_mo
dules\app-inspector\node_modules\webpack\node_modules\acorn\dist\acorn.js:1796:1
9)
at Parser.pp$3.parseExprSubscripts (C:\Users\ahmetkocu\AppData\Roaming\npm\n
ode_modules\app-inspector\node_modules\webpack\node_modules\acorn\dist\acorn.js:
1715:21)
at Parser.pp$3.parseMaybeUnary (C:\Users\ahmetkocu\AppData\Roaming\npm\node
modules\app-inspector\node_modules\webpack\node_modules\acorn\dist\acorn.js:1692
:19)
at Parser.pp$3.parseExprOps (C:\Users\ahmetkocu\AppData\Roaming\npm\node_mod
ules\app-inspector\node_modules\webpack\node_modules\acorn\dist\acorn.js:1637:21
)
at Parser.pp$3.parseMaybeConditional (C:\Users\ahmetkocu\AppData\Roaming\npm
\node_modules\app-inspector\node_modules\webpack\node_modules\acorn\dist\acorn.j
s:1620:21)
at Parser.pp$3.parseMaybeAssign (C:\Users\ahmetkocu\AppData\Roaming\npm\node
_modules\app-inspector\node_modules\webpack\node_modules\acorn\dist\acorn.js:159
7:21)
at Parser.pp$1.parseVar (C:\Users\ahmetkocu\AppData\Roaming\npm\node_modules
\app-inspector\node_modules\webpack\node_modules\acorn\dist\acorn.js:1034:28)
at Parser.pp$1.parseVarStatement (C:\Users\ahmetkocu\AppData\Roaming\npm\nod
e_modules\app-inspector\node_modules\webpack\node_modules\acorn\dist\acorn.js:91
7:10)
at Parser.pp$1.parseStatement (C:\Users\ahmetkocu\AppData\Roaming\npm\node_m
odules\app-inspector\node_modules\webpack\node_modules\acorn\dist\acorn.js:706:1
9)
at Parser.pp$1.parseTopLevel (C:\Users\ahmetkocu\AppData\Roaming\npm\node_mo
dules\app-inspector\node_modules\webpack\node_modules\acorn\dist\acorn.js:638:25
)
at Parser.parse (C:\Users\ahmetkocu\AppData\Roaming\npm\node_modules\app-ins
pector\node_modules\webpack\node_modules\acorn\dist\acorn.js:516:17)
at Object.parse (C:\Users\ahmetkocu\AppData\Roaming\npm\node_modules\app-ins
pector\node_modules\webpack\node_modules\acorn\dist\acorn.js:3098:39)
at Parser.parse (C:\Users\ahmetkocu\AppData\Roaming\npm\node_modules\app-ins
pector\node_modules\webpack\lib\Parser.js:902:15)
at DependenciesBlock. (C:\Users\ahmetkocu\AppData\Roaming\npm\nod
e_modules\app-inspector\node_modules\webpack\lib\NormalModule.js:104:16)
at DependenciesBlock.onModuleBuild (C:\Users\ahmetkocu\AppData\Roaming\npm\n
ode_modules\app-inspector\node_modules\webpack\node_modules\webpack-core\lib\Nor
malModuleMixin.js:310:10)
try
app-inspector -u xxxx --verbose
for more log detail.
真机跑不起来,都是报这个错误
app inspector version / 版本号:1.2.17
os version / 系统:10.12.1
device information / 设备版本:iPhone 6 Plus iOS 10.1.1
terminal log / 终端输出信息:
>> server.js:16:12 [master] pid:5063 server start with config:
{ port: 5678,
verbose: true,
udid: '6659f98b703125816dade10f4bad73304411f67e',
ip: '192.168.88.10',
host: 'MBP.local',
loaded_time: '2016-12-09 09:53:12' }
>> app-inspector.js:42:10 [master] pid:5063 server start at: http://192.168.88.10:5678
>> xctest-client.js:56:14 [master] pid:5063 project path: /usr/local/lib/node_modules/app-inspector/node_modules/webdriveragent/WebDriverAgent/WebDriverAgent.xcodeproj
>> xctest-client start with port: 8901
>> xctest-client.js:233:14 [master] pid:5063 xcode version: 8.1
>> WebDriverAgent version: 1.0.38
>> xctest-client.js:170:14 [master] pid:5063 2016-12-09 09:53:14.689 xcodebuild[5069:150559] IDETestOperationsObserverDebug: Writing diagnostic log for test session to:
/Users/gaojiewen/Library/Developer/Xcode/DerivedData/WebDriverAgent-ceakatlydgitcjebccsbdhchgrpn/Logs/Test/C3DB9AB5-CDD9-4239-A7FE-B0A807F2ED62/Session-WebDriverAgentRunner-2016-12-09_095314-7ZFuRH.log
>> xctest-client.js:171:14 [master] pid:5063 please check project: /usr/local/lib/node_modules/app-inspector/node_modules/webdriveragent/WebDriverAgent/WebDriverAgent.xcodeproj
>> xctest-client.js:170:14 [master] pid:5063 2016-12-09 09:53:14.689 xcodebuild[5069:150553] [MT] IDETestOperationsObserverDebug: (5EBED2B7-1A51-4255-94B0-FCA95EACC2EE) Beginning test session WebDriverAgentRunner-5EBED2B7-1A51-4255-94B0-FCA95EACC2EE at 2016-12-09 09:53:14.688 with Xcode 8B62 on target <DVTiOSDevice: 0x7fa2e09b3570> {
deviceSerialNumber: FK1PJ2GBG5QQ
identifier: 6659f98b703125816dade10f4bad73304411f67e
deviceClass: iPhone
deviceName: Iphone
deviceIdentifier: 6659f98b703125816dade10f4bad73304411f67e
productVersion: 10.1.1
buildVersion: 14B100
deviceSoftwareVersion: 10.1.1 (14B100)
deviceArchitecture: arm64
deviceTotalCapacity: 11774349312
deviceAvailableCapacity: 6764044288
deviceIsTransient: NO
ignored: NO
deviceIsBusy: NO
deviceIsActivated: YES
deviceActivationState: Activated
deviceType: <DVTDeviceType:0x7fa2e048d3f0 Xcode.DeviceType.iPhone>
supportedDeviceFamilies: (
1
)
applications: (null)
provisioningProfiles: (null)
activityProgress: -2
activityTitle:
hasInternalSupport: NO
isSupportedOS: YES
developerDiskMountError: (null)
(null)
} (10.1.1 (14B100))
>> xctest-client.js:171:14 [master] pid:5063 please check project: /usr/local/lib/node_modules/app-inspector/node_modules/webdriveragent/WebDriverAgent/WebDriverAgent.xcodeproj
>> xctest-client.js:170:14 [master] pid:5063 MDMCreateDeltaDirectory:1920 calling MDMDirectoryDiff with:
state->old_bundle: /var/folders/ms/4k_zdcps2dn24mx49g2xxxz80000gn/C/com.apple.DeveloperTools/All/Xcode/EmbeddedAppDeltas/94b42240e03a2d94f1da88fc77699956/6659f98b703125816dade10f4bad73304411f67e/WebDriverAgentRunner-Runner.app
state->new_bundle: /Users/gaojiewen/Library/Developer/Xcode/DerivedData/WebDriverAgent-ceakatlydgitcjebccsbdhchgrpn/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app
state->dst_bundle: /var/folders/ms/4k_zdcps2dn24mx49g2xxxz80000gn/C/com.apple.DeveloperTools/All/Xcode/EmbeddedAppDeltas/WebDriverAgentRunner-Runner.app.kolmS3/WebDriverAgentRunner-Runner.app_sparse.ipa/Payload//WebDriverAgentRunner-Runner.app, binaryDiff flag: FALSE
dst_ipa: /var/folders/ms/4k_zdcps2dn24mx49g2xxxz80000gn/C/com.apple.DeveloperTools/All/Xcode/EmbeddedAppDeltas/WebDriverAgentRunner-Runner.app.kolmS3/WebDriverAgentRunner-Runner.app_sparse.ipa
>> xctest-client.js:171:14 [master] pid:5063 please check project: /usr/local/lib/node_modules/app-inspector/node_modules/webdriveragent/WebDriverAgent/WebDriverAgent.xcodeproj
>> xctest-client.js:170:14 [master] pid:5063 __MDMDirectoryDiff_block_invoke.37:1473 calling writeDictToFile with: /var/folders/ms/4k_zdcps2dn24mx49g2xxxz80000gn/C/com.apple.DeveloperTools/All/Xcode/EmbeddedAppDeltas/WebDriverAgentRunner-Runner.app.kolmS3/WebDriverAgentRunner-Runner.app_sparse.ipa/ManifestCache.plist
>> xctest-client.js:171:14 [master] pid:5063 please check project: /usr/local/lib/node_modules/app-inspector/node_modules/webdriveragent/WebDriverAgent/WebDriverAgent.xcodeproj
>> xctest-client.js:170:14 [master] pid:5063 writeDictToFile:1278 ==== Successfully wrote Manifest cache to /var/folders/ms/4k_zdcps2dn24mx49g2xxxz80000gn/C/com.apple.DeveloperTools/All/Xcode/EmbeddedAppDeltas/WebDriverAgentRunner-Runner.app.kolmS3/WebDriverAgentRunner-Runner.app_sparse.ipa/ManifestCache.plist
>> xctest-client.js:171:14 [master] pid:5063 please check project: /usr/local/lib/node_modules/app-inspector/node_modules/webdriveragent/WebDriverAgent/WebDriverAgent.xcodeproj
>> proxy.js:56:14 [master] pid:5063 Proxy: /session:POST to http://127.0.0.1:8901/session:POST with body: {"desiredCapabilities":{}}
>> proxy.js:67:22 [master] pid:5063 xctest client proxy received no data.
>> proxy.js:62:22 [master] pid:5063 xctest client proxy error with: Error: socket hang up
>> proxy.js:67:22 [master] pid:5063 xctest client proxy received no data.
>> proxy.js:67:22 [master] pid:5063 xctest client proxy received no data.
>> proxy.js:62:22 [master] pid:5063 xctest client proxy error with: Error: socket hang up
>> proxy.js:67:22 [master] pid:5063 xctest client proxy received no data.
>> proxy.js:62:22 [master] pid:5063 xctest client proxy error with: Error: socket hang up
>> proxy.js:62:22 [master] pid:5063 xctest client proxy error with: Error: socket hang up
>> proxy.js:67:22 [master] pid:5063 xctest client proxy received no data.
>> proxy.js:67:22 [master] pid:5063 xctest client proxy received no data.
>> proxy.js:67:22 [master] pid:5063 xctest client proxy received no data.
>> xctest-client.js:255:14 [master] pid:5063 Fail to start xctest: No data received from wda.
>> xctest-client.js:267:14 [master] pid:5063 killing deviceLogProc pid: 5066
>> xctest-client.js:272:14 [master] pid:5063 killing runnerProc pid: 5069
>> xctest-client.js:278:14 [master] pid:5063 killing iproxyProc pid: 5068
>> app-inspector:66:44 [master] pid:5063 No data received from wda.
>> xctest-client.js:145:16 [master] pid:5063 deviceconsole exit with code: null, signal: SIGKILL
>> xctest-client.js:209:14 [master] pid:5063 iproxy exit with code: null, signal: SIGKILL
>> xctest-client.js:181:14 [master] pid:5063 xctest client exit with code: null, signal: SIGKILL
try
app-inspector -u xxxx --verbose
for more log detail.
gh-pages 生成独立的项目主页,调整readme
我用的是adb devices
List of devices attached
203e1f90 device
用的203e1f90
如题,在进行被测客户端进行元素查找时,到了某个页面,查找一个时间选择控件时,出现报错。控件如下图显示
app inspector version / 版本号:1.2.18
os version / 系统:10.12.3
device information / 设备版本:9.3(模拟器)、10.2(模拟器)、10.1.1(真机)
terminal log / 终端输出信息:
The source may be wrong, please report with below message at:
https://github.com/macacajs/app-inspector/issues/new
****** xctest source start *******
{"value":{"tree":{"bounds":"{{0, 0}, {0, 0}}","rawIdentifier":null,"isVisible":"0","value":null,"label":null,"type":"Any","name":null,"isEnabled":"0"}},"sessionId":null,"status":0}
'****** xctest source end *******
TypeError: Cannot read property 'x' of undefined
at adaptor (/usr/local/lib/node_modules/app-inspector/lib/ios.js:27:9)
at Object.exports.dumpXMLAndScreenShot (/usr/local/lib/node_modules/app-inspector/lib/ios.js:60:22)
at next (native)
at onFulfilled (/usr/local/lib/node_modules/app-inspector/node_modules/co/index.js:65:19)
at process._tickCallback (internal/process/next_tick.js:103:7)
真机问题先参考 https://testerhome.com/topics/5953
app inspector version / 版本号:1.2.20
os version / 系统:MacOS 10.11.6
device information / 设备版本: iPhone6模拟器
terminal log / 终端输出信息:
TypeError: Cannot read property 'x' of undefined
at adaptor (/usr/local/lib/node_modules/app-inspector/lib/ios.js:27:9)
at Object.exports.dumpXMLAndScreenShot (/usr/local/lib/node_modules/app-inspector/lib/ios.js:60:22)
at next (native)
at onFulfilled (/usr/local/lib/node_modules/app-inspector/node_modules/co/index.js:65:19)
at process._tickCallback (internal/process/next_tick.js:103:7)
try
app-inspector -u xxxx --verbose
for more log detail.
你好,
我使用uiautomatorviewer拉取了控件树,但是控件的坐标和截图不能对应起来,所以想请教一下macaca是怎么做的,感谢!
<div>
<div>a</div>
<div>b</div>
<span>c</span>
<span>d</span>
</div>
c 的下标应该是 1
iphone 7
>> xctest-client.js:156:14 [master] pid:37249 2016-10-23 14:46:31.026 xcodebuild[37253:18005292] Error Domain=IDETestOperationsObserverErrorDomain Code=3 "Test operation was canceled. If you believe this error represents a bug, please attach the log file at /Users/yang/Library/Developer/Xcode/DerivedData/WebDriverAgent-botdeujzwvpbpigapdjbmzovyvyt/Logs/Test/28C108D9-F0AA-44C8-99F6-47733BD345B8/Session-WebDriverAgentRunner-2016-10-23_144626-D8WSX5.log" UserInfo={NSLocalizedDescription=Test operation was canceled. If you believe this error represents a bug, please attach the log file at /Users/yang/Library/Developer/Xcode/DerivedData/WebDriverAgent-botdeujzwvpbpigapdjbmzovyvyt/Logs/Test/28C108D9-F0AA-44C8-99F6-47733BD345B8/Session-WebDriverAgentRunner-2016-10-23_144626-D8WSX5.log}
>> xctest-client.js:156:14 [master] pid:37249
Testing failed:
>> xctest-client.js:156:14 [master] pid:37249 Signing for "WebDriverAgentRunner" requires a development team. Select a development team in the project editor.
Code signing is required for product type 'UI Testing Bundle' in SDK 'iOS 10.0'
** TEST FAILED **
The following build commands failed:
Check dependencies
(1 failure)
try
app-inspector -u xxxx --verbose
for more log detail.
您好,安装的时候报没有配置java_home,但是doctor检测没有问题,全局环境变量也配置,但是还是一直报这个错误
JAVA version is 1.8.0_40
JAVA_HOME is set to /Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/Home
ANDROID_HOME is set to /Users/zhangshengjie/Downloads/android-sdk-macosx/
Platforms is set to /Users/zhangshengjie/Downloads/android-sdk-macosx/platforms/android-24
os version / 系统:
os 10.11.6
terminal log / 终端输出信息:
[email protected] install /usr/local/lib/node_modules/app-inspector/node_modules/uiautomator-client
node ./scripts/build.js
/usr/local/lib/node_modules/app-inspector/node_modules/uiautomator-client/scripts/build.js:177
throw e;
^
Error: $JAVA_HOME is not set
at /usr/local/lib/node_modules/app-inspector/node_modules/java-home/lib/java-home.js:89:25
try
app-inspector -u xxxx --verbose
for more log detail.
RT
app inspector version / 版本号:1.2.15
os version / 系统:10.12.1
device information / 设备版本:9.3(模拟器)
terminal log / 终端输出信息:
The source may be wrong, please report with below message at:
https://github.com/macacajs/app-inspector/issues/new
****** xctest source start *******
{"value":{"tree":{"bounds":"{{0, 0}, {0, 0}}","rawIdentifier":null,"isVisible":"0","value":null,"label":null,"type":"Any","name":null,"isEnabled":"0"}},"sessionId":null,"status":0}
'****** xctest source end *******
TypeError: Cannot read property 'origin' of undefined
at adaptor (/usr/local/lib/node_modules/app-inspector/lib/ios.js:27:9)
at Object.exports.dumpXMLAndScreenShot (/usr/local/lib/node_modules/app-inspector/lib/ios.js:60:22)
at next (native)
at onFulfilled (/usr/local/lib/node_modules/app-inspector/node_modules/co/index.js:65:19)
at process._tickCallback (internal/process/next_tick.js:103:7)
启动 app-inspector 正常,检查页面也正常,但启动到需要测试的客户端的登录页(启动客户端后自动进入的页面),就发生报错
10.11.6 (15G31)
>> inspector start at: http://192.168.57.73:5678
>> WebDriverAgent version: 1.0.25
<-- GET /
--> GET / 200
<-- GET /apple-touch-icon-precomposed.png
--> GET /apple-touch-icon-precomposed.png 404
<-- GET /apple-touch-icon.png
--> GET /apple-touch-icon.png 404
<-- GET /
--> GET / 200
<-- GET /apple-touch-icon-precomposed.png
--> GET /apple-touch-icon-precomposed.png 404
<-- GET /apple-touch-icon.png
--> GET /apple-touch-icon.png 404
<-- GET /
--> GET / 200
<-- GET /apple-touch-icon-precomposed.png
--> GET /apple-touch-icon-precomposed.png 404
<-- GET /apple-touch-icon.png
--> GET /apple-touch-icon.png 404
<-- GET /
--> GET / 200
<-- GET /apple-touch-icon-precomposed.png
--> GET /apple-touch-icon-precomposed.png 404
<-- GET /apple-touch-icon.png
--> GET /apple-touch-icon.png 404
<-- GET /
--> GET / 200
<-- GET /
--> GET / 200
<-- GET /
--> GET / 200
<-- GET /
--> GET / 200
>> iOS device started: 5a33f17da89bc695c224bb55f23de9a5bc692733
<-- GET /
TypeError: Cannot read property 'bounds' of undefined
at adaptor (/usr/local/lib/node_modules/app-inspector/lib/ios.js:12:22)
at Object.exports.dumpXMLAndScreenShot (/usr/local/lib/node_modules/app-inspector/lib/ios.js:49:48)
at next (native)
at onFulfilled (/usr/local/lib/node_modules/app-inspector/node_modules/co/index.js:65:19)
at process._tickCallback (node.js:369:9)
<-- GET /favicon.ico
--> GET /favicon.ico 404
try
app-inspector -u xxxx --verbose
for more log detail.
After the app-inspector starts correctly (using the command "app-inspector -u XXXX-XXXX-XXXX-XXXX") i can see the main screen but after going into an application in the simulator, i try to refresh the app-inspector server but it times out. Any thoughts on this?
app是hybrid,在下面这个界面的时候,app-inspector 报Internal Server Error,通过adb进入设备的
/data/local/tmp/local/tmp 目录下 没有生成 macaca-dump.xml,在本机...\[email protected]目录下 也为空 ,弹出的密码输入控件是 popupwindow ,下面是H5页面。
uiautomatorviewer也同样不能识别这个页面。
Dump Android XML success, save to C:\Users\Yun\AppData\Roaming\npm\node_modul
es.app-inspector_npminstall\[email protected]\android.js
on
TypeError: Cannot read property 'node' of undefined
at Object.exports.dumpXMLAndScreenShot (C:\Users\Yun\AppData\Roaming\npm\n
ode_modules.app-inspector_npminstall\node_modules.1.2.18@app-inspector\lib\and
roid.js:55:31)
at next (native)
at onFulfilled (C:\Users\Yun\AppData\Roaming\npm\node_modules.app-inspect
or_npminstall\node_modules.4.6.0@co\index.js:65:19)
at process._tickCallback (internal/process/next_tick.js:103:7)
`
Are you thinking to support hybrid app?
I review the code, maybe I can make some enhancements and share a working example with you for android.
However, uiautomator is not sufficent, I try to integrate selendroid or appium server with app-inspector.
本来就没有这种刷新的机制吗
>> request.js:23:12 [master] pid:61724 get remote update info failed.
>> server.js:16:12 [master] pid:61724 server start with config:
{ port: 5678,
verbose: true,
udid: '00e630def672da63ed0bae762c3d78aebb67ea8d',
ip: '30.28.178.85',
host: 'dengweideMacBook-Pro.local',
loaded_time: '2016-10-24 11:49:49' }
>> app-inspector.js:42:10 [master] pid:61724 server start at: http://30.28.178.85:5678
>> xctest-client.js:43:14 [master] pid:61724 project path: /usr/local/lib/node_modules/app-inspector/node_modules/webdriveragent/WebDriverAgent/WebDriverAgent.xcodeproj
>> xctest-client.js:183:12 [master] pid:61724 xcode version: 8.0
>> WebDriverAgent version: 1.0.28
>> xctest-client.js:156:14 [master] pid:61724 2016-10-24 11:49:51.180 xcodebuild[61730:559829] WARNING: Failed to load plugin at path: "/Users/dengwei/Library/Application Support/Developer/Shared/Xcode/Plug-ins/AliXcodePlugin.xcplugin", skipping. Error: Error Domain=NSCocoaErrorDomain Code=3587 "dlopen_preflight(/Users/dengwei/Library/Application Support/Developer/Shared/Xcode/Plug-ins/AliXcodePlugin.xcplugin/Contents/MacOS/AliXcodePlugin): no suitable image found. Did find:
/Users/dengwei/Library/Application Support/Developer/Shared/Xcode/Plug-ins/AliXcodePlugin.xcplugin/Contents/MacOS/AliXcodePlugin: mmap() error 1 at address=0x1108C7000, size=0x00080000 segment=__TEXT in Segment::map() mapping /Users/dengwei/Library/Application Support/Developer/Shared/Xcode/Plug-ins/AliXcodePlugin.xcplugin/Contents/MacOS/AliXcodePlugin" UserInfo={NSLocalizedFailureReason=The bundle is damaged or missing necessary resources., NSLocalizedRecoverySuggestion=Try reinstalling the bundle., NSFilePath=/Users/dengwei/Library/Application Support/Developer/Shared/Xcode/Plug-ins/AliXcodePlugin.xcplugin/Contents/MacOS/AliXcodePlugin, NSDebugDescription=dlopen_preflight(/Users/dengwei/Library/Application Support/Developer/Shared/Xcode/Plug-ins/AliXcodePlugin.xcplugin/Contents/MacOS/AliXcodePlugin): no suitable image found. Did find:
/Users/dengwei/Library/Application Support/Developer/Shared/Xcode/Plug-ins/AliXcodePlugin.xcplugin/Contents/MacOS/AliXcodePlugin: mmap() error 1 at address=0x1108C7000, size=0x00080000 segment=__TEXT in Segment::map() mapping /Users/dengwei/Library/Application Support/Developer/Shared/Xcode/Plug-ins/AliXcodePlugin.xcplugin/Contents/MacOS/AliXcodePlugin, NSBundlePath=/Users/dengwei/Library/Application Support/Developer/Shared/Xcode/Plug-ins/AliXcodePlugin.xcplugin, NSLocalizedDescription=The bundle “AliXcodePlugin” couldn’t be loaded because it is damaged or missing necessary resources.}
>> xctest-client.js:123:16 [master] pid:61724 ERROR: Could not start service com.apple.syslog_relay.
Could not start logger for udid 00e630def672da63ed0bae762c3d78aebb67ea8d
>> xctest-client.js:156:14 [master] pid:61724 2016-10-24 11:49:56.701 xcodebuild[61730:559839] IDETestOperationsObserverDebug: Writing diagnostic log for test session to:
/Users/dengwei/Library/Developer/Xcode/DerivedData/WebDriverAgent-ceakatlydgitcjebccsbdhchgrpn/Logs/Test/42FB3F0A-A1FA-4FDC-A75B-A900CC525F33/Session-WebDriverAgentRunner-2016-10-24_114956-ZK47wn.log
>> xctest-client.js:156:14 [master] pid:61724 2016-10-24 11:49:56.704 xcodebuild[61730:559829] [MT] IDETestOperationsObserverDebug: (30BE41DF-D725-466E-B0DF-F44932B29E45) Beginning test session WebDriverAgentRunner-30BE41DF-D725-466E-B0DF-F44932B29E45 at 2016-10-24 11:49:56.698 with Xcode 8A218a on target <DVTiOSDevice: 0x7f9993fc4000> {
deviceSerialNumber: C6KR8S6QGRY8
identifier: 00e630def672da63ed0bae762c3d78aebb67ea8d
deviceClass: iPhone
deviceName: iPhone6s-dengwei
deviceIdentifier: 00e630def672da63ed0bae762c3d78aebb67ea8d
productVersion: 10.0.2
buildVersion: 14A456
deviceSoftwareVersion: 10.0.2 (14A456)
deviceArchitecture: arm64
deviceTotalCapacity: 12094521344
deviceAvailableCapacity: 7555682304
deviceIsTransient: NO
ignored: NO
deviceIsBusy: NO
deviceIsActivated: YES
deviceActivationState: Activated
deviceType: <DVTDeviceType:0x7f9993ce27e0 Xcode.DeviceType.iPhone>
supportedDeviceFamilies: (
1
)
applications: (null)
provisioningProfiles: (null)
activityProgress: -2
activityTitle:
hasInternalSupport: NO
isSupportedOS: YES
developerDiskMountError: (null)
(null)
} (10.0.2 (14A456))
>> xctest-client.js:156:14 [master] pid:61724 writeDictToFile:1278 ==== Successfully wrote Manifest cache to /var/folders/ny/qrj_xq3d1px8s3k48rmqwy6h0000gn/C/com.apple.DeveloperTools/All/Xcode/EmbeddedAppDeltas/ae3c081b1eb00e2bba40fb88fb178f84/00e630def672da63ed0bae762c3d78aebb67ea8d/ManifestCache.plist
>> xctest-client.js:156:14 [master] pid:61724 2016-10-24 11:50:13.282 xcodebuild[61730:559829] Error Domain=IDETestOperationsObserverErrorDomain Code=5 "Early unexpected exit, operation never finished bootstrapping - no restart will be attempted" UserInfo={NSLocalizedDescription=Early unexpected exit, operation never finished bootstrapping - no restart will be attempted}
>> xctest-client.js:156:14 [master] pid:61724
Testing failed:
>> xctest-client.js:156:14 [master] pid:61724 Test target WebDriverAgentRunner encountered an error (Early unexpected exit, operation never finished bootstrapping - no restart will be attempted)
** TEST FAILED **
>> xctest-client.js:164:14 [master] pid:61724 xctest client exit with code: 65, signal: null
try
app-inspector -u xxxx --verbose
for more log detail.
真机问题先参考 https://testerhome.com/topics/5953
今天刚升级了最新版本app-inspector,升级完后发现无法在浏览器输出设备内容,显示的是空白
升级之前一切正常
使用Macaca Doctor命令检查,一切正常。
app inspector version / 版本号:
1.2.16
os version / 系统:
10.1
device information / 设备版本:
iPhone 6S 模拟器
terminal log / 终端输出信息:
>> xctest-client start with port: 8900
>> WebDriverAgent version: 1.0.38
>> iOS device started: E58B47A6-0281-49EA-A440-3E8DC3530061
>> inspector start at: http://172.30.9.111:5678
<-- GET /
--> GET / 200
<-- GET /dist/index.js
--> GET /dist/index.js 404
<-- GET /dist/index.js
--> GET /dist/index.js 404
try
app-inspector -u xxxx --verbose
for more log detail.
server.js:16:12 [master] pid:2056 server start with config:
{ port: 5678,
verbose: true,
udid: 'E58B47A6-0281-49EA-A440-3E8DC3530061',
ip: '172.30.9.111',
host: 'laoxingThierrydeMacBook-Pro.local',
loaded_time: '2016-12-08 16:21:09' }
app-inspector.js:42:10 [master] pid:2056 server start at: http://172.30.9.111:5678
xctest-client.js:56:14 [master] pid:2056 project path: /usr/local/lib/node_modules/app-inspector/node_modules/webdriveragent/WebDriverAgent/WebDriverAgent.xcodeproj
xctest-client start with port: 8901
xctest-client.js:233:14 [master] pid:2056 xcode version: 8.1
WebDriverAgent version: 1.0.38
xctest-client.js:170:14 [master] pid:2056 2016-12-08 16:21:10.005 xcodebuild[2060:45226] [MT] DVTPlugInManager: Required plug-in compatibility UUID DA4FDFD8-C509-4D8B-8B55-84A7B66AE701 for KSImageNamed.ideplugin (com.ksuther.KSImageNamed) not present
xctest-client.js:171:14 [master] pid:2056 please check project: /usr/local/lib/node_modules/app-inspector/node_modules/webdriveragent/WebDriverAgent/WebDriverAgent.xcodeproj
xctest-client.js:170:14 [master] pid:2056 2016-12-08 16:21:10.101 xcodebuild[2060:45226] [MT] PluginLoading: Required plug-in compatibility UUID DA4FDFD8-C509-4D8B-8B55-84A7B66AE701 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/ZLGotoSandbox.xcplugin' not present in DVTPlugInCompatibilityUUIDs
xctest-client.js:171:14 [master] pid:2056 please check project: /usr/local/lib/node_modules/app-inspector/node_modules/webdriveragent/WebDriverAgent/WebDriverAgent.xcodeproj
xctest-client.js:170:14 [master] pid:2056 2016-12-08 16:21:10.103 xcodebuild[2060:45226] [MT] PluginLoading: Required plug-in compatibility UUID DA4FDFD8-C509-4D8B-8B55-84A7B66AE701 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/VVDocumenter-Xcode.xcplugin' not present in DVTPlugInCompatibilityUUIDs
xctest-client.js:171:14 [master] pid:2056 please check project: /usr/local/lib/node_modules/app-inspector/node_modules/webdriveragent/WebDriverAgent/WebDriverAgent.xcodeproj
xctest-client.js:170:14 [master] pid:2056 2016-12-08 16:21:10.103 xcodebuild[2060:45226] [MT] PluginLoading: Required plug-in compatibility UUID DA4FDFD8-C509-4D8B-8B55-84A7B66AE701 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/KSImageNamed.xcplugin' not present in DVTPlugInCompatibilityUUIDs
xctest-client.js:171:14 [master] pid:2056 please check project: /usr/local/lib/node_modules/app-inspector/node_modules/webdriveragent/WebDriverAgent/WebDriverAgent.xcodeproj
xctest-client.js:170:14 [master] pid:2056 2016-12-08 16:21:10.105 xcodebuild[2060:45226] [MT] PluginLoading: Required plug-in compatibility UUID DA4FDFD8-C509-4D8B-8B55-84A7B66AE701 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/CocoaPods.xcplugin' not present in DVTPlugInCompatibilityUUIDs
xctest-client.js:171:14 [master] pid:2056 please check project: /usr/local/lib/node_modules/app-inspector/node_modules/webdriveragent/WebDriverAgent/WebDriverAgent.xcodeproj
xctest-client.js:170:14 [master] pid:2056 2016-12-08 16:21:10.106 xcodebuild[2060:45226] [MT] PluginLoading: Required plug-in compatibility UUID DA4FDFD8-C509-4D8B-8B55-84A7B66AE701 for plug-in at path '/Library/Application Support/Developer/Shared/Xcode/Plug-ins/Auto-Importer.xcplugin' not present in DVTPlugInCompatibilityUUIDs/Library/Application Support/Developer/Shared/Xcode/Plug-ins/Alcatraz.xcplugin' not present in DVTPlugInCompatibilityUUIDs
2016-12-08 16:21:10.107 xcodebuild[2060:45226] [MT] PluginLoading: Required plug-in compatibility UUID DA4FDFD8-C509-4D8B-8B55-84A7B66AE701 for plug-in at path '
xctest-client.js:171:14 [master] pid:2056 please check project: /usr/local/lib/node_modules/app-inspector/node_modules/webdriveragent/WebDriverAgent/WebDriverAgent.xcodeproj
xctest-client.js:170:14 [master] pid:2056 2016-12-08 16:21:10.647 xcodebuild[2060:45243] IDETestOperationsObserverDebug: Writing diagnostic log for test session to:
/Users/Thierry/Library/Developer/Xcode/DerivedData/WebDriverAgent-ceakatlydgitcjebccsbdhchgrpn/Logs/Test/0FBB60EE-9933-44E6-95B9-F199930080EA/Session-WebDriverAgentRunner-2016-12-08_162110-l9OL6W.log
2016-12-08 16:21:10.647 xcodebuild[2060:45226] [MT] IDETestOperationsObserverDebug: (8EDA6EB1-BCDF-4E4F-B188-AD00427EF5C4) Beginning test session WebDriverAgentRunner-8EDA6EB1-BCDF-4E4F-B188-AD00427EF5C4 at 2016-12-08 16:21:10.647 with Xcode 8B62 on target <DVTiPhoneSimulator: 0x7fa22d488880> {
SimDevice: SimDevice : iPhone 6s (E58B47A6-0281-49EA-A440-3E8DC3530061) : state={ Booted } deviceType={ SimDeviceType : com.apple.CoreSimulator.SimDeviceType.iPhone-6s } runtime={ SimRuntime : 10.1 (14B72) - com.apple.CoreSimulator.SimRuntime.iOS-10-1 }
} (10.1 (14B72))
xctest-client.js:171:14 [master] pid:2056 please check project: /usr/local/lib/node_modules/app-inspector/node_modules/webdriveragent/WebDriverAgent/WebDriverAgent.xcodeproj
proxy.js:56:14 [master] pid:2056 Proxy: /session:POST to http://172.30.9.111:8901/session:POST with body: {"desiredCapabilities":{}}
proxy.js:84:20 [master] pid:2056 Got response with status 200: {"value":"'bundleId' desired capability not provided","sessionId":null,"status":13}
iOS device started: E58B47A6-0281-49EA-A440-3E8DC3530061
inspector start at: http://172.30.9.111:5678
<-- GET /
ios.js:67:10 [master] pid:2056 Dump iOS XML success, save to /usr/local/lib/node_modules/app-inspector/.temp/ios.json
--> GET / 200
<-- GET /dist/index.js
--> GET /dist/index.js 404
<-- GET /dist/index.js
--> GET /dist/index.js 404
inspector start at: http://100.84.252.213:5678
<-- GET /
--> GET / 200
<-- GET /
--> GET / 200
<-- GET /
--> GET / 200
<-- GET /
--> GET / 200
proxy.js:58:18 [master] pid:33338 xctest client proxy error with: Error: connect ECONNREFUSED 100.84.230.241:8100
/usr/local/lib/node_modules/app-inspector/node_modules/xlogger/lib/xlogger.js:169
throw new Error(res);
^
Error: >> proxy.js:58:18 [master] pid:33338 xctest client proxy error with: Error: connect ECONNREFUSED 100.84.230.241:8100
at Logger.error (/usr/local/lib/node_modules/app-inspector/node_modules/xlogger/lib/xlogger.js:169:9)
at Request._callback (/usr/local/lib/node_modules/app-inspector/node_modules/xctest-client/lib/proxy.js:58:18)
at self.callback (/usr/local/lib/node_modules/app-inspector/node_modules/xctest-client/node_modules/request/request.js:199:22)
at emitOne (events.js:77:13)
at Request.emit (events.js:169:7)
at Request.onRequestError (/usr/local/lib/node_modules/app-inspector/node_modules/xctest-client/node_modules/request/request.js:821:8)
at emitOne (events.js:77:13)
at ClientRequest.emit (events.js:169:7)
at Socket.socketErrorListener (_http_client.js:256:9)
at emitOne (events.js:77:13)``
可以考虑cnzz
$ app-inspector -u emulator-5554 --verbose
server.js:16:12 [master] pid:5340 server start with config:
{ port: 5678,
verbose: true,
udid: 'emulator-5554',
ip: '172.16.30.46',
host: 'zhouzhonglindeMacBook-Pro.local',
loaded_time: '2016-10-11 15:10:21' }
app-inspector.js:42:10 [master] pid:5340 server start at: http://172.16.30.46:5678
Warning: This version of UI Automator is deprecated. New tests should be written using
UI Automator 2.0 which is available as part of the Android Testing Support Library.
See https://developer.android.com/training/testing/ui-testing/uiautomator-testing.html
for more details.
INSTRUMENTATION_STATUS: numtests=1
INSTRUMENTATION_STATUS: stream=
com.android.uiautomator.client.Initialize:
INSTRUMENTATION_STATUS: id=UiAutomatorTestRunner
INSTRUMENTATION_STATUS: test=testStartServer
INSTRUMENTATION_STATUS: class=com.android.uiautomator.client.Initialize
INSTRUMENTATION_STATUS: current=1
INSTRUMENTATION_STATUS_CODE: 1
uiautomator start socket server.
socket server ready
socket client ready
Android device started: emulator-5554
inspector start at: http://172.16.30.46:5678
<-- GET /
recive: {"cmd":"getSource","args":{}}
return: {"success":true,"data":{"status":0,"value":true}}
Error: Command failed: /Users/zhouzhonglin/android-sdks/platform-tools/adb -s emulator-5554 shell "cat /data/local/tmp/macaca-dump.xml"
/system/bin/sh: cat: /data/local/tmp/macaca-dump.xml: No such file or directory
at ChildProcess.exithandler (child_process.js:207:12)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:852:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5)
> try `app-inspector -u xxxx --verbose` for more log detail.
app inspector version / 版本号: 1.2.15
os version / 系统: Mac 10.11.6
device information / 设备版本: 模拟器iphone 6
terminal log / 终端输出信息:
>> server.js:16:12 [master] pid:989 server start with config:
{ port: 5678,
verbose: true,
udid: '4C745B60-A697-4914-8D1C-6E5FAC3490F0',
ip: '172.17.23.85',
host: 'zhanghuipingdeMacBook-Pro.local',
loaded_time: '2016-12-06 10:26:10' }
>> app-inspector.js:42:10 [master] pid:989 server start at: http://172.17.23.85:5678
>> xctest-client.js:56:14 [master] pid:989 project path: /usr/local/lib/node_modules/app-inspector/node_modules/webdriveragent/WebDriverAgent/WebDriverAgent.xcodeproj
>> xctest-client start with port: 8900
>> xctest-client.js:234:14 [master] pid:989 xcode version: 8.1
>> WebDriverAgent version: 1.0.38
>> xctest-client.js:99:16 [master] pid:989 tail: /Users/zhanghuiping/Library/Logs/CoreSimulator/4C745B60-A697-4914-8D1C-6E5FAC3490F0/system.log: No such file or directory
>> xctest-client.js:107:16 [master] pid:989 simulator log process exit with code: 1, signal: null
>> xctest-client.js:256:14 [master] pid:989 Fail to start xctest: undefined
>> xctest-client.js:268:14 [master] pid:989 killing deviceLogProc pid: 992
>> xctest-client.js:273:14 [master] pid:989 killing runnerProc pid: 993
>> app-inspector:66:44 [master] pid:989 undefined
try
app-inspector -u xxxx --verbose
for more log detail.
mac sirrea
jerry:Home/ $ sudo npm install app-inspector -g [0:19:31]
Password:
npm WARN deprecated [email protected]: use [cross-spawn](https://github.com/IndigoUnited/node-cross-spawn) or [cross-spawn-async](https://github.com/IndigoUnited/node-cross-spawn-async) instead.
npm WARN deprecated [email protected]: ReDoS vulnerability parsing Set-Cookie https://nodesecurity.io/advisories/130
/usr/local/bin/app-inspector -> /usr/local/lib/node_modules/app-inspector/bin/app-inspector
/usr/local/bin/inspector -> /usr/local/lib/node_modules/app-inspector/bin/app-inspector
> [email protected] install /usr/local/lib/node_modules/app-inspector/node_modules/uiautomator-client
> node ./scripts/build.js
/usr/local/lib/node_modules/app-inspector/node_modules/uiautomator-client/scripts/build.js:178
throw e;
^
Error: $JAVA_HOME is not set
at checkJavaHome.then.catch.then.then.catch.then.std (/usr/local/lib/node_modules/app-inspector/node_modules/java-home/lib/java-home.js:89:25)
at process._tickCallback (internal/process/next_tick.js:103:7)
npm WARN install:[email protected] [email protected] install: `node ./scripts/build.js`
npm WARN install:[email protected] Exit status 1
/usr/local/lib
└── [email protected]
try
macaca doctor
for more log detail.
jerry:node_modules/ $ macaca doctor [0:26:17]
macaca-doctor version: 1.0.21
Node.js checklist:
node env: /usr/local/bin/node
node version: v6.7.0
iOS checklist:
Xcode is installed at: /Applications/Xcode.app/Contents/Developer
Xcode Command Line Tools is ready, version: 2345.1.
ios_webkit_debug_proxy is installed at: /usr/local/bin/ios_webkit_debug_proxy
Android checklist:
JAVA version is 1.8.0_102
JAVA_HOME is set to /Library/Java/JavaVirtualMachines/jdk1.8.0_102.jdk/Contents/Home
ANDROID_HOME is set to /Users/jerry/Library/Android/sdk
Platforms is set to /Users/jerry/Library/Android/sdk/platforms/android-24
Android tools is set to /Users/jerry/Library/Android/sdk/tools/android
ADB tool is set to /Users/jerry/Library/Android/sdk/platform-tools/adb
Installed driver list:
ios: 1.0.38
jerry:node_modules/ $
app inspector version / 版本号: 1.2.6
os version / 系统:10.11.6
device information / 设备版本:iPhone 6 iOS9.3
terminal log / 终端输出信息:
clydeiMac:~ cly$ app-inspector -u E0B98126-B342-4EB3-BEAB-B7607024868
port: 5678 was occupied, changed port: 5682
inspector start at: http://192.168.3.70:5682
app-inspector:64:44 [master] pid:951 Error: Cannot find module 'uiautomator-client'
at Function.Module._resolveFilename (module.js:440:15)
at Function.Module._load (module.js:388:25)
at Module.require (module.js:468:17)
at require (internal/module.js:20:19)
at Object. (/usr/local/lib/node_modules/app-inspector/lib/android.js:8:21)
at Module._compile (module.js:541:32)
at Object.Module._extensions..js (module.js:550:10)
at Module.load (module.js:458:32)
at tryModuleLoad (module.js:417:12)
at Function.Module._load (module.js:409:3)
try
app-inspector -u xxxx --verbose
for more log detail.
连接真机的时候报错如下
--> GET / 200
<-- GET /jquery/dist/jquery.min.map
--> GET /jquery/dist/jquery.min.map 404
1.2.12
Mac OS 10.11.6
app-inspector -u 4c359fe69143fc3094b5e164c78702b9ef2a278d --verbose
>> request.js:23:12 [master] pid:9558 get remote update info failed.
>> port: 5678 was occupied, changed port: 5679
>> server.js:16:12 [master] pid:9558 server start with config:
{ port: 5679,
verbose: true,
udid: '4c359fe69143fc3094b5e164c78702b9ef2a278d',
ip: '172.16.21.3',
host: 'ldqmacair-2.local',
loaded_time: '2016-10-08 11:45:16' }
>> app-inspector.js:42:10 [master] pid:9558 server start at: http://172.16.21.3:5679
>> xctest-client.js:43:14 [master] pid:9558 project path: /usr/local/lib/node_modules/app-inspector/node_modules/webdriveragent/WebDriverAgent/WebDriverAgent.xcodeproj
>> xctest-client.js:183:12 [master] pid:9558 xcode version: 8.0
>> WebDriverAgent version: 1.0.28
>> xctest-client.js:123:16 [master] pid:9558 ERROR: Could not start service com.apple.syslog_relay.
Could not start logger for udid 4c359fe69143fc3094b5e164c78702b9ef2a278d
>> xctest-client.js:156:14 [master] pid:9558 2016-10-08 11:45:18.096 xcodebuild[9562:545138] IDETestOperationsObserverDebug: Writing diagnostic log for test session to:
/Users/lvduoqiang/Library/Developer/Xcode/DerivedData/WebDriverAgent-ceakatlydgitcjebccsbdhchgrpn/Logs/Test/6DB0F2F0-8D44-4789-992C-9135CC210F0F/Session-WebDriverAgentRunner-2016-10-08_114518-FCGgyr.log
>> xctest-client.js:156:14 [master] pid:9558 2016-10-08 11:45:18.096 xcodebuild[9562:545131] [MT] IDETestOperationsObserverDebug: (9DBA20AA-1B75-4885-B3F5-57CE5DC1DBF9) Beginning test session WebDriverAgentRunner-9DBA20AA-1B75-4885-B3F5-57CE5DC1DBF9 at 2016-10-08 11:45:18.095 with Xcode 8A218a on target <DVTiOSDevice: 0x7fb142df7b60> {
deviceSerialNumber: F2NNH9WPG5QT
identifier: 4c359fe69143fc3094b5e164c78702b9ef2a278d
deviceClass: iPhone
deviceName: iPhone
deviceIdentifier: 4c359fe69143fc3094b5e164c78702b9ef2a278d
productVersion: 10.0.2
buildVersion: 14A456
deviceSoftwareVersion: 10.0.2 (14A456)
deviceArchitecture: arm64
deviceTotalCapacity: 11853930496
deviceAvailableCapacity: 105127936
deviceIsTransient: NO
ignored: NO
deviceIsBusy: NO
deviceIsActivated: YES
deviceActivationState: Activated
deviceType: <DVTDeviceType:0x7fb142e843f0 Xcode.DeviceType.iPhone>
supportedDeviceFamilies: (
1
)
applications: (null)
provisioningProfiles: (null)
activityProgress: -2
activityTitle:
hasInternalSupport: NO
isSupportedOS: YES
developerDiskMountError: (null)
(null)
} (10.0.2 (14A456))
>> xctest-client.js:156:14 [master] pid:9558 2016-10-08 11:45:21.605 xcodebuild[9562:545131] Error Domain=IDETestOperationsObserverErrorDomain Code=3 "Test operation was canceled. If you believe this error represents a bug, please attach the log file at /Users/lvduoqiang/Library/Developer/Xcode/DerivedData/WebDriverAgent-ceakatlydgitcjebccsbdhchgrpn/Logs/Test/6DB0F2F0-8D44-4789-992C-9135CC210F0F/Session-WebDriverAgentRunner-2016-10-08_114518-FCGgyr.log" UserInfo={NSLocalizedDescription=Test operation was canceled. If you believe this error represents a bug, please attach the log file at /Users/lvduoqiang/Library/Developer/Xcode/DerivedData/WebDriverAgent-ceakatlydgitcjebccsbdhchgrpn/Logs/Test/6DB0F2F0-8D44-4789-992C-9135CC210F0F/Session-WebDriverAgentRunner-2016-10-08_114518-FCGgyr.log}
>> xctest-client.js:156:14 [master] pid:9558
Testing failed:
>> xctest-client.js:156:14 [master] pid:9558 Signing for "WebDriverAgentRunner" requires a development team. Select a development team in the project editor.
Code signing is required for product type 'UI Testing Bundle' in SDK 'iOS 10.0'
** TEST FAILED **
The following build commands failed:
Check dependencies
(1 failure)
>> xctest-client.js:164:14 [master] pid:9558 xctest client exit with code: 65, signal: null
mac 10.11.4 , Android , Nexus 6 .
Following log:
$ app-inspector -u ZY222Z7BMV --verbose [15:38:23]
server.js:28:12 [master] pid:62991 server start with config:
{ port: 5678,
verbose: true,
udid: 'ZY222Z7BMV',
ip: '10.0.92.226',
host: 'appledeMacBook-Pro.local',
loaded_time: '2016-08-08 15:38:38' }
inspector start at: http://10.0.92.226:5678
<-- GET /
--> GET / 200
<-- GET /
--> GET / 200
真机问题先参考 https://testerhome.com/topics/5953
app inspector version / 版本号:
1.2.18
WebDriverAgent version: 1.0.41
os version / 系统:
9.3
device information / 设备版本:
iphone 6 模拟器
terminal log / 终端输出信息:
****** xctest source start *******
{"value":{"tree":{"bounds":"{{0, 0}, {0, 0}}","rawIdentifier":null,"isVisible":"0","value":null,"label":null,"type":"Any","name":null,"isEnabled":"0"}},"sessionId":null,"status":0}
TypeError: Cannot read property 'x' of undefined
at adaptor (/usr/local/lib/node_modules/app-inspector/lib/ios.js:27:9)
at Object.exports.dumpXMLAndScreenShot (/usr/local/lib/node_modules/app-inspector/lib/ios.js:60:22)
at exports.dumpXMLAndScreenShot.next ()
at onFulfilled (/usr/local/lib/node_modules/app-inspector/node_modules/.4.6.0@co/index.js:65:19)
at process._tickCallback (internal/process/next_tick.js:103:7)
try
app-inspector -u xxxx --verbose
for more log detail.
1.想了解一下生成xpath的原理
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.