Appium啟動執行日志分析


【Appium】 Welcome to Appium v1.13.0
【Appium】 Non-default server args:
【Appium】 address: 127.0.0.1
【Appium】 Appium REST http interface listener started on 127.0.0.1:4723
【HTTP】 --> POST /wd/hub/session
【HTTP】 {"desiredCapabilities":{"appActivity":"com.lemon.lemonban.activity.WelcomeActivity","appPackage":"com.lemon.lemonban","platformName":"Android","deviceName":"emulator-5554"},"capabilities":{"alwaysMatch":{"appium:appActivity":"com.lemon.lemonban.activity.WelcomeActivity","appium:appPackage":"com.lemon.lemonban","appium:deviceName":"emulator-5554","platformName":"android"},"firstMatch":【{}】}}
【W3C】 Calling AppiumDriver.createSession() with args: 【{"appActivity":"com.lemon.lemonban.activity.WelcomeActivity","appPackage":"com.lemon.lemonban","platformName":"Android","deviceName":"emulator-5554"},null,{"alwaysMatch":{"appium:appActivity":"com.lemon.lemonban.activity.WelcomeActivity","appium:appPackage":"com.lemon.lemonban","appium:deviceName":"emulator-5554","platformName":"android"},"firstMatch":【{}】}】
【BaseDriver】 Event 'newSessionRequested' logged at 1573661559433 (00:12:39 GMT+0800 (中國標准時間))
【Appium】
【Appium】 ======================================================================
【Appium】 DEPRECATION WARNING:
【Appium】
【Appium】 The 'automationName' capability was not provided in the desired
【Appium】 capabilities for this Android session
【Appium】
【Appium】 Setting 'automationName=UiAutomator1' by default and using the
【Appium】 UiAutomator1 Driver
【Appium】
【Appium】 The next minor version of Appium (1.14.x) will set
【Appium】 'automationName=UiAutomator2' by default and use the UiAutomator2
【Appium】 Driver
【Appium】
【Appium】 The next major version of Appium (2.x) will **require** the
【Appium】 'automationName' capability to be set for all sessions on all
【Appium】 platforms
【Appium】
【Appium】 If you are happy with 'UiAutomator1' and do not wish to upgrade
【Appium】 Android drivers, please add 'automationName=UiAutomator1' to your
【Appium】 desired capabilities
【Appium】
【Appium】 For more information about drivers, please visit
【Appium】 http://appium.io/docs/en/about-appium/intro/ and explore the
【Appium】 'Drivers' menu
【Appium】
【Appium】 ======================================================================
【Appium】
// 創建會話
【Appium】 Setting automation to 'UiAutomator1'.
【Appium】 Appium v1.13.0 creating new AndroidDriver (v4.15.1) session
【Appium】 Capabilities:
【Appium】 platformName: android
【Appium】 appActivity: com.lemon.lemonban.activity.WelcomeActivity
【Appium】 appPackage: com.lemon.lemonban
【Appium】 deviceName: emulator-5554
【BaseDriver】 W3C capabilities {"alwaysMatch":{"platformNa... and MJSONWP desired capabilities {"appActivity":"com.lemon.l... were provided
【BaseDriver】 Creating session with W3C capabilities: {"alwaysMatch":{"platformNa...
【BaseDriver】 Session created with session id: 39bd61fd-8c1a-437d-8ab6-f7a46a8ab48c
// 使用 系統adb 連接設備
【ADB】 Using 'adb.exe' from 'C:\appium-tools\android-sdk-windows-appium\platform-tools\adb.exe'
// 檢測設備列表
【AndroidDriver】 Retrieving device list
// 嘗試發現一個已經連接的android設備
【ADB】 Trying to find a connected android device
// 開始連接設備
【ADB】 Getting connected devices...
// 1台設備已經鏈接
【ADB】 1 device(s) connected
// Android驅動使用emulator-5554 設備
【AndroidDriver】 Using device: emulator-5554
//
【ADB】 Using 'adb.exe' from 'C:\appium-tools\android-sdk-windows-appium\platform-tools\adb.exe'
// 設置device id
【ADB】 Setting device id to emulator-5554
// -P 指定adb連接端口 -s 指定設備 adb shell getprop ro.build.version.sdk 獲取 android的api版本,不同的安卓版本對應不同的API版本
【ADB】 Running 'C:\appium-tools\android-sdk-windows-appium\platform-tools\adb.exe -P 5037 -s emulator-5554 shell getprop ro.build.version.sdk'
// 輸出對應的api版本
【ADB】 Current device property 'ro.build.version.sdk': 22
【ADB】 Device API level: 22

【AndroidDriver】 App file was not listed, instead we're going to run com.lemon.lemonban directly on the device
// 檢測appPackage是否存在該設備
【AndroidDriver】 Checking whether package is present on the device
// shell pm list packages + packageName 列出對應的包名,有返回值則該app已經安裝,反之未安裝
【ADB】 Running 'C:\appium-tools\android-sdk-windows-appium\platform-tools\adb.exe -P 5037 -s emulator-5554 shell pm list packages com.lemon.lemonban'
// 通過Appium啟動的安卓驅動來開啟會話
【AndroidDriver】 Starting Android session
// 等待設備連接
【ADB】 Running 'C:\appium-tools\android-sdk-windows-appium\platform-tools\adb.exe -P 5037 -s emulator-5554 wait-for-device'
// ping 測試聯通型
【ADB】 Running 'C:\appium-tools\android-sdk-windows-appium\platform-tools\adb.exe -P 5037 -s emulator-5554 shell echo ping'
// 推送appium設置應用(io.appium.settings)到設備
【AndroidDriver】 Pushing settings apk to device...
// 獲取io.appium.settings安裝裝填
【ADB】 Getting install status fo狀態io.appium.settings
// 獲取io.appium.settings包信息
【ADB】 Running 'C:\appium-tools\android-sdk-windows-appium\platform-tools\adb.exe -P 5037 -s emulator-5554 shell dumpsys package io.appium.settings'
【ADB】 'io.appium.settings' is installed
【ADB】 Getting package info for 'io.appium.settings'
【ADB】 Running 'C:\appium-tools\android-sdk-windows-appium\platform-tools\adb.exe -P 5037 -s emulator-5554 shell dumpsys package io.appium.settings'
// 調用aapt應用
【ADB】 Using 'aapt.exe' from 'C:\appium-tools\android-sdk-windows-appium\build-tools\28.0.3\aapt.exe'
【ADB】 The version name of the installed 'io.appium.settings' is greater or equal to the application version name ('2.14.0' >= '2.14.0')
【ADB】 There is no need to install/upgrade 'C:\Program Files\Appium\resources\app\node_modules\appium\node_modules\io.appium.settings\apks\settings_apk-debug.apk'
【ADB】 Getting IDs of all 'io.appium.settings' processes
【ADB】 Running 'C:\appium-tools\android-sdk-windows-appium\platform-tools\adb.exe -P 5037 -s emulator-5554 shell 'pgrep --help; echo $?''
// 查找對應的進程信息
【ADB】 Running 'C:\appium-tools\android-sdk-windows-appium\platform-tools\adb.exe -P 5037 -s emulator-5554 shell pgrep \^appium\\.settings\$'
// 授權
【AndroidDriver】 Granting android.permission.SET_ANIMATION_SCALE, CHANGE_CONFIGURATION, ACCESS_FINE_LOCATION by pm grant
// 授權給appiumsettingspackage
【ADB】 Granting permissions 【"android.permission.SET_ANIMATION_SCALE","android.permission.CHANGE_CONFIGURATION","android.permission.ACCESS_FINE_LOCATION"】 to 'io.appium.settings'
【ADB】 Got the following command chunks to execute: 【【"pm","grant","io.appium.settings","android.permission.SET_ANIMATION_SCALE",";","pm","grant","io.appium.settings","android.permission.CHANGE_CONFIGURATION",";","pm","grant","io.appium.settings","android.permission.ACCESS_FINE_LOCATION",";"】】
// pm 包管理 授權
【ADB】 Running 'C:\appium-tools\android-sdk-windows-appium\platform-tools\adb.exe -P 5037 -s emulator-5554 shell pm grant io.appium.settings android.permission.SET_ANIMATION_SCALE \; pm grant io.appium.settings android.permission.CHANGE_CONFIGURATION \; pm grant io.appium.settings android.permission.ACCESS_FINE_LOCATION \;'
// 啟動appiumSettings包
【ADB】 Running 'C:\appium-tools\android-sdk-windows-appium\platform-tools\adb.exe -P 5037 -s emulator-5554 shell am start -W -n io.appium.settings/.Settings -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000'
【ADB】 Running 'C:\appium-tools\android-sdk-windows-appium\platform-tools\adb.exe -P 5037 -s emulator-5554 shell settings put secure mock_location 1'
【Logcat】 Starting logcat capture
【ADB】 Getting device platform version
// 獲取安卓系統的屬性版本
【ADB】 Running 'C:\appium-tools\android-sdk-windows-appium\platform-tools\adb.exe -P 5037 -s emulator-5554 shell getprop ro.build.version.release'
【ADB】 Current device property 'ro.build.version.release': 5.1.1
// 獲取屏幕分辨率
【ADB】 Running 'C:\appium-tools\android-sdk-windows-appium\platform-tools\adb.exe -P 5037 -s emulator-5554 shell wm size'
// 獲取手機型號
【ADB】 Running 'C:\appium-tools\android-sdk-windows-appium\platform-tools\adb.exe -P 5037 -s emulator-5554 shell getprop ro.product.model'
【ADB】 Current device property 'ro.product.model': vivo y51
// 獲取手機制造商
【ADB】 Running 'C:\appium-tools\android-sdk-windows-appium\platform-tools\adb.exe -P 5037 -s emulator-5554 shell getprop ro.product.manufacturer'
【ADB】 Current device property 'ro.product.manufacturer': vivo
【AndroidDriver】 No app sent in, not parsing package/activity
【AndroidDriver】 No app capability. Assuming it is already on the device
// 獲取測試應用的安裝狀態
【ADB】 Getting install status for com.lemon.lemonban
// 獲取測試包的信息
【ADB】 Running 'C:\appium-tools\android-sdk-windows-appium\platform-tools\adb.exe -P 5037 -s emulator-5554 shell dumpsys package com.lemon.lemonban'
【ADB】 'com.lemon.lemonban' is installed
// 強制停止應用
【ADB】 Running 'C:\appium-tools\android-sdk-windows-appium\platform-tools\adb.exe -P 5037 -s emulator-5554 shell am force-stop com.lemon.lemonban'
// 清楚用戶數據
【ADB】 Running 'C:\appium-tools\android-sdk-windows-appium\platform-tools\adb.exe -P 5037 -s emulator-5554 shell pm clear com.lemon.lemonban'
【AndroidDriver】 Performed fast reset on the installed 'com.lemon.lemonban' application (stop and clear)
// 檢測bootstrap斷開
【AndroidBootstrap】 Watching for bootstrap disconnect
// 系統端口轉發到設備的4724端口
【ADB】 Forwarding system: 4724 to device: 4724
// 轉發模擬器端口到本地pc的4724端口通過bootstrapt.jar進行監控
【ADB】 Running 'C:\appium-tools\android-sdk-windows-appium\platform-tools\adb.exe -P 5037 -s emulator-5554 forward tcp\:4724 tcp\:4724'
【UiAutomator】 Starting UiAutomator
【UiAutomator】 Moving to state 'starting'
【UiAutomator】 Parsing uiautomator jar
【UiAutomator】 Found jar name: 'AppiumBootstrap.jar'
【ADB】 Running 'C:\appium-tools\android-sdk-windows-appium\platform-tools\adb.exe -P 5037 -s emulator-5554 shell mkdir -p /data/local'
【ADB】 Running 'C:\appium-tools\android-sdk-windows-appium\platform-tools\adb.exe -P 5037 -s emulator-5554 push 'C:\\Program Files\\Appium\\resources\\app\\node_modules\\appium\\node_modules\\appium-android-driver\\bootstrap\\bin\\AppiumBootstrap.jar' /data/local/tmp/'
【ADB】 Attempting to kill all uiautomator processes
【ADB】 Getting IDs of all 'uiautomator' processes
// 檢測uiautomator進程是否在運行
【ADB】 Running 'C:\appium-tools\android-sdk-windows-appium\platform-tools\adb.exe -P 5037 -s emulator-5554 shell pgrep \^uiautomator\$'
【ADB】 No 'uiautomator' process has been found
【UiAutomator】 Starting UIAutomator
【ADB】 Creating ADB subprocess with args: 【"-P",5037,"-s","emulator-5554","shell","uiautomator","runtest","AppiumBootstrap.jar","-c","io.appium.android.bootstrap.Bootstrap","-e","pkg","com.lemon.lemonban","-e","disableAndroidWatchers",false,"-e","acceptSslCerts",false】
【UiAutomator】 Moving to state 'online'
【AndroidBootstrap】 Android bootstrap socket is now connected
// 查看Activity相關信息
//adb shell dumpsys activity
// 查看CPU相關信息
//adb shell dumpsys cpuinfo
// 查看電池使用信息
//adb shell dumpsys battery
//查看Window的相關信息,最后部分可以看到分辨率的信息
//adb shell dumpsys window
【ADB】 Running 'C:\appium-tools\android-sdk-windows-appium\platform-tools\adb.exe -P 5037 -s emulator-5554 shell dumpsys window'
【AndroidBootstrap】 【BOOTSTRAP LOG】 【debug】 Registered crash watchers.
【AndroidBootstrap】 【BOOTSTRAP LOG】 【debug】 Client connected
【AndroidDriver】 Screen already unlocked, doing nothing
//啟動app
【ADB】 Running 'C:\appium-tools\android-sdk-windows-appium\platform-tools\adb.exe -P 5037 -s emulator-5554 shell am start -W -n com.lemon.lemonban/com.lemon.lemonban.activity.WelcomeActivity -S'
【Appium】 New AndroidDriver session created successfully, session 39bd61fd-8c1a-437d-8ab6-f7a46a8ab48c added to master session list
【BaseDriver】 Event 'newSessionStarted' logged at 1573661567759 (00:12:47 GMT+0800 (中國標准時間))
【W3C (39bd61fd)】 Cached the protocol value 'W3C' for the new session 39bd61fd-8c1a-437d-8ab6-f7a46a8ab48c
【W3C (39bd61fd)】 Responding to client with driver.createSession() result: {"capabilities":{"platform":"LINUX","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"platformName":"android","appActivity":"com.lemon.lemonban.activity.WelcomeActivity","appPackage":"com.lemon.lemonban","deviceName":"emulator-5554"},"platformName":"android","appActivity":"com.lemon.lemonban.activity.WelcomeActivity","appPackage":"com.lemon.lemonban","deviceName":"emulator-5554","deviceUDID":"emulator-5554","platformVersion":"5.1.1","deviceScreenSize":"420x730","deviceModel":"vivo y51","deviceManufacturer":"vivo"}}
【HTTP】 <-- POST /wd/hub/session 200 8328 ms - 718
【HTTP】
【HTTP】 --> GET /wd/hub/session/39bd61fd-8c1a-437d-8ab6-f7a46a8ab48c
【HTTP】 {}
【W3C (39bd61fd)】 Calling AppiumDriver.getSession() with args: 【"39bd61fd-8c1a-437d-8ab6-f7a46a8ab48c"】
【W3C (39bd61fd)】 Responding to client with driver.getSession() result: {"platform":"LINUX","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"platformName":"android","appActivity":"com.lemon.lemonban.activity.WelcomeActivity","appPackage":"com.lemon.lemonban","deviceName":"emulator-5554"},"platformName":"android","appActivity":"com.lemon.lemonban.activity.WelcomeActivity","appPackage":"com.lemon.lemonban","deviceName":"emulator-5554","deviceUDID":"emulator-5554","platformVersion":"5.1.1","deviceScreenSize":"420x730","deviceModel":"vivo y51","deviceManufacturer":"vivo"}
【HTTP】 <-- GET /wd/hub/session/39bd61fd-8c1a-437d-8ab6-f7a46a8ab48c 200 15 ms - 650
【HTTP】
【HTTP】 --> GET /wd/hub/session/39bd61fd-8c1a-437d-8ab6-f7a46a8ab48c
【HTTP】 {}
【W3C (39bd61fd)】 Calling AppiumDriver.getSession() with args: 【"39bd61fd-8c1a-437d-8ab6-f7a46a8ab48c"】
【W3C (39bd61fd)】 Responding to client with driver.getSession() result: {"platform":"LINUX","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"platformName":"android","appActivity":"com.lemon.lemonban.activity.WelcomeActivity","appPackage":"com.lemon.lemonban","deviceName":"emulator-5554"},"platformName":"android","appActivity":"com.lemon.lemonban.activity.WelcomeActivity","appPackage":"com.lemon.lemonban","deviceName":"emulator-5554","deviceUDID":"emulator-5554","platformVersion":"5.1.1","deviceScreenSize":"420x730","deviceModel":"vivo y51","deviceManufacturer":"vivo"}
【HTTP】 <-- GET /wd/hub/session/39bd61fd-8c1a-437d-8ab6-f7a46a8ab48c 200 3 ms - 650
【HTTP】
// post請求查找元素
【HTTP】 --> POST /wd/hub/session/39bd61fd-8c1a-437d-8ab6-f7a46a8ab48c/element
【HTTP】 {"using":"xpath","value":"//android.widget.FrameLayout【@content-desc=\"我的檸檬\"】/android.widget.ImageView"}
【W3C (39bd61fd)】 Calling AppiumDriver.findElement() with args: 【"xpath","//android.widget.FrameLayout【@content-desc=\"我的檸檬\"】/android.widget.ImageView","39bd61fd-8c1a-437d-8ab6-f7a46a8ab48c"】
【BaseDriver】 Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator
【BaseDriver】 Waiting up to 0 ms for condition
//AndroidBootstrap向底層發送命令
【AndroidBootstrap】 Sending command to android: {"cmd":"action","action":"find","params":{"strategy":"xpath","selector":"//android.widget.FrameLayout【@content-desc=\"我的檸檬\"】/android.widget.ImageView","context":"","multiple":false}}
【AndroidBootstrap】 【BOOTSTRAP LOG】 【debug】 Got data from client: {"cmd":"action","action":"find","params":{"strategy":"xpath","selector":"//android.widget.FrameLayout【@content-desc=\"我的檸檬\"】/android.widget.ImageView","context":"","multiple":false}}
【AndroidBootstrap】 【BOOTSTRAP LOG】 【debug】 Got command of type ACTION
【AndroidBootstrap】 【BOOTSTRAP LOG】 【debug】 Got command action: find
【AndroidBootstrap】 【BOOTSTRAP LOG】 【debug】 Finding '//android.widget.FrameLayout【@content-desc="我的檸檬"】/android.widget.ImageView' using 'XPATH' with the contextId: '' multiple: false
【AndroidBootstrap】 【BOOTSTRAP LOG】 【debug】 Using: UiSelector【CLASS=android.widget.ImageView, INSTANCE=12】
【AndroidBootstrap】 【BOOTSTRAP LOG】 【debug】 Returning result: {"status":0,"value":{"ELEMENT":"1"}}
【AndroidBootstrap】 Received command result from bootstrap
【W3C (39bd61fd)】 Responding to client with driver.findElement() result: {"element-6066-11e4-a52e-4f735466cecf":"1","ELEMENT":"1"}
【HTTP】 <-- POST /wd/hub/session/39bd61fd-8c1a-437d-8ab6-f7a46a8ab48c/element 200 831 ms - 67
【HTTP】
【HTTP】 --> POST /wd/hub/session/39bd61fd-8c1a-437d-8ab6-f7a46a8ab48c/element/1/click
【HTTP】 {"id":"1"}
【W3C (39bd61fd)】 Calling AppiumDriver.click() with args: 【"1","39bd61fd-8c1a-437d-8ab6-f7a46a8ab48c"】
【AndroidBootstrap】 Sending command to android: {"cmd":"action","action":"element:click","params":{"elementId":"1"}}
【AndroidBootstrap】 【BOOTSTRAP LOG】 【debug】 Got data from client: {"cmd":"action","action":"element:click","params":{"elementId":"1"}}
【AndroidBootstrap】 【BOOTSTRAP LOG】 【debug】 Got command of type ACTION
【AndroidBootstrap】 【BOOTSTRAP LOG】 【debug】 Got command action: click
【AndroidBootstrap】 Received command result from bootstrap
【AndroidBootstrap】 【BOOTSTRAP LOG】 【debug】 Returning result: {"status":0,"value":true}
【W3C (39bd61fd)】 Responding to client with driver.click() result: true
【HTTP】 <-- POST /wd/hub/session/39bd61fd-8c1a-437d-8ab6-f7a46a8ab48c/element/1/click 200 256 ms - 14
【HTTP】
【HTTP】 --> POST /wd/hub/session/39bd61fd-8c1a-437d-8ab6-f7a46a8ab48c/element
【HTTP】 {"using":"id","value":"com.lemon.lemonban:id/fragment_my_lemon_avatar_layout"}
【W3C (39bd61fd)】 Calling AppiumDriver.findElement() with args: 【"id","com.lemon.lemonban:id/fragment_my_lemon_avatar_layout","39bd61fd-8c1a-437d-8ab6-f7a46a8ab48c"】
【BaseDriver】 Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator
【BaseDriver】 Waiting up to 0 ms for condition
【AndroidBootstrap】 Sending command to android: {"cmd":"action","action":"find","params":{"strategy":"id","selector":"com.lemon.lemonban:id/fragment_my_lemon_avatar_layout","context":"","multiple":false}}
【AndroidBootstrap】 【BOOTSTRAP LOG】 【debug】 Got data from client: {"cmd":"action","action":"find","params":{"strategy":"id","selector":"com.lemon.lemonban:id/fragment_my_lemon_avatar_layout","context":"","multiple":false}}
【AndroidBootstrap】 【BOOTSTRAP LOG】 【debug】 Got command of type ACTION
【AndroidBootstrap】 【BOOTSTRAP LOG】 【debug】 Got command action: find
【AndroidBootstrap】 【BOOTSTRAP LOG】 【debug】 Finding 'com.lemon.lemonban:id/fragment_my_lemon_avatar_layout' using 'ID' with the contextId: '' multiple: false
【AndroidBootstrap】 【BOOTSTRAP LOG】 【debug】 Using: UiSelector【INSTANCE=0, RESOURCE_ID=com.lemon.lemonban:id/fragment_my_lemon_avatar_layout】
【AndroidBootstrap】 【BOOTSTRAP LOG】 【debug】 Returning result: {"status":0,"value":{"ELEMENT":"2"}}
【AndroidBootstrap】 Received command result from bootstrap
【W3C (39bd61fd)】 Responding to client with driver.findElement() result: {"element-6066-11e4-a52e-4f735466cecf":"2","ELEMENT":"2"}
【HTTP】 <-- POST /wd/hub/session/39bd61fd-8c1a-437d-8ab6-f7a46a8ab48c/element 200 714 ms - 67
【HTTP】
【HTTP】 --> POST /wd/hub/session/39bd61fd-8c1a-437d-8ab6-f7a46a8ab48c/element/2/click
【HTTP】 {"id":"2"}
【W3C (39bd61fd)】 Calling AppiumDriver.click() with args: 【"2","39bd61fd-8c1a-437d-8ab6-f7a46a8ab48c"】
【AndroidBootstrap】 Sending command to android: {"cmd":"action","action":"element:click","params":{"elementId":"2"}}
【AndroidBootstrap】 【BOOTSTRAP LOG】 【debug】 Got data from client: {"cmd":"action","action":"element:click","params":{"elementId":"2"}}
【AndroidBootstrap】 【BOOTSTRAP LOG】 【debug】 Got command of type ACTION
【AndroidBootstrap】 【BOOTSTRAP LOG】 【debug】 Got command action: click
【AndroidBootstrap】 Received command result from bootstrap
【AndroidBootstrap】 【BOOTSTRAP LOG】 【debug】 Returning result: {"status":0,"value":true}
【W3C (39bd61fd)】 Responding to client with driver.click() result: true
【HTTP】 <-- POST /wd/hub/session/39bd61fd-8c1a-437d-8ab6-f7a46a8ab48c/element/2/click 200 558 ms - 14
【HTTP】
【HTTP】 --> POST /wd/hub/session/39bd61fd-8c1a-437d-8ab6-f7a46a8ab48c/element
【HTTP】 {"using":"id","value":"com.lemon.lemonban:id/et_mobile"}
【W3C (39bd61fd)】 Calling AppiumDriver.findElement() with args: 【"id","com.lemon.lemonban:id/et_mobile","39bd61fd-8c1a-437d-8ab6-f7a46a8ab48c"】
【BaseDriver】 Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator
【BaseDriver】 Waiting up to 0 ms for condition
【AndroidBootstrap】 Sending command to android: {"cmd":"action","action":"find","params":{"strategy":"id","selector":"com.lemon.lemonban:id/et_mobile","context":"","multiple":false}}
【AndroidBootstrap】 【BOOTSTRAP LOG】 【debug】 Got data from client: {"cmd":"action","action":"find","params":{"strategy":"id","selector":"com.lemon.lemonban:id/et_mobile","context":"","multiple":false}}
【AndroidBootstrap】 【BOOTSTRAP LOG】 【debug】 Got command of type ACTION
【AndroidBootstrap】 【BOOTSTRAP LOG】 【debug】 Got command action: find
【AndroidBootstrap】 【BOOTSTRAP LOG】 【debug】 Finding 'com.lemon.lemonban:id/et_mobile' using 'ID' with the contextId: '' multiple: false
【AndroidBootstrap】 【BOOTSTRAP LOG】 【debug】 Using: UiSelector【INSTANCE=0, RESOURCE_ID=com.lemon.lemonban:id/et_mobile】
【AndroidBootstrap】 【BOOTSTRAP LOG】 【debug】 Returning result: {"status":0,"value":{"ELEMENT":"3"}}
【AndroidBootstrap】 Received command result from bootstrap
【W3C (39bd61fd)】 Responding to client with driver.findElement() result: {"element-6066-11e4-a52e-4f735466cecf":"3","ELEMENT":"3"}
【HTTP】 <-- POST /wd/hub/session/39bd61fd-8c1a-437d-8ab6-f7a46a8ab48c/element 200 701 ms - 67
【HTTP】
【HTTP】 --> POST /wd/hub/session/39bd61fd-8c1a-437d-8ab6-f7a46a8ab48c/element/3/value
【HTTP】 {"id":"3","text":"17777777777","value":【"1","7","7","7","7","7","7","7","7","7","7"】}
【W3C (39bd61fd)】 Calling AppiumDriver.setValue() with args: 【【"1","7","7","7","7","7","7","7","7","7","7"】,"3","39bd61fd-8c1a-437d-8ab6-f7a46a8ab48c"】
【AndroidBootstrap】 Sending command to android: {"cmd":"action","action":"element:setText","params":{"elementId":"3","text":"17777777777","replace":false}}
【AndroidBootstrap】 【BOOTSTRAP LOG】 【debug】 Got data from client: {"cmd":"action","action":"element:setText","params":{"elementId":"3","text":"17777777777","replace":false}}
【AndroidBootstrap】 【BOOTSTRAP LOG】 【debug】 Got command of type ACTION
【AndroidBootstrap】 【BOOTSTRAP LOG】 【debug】 Got command action: setText
【AndroidBootstrap】 【BOOTSTRAP LOG】 【debug】 Using element passed in: 3
【AndroidBootstrap】 【BOOTSTRAP LOG】 【debug】 Attempting to clear using UiObject.clearText().
【AndroidBootstrap】 【BOOTSTRAP LOG】 【debug】 Text remains after clearing, but it appears to be hint text.
【AndroidBootstrap】 【BOOTSTRAP LOG】 【debug】 Text not cleared. Assuming remainder is hint text.
【AndroidBootstrap】 【BOOTSTRAP LOG】 【debug】 Sending plain text to element: 17613717769
【AndroidBootstrap】 【BOOTSTRAP LOG】 【debug】 Returning result: {"status":0,"value":true}
【AndroidBootstrap】 Received command result from bootstrap
【W3C (39bd61fd)】 Responding to client with driver.setValue() result: true
【HTTP】 <-- POST /wd/hub/session/39bd61fd-8c1a-437d-8ab6-f7a46a8ab48c/element/3/value 200 5213 ms - 14
【HTTP】
【HTTP】 --> POST /wd/hub/session/39bd61fd-8c1a-437d-8ab6-f7a46a8ab48c/element
【HTTP】 {"using":"id","value":"com.lemon.lemonban:id/et_password"}
【W3C (39bd61fd)】 Calling AppiumDriver.findElement() with args: 【"id","com.lemon.lemonban:id/et_password","39bd61fd-8c1a-437d-8ab6-f7a46a8ab48c"】
【BaseDriver】 Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator
【BaseDriver】 Waiting up to 0 ms for condition
【AndroidBootstrap】 Sending command to android: {"cmd":"action","action":"find","params":{"strategy":"id","selector":"com.lemon.lemonban:id/et_password","context":"","multiple":false}}
【AndroidBootstrap】 【BOOTSTRAP LOG】 【debug】 Got data from client: {"cmd":"action","action":"find","params":{"strategy":"id","selector":"com.lemon.lemonban:id/et_password","context":"","multiple":false}}
【AndroidBootstrap】 【BOOTSTRAP LOG】 【debug】 Got command of type ACTION
【AndroidBootstrap】 【BOOTSTRAP LOG】 【debug】 Got command action: find
【AndroidBootstrap】 【BOOTSTRAP LOG】 【debug】 Finding 'com.lemon.lemonban:id/et_password' using 'ID' with the contextId: '' multiple: false
【AndroidBootstrap】 【BOOTSTRAP LOG】 【debug】 Using: UiSelector【INSTANCE=0, RESOURCE_ID=com.lemon.lemonban:id/et_password】
【AndroidBootstrap】 【BOOTSTRAP LOG】 【debug】 Returning result: {"status":0,"value":{"ELEMENT":"4"}}
【AndroidBootstrap】 Received command result from bootstrap
【W3C (39bd61fd)】 Responding to client with driver.findElement() result: {"element-6066-11e4-a52e-4f735466cecf":"4","ELEMENT":"4"}
【HTTP】 <-- POST /wd/hub/session/39bd61fd-8c1a-437d-8ab6-f7a46a8ab48c/element 200 710 ms - 67
【HTTP】
【HTTP】 --> POST /wd/hub/session/39bd61fd-8c1a-437d-8ab6-f7a46a8ab48c/element/4/value
【HTTP】 {"id":"4","text":"7769","value":【"7","7","6","9"】}
【W3C (39bd61fd)】 Calling AppiumDriver.setValue() with args: 【【"7","7","6","9"】,"4","39bd61fd-8c1a-437d-8ab6-f7a46a8ab48c"】
【AndroidBootstrap】 Sending command to android: {"cmd":"action","action":"element:setText","params":{"elementId":"4","text":"7769","replace":false}}
【AndroidBootstrap】 【BOOTSTRAP LOG】 【debug】 Got data from client: {"cmd":"action","action":"element:setText","params":{"elementId":"4","text":"7769","replace":false}}
【AndroidBootstrap】 【BOOTSTRAP LOG】 【debug】 Got command of type ACTION
【AndroidBootstrap】 【BOOTSTRAP LOG】 【debug】 Got command action: setText
【AndroidBootstrap】 【BOOTSTRAP LOG】 【debug】 Using element passed in: 4
【AndroidBootstrap】 【BOOTSTRAP LOG】 【debug】 Attempting to clear using UiObject.clearText().
【AndroidBootstrap】 【BOOTSTRAP LOG】 【debug】 Sending plain text to element: 7769
【AndroidBootstrap】 【BOOTSTRAP LOG】 【debug】 Returning result: {"status":0,"value":true}
【AndroidBootstrap】 Received command result from bootstrap
【W3C (39bd61fd)】 Responding to client with driver.setValue() result: true
【HTTP】 <-- POST /wd/hub/session/39bd61fd-8c1a-437d-8ab6-f7a46a8ab48c/element/4/value 200 4814 ms - 14
【HTTP】
【HTTP】 --> POST /wd/hub/session/39bd61fd-8c1a-437d-8ab6-f7a46a8ab48c/element
【HTTP】 {"using":"id","value":"com.lemon.lemonban:id/btn_login"}
【W3C (39bd61fd)】 Calling AppiumDriver.findElement() with args: 【"id","com.lemon.lemonban:id/btn_login","39bd61fd-8c1a-437d-8ab6-f7a46a8ab48c"】
【BaseDriver】 Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator
【BaseDriver】 Waiting up to 0 ms for condition
【AndroidBootstrap】 Sending command to android: {"cmd":"action","action":"find","params":{"strategy":"id","selector":"com.lemon.lemonban:id/btn_login","context":"","multiple":false}}
【AndroidBootstrap】 【BOOTSTRAP LOG】 【debug】 Got data from client: {"cmd":"action","action":"find","params":{"strategy":"id","selector":"com.lemon.lemonban:id/btn_login","context":"","multiple":false}}
【AndroidBootstrap】 【BOOTSTRAP LOG】 【debug】 Got command of type ACTION
【AndroidBootstrap】 【BOOTSTRAP LOG】 【debug】 Got command action: find
【AndroidBootstrap】 【BOOTSTRAP LOG】 【debug】 Finding 'com.lemon.lemonban:id/btn_login' using 'ID' with the contextId: '' multiple: false
【AndroidBootstrap】 【BOOTSTRAP LOG】 【debug】 Using: UiSelector【INSTANCE=0, RESOURCE_ID=com.lemon.lemonban:id/btn_login】
【AndroidBootstrap】 【BOOTSTRAP LOG】 【debug】 Returning result: {"status":0,"value":{"ELEMENT":"5"}}
【AndroidBootstrap】 Received command result from bootstrap
【W3C (39bd61fd)】 Responding to client with driver.findElement() result: {"element-6066-11e4-a52e-4f735466cecf":"5","ELEMENT":"5"}
【HTTP】 <-- POST /wd/hub/session/39bd61fd-8c1a-437d-8ab6-f7a46a8ab48c/element 200 713 ms - 67
【HTTP】
【HTTP】 --> POST /wd/hub/session/39bd61fd-8c1a-437d-8ab6-f7a46a8ab48c/element/5/click
【HTTP】 {"id":"5"}
【W3C (39bd61fd)】 Calling AppiumDriver.click() with args: 【"5","39bd61fd-8c1a-437d-8ab6-f7a46a8ab48c"】
【AndroidBootstrap】 Sending command to android: {"cmd":"action","action":"element:click","params":{"elementId":"5"}}
【AndroidBootstrap】 【BOOTSTRAP LOG】 【debug】 Got data from client: {"cmd":"action","action":"element:click","params":{"elementId":"5"}}
【AndroidBootstrap】 【BOOTSTRAP LOG】 【debug】 Got command of type ACTION
【AndroidBootstrap】 【BOOTSTRAP LOG】 【debug】 Got command action: click
【AndroidBootstrap】 Received command result from bootstrap
【AndroidBootstrap】 【BOOTSTRAP LOG】 【debug】 Returning result: {"status":0,"value":true}
【W3C (39bd61fd)】 Responding to client with driver.click() result: true
【HTTP】 <-- POST /wd/hub/session/39bd61fd-8c1a-437d-8ab6-f7a46a8ab48c/element/5/click 200 3121 ms - 14
【HTTP】
【HTTP】 --> DELETE /wd/hub/session/39bd61fd-8c1a-437d-8ab6-f7a46a8ab48c
【HTTP】 {}
【W3C (39bd61fd)】 Calling AppiumDriver.deleteSession() with args: 【"39bd61fd-8c1a-437d-8ab6-f7a46a8ab48c"】
【BaseDriver】 Event 'quitSessionRequested' logged at 1573661590514 (00:13:10 GMT+0800 (中國標准時間))
【Appium】 Removing session 39bd61fd-8c1a-437d-8ab6-f7a46a8ab48c from our master session list
【AndroidDriver】 Shutting down Android driver
【ADB】 Running 'C:\appium-tools\android-sdk-windows-appium\platform-tools\adb.exe -P 5037 -s emulator-5554 shell am force-stop com.lemon.lemonban'
【ADB】 Pressing the HOME button
【ADB】 Running 'C:\appium-tools\android-sdk-windows-appium\platform-tools\adb.exe -P 5037 -s emulator-5554 shell input keyevent 3'
【AndroidBootstrap】 Sending command to android: {"cmd":"shutdown"}
【AndroidBootstrap】 Received command result from bootstrap
【AndroidBootstrap】 【BOOTSTRAP LOG】 【debug】 Got data from client: {"cmd":"shutdown"}
【AndroidBootstrap】 【BOOTSTRAP LOG】 【debug】 Got command of type SHUTDOWN
【AndroidBootstrap】 【BOOTSTRAP LOG】 【debug】 Returning result: {"status":0,"value":"OK, shutting down"}
【AndroidBootstrap】 【BOOTSTRAP LOG】 【debug】 Closed client connection
【UiAutomator】 Shutting down UiAutomator
【UiAutomator】 Moving to state 'stopping'
【UiAutomator】 UiAutomator shut down normally
【UiAutomator】 Moving to state 'stopped'
【ADB】 Attempting to kill all uiautomator processes
【ADB】 Getting IDs of all 'uiautomator' processes
【ADB】 Running 'C:\appium-tools\android-sdk-windows-appium\platform-tools\adb.exe -P 5037 -s emulator-5554 shell pgrep \^uiautomator\$'
【ADB】 No 'uiautomator' process has been found
【UiAutomator】 Moving to state 'stopped'
【Logcat】 Stopping logcat capture
【ADB】 Running 'C:\appium-tools\android-sdk-windows-appium\platform-tools\adb.exe -P 5037 -s emulator-5554 shell am force-stop io.appium.unlock'
【AndroidDriver】 Not cleaning generated files. Add `clearSystemFiles` capability if wanted.
【BaseDriver】 Event 'quitSessionFinished' logged at 1573661593239 (00:13:13 GMT+0800 (中國標准時間))
【W3C (39bd61fd)】 Received response: null
【W3C (39bd61fd)】 But deleting session, so not returning
【W3C (39bd61fd)】 Responding to client with driver.deleteSession() result: null
【HTTP】 <-- DELETE /wd/hub/session/39bd61fd-8c1a-437d-8ab6-f7a46a8ab48c 200 2727 ms - 14
【HTTP】


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM