赞
踩
The server is running
[Appium] Welcome to Appium v1.15.1
appium版本号
[Appium] Non-default server args:
[Appium] allowInsecure: {
[Appium] }
[Appium] denyInsecure: {
[Appium] }
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
开通了本地4723端口监听客户端发来的请求,如果server在别的服务器上,这里就是对应的server地址
[HTTP] --> POST /wd/hub/session
HTTP向appiumserver发起post请求,携带capabilities
[HTTP] {
"capabilities":{
"firstMatch":[{
"platformName":"Android","appium:platformVersion":"6.0","appium:deviceName":"127.0.0.1:7555","appium:appPackage":"com.android.settings","appium:appActivity":"com.android.settings.Settings"}]},"desiredCapabilities":{
"platformName":"Android","platformVersion":"6.0","deviceName":"127.0.0.1:7555","appPackage":"com.android.settings","appActivity":"com.android.settings.Settings"}}
为了创建session对象
[W3C] Calling AppiumDriver.createSession() with args: [{ "platformName":"Android","platformVersion":"6.0","deviceName":"127.0.0.1:7555","appPackage":"com.android.settings","appActivity":"com.android.settings.Settings"},null,{ "firstMatch":[{ "platformName":"Android","appium:platformVersion":"6.0","appium:deviceName":"127.0.0.1:7555","appium:appPackage":"com.android.settings","appium:appActivity":"com.android.settings.Settings"}]}] [BaseDriver] Event 'newSessionRequested' logged at 1613358360840 (11:06:00 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=UiAutomator2' by default and using the [Appium] UiAutomator2 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] In previous versions (Appium <= 1.13.x), the default was [Appium] 'automationName=UiAutomator1' [Appium] [Appium] If you wish to use that automation instead of UiAutomator2, please [Appium] add 'automationName=UiAutomator1' to your 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 v1.15.1 创建了 new AndroidUiautomator2Driver session,带了以下这些参数
[Appium] Appium v1.15.1 creating new AndroidUiautomator2Driver (v1.37.2) session [BaseDriver] W3C capabilities and MJSONWP desired capabilities were provided [BaseDriver] Creating session with W3C capabilities: { [BaseDriver] "alwaysMatch": { [BaseDriver] "platformName": "Android", [BaseDriver] "appium:platformVersion": "6.0", [BaseDriver] "appium:deviceName": "127.0.0.1:7555", [BaseDriver] "appium:appPackage": "com.android.settings", [BaseDriver] "appium:appActivity": "com.android.settings.Settings" [BaseDriver] }, [BaseDriver] "firstMatch": [ [BaseDriver] { } [BaseDriver] ] [BaseDriver] } [BaseDriver] Session created with session id: 2310235d-6518-4803-b9fd-9b2bbb44f4a8
返回了session id,后面发送请求都会带session id
[UiAutomator2] Starting 'com.android.settings' directly on the device
[ADB] Found 1 'build-tools' folders under 'D:\soft\android-sdk-windows' (newest first):
build-tools配置的环境变量
[ADB] D:/soft/android-sdk-windows/build-tools/30.0.0-preview
[ADB] Using 'adb.exe' from 'D:\soft\android-sdk-windows\platform-tools\adb.exe'
adb配置的环境变量
[AndroidDriver] Retrieving device list
[ADB] Trying to find a connected android device
[ADB] Getting connected devices...
[ADB] Connected devices: [{
"udid":"127.0.0.1:7555","state":"device"}]
[AndroidDriver] Looking for a device with Android '6.0'
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。