Skip to content

Instantly share code, notes, and snippets.

@loveiset
loveiset / output.log
Created January 1, 2021 13:54
mockserver error message
matched expectation:
{
"id" : "83c93a4c-6b4f-432c-86d9-f3c0d57bdf66",
"priority" : 0,
"httpRequest" : {
"path" : "/topics"
},
"times" : {
"unlimited" : true
@loveiset
loveiset / server.log
Created August 15, 2019 10:02
server日志
[HTTP] --> GET /wd/hub/session/133b11a5-bad2-49df-a404-e29d7695684a/source
[HTTP] {}
[W3C (133b11a5)] Driver proxy active, passing request on via HTTP proxy
[debug] [WD Proxy] Matched '/wd/hub/session/133b11a5-bad2-49df-a404-e29d7695684a/source' to command name 'getPageSource'
[debug] [WD Proxy] Proxying [GET /wd/hub/session/133b11a5-bad2-49df-a404-e29d7695684a/source] to [GET http://localhost:24000/wd/hub/session/c0a086ca-3e2f-41f1-bcc3-0a83767ddab1/source] with body: {}
[debug] [WD Proxy] Got response with status 200: "{\"sessionId\":\"c0a086ca-3e2f-41f1-bcc3-0a83767ddab1\",\"status\":0,\"value\":\"<?xml version='1.0' encoding='UTF-8' standalone='yes' ?>\\r\\n<hierarchy index=\\\"0\\\" class=\\\"hierarchy\\\" rotation=\\\"0\\\" width=\\\"1080\\\" height=\\\"1920\\\">\\r\\n <android.widget.FrameLayout index=\\\"0\\\" package=\\\"com.smartisanos.filemanager\\\" class=\\\"android.widget.FrameLayout\\\" text=\\\"\\\" checkable=\\\"false\\\" checked=\\\"false\\\" clickable=\\\"false\\\" enabled=\\\"true\\\" foc
@loveiset
loveiset / PicConverText.py
Created August 29, 2018 03:27 — forked from evi1m0/PicConverText.py
12306 新版验证码识别脚本 (已失效)
#!/usr/bin/env python
# coding=utf8
# author=evi1m0
# website=linux.im
'''
12306 Captcha Picture:
author: Evi1m0@20150316
1. Download Captcha
2. Pic Conver Text
Last login: Fri Aug 3 15:56:02 on ttys000
crnmacprodeMac-Pro:~ crnmacpro$ appium -p 4724 --session-override
[Appium] Welcome to Appium v1.8.1
[Appium] Non-default server args:
[Appium] port: 4724
[Appium] sessionOverride: true
[Appium] Appium REST http interface listener started on 0.0.0.0:4724
[HTTP] --> POST /wd/hub/session
[HTTP] {"capabilities":{"alwaysMatch":{"platformName":"iOS"},"firstMatch":[{}]},"desiredCapabilities":{"deviceName":"iPhone","showXcodeLog":true,"udid":"9cfe372cb68244af20aabd33dc2f31adff63b27f","autoAcceptAlerts":true,"app":"/Users/crnmacpro/Downloads/multi-ios_V3.1.0_Build441_201808030932.ipa","updatedWDABundleId":"io.hrt.HrtTestWebDriverAgent","noReset":true,"startIWDP":true,"useNewWDA":true,"clearSystemFiles":true,"webkitResponseTimeout":90000,"wdaStartupRetryInterval":1000,"platformVersion":"11.2.1","fullReset":false,"platformName":"iOS","waitForQuiescence":false}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"deviceName":"iPhone","showXcodeLog":true,"udi
This file has been truncated, but you can view the full file.
=====================================================
60.0.3112.116 2.28
=====================================================
[debug] [W3C] Calling AppiumDriver.findElements() with args: ["-android uiautomator","new UiSelector().resourceId(\"com.crc.hrt:id/tv_dialog_text\").textContains(\"是否将当前地址切换\")","bc32fac4-0c35-4b6f-93c3-63bcc3136b4d"]
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator
[debug] [BaseDriver] Waiting up to 0 ms for condition
[debug] [JSONWP Proxy] Proxying [POST /elements] to [POST http://localhost:8201/wd/hub/session/394d439e-bafa-4213-813e-585a8357e450/elements] with body: {"strategy":"-android uiautomator","selector":"new UiSelector().resourceId(\"com.crc.hrt:id/tv_dialog_text\").textContains(\"是否将当前地址切换\")","context":"","multiple":true}
[debug] [JSONWP Proxy] Got response with status 200: {"sessionId":"394d439e-bafa-4213-813e-585a8357e450","status":0,"value":[]}
[debug] [W3C] Responding to client with driver.f
hrt:id/tv_dialog_text\").textContains(\"是否将当前地址切换\")","context":"","multiple":true}
[debug] [JSONWP Proxy] Got response with status 200: {"sessionId":"033547b8-e63a-4740-81f2-c6669ee729f8","status":0,"value":[]}
[debug] [W3C] Responding to client with driver.findElements() result: []
[HTTP] <-- POST /wd/hub/session/80e95516-f529-4e05-92fb-99067cfc635b/elements 200 1467 ms - 12
[HTTP]
[HTTP] --> POST /wd/hub/session/80e95516-f529-4e05-92fb-99067cfc635b/elements
[HTTP] {"using":"id","sessionId":"80e95516-f529-4e05-92fb-99067cfc635b","value":"com.crc.hrt:id/dialog_home_ad_img_close"}
[debug] [W3C] Calling AppiumDriver.findElements() with args: ["id","com.crc.hrt:id/dialog_home_ad_img_close","80e95516-f529-4e05-92fb-99067cfc635b"]
[debug] [BaseDriver] Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator
[debug] [BaseDriver] Waiting up to 0 ms for condition
[HTTP] --> POST /wd/hub/session/98ae2cec-b1cc-4c5a-ae62-c1e0c8992342/touch/perform
[HTTP] {"sessionId":"98ae2cec-b1cc-4c5a-ae62-c1e0c8992342","actions":[{"action":"tap","options":{"y":59,"x":164,"count":1,"element":"38ede002-3538-4869-b315-d47d4919db5a"}}]}
[debug] [W3C] Calling AppiumDriver.performTouch() with args: [[{"action":"tap","options":{"y":59,"x":164,"count":1,"element":"38ede002-3538-4869-b315-d47d4919db5a"}}],"98ae2cec-b1cc-4c5a-ae62-c1e0c8992342"]
[UiAutomator2] calling get location: 38ede002-3538-4869-b315-d47d4919db5a
[debug] [JSONWP Proxy] Proxying [GET /element/38ede002-3538-4869-b315-d47d4919db5a/location] to [GET http://localhost:8212/wd/hub/session/6f2441f2-1aae-4222-8631-886af3922564/element/38ede002-3538-4869-b315-d47d4919db5a/location] with body: {}
[debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"6f2441f2-1aae-4222-8631-886af3922564\",\"status\":0,\"value\":{\"x\":212,\"y\":1165}}"
[debug] [JSONWP Proxy] Proxying [POST /element/38ede002-3538-4869-b315-d47d4919db5a
C:\Users\hechangshu1 (hechangshu1@1.0.0)
λ cappium --session-override
[Appium] Welcome to Appium v1.8.2-beta
[Appium] Non-default server args:
[Appium] sessionOverride: true
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> POST /wd/hub/session
[HTTP] {"capabilities":{"alwaysMatch":{"appium:unicodeKeyboard":"True","appium:resetKeyboard":"True","appium:noReset":false,"appium:noSign":true,"appium:fullReset":false,"appium:automationName":"Uiautomator2","appium:app":"D:\\hcs\\Documents\\workspace\\app_auto_android\\lib\\appbase\\apps\\android_v280.apk","appium:deviceName":"1df270ff","appium:nativeWebScreenshot":true,"appium:platformVersion":"7.1.1","appium:chromedriverChromeMappingFile":"D:\\hcs\\Documents\\workspace\\app_auto_android\\lib\\appbase\\driver\\tools\\chromedriver\\chromedriver.json","appium:chromedriverExecutableDir":"D:\\hcs\\Documents\\workspace\\app_auto_android\\lib\\appbase\\driver\\tools\\chromedriver","platformName":"Android","appium:autoGrantPermissions":tru
C:\Users\hechangshu1 (hechangshu1@1.0.0)
λ cappium --session-override --chromedriver-executable D:\hcs\Downloads\chromedriver_win32\chromedriver.exe
[Appium] Welcome to Appium v1.8.2-beta
[Appium] Non-default server args:
[Appium] sessionOverride: true
[Appium] chromedriverExecutable: D:\hcs\Downloads\chromedriver_win32\chromedriver.exe
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> POST /wd/hub/session
[HTTP] {"capabilities":{"alwaysMatch":{"appium:unicodeKeyboard":"True","appium:resetKeyboard":"True","appium:autoGrantPermissions":true,"appium:fullReset":false,"appium:automationName":"Uiautomator2","appium:app":"D:\\hcs\\Documents\\workspace\\app_auto_android\\lib\\appbase\\apps\\android_v260.apk","appium:deviceName":"1df270ff","appium:recreateChromeDriverSessions":true,"appium:platformVersion":"7.1.1","appium:chromedriverChromeMappingFile":"D:\\hcs\\Documents\\workspace\\app_auto_android\\lib\\appbase\\driver\\tools\\chromedriver\\chromedriver.json","appium:chromedriv
C:\Users\hechangshu1 (hechangshu1@1.0.0)
λ cappium --session-override --chromedriver-executable D:\hcs\Downloads\chromedriver_win32\chromedriver.exe
[Appium] Welcome to Appium v1.8.1
[Appium] Non-default server args:
[Appium] sessionOverride: true
[Appium] chromedriverExecutable: D:\hcs\Downloads\chromedriver_win32\chromedriver.exe
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> POST /wd/hub/session
[HTTP] {"capabilities":{"alwaysMatch":{"appium:unicodeKeyboard":"True","appium:resetKeyboard":"True","appium:noReset":false,"appium:noSign":true,"appium:fullReset":false,"appium:automationName":"Uiautomator2","appium:app":"D:\\hcs\\Documents\\workspace\\app_auto_android\\lib\\appbase\\apps\\android_v260.apk","appium:deviceName":"1df270ff","appium:recreateChromeDriverSessions":true,"appium:platformVersion":"7.1.1","appium:chromedriverChromeMappingFile":"D:\\hcs\\Documents\\workspace\\app_auto_android\\lib\\appbase\\driver\\tools\\chromedriver\\chromedriver.json","appium:chrome