Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: run with appium 2.0 #359

Merged
merged 28 commits into from
Feb 9, 2022
Merged

ci: run with appium 2.0 #359

merged 28 commits into from
Feb 9, 2022

Conversation

KazuCocoa
Copy link
Member

@KazuCocoa KazuCocoa commented Nov 29, 2021

@KazuCocoa
Copy link
Member Author

Remaining tests should pass by appium/appium-uiautomator2-driver#498

@KazuCocoa
Copy link
Member Author

Observed an error:

2022-02-09 07:24:08:572 - [HTTP] --> POST /wd/hub/session/ee29d011-cfb2-4de4-b317-98406137c6cc/appium/device/activate_app
2022-02-09 07:24:08:573 - [HTTP] {"bundleId":"io.appium.android.apis"}
2022-02-09 07:24:08:573 - [debug] [W3C (ee29d011)] Calling AppiumDriver.activateApp() with args: ["io.appium.android.apis",null,null,null,"ee29d011-cfb2-4de4-b317-98406137c6cc"]
2022-02-09 07:24:08:574 - [Appium] Plugins which can handle cmd 'activateApp': images
2022-02-09 07:24:08:574 - [Appium] Plugin images is now handling cmd 'activateApp'
2022-02-09 07:24:08:574 - [Appium] Executing default handling behavior for command 'activateApp'
2022-02-09 07:24:08:574 - [debug] [AndroidDriver] Activating 'io.appium.android.apis' with 'adb shell monkey -p io.appium.android.apis -c android.intent.category.LAUNCHER 1' command
2022-02-09 07:24:08:574 - [debug] [ADB] Running '/Users/runner/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell monkey -p io.appium.android.apis -c android.intent.category.LAUNCHER 1'
2022-02-09 07:24:10:780 - [AndroidDriver] Cannot activate 'io.appium.android.apis'. Original error: Error executing adbExec. Original error: 'Command '/Users/runner/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell monkey -p io.appium.android.apis -c android.intent.category.LAUNCHER 1' exited with code 251'; Command output: args: [-p, io.appium.android.apis, -c, android.intent.category.LAUNCHER, 1]
2022-02-09 07:24:10:780 - [AndroidDriver]  arg: "-p"
2022-02-09 07:24:10:780 - [AndroidDriver]  arg: "io.appium.android.apis"
2022-02-09 07:24:10:780 - [AndroidDriver]  arg: "-c"
2022-02-09 07:24:10:780 - [AndroidDriver]  arg: "android.intent.category.LAUNCHER"
2022-02-09 07:24:10:781 - [AndroidDriver]  arg: "1"
2022-02-09 07:24:10:781 - [AndroidDriver] data="io.appium.android.apis"
2022-02-09 07:24:10:781 - [AndroidDriver] data="android.intent.category.LAUNCHER"
2022-02-09 07:24:10:781 - [AndroidDriver] ** SYS_KEYS has no physical keys but with factor 2.0%.
2022-02-09 07:24:10:781 - [AndroidDriver] 
2022-02-09 07:24:10:841 - [debug] [W3C (ee29d011)] Encountered internal error running command: Error: Cannot activate 'io.appium.android.apis'. Original error: Error executing adbExec. Original error: 'Command '/Users/runner/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell monkey -p io.appium.android.apis -c android.intent.category.LAUNCHER 1' exited with code 251'; Command output: args: [-p, io.appium.android.apis, -c, android.intent.category.LAUNCHER, 1]
2022-02-09 07:24:10:841 - [debug] [W3C (ee29d011)]  arg: "-p"
2022-02-09 07:24:10:841 - [debug] [W3C (ee29d011)]  arg: "io.appium.android.apis"
2022-02-09 07:24:10:841 - [debug] [W3C (ee29d011)]  arg: "-c"
2022-02-09 07:24:10:841 - [debug] [W3C (ee29d011)]  arg: "android.intent.category.LAUNCHER"
2022-02-09 07:24:10:843 - [debug] [W3C (ee29d011)]  arg: "1"
2022-02-09 07:24:10:845 - [debug] [W3C (ee29d011)] data="io.appium.android.apis"
2022-02-09 07:24:10:845 - [debug] [W3C (ee29d011)] data="android.intent.category.LAUNCHER"
2022-02-09 07:24:10:845 - [debug] [W3C (ee29d011)] ** SYS_KEYS has no physical keys but with factor 2.0%.
2022-02-09 07:24:10:845 - [debug] [W3C (ee29d011)] 
2022-02-09 07:24:10:845 - [debug] [W3C (ee29d011)]     at Object.errorAndThrow (/Users/runner/.appium/appium-uiautomator2-driver/node_modules/@appium/support/lib/logging.js:94:35)
2022-02-09 07:24:10:845 - [debug] [W3C (ee29d011)]     at AndroidUiautomator2Driver.activateApp (/Users/runner/.appium/appium-uiautomator2-driver/node_modules/appium-android-driver/lib/commands/app-management.js:66:9)
2022-02-09 07:24:10:867 - [HTTP] <-- POST /wd/hub/session/ee29d011-cfb2-4de4-b317-98406137c6cc/appium/device/activate_app 500 2294 ms - 1835
2022-02-09 07:24:10:867 - [HTTP]
2022-02-09 07:16:45:373 - [Appium] Attempting to load plugin images...
2022-02-09 07:16:46:710 - [Appium] Attempting to load plugin execute-driver...
2022-02-09 07:16:48:211 - [Appium] Welcome to Appium v2.0.0-beta.25
2022-02-09 07:16:48:213 - [Appium] Non-default server args:
2022-02-09 07:16:48:216 - [Appium] { basePath: '/wd/hub',
2022-02-09 07:16:48:216 - [Appium]   logNoColors: true,
2022-02-09 07:16:48:216 - [Appium]   logTimestamp: true,
2022-02-09 07:16:48:216 - [Appium]   relaxedSecurityEnabled: true,
2022-02-09 07:16:48:216 - [Appium]   usePlugins: [ 'images', 'execute-driver' ] }
2022-02-09 07:16:48:217 - [Appium] Attempting to load driver uiautomator2...
2022-02-09 07:16:51:094 - [Appium] Appium REST http interface listener started on 0.0.0.0:4723
2022-02-09 07:16:51:095 - [Appium] Available drivers:
2022-02-09 07:16:51:095 - [Appium]   - uiautomator2@2.0.2 (automationName 'UiAutomator2')
2022-02-09 07:16:51:095 - [Appium] Available plugins:
2022-02-09 07:16:51:096 - [Appium]   - images@1.2.4 (ACTIVE)
2022-02-09 07:16:51:096 - [Appium]   - execute-driver@1.0.1 (ACTIVE)
2022-02-09 07:17:46:291 - [debug] [HTTP] Request idempotency key: 01ecbc3b-8430-4421-852a-7535126a6e32
2022-02-09 07:17:46:308 - [HTTP] --> POST /wd/hub/session
2022-02-09 07:17:46:309 - [HTTP] {"capabilities":{"alwaysMatch":{"platformName":"android","appium:automationName":"uiautomator2","appium:app":"/Users/runner/work/1/s/test/functional/app/api.apk.zip","appium:udid":"emulator-5554","appium:deviceName":"Android Emulator","appium:appPackage":"io.appium.android.apis","appium:appActivity":"io.appium.android.apis.ApiDemos","appium:someCapability":"some_capability","appium:eventTimings":true,"appium:unicodeKeyboard":true,"appium:resetKeyboard":true,"appium:disableWindowAnimation":true,"appium:newCommandTimeout":300,"appium:autoGrantPermissions":true,"appium:systemPort":8200,"appium:language":"en","appium:locale":"US","appium:chromeOptions":{"args":["--disable-popup-blocking"]},"appium:adbExecTimeout":60000,"appium:uiautomator2ServerLaunchTimeout":60000,"appium:settings[trackScrollEvents]":false},"firstMatch":[{}]}}
2022-02-09 07:17:46:310 - [debug] [W3C] Calling AppiumDriver.createSession() with args: [null,null,{"alwaysMatch":{"platformName":"android","appium:automationName":"uiautomator2","appium:app":"/Users/runner/work/1/s/test/functional/app/api.apk.zip","appium:udid":"emulator-5554","appium:deviceName":"Android Emulator","appium:appPackage":"io.appium.android.apis","appium:appActivity":"io.appium.android.apis.ApiDemos","appium:someCapability":"some_capability","appium:eventTimings":true,"appium:unicodeKeyboard":true,"appium:resetKeyboard":true,"appium:disableWindowAnimation":true,"appium:newCommandTimeout":300,"appium:autoGrantPermissions":true,"appium:systemPort":8200,"appium:language":"en","appium:locale":"US","appium:chromeOptions":{"args":["--disable-popup-blocking"]},"appium:adbExecTimeout":60000,"appium:uiautomator2ServerLaunchTimeout":60000,"appium:settings[trackScrollEvents]":false},"firstMatch":[{}]}]
2022-02-09 07:17:46:311 - [Appium] Plugins which can handle cmd 'createSession': images
2022-02-09 07:17:46:312 - [Appium] Plugin images is now handling cmd 'createSession'
2022-02-09 07:17:46:312 - [Appium] Executing default handling behavior for command 'createSession'
2022-02-09 07:17:46:313 - [debug] [BaseDriver] Event 'newSessionRequested' logged at 1644391066312 (07:17:46 GMT+0000 (Coordinated Universal Time))
2022-02-09 07:17:46:318 - [Appium] Attempting to find matching driver for automationName 'uiautomator2' and platformName 'android'
2022-02-09 07:17:46:318 - [Appium] The 'uiautomator2' driver was installed and matched caps.
2022-02-09 07:17:46:318 - [Appium] Will require it at /Users/runner/.appium/appium-uiautomator2-driver/node_modules/appium-uiautomator2-driver
2022-02-09 07:17:46:319 - [Appium] Appium v2.0.0-beta.25 creating new AndroidUiautomator2Driver (v2.0.2) session
2022-02-09 07:17:46:319 - [Appium] Checking BaseDriver versions for Appium and AndroidUiautomator2Driver
2022-02-09 07:17:46:319 - [Appium] Appium's BaseDriver version is 8.2.4
2022-02-09 07:17:46:319 - [Appium] AndroidUiautomator2Driver's BaseDriver version is 8.2.4

@KazuCocoa
Copy link
Member Author

the failing tests are not this pr issue, merging.

@KazuCocoa KazuCocoa merged commit f516f76 into appium:master Feb 9, 2022
@KazuCocoa KazuCocoa deleted the appium-next branch February 9, 2022 21:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant