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