当前位置:   article > 正文

appium server日志分析_no app sent in, not parsing package/activity

no app sent in, not parsing package/activity
The server is running
[Appium] Welcome to Appium v1.15.1
  • 1
  • 2

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
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8

开通了本地4723端口监听客户端发来的请求,如果server在别的服务器上,这里就是对应的server地址

[HTTP] --> POST /wd/hub/session
  • 1

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"}}
  • 1
  • 2
  • 3
  • 4
  • 5

为了创建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] 
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31

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
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18

返回了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):
  • 1
  • 2

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'
  • 1
  • 2

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'
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/花生_TL007/article/detail/335671
推荐阅读
相关标签
  

闽ICP备14008679号