@sandman 你好,我现在尝试使用 python highcharts 想把获取的 cpu 画出折线图,发现 pandas_highcharts 生成的图表路径不知道怎么设置,不知道能否指导一下。QQ 872489864
@lihuazhang、@seveniruby、@monkey 已经增加上下文描述了
已经在开头增加上下文
问题解决了嘛?我也遇到 ios simulator 滑动的问题
我也特别纠结这个问题,楼主有解决方案了吗
#5 楼 @seveniruby 你好,@lihuazhang说您对 gatling 有深入研究,能指导一下,怎么用 gatling 写接口测试的脚本呢?
#6 楼 @lihuazhang
大神,您好,看到你提到 gatling,我最近在看这个工具,很希望你能指导一下,就是用 gatling 写接口测试的脚本的时候,该怎么写呢?如果方便的话,可以加我一下扣扣 872489864,谢谢。
nfo: [debug] Pushing command to appium work queue: "au.getElement('8').setValueByType('滨江大道800号明艳烟酒专卖店')"
info: [debug] Sending command to instruments: au.getElement('8').setValueByType('滨江大道800号明艳烟酒专卖店')
info: [debug] [INST] 2015-07-15 07:58:54 +0000 Debug: Running system command #60: /Users/diaojunxian/Desktop/Appium.app/Contents/Resources/node/bin/node /Users/diaojunxian/Desktop/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-uiauto/bin/command-proxy-client.js /tmp/instruments_sock 2,{"status":0,"value":{"ELEMENT":"8"}}...
info: [debug] [INST] 2015-07-15 07:58:55 +0000 Debug: Got new command 60 from instruments: au.getElement('8').setValueByType('滨江大道800号明艳烟酒专卖店')
info: [debug] [INST] 2015-07-15 07:58:55 +0000 Debug: evaluating au.getElement('8').setValueByType('滨江大道800号明艳烟酒专卖店')
info: [debug] [INST] 2015-07-15 07:58:55 +0000 Debug: No keyboard found. Tapping to make visible.
info: [debug] [INST] 2015-07-15 07:58:55 +0000 Debug: target.frontMostApp().elements()[0].elements()[15].tap()
info: [debug] [INST] 2015-07-15 07:58:55 +0000 Debug: Still no keyboard found. Tapping again to make visible.
info: [debug] [INST] 2015-07-15 07:58:55 +0000 Debug: target.frontMostApp().elements()[0].elements()[15].tap()
info: [debug] [INST] 2015-07-15 07:58:56 +0000 Debug: target.frontMostApp().elements()[0].elements()[15].tap()
info: [debug] [INST] 2015-07-15 07:58:57 +0000 Debug: evaluation finished
info: [debug] [INST] 2015-07-15 07:58:57 +0000 Debug: responding with:
info: [debug] [INST] 2015-07-15 07:58:57 +0000 Debug: Running system command #61: /Users/diaojunxian/Desktop/Appium.app/Contents/Resources/node/bin/node /Users/diaojunxian/Desktop/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-uiauto/bin/command-proxy-client.js /tmp/instruments_sock 2,{"status":0,"value":""}...
info: [debug] Socket data received (25 bytes)
info: [debug] Socket data being routed.
info: [debug] Got result from instruments: {"status":0,"value":""}
info: [debug] Responding to client with success: {"status":0,"value":"","sessionId":"530d5c1d-398f-48f5-a0df-6dc6b8b49bf4"}
info: <-- POST /wd/hub/session/530d5c1d-398f-48f5-a0df-6dc6b8b49bf4/element/8/value 200 2477.390 ms - 74 {"status":0,"value":"","sessionId":"530d5c1d-398f-48f5-a0df-6dc6b8b49bf4"}
info: --> DELETE /wd/hub/session/530d5c1d-398f-48f5-a0df-6dc6b8b49bf4 {}
info: Shutting down appium session
info: [debug] Stopping ios
info: [debug] Destroying instruments client socket.
info: [debug] Closing socket server.
info: [debug] Instruments socket server was closed
info: [debug] Sending sigterm to instruments
info: [debug] [INST] 2015-07-15 07:59:02 +0000 Stopped: Script was stopped by the user
info: [debug] [INST STDERR] 2015-07-15 15:59:02.474 instruments[2038:75510] Attempting to set event horizon when core is not engaged, request ignored
info: [debug] [INST] Instruments Trace Complete (Duration : 155.390289s; Output : /tmp/appium-instruments/instrumentscli0.trace)
info: [debug] [INSTSERVER] Instruments exited with code 0
info: [debug] Cleaning up after instruments exit
info: [debug] Stopping iOS log capture
info: [debug] Reset not set, not ending sim or cleaning up app state
info: [debug] Cleaning up appium session
info: [debug] Responding to client with success: {"status":0,"value":null,"sessionId":"530d5c1d-398f-48f5-a0df-6dc6b8b49bf4"}```
#6 楼 @chenhengjie123
那应该正确的语法是什么呢?
#1 楼 @eurekasaber
nfo: [debug] Pushing command to appium work queue: "au.getElement('8').setValueByType('滨江大道 800 号明艳烟酒专卖店')"
info: [debug] Sending command to instruments: au.getElement('8').setValueByType('滨江大道 800 号明艳烟酒专卖店')
info: [debug] [INST] 2015-07-15 07:58:54 +0000 Debug: Running system command #60: /Users/diaojunxian/Desktop/Appium.app/Contents/Resources/node/bin/node /Users/diaojunxian/Desktop/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-uiauto/bin/command-proxy-client.js /tmp/instruments_sock 2,{"status":0,"value":{"ELEMENT":"8"}}...
info: [debug] [INST] 2015-07-15 07:58:55 +0000 Debug: Got new command 60 from instruments: au.getElement('8').setValueByType('滨江大道 800 号明艳烟酒专卖店')
info: [debug] [INST] 2015-07-15 07:58:55 +0000 Debug: evaluating au.getElement('8').setValueByType('滨江大道 800 号明艳烟酒专卖店')
info: [debug] [INST] 2015-07-15 07:58:55 +0000 Debug: No keyboard found. Tapping to make visible.
info: [debug] [INST] 2015-07-15 07:58:55 +0000 Debug: target.frontMostApp().elements()[0].elements()[15].tap()
info: [debug] [INST] 2015-07-15 07:58:55 +0000 Debug: Still no keyboard found. Tapping again to make visible.
info: [debug] [INST] 2015-07-15 07:58:55 +0000 Debug: target.frontMostApp().elements()[0].elements()[15].tap()
info: [debug] [INST] 2015-07-15 07:58:56 +0000 Debug: target.frontMostApp().elements()[0].elements()[15].tap()
info: [debug] [INST] 2015-07-15 07:58:57 +0000 Debug: evaluation finished
info: [debug] [INST] 2015-07-15 07:58:57 +0000 Debug: responding with:
info: [debug] [INST] 2015-07-15 07:58:57 +0000 Debug: Running system command #61: /Users/diaojunxian/Desktop/Appium.app/Contents/Resources/node/bin/node /Users/diaojunxian/Desktop/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-uiauto/bin/command-proxy-client.js /tmp/instruments_sock 2,{"status":0,"value":""}...
info: [debug] Socket data received (25 bytes)
info: [debug] Socket data being routed.
info: [debug] Got result from instruments: {"status":0,"value":""}
info: [debug] Responding to client with success: {"status":0,"value":"","sessionId":"530d5c1d-398f-48f5-a0df-6dc6b8b49bf4"}
info: <-- POST /wd/hub/session/530d5c1d-398f-48f5-a0df-6dc6b8b49bf4/element/8/value 200 2477.390 ms - 74 {"status":0,"value":"","sessionId":"530d5c1d-398f-48f5-a0df-6dc6b8b49bf4"}
info: --> DELETE /wd/hub/session/530d5c1d-398f-48f5-a0df-6dc6b8b49bf4 {}
info: Shutting down appium session
info: [debug] Stopping ios
info: [debug] Destroying instruments client socket.
info: [debug] Closing socket server.
info: [debug] Instruments socket server was closed
info: [debug] Sending sigterm to instruments
info: [debug] [INST] 2015-07-15 07:59:02 +0000 Stopped: Script was stopped by the user
info: [debug] [INST STDERR] 2015-07-15 15:59:02.474 instruments[2038:75510] Attempting to set event horizon when core is not engaged, request ignored
info: [debug] [INST] Instruments Trace Complete (Duration : 155.390289s; Output : /tmp/appium-instruments/instrumentscli0.trace)
info: [debug] [INSTSERVER] Instruments exited with code 0
info: [debug] Cleaning up after instruments exit
info: [debug] Stopping iOS log capture
info: [debug] Reset not set, not ending sim or cleaning up app state
info: [debug] Cleaning up appium session
info: [debug] Responding to client with success: {"status":0,"value":null,"sessionId":"530d5c1d-398f-48f5-a0df-6dc6b8b49bf4"}
#9 楼 @chenhengjie123
已经标了呀,就是 楼上的提供的方法啊
#7 楼 @eurekasaber 好像不好加,我在图片的首位置加了,已解决,不明显好像。
#3 楼 @eurekasaber
已经解决,谢谢,就是你提供的方法
#1 楼 @eurekasaber 大神 是这样的 你看我上一行也是用 send_keys 的 log 如下所示
info: [debug] Got result from instruments: {"status":0,"value":{"UIAApplication":{"@":{"name":"一起卖酒","label":"一起卖酒","value":null,"dom":null,"enabled":true,"valid":true,"visible":true,"hint":null,"path":"/0","x":0,"y":20,"width":320,"height":548},">":[{"UIAWindow":{"@":{"name":null,"label":null,"value":null,"dom":null,"enabled":true,"valid":t
info: [debug] Pushing command to appium work queue: "au.getElementByIndexPath('/0/0/10')"
info: [debug] Sending command to instruments: au.getElementByIndexPath('/0/0/10')
info: [debug] [INST] 2015-07-10 05:06:45 +0000 Debug: Got new command 9 from instruments: au.getElementByIndexPath('/0/0/10')
info: [debug] [INST] 2015-07-10 05:06:45 +0000 Debug: evaluating au.getElementByIndexPath('/0/0/10')
info: [debug] [INST] 2015-07-10 05:06:45 +0000 Debug: evaluation finished
info: [debug] [INST] 2015-07-10 05:06:45 +0000 Debug: responding with:
info: [debug] [INST] 2015-07-10 05:06:45 +0000 Debug: Running system command #10: /Users/diaojunxian/Desktop/Appium.app/Contents/Resources/node/bin/node /Users/diaojunxian/Desktop/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-uiauto/bin/command-proxy-client.js /tmp/instruments_sock 2,{"status":0,"value":{"ELEMENT":"2"}}...
info: [debug] Socket data received (38 bytes)
info: [debug] Socket data being routed.
info: [debug] Got result from instruments: {"status":0,"value":{"ELEMENT":"2"}}
info: [debug] Responding to client with success: {"status":0,"value":{"ELEMENT":"2"},"sessionId":"f98383a2-e5e1-4c6d-b490-f680530f7b9e"}
info: <-- POST /wd/hub/session/f98383a2-e5e1-4c6d-b490-f680530f7b9e/element 200 3262.723 ms - 87 {"status":0,"value":{"ELEMENT":"2"},"sessionId":"f98383a2-e5e1-4c6d-b490-f680530f7b9e"}
info: --> POST /wd/hub/session/f98383a2-e5e1-4c6d-b490-f680530f7b9e/element/2/value {"sessionId":"f98383a2-e5e1-4c6d-b490-f680530f7b9e","id":"2","value":["1","8","1","0","0","0","0","2","2","2","2"]}
info: [debug] Pushing command to appium work queue: "au.getElement('2').setValueByType('18100002222')"
info: [debug] Sending command to instruments: au.getElement('2').setValueByType('18100002222')
info: [debug] [INST] 2015-07-10 05:06:47 +0000 Debug: Got new command 10 from instruments: au.getElement('2').setValueByType('18100002222')
info: [debug] [INST] 2015-07-10 05:06:47 +0000 Debug: evaluating au.getElement('2').setValueByType('18100002222')
info: [debug] [INST] 2015-07-10 05:06:47 +0000 Debug: No keyboard found. Tapping to make visible.
info: [debug] [INST] 2015-07-10 05:06:47 +0000 Debug: target.frontMostApp().elements()[0].elements()[10].tap()
info: [debug] [INST] 2015-07-10 05:06:47 +0000 Debug: Still no keyboard found. Tapping again to make visible.
info: [debug] [INST] 2015-07-10 05:06:47 +0000 Debug: target.frontMostApp().elements()[0].elements()[10].tap()
info: [debug] [INST] 2015-07-10 05:06:47 +0000 Debug: target.frontMostApp().keyboard().typeString("1")
info: [debug] [INST] 2015-07-10 05:06:47 +0000 Debug: target.frontMostApp().keyboard() failed to tap '1'
info: [debug] [INST] 2015-07-10 05:06:47 +0000 Debug: No keyboard found. Tapping to make visible.
info: [debug] [INST] 2015-07-10 05:06:47 +0000 Debug: target.frontMostApp().elements()[0].elements()[10].tap()
info: [debug] [INST] 2015-07-10 05:06:48 +0000 Debug: Still no keyboard found. Tapping again to make visible.
info: [debug] [INST] 2015-07-10 05:06:48 +0000 Debug: target.frontMostApp().elements()[0].elements()[10].tap()
info: [debug] [INST] 2015-07-10 05:06:48 +0000 Debug: Error typing '1': VerboseError: target.frontMostApp().keyboard() failed to tap '1'
info: [debug] [INST] 2015-07-10 05:06:48 +0000 Debug: Retrying...
info: [debug] [INST] 2015-07-10 05:06:48 +0000 Debug: target.frontMostApp().keyboard().typeString("1")
info: [debug] [INST] 2015-07-10 05:06:48 +0000 Debug: target.frontMostApp().keyboard() failed to tap '1'
info: [debug] [INST] 2015-07-10 05:06:48 +0000 Error: VerboseError: target.frontMostApp().keyboard() failed to tap '1'
info: [debug] [INST] 2015-07-10 05:06:48 +0000 Error: Error during eval: typeString@[native code]
sendKeysToActiveElement@file:///Users/diaojunxian/Desktop/Appium.app/Contents/Resources/node_modules/appium/9DEB6A49-B012-4E5A-9476-8CC4EDBFE866/bootstrap-a860e8c2e3014ca8.js:1281:32
setValueByType@file:///Users/diaojunxian/Desktop/Appium.app/Contents/Resources/node_modules/appium/9DEB6A49-B012-4E5A-9476-8CC4EDBFE866/bootstrap-a860e8c2e3014ca8.js:1986:38
eval code
eval@[native code]
startProcessing@file:///Users/diaojunxian/Desktop/Appium.app/Contents/Resources/node_modules/appium/9DEB6A49-B012-4E5A-9476-8CC4EDBFE866/bootstrap-a860e8c2e3014ca8.js:2702:30
bootstrap@file:///Users/diaojunxian/Desktop/Appium.app/Contents/Resources/node_modules/appium/9DEB6A49-B012-4E5A-9476-8CC4EDBFE866/bootstrap-a860e8c2e3014ca8.js:2770:31
global code@file:///Users/diaojunxian/Desktop/Appium.app/Contents/Resources/node_modules/appium/9DEB6A49-B012-4E5A-9476-8CC4EDBFE866/bootstrap-a860e8c2e3014ca8.js:2779:10
info: [debug] [INST] 2015-07-10 05:06:48 +0000 Debug: responding with:
info: [debug] [INST] 2015-07-10 05:06:48 +0000 Debug: Running system command #11: /Users/diaojunxian/Desktop/Appium.app/Contents/Resources/node/bin/node /Users/diaojunxian/Desktop/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-uiauto/bin/command-proxy-client.js /tmp/instruments_sock 2,{"status":17,"value":"target.frontMostApp().keyboard() failed to tap '1'"...
info: [debug] Socket data received (76 bytes)
info: [debug] Socket data being routed.
info: [debug] Got result from instruments: {"status":17,"value":"target.frontMostApp().keyboard() failed to tap '1'"}
info: [debug] Responding to client with error: {"status":17,"value":{"message":"An error occurred while executing user supplied JavaScript.","origValue":"target.frontMostApp().keyboard() failed to tap '1'"},"sessionId":"f98383a2-e5e1-4c6d-b490-f680530f7b9e"}
info: <-- POST /wd/hub/session/f98383a2-e5e1-4c6d-b490-f680530f7b9e/element/2/value 500 2825.270 ms - 211
info: --> DELETE /wd/hub/session/f98383a2-e5e1-4c6d-b490-f680530f7b9e {}
info: Shutting down appium session
info: [debug] Stopping ios
info: [debug] Destroying instruments client socket.
info: [debug] Closing socket server.
info: [debug] Instruments socket server was closed
info: [debug] Sending sigterm to instruments
info: [debug] [INST] 2015-07-10 05:06:48 +0000 Stopped: Script was stopped by the user
info: [debug] [INST STDERR] 2015-07-10 13:06:49.047 instruments[1917:62694] Attempting to set event horizon when core is not engaged, request ignored
info: [debug] [INST STDERR] 2015-07-10 13:06:49.048 instruments[1917:62694] Attempting to set event horizon when core is not engaged, request ignored
info: [debug] [INST] Instruments Trace Complete (Duration : 37.316639s; Output : /tmp/appium-instruments/instrumentscli0.trace)
info: [debug] [INSTSERVER] Instruments exited with code 0
info: [debug] Cleaning up after instruments exit
info: [debug] Stopping iOS log capture
info: [debug] Reset not set, not ending sim or cleaning up app state
info: [debug] Cleaning up appium session
info: [debug] Responding to client with success: {"status":0,"value":null,"sessionId":"f98383a2-e5e1-4c6d-b490-f680530f7b9e"}
info: <-- DELETE /wd/hub/session/f98383a2-e5e1-4c6d-b490-f680530f7b9e 200 1545.987 ms - 76 {"status":0,"value":null,"sessionId":"f98383a2-e5e1-4c6d-b490-f680530f7b9e"}
是不是应用名称错了
之前学过 python,现在用 python 加 appium 在做 app 测试,又重新看起来