Closed EINBOX closed 3 years ago
can you please someone help to fix this?
There is nothing to fix, it is a log message. Just ignore it if you are not interested in this information. You can also adjust the logLevel
in your config.
its blocking my test execution, after this step nothing is executing, not at calling my spec files ,in my spec defined couple of methods to perform actions.but nothing is calling
Maybe something is blocking within a different hook. I would to debug your hook usage and see if where this happens.
its seems to be not able to identify the spec file ,am using …2 days back it was fine..is it having any issue with current version V7*
"dependencies": { "@wdio/runner": "^7.9.1", "allure-commandline": "^2.13.8", "geckodriver": "^2.0.3", "react-device-detect": "^1.17.0", "selenium-standalone": "^7.1.0", "wd": "^1.14.0", "wdio-video-reporter": "^3.1.2", "webdriverio": "^7.9.1" }, "devDependencies": { "@babel/cli": "^7.14.8", "@babel/core": "^7.15.0", "@babel/preset-env": "^7.15.0", "@babel/register": "^7.15.3", "@wdio/allure-reporter": "^7.9.1", "@wdio/appium-service": "^7.8.0", "@wdio/cli": "^7.9.1", "@wdio/dot-reporter": "^7.9.0", "@wdio/firefox-profile-service": "^7.10.1", "@wdio/local-runner": "^7.11.0", "@wdio/mocha-framework": "^7.11.0", "@wdio/selenium-standalone-service": "^7.10.1", "@wdio/spec-reporter": "^7.10.1", "appium": "^1.21.0", "chai": "^4.3.4", "chromedriver": "^92.0.1", "mocha": "^9.1.0", "wdio-chromedriver-service": "^7.2.0", "wdio-geckodriver-service": "^2.0.3"
Its really making me to feel panic , lot of issues with WebdriverIO , no proper logs , 2 days worked script ..today its not at all able to find spec files. I think need to think now before going to show POC many issues…I dont think we do not a stable build of WebdriverIO
From the information you have provided it is unfortunately not obvious where in WebdriverIO there could be a bug. I am not sure where you are seeing many issues here and it is also unclear if these are related to WebdriverIO or just improper use of the framework. This way it is difficult to help you.
one thing sure that its not identifying spec files so that my tests are not running and I dont see any reason in the logs ,can you check please
[debug] [35m[ADB][39m Trying to find 'Nexus_5X_API_31' emulator
[debug] [35m[ADB][39m Getting connected emulators
[debug] [35m[ADB][39m Getting connected devices
[debug] [35m[ADB][39m Connected devices: [{"udid":"emulator-5554","state":"authorizing"}]
[debug] [35m[ADB][39m 1 emulator connected
[debug] [35m[ADB][39m Overriding /Users/<username>/.emulator_console_auth_token with an empty string to avoid telnet authentication for emulator commands
[debug] [35m[ADB][39m Executing Emulator console command: avd name
[debug] [35m[ADB][39m Found emulator 'Nexus_5X_API_31' on port 5554
[debug] [35m[ADB][39m Setting device id to emulator-5554
[debug] [35m[ADB][39m Running '/Users/<username>/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 wait-for-device'
[35m[AndroidDriver][39m Using device: emulator-5554
[35m[ADB][39m Using 'adb' from '/Users/<username>/Library/Android/sdk/platform-tools/adb'
[debug] [35m[ADB][39m Running '/Users/<username>/Library/Android/sdk/platform-tools/adb -P 5037 start-server'
[debug] [35m[ADB][39m Setting device id to emulator-5554
[debug] [35m[ADB][39m Running '/Users/<username>/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell getprop ro.build.version.sdk'
[debug] [35m[ADB][39m Current device property 'ro.build.version.sdk': 31
[35m[ADB][39m Getting device platform version
[debug] [35m[ADB][39m Running '/Users/<username>/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell getprop ro.build.version.release'
[debug] [35m[ADB][39m Current device property 'ro.build.version.release': 12
[debug] [35m[ADB][39m Device API level: 31
[35m[UiAutomator2][39m Relaxing hidden api policy
[debug] [35m[ADB][39m Running '/Users/<username>/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell 'settings put global hidden_api_policy_pre_p_apps 1;settings put global hidden_api_policy_p_apps 1;settings put global hidden_api_policy 1''
[35m[AndroidDriver][39m No app sent in, not parsing package/activity
[debug] [35m[ADB][39m Running '/Users/<username>/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 wait-for-device'
[debug] [35m[ADB][39m Running '/Users/<username>/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell echo ping'
[debug] [35m[AndroidDriver][39m Pushing settings apk to device...
[debug] [35m[ADB][39m Getting install status for io.appium.settings
[debug] [35m[ADB][39m Running '/Users/<username>/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys package io.appium.settings'
[debug] [35m[ADB][39m 'io.appium.settings' is installed
[debug] [35m[ADB][39m Getting package info for 'io.appium.settings'
[debug] [35m[ADB][39m Running '/Users/<username>/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys package io.appium.settings'
[debug] [35m[ADB][39m The version name of the installed 'io.appium.settings' is greater or equal to the application version name ('3.3.0' >= '3.3.0')
[debug] [35m[ADB][39m There is no need to install/upgrade '/Users/<username>/Downloads/WDIOTest-fix-script/node_modules/appium/node_modules/io.appium.settings/apks/settings_apk-debug.apk'
[debug] [35m[ADB][39m Getting IDs of all 'io.appium.settings' processes
[debug] [35m[ADB][39m Running '/Users/<username>/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell 'pgrep --help; echo $?''
[debug] [35m[ADB][39m Running '/Users/<username>/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell pgrep -f \(\[\[:blank:\]\]\|\^\)io\.appium\.settings\(\[\[:blank:\]\]\|\$\)'
[debug] [35m[AndroidDriver][39m io.appium.settings is already running. There is no need to reset its permissions.
[debug] [35m[Logcat][39m Starting logs capture with command: /Users/<username>/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 logcat -v threadtime
[debug] [35m[UiAutomator2][39m Forwarding UiAutomator2 Server port 6790 to local port 8200
[debug] [35m[ADB][39m Forwarding system: 8200 to device: 6790
[debug] [35m[ADB][39m Running '/Users/<username>/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 forward tcp:8200 tcp:6790'
[debug] [35m[ADB][39m Getting install status for io.appium.uiautomator2.server
[debug] [35m[ADB][39m Running '/Users/<username>/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys package io.appium.uiautomator2.server'
[debug] [35m[ADB][39m 'io.appium.uiautomator2.server' is installed
[debug] [35m[ADB][39m Getting package info for 'io.appium.uiautomator2.server'
[debug] [35m[ADB][39m Running '/Users/<username>/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys package io.appium.uiautomator2.server'
[debug] [35m[ADB][39m The version name of the installed 'io.appium.uiautomator2.server' is greater or equal to the application version name ('4.21.1' >= '4.21.1')
[debug] [35m[UiAutomator2][39m io.appium.uiautomator2.server installation state: sameVersionInstalled
[debug] [35m[ADB][39m Checking app cert for /Users/<username>/Downloads/WDIOTest-fix-script/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v4.21.1.apk
[35m[ADB][39m Using 'apksigner.jar' from '/Users/<username>/Library/Android/sdk/build-tools/31.0.0/lib/apksigner.jar'
[debug] [35m[ADB][39m Starting apksigner: /Library/Java/JavaVirtualMachines/jdk1.8.0_241.jdk/Contents/Home/bin/java -Xmx1024M -Xss1m -jar /Users/<username>/Library/Android/sdk/build-tools/31.0.0/lib/apksigner.jar verify --print-certs /Users/<username>/Downloads/WDIOTest-fix-script/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v4.21.1.apk
[debug] [35m[ADB][39m apksigner stdout: Signer #1 certificate DN: EMAILADDRESS=android@android.com, CN=Android, OU=Android, O=Android, L=Mountain View, ST=California, C=US
[debug] [35m[ADB][39m Signer #1 certificate SHA-256 digest: a40da80a59d170caa950cf15c18c454d47a39b26989d8b640ecd745ba71bf5dc
[debug] [35m[ADB][39m Signer #1 certificate SHA-1 digest: 61ed377e85d386a8dfee6b864bd85b0bfaa5af81
[debug] [35m[ADB][39m Signer #1 certificate MD5 digest: e89b158e4bcf988ebd09eb83f5378e87
[debug] [35m[ADB][39m
[debug] [35m[ADB][39m sha256 hash did match for 'appium-uiautomator2-server-v4.21.1.apk'
[35m[ADB][39m '/Users/<username>/Downloads/WDIOTest-fix-script/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v4.21.1.apk' is signed with the default certificate
[debug] [35m[ADB][39m Getting install status for io.appium.uiautomator2.server.test
[debug] [35m[ADB][39m Running '/Users/<username>/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys package io.appium.uiautomator2.server.test'
[debug] [35m[ADB][39m 'io.appium.uiautomator2.server.test' is installed
[debug] [35m[ADB][39m Checking app cert for /Users/<username>/Downloads/WDIOTest-fix-script/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk
[debug] [35m[ADB][39m Starting apksigner: /Library/Java/JavaVirtualMachines/jdk1.8.0_241.jdk/Contents/Home/bin/java -Xmx1024M -Xss1m -jar /Users/<username>/Library/Android/sdk/build-tools/31.0.0/lib/apksigner.jar verify --print-certs /Users/<username>/Downloads/WDIOTest-fix-script/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk
[debug] [35m[ADB][39m apksigner stdout: Signer #1 certificate DN: EMAILADDRESS=android@android.com, CN=Android, OU=Android, O=Android, L=Mountain View, ST=California, C=US
[debug] [35m[ADB][39m Signer #1 certificate SHA-256 digest: a40da80a59d170caa950cf15c18c454d47a39b26989d8b640ecd745ba71bf5dc
[debug] [35m[ADB][39m Signer #1 certificate SHA-1 digest: 61ed377e85d386a8dfee6b864bd85b0bfaa5af81
[debug] [35m[ADB][39m Signer #1 certificate MD5 digest: e89b158e4bcf988ebd09eb83f5378e87
[debug] [35m[ADB][39m
[debug] [35m[ADB][39m sha256 hash did match for 'appium-uiautomator2-server-debug-androidTest.apk'
[35m[ADB][39m '/Users/<username>/Downloads/WDIOTest-fix-script/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk' is signed with the default certificate
[35m[UiAutomator2][39m Server packages are not going to be (re)installed
[debug] [35m[UiAutomator2][39m Waiting up to 30000ms for services to be available
[debug] [35m[ADB][39m Running '/Users/<username>/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell pm list instrumentation'
[debug] [35m[UiAutomator2][39m Instrumentation target 'io.appium.uiautomator2.server.test/androidx.test.runner.AndroidJUnitRunner' is available
[35m[ADB][39m Adding packages ["io.appium.settings","io.appium.uiautomator2.server","io.appium.uiautomator2.server.test"] to Doze whitelist
[debug] [35m[ADB][39m Got the following command chunks to execute: [["dumpsys","deviceidle","whitelist","+io.appium.settings",";","dumpsys","deviceidle","whitelist","+io.appium.uiautomator2.server",";","dumpsys","deviceidle","whitelist","+io.appium.uiautomator2.server.test",";"]]
[debug] [35m[ADB][39m Running '/Users/<username>/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys deviceidle whitelist +io.appium.settings ; dumpsys deviceidle whitelist +io.appium.uiautomator2.server ; dumpsys deviceidle whitelist +io.appium.uiautomator2.server.test ;'
[debug] [35m[UiAutomator2][39m No app capability. Assuming it is already on the device
[debug] [35m[ADB][39m Getting install status for com.android.chrome
[debug] [35m[ADB][39m Running '/Users/<username>/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys package com.android.chrome'
[debug] [35m[ADB][39m 'com.android.chrome' is installed
[debug] [35m[ADB][39m Running '/Users/<username>/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell am force-stop com.android.chrome'
[debug] [35m[ADB][39m Running '/Users/<username>/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell pm clear com.android.chrome'
[debug] [35m[AndroidDriver][39m Performed fast reset on the installed 'com.android.chrome' application (stop and clear)
[debug] [35m[UiAutomator2][39m Performing shallow cleanup of automation leftovers
[debug] [35m[UiAutomator2][39m No obsolete sessions have been detected (socket hang up)
[debug] [35m[ADB][39m Running '/Users/<username>/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell am force-stop io.appium.uiautomator2.server.test'
[35m[UiAutomator2][39m Starting UIAutomator2 server 4.21.1
[35m[UiAutomator2][39m Using UIAutomator2 server from '/Users/<username>/Downloads/WDIOTest-fix-script/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v4.21.1.apk' and test from '/Users/<username>/Downloads/WDIOTest-fix-script/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk'
[35m[UiAutomator2][39m Waiting up to 30000ms for UiAutomator2 to be online...
[debug] [35m[ADB][39m Creating ADB subprocess with args: ["-P",5037,"-s","emulator-5554","shell","am","instrument","-w","-e","disableAnalytics",true,"io.appium.uiautomator2.server.test/androidx.test.runner.AndroidJUnitRunner"]
[debug] [35m[WD Proxy][39m Matched '/status' to command name 'getStatus'
[debug] [35m[WD Proxy][39m Proxying [GET /status] to [GET http://127.0.0.1:8200/wd/hub/status] with no body
[35m[WD Proxy][39m socket hang up
[debug] [35m[WD Proxy][39m Matched '/status' to command name 'getStatus'
[debug] [35m[WD Proxy][39m Proxying [GET /status] to [GET http://127.0.0.1:8200/wd/hub/status] with no body
[35m[WD Proxy][39m socket hang up
[debug] [35m[WD Proxy][39m Matched '/status' to command name 'getStatus'
[debug] [35m[WD Proxy][39m Proxying [GET /status] to [GET http://127.0.0.1:8200/wd/hub/status] with no body
[35m[WD Proxy][39m socket hang up
[debug] [35m[WD Proxy][39m Matched '/status' to command name 'getStatus'
[debug] [35m[WD Proxy][39m Proxying [GET /status] to [GET http://127.0.0.1:8200/wd/hub/status] with no body
[35m[WD Proxy][39m socket hang up
[debug] [35m[WD Proxy][39m Matched '/status' to command name 'getStatus'
[debug] [35m[WD Proxy][39m Proxying [GET /status] to [GET http://127.0.0.1:8200/wd/hub/status] with no body
[35m[WD Proxy][39m socket hang up
[debug] [35m[WD Proxy][39m Matched '/status' to command name 'getStatus'
[debug] [35m[WD Proxy][39m Proxying [GET /status] to [GET http://127.0.0.1:8200/wd/hub/status] with no body
[35m[WD Proxy][39m socket hang up
[debug] [35m[Instrumentation][39m io.appium.uiautomator2.server.test.AppiumUiAutomator2Server:
[debug] [35m[WD Proxy][39m Matched '/status' to command name 'getStatus'
[debug] [35m[WD Proxy][39m Proxying [GET /status] to [GET http://127.0.0.1:8200/wd/hub/status] with no body
[35m[WD Proxy][39m socket hang up
[debug] [35m[WD Proxy][39m Matched '/status' to command name 'getStatus'
[debug] [35m[WD Proxy][39m Proxying [GET /status] to [GET http://127.0.0.1:8200/wd/hub/status] with no body
[35m[WD Proxy][39m socket hang up
[debug] [35m[WD Proxy][39m Matched '/status' to command name 'getStatus'
[debug] [35m[WD Proxy][39m Proxying [GET /status] to [GET http://127.0.0.1:8200/wd/hub/status] with no body
[debug] [35m[WD Proxy][39m Got response with status 200: {"sessionId":"None","value":{"message":"UiAutomator2 Server is ready to accept commands","ready":true}}
[debug] [35m[UiAutomator2][39m The initialization of the instrumentation process took 8317ms
[debug] [35m[WD Proxy][39m Matched '/session' to command name 'createSession'
[debug] [35m[WD Proxy][39m Proxying [POST /session] to [POST http://127.0.0.1:8200/wd/hub/session] with body: {"capabilities":{"firstMatch":[{"platform":"LINUX","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"platformName":"Android","browserName":"chrome","acceptInsecureCerts":true,"log":{"level":"trace"},"automationName":"uiautomator2","deviceName":"Nexus_5X_API_31","platformVersion":"12","deviceOrientation":"portriat","avd":"Nexus_5X_API_31","commandTimeout":90000,"newCommandTimeout":90000},"platformName":"Android","browserName":"chrome","acceptInsecureCerts":true,"log":{"level":"trace"},"automationName":"uiautomator2","deviceName":"emulator-5554","platformVersion":"12","deviceOrientation":"portriat","avd":"Nexus_5X_API_31","commandTimeout":90000,"newCommandTimeout":90000,"appPackage":"com.android.chrome","appActivity":"com.google.android.apps.chrome.Main","deviceUDID":"emulator-5554"}],"alwaysMatch":{}}}
[debug] [35m[WD Proxy][39m Got response with status 200: {"sessionId":"01e409e8-91ee-4400-bc84-0bb845d4e0ea","value":{"capabilities":{"firstMatch":[{"platform":"LINUX","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"platformName":"Android","browserName":"chrome","acceptInsecureCerts":true,"log":{"level":"trace"},"automationName":"uiautomator2","deviceName":"Nexus_5X_API_31","platformVersion":"12","deviceOrientation":"portriat","avd":"Nexus_5X_API_31","commandTimeout":90000,"newCommandTimeout":90000},"platformName":"Android","browserName":"chrome","acceptInsecureCerts":true,"log":{"level":"trace"},"automationName":"uiautomator2","deviceName":"emulator-5554","platformVersion":"12","deviceOrientation":"portriat","avd":"Nexus_5X_API_31","commandTimeout":90000,"newCommandTimeout":90000,"appPackage":"com.android.chrome","appActivity":"com.google.android.apps.chrome.Main","deviceUDID":"emulator-5554"}],"alwaysMatch":{}},"sessionId":...
[35m[WD Proxy][39m Determined the downstream protocol as 'W3C'
[debug] [35m[WD Proxy][39m Proxying [GET /appium/device/info] to [GET http://127.0.0.1:8200/wd/hub/session/01e409e8-91ee-4400-bc84-0bb845d4e0ea/appium/device/info] with no body
[debug] [35m[WD Proxy][39m Got response with status 200: {"sessionId":"01e409e8-91ee-4400-bc84-0bb845d4e0ea","value":{"androidId":"30197ffac21c7d85","apiVersion":"31","bluetooth":{"state":"OFF"},"brand":"google","carrierName":"T-Mobile","displayDensity":420,"locale":"en_US","manufacturer":"Google","model":"sdk_gphone64_x86_64","networks":[{"capabilities":{"SSID":null,"linkDownBandwidthKbps":30000,"linkUpstreamBandwidthKbps":15000,"networkCapabilities":"NET_CAPABILITY_MMS,NET_CAPABILITY_SUPL,NET_CAPABILITY_DUN,NET_CAPABILITY_FOTA,NET_CAPABILITY_IMS,NET_CAPABILITY_CBS,NET_CAPABILITY_INTERNET,NET_CAPABILITY_NOT_RESTRICTED,NET_CAPABILITY_TRUSTED,NET_CAPABILITY_NOT_VPN,NET_CAPABILITY_NOT_ROAMING,NET_CAPABILITY_NOT_CONGESTED,NET_CAPABILITY_NOT_SUSPENDED","signalStrength":-2147483648,"transportTypes":"TRANSPORT_CELLULAR"},"detailedState":"CONNECTED","extraInfo":"epc.tmobile.com","isAvailable":true,"isConnected":true,"isFailover":false,"isRoaming":false,"state":"CONNECTED","subtype":13,"subtypeName":"LTE","type":0,"typeName":"MOBILE"},{"capabilities":{"SSID":null,"linkD...
[debug] [35m[ADB][39m Running '/Users/<username>/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys window'
[35m[AndroidDriver][39m Screen already unlocked, doing nothing
[35m[AndroidDriver][39m Starting a chrome-based browser session
[debug] [35m[AndroidDriver][39m A port was not given, using random free port: 8000
[debug] [35m[AndroidDriver][39m Precalculated Chromedriver capabilities: {
[debug] [35m[AndroidDriver][39m "androidPackage": "com.android.chrome",
[debug] [35m[AndroidDriver][39m "androidDeviceSerial": "emulator-5554"
[debug] [35m[AndroidDriver][39m }
[debug] [35m[AndroidDriver][39m Before starting chromedriver, androidPackage is 'com.android.chrome'
[debug] [35m[Chromedriver][39m Changed state to 'starting'
[debug] [35m[Chromedriver][39m Using the static Chromedriver->Chrome mapping
[debug] [35m[Chromedriver][39m The most recent known Chrome version: 89.0.4389
[debug] [35m[Chromedriver][39m Found 2 executables in '/Users/<username>/Downloads/WDIOTest-fix-script/node_modules/appium/node_modules/appium-chromedriver/chromedriver/mac'
[debug] [35m[Chromedriver][39m The following Chromedriver executables were found:
[debug] [35m[Chromedriver][39m '/Users/<username>/Downloads/WDIOTest-fix-script/node_modules/appium/node_modules/appium-chromedriver/chromedriver/mac/chromedriver_mac64_v91.0.4472.101' (version '91.0.4472.101', minimum Chrome version '91')
[debug] [35m[Chromedriver][39m '/Users/<username>/Downloads/WDIOTest-fix-script/node_modules/appium/node_modules/appium-chromedriver/chromedriver/mac/chromedriver_mac64_v91.0.4472.19' (version '91.0.4472.19', minimum Chrome version '91')
[35m[Chromedriver][39m Found 2 Chromedrivers, which are missing in the list of known versions: {"91.0.4472.101":"91","91.0.4472.19":"91"}
[debug] [35m[ADB][39m Getting package info for 'com.android.chrome'
[debug] [35m[ADB][39m Running '/Users/<username>/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys package com.android.chrome'
[debug] [35m[Chromedriver][39m Found Chrome bundle 'com.android.chrome' version '91.0.4472'
[debug] [35m[Chromedriver][39m Found 2 executables capable of automating Chrome '91.0.4472'.
[debug] [35m[Chromedriver][39m Choosing the most recent, '/Users/<username>/Downloads/WDIOTest-fix-script/node_modules/appium/node_modules/appium-chromedriver/chromedriver/mac/chromedriver_mac64_v91.0.4472.101'.
[debug] [35m[Chromedriver][39m If a specific version is required, specify it with the `chromedriverExecutable`desired capability.
[35m[Chromedriver][39m Set chromedriver binary as: /Users/<username>/Downloads/WDIOTest-fix-script/node_modules/appium/node_modules/appium-chromedriver/chromedriver/mac/chromedriver_mac64_v91.0.4472.101
[debug] [35m[Chromedriver][39m Killing any old chromedrivers, running: pkill -15 -f "/Users/<username>/Downloads/WDIOTest-fix-script/node_modules/appium/node_modules/appium-chromedriver/chromedriver/mac/chromedriver_mac64_v91.0.4472.101.*--port=8000"
[35m[Chromedriver][39m No old chromedrivers seem to exist
[debug] [35m[Chromedriver][39m Cleaning this device's adb forwarded port socket connections: emulator-5554
[debug] [35m[ADB][39m List forwarding ports
[debug] [35m[ADB][39m Running '/Users/<username>/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 forward --list'
[35m[Chromedriver][39m Spawning chromedriver with: /Users/<username>/Downloads/WDIOTest-fix-script/node_modules/appium/node_modules/appium-chromedriver/chromedriver/mac/chromedriver_mac64_v91.0.4472.101 --url-base=wd/hub --port=8000 --adb-port=5037 --verbose
[debug] [35m[Chromedriver][39m Chromedriver version: '91.0.4472.101'
[debug] [35m[WD Proxy][39m Matched '/status' to command name 'getStatus'
[debug] [35m[WD Proxy][39m Proxying [GET /status] to [GET http://127.0.0.1:8000/wd/hub/status] with no body
[35m[WD Proxy][39m connect ECONNREFUSED 127.0.0.1:8000
[debug] [35m[WD Proxy][39m Matched '/status' to command name 'getStatus'
[debug] [35m[WD Proxy][39m Proxying [GET /status] to [GET http://127.0.0.1:8000/wd/hub/status] with no body
[debug] [35m[WD Proxy][39m Got response with status 200: {"value":{"build":{"version":"91.0.4472.101 (af52a90bf87030dd1523486a1cd3ae25c5d76c9b-refs/branch-heads/4472@{#1462})"},"message":"ChromeDriver ready for new sessions.","os":{"arch":"x86_64","name":"Mac OS X","version":"10.15.7"},"ready":true}}
[35m[Chromedriver][39m Starting W3C Chromedriver session with capabilities: {
[35m[Chromedriver][39m "capabilities": {
[35m[Chromedriver][39m "alwaysMatch": {
[35m[Chromedriver][39m "goog:chromeOptions": {
[35m[Chromedriver][39m "androidPackage": "com.android.chrome",
[35m[Chromedriver][39m "androidDeviceSerial": "emulator-5554"
[35m[Chromedriver][39m },
[35m[Chromedriver][39m "goog:loggingPrefs": {
[35m[Chromedriver][39m "browser": "ALL"
[35m[Chromedriver][39m }
[35m[Chromedriver][39m }
[35m[Chromedriver][39m }
[35m[Chromedriver][39m }
[debug] [35m[WD Proxy][39m Matched '/session' to command name 'createSession'
[debug] [35m[WD Proxy][39m Proxying [POST /session] to [POST http://127.0.0.1:8000/wd/hub/session] with body: {"capabilities":{"alwaysMatch":{"goog:chromeOptions":{"androidPackage":"com.android.chrome","androidDeviceSerial":"emulator-5554"},"goog:loggingPrefs":{"browser":"ALL"}}}}
[debug] [35m[Chromedriver][39m Webview version: 'Chrome/91.0.4472.114'
[debug] [35m[WD Proxy][39m Got response with status 200: {"value":{"capabilities":{"acceptInsecureCerts":false,"browserName":"chrome","browserVersion":"91.0.4472.114","chrome":{"chromedriverVersion":"91.0.4472.101 (af52a90bf87030dd1523486a1cd3ae25c5d76c9b-refs/branch-heads/4472@{#1462})"},"goog:chromeOptions":{"debuggerAddress":"localhost:50534"},"pageLoadStrategy":"normal","platformName":"android","proxy":{},"setWindowRect":false,"strictFileInteractability":false,"timeouts":{"implicit":0,"pageLoad":300000,"script":30000},"unhandledPromptBehavior":"dismiss and notify","webauthn:extension:largeBlob":false,"webauthn:virtualAuthenticators":false},"sessionId":"940e4cf0993852eb47a77054d8a5c8ea"}}
[35m[WD Proxy][39m Determined the downstream protocol as 'W3C'
[debug] [35m[Chromedriver][39m Changed state to 'online'
[debug] [35m[WD Proxy][39m Proxying [GET /appium/device/pixel_ratio] to [GET http://127.0.0.1:8200/wd/hub/session/01e409e8-91ee-4400-bc84-0bb845d4e0ea/appium/device/pixel_ratio] with no body
[debug] [35m[WD Proxy][39m Got response with status 200: {"sessionId":"01e409e8-91ee-4400-bc84-0bb845d4e0ea","value":2.625}
[debug] [35m[WD Proxy][39m Matched '/appium/device/system_bars' to command name 'getSystemBars'
[debug] [35m[WD Proxy][39m Proxying [GET /appium/device/system_bars] to [GET http://127.0.0.1:8200/wd/hub/session/01e409e8-91ee-4400-bc84-0bb845d4e0ea/appium/device/system_bars] with no body
[debug] [35m[WD Proxy][39m Got response with status 200: {"sessionId":"01e409e8-91ee-4400-bc84-0bb845d4e0ea","value":{"statusBar":63}}
[debug] [35m[WD Proxy][39m Matched '/window/current/size' to command name 'getWindowSize'
[debug] [35m[WD Proxy][39m Proxying [GET /window/current/size] to [GET http://127.0.0.1:8200/wd/hub/session/01e409e8-91ee-4400-bc84-0bb845d4e0ea/window/current/size] with no body
[debug] [35m[WD Proxy][39m Got response with status 200: {"sessionId":"01e409e8-91ee-4400-bc84-0bb845d4e0ea","value":{"height":1794,"width":1080}}
[35m[Appium][39m New AndroidUiautomator2Driver session created successfully, session b28ece48-37aa-4dd7-aa9c-e25ddc75e2e3 added to master session list
[debug] [35m[BaseDriver][39m Event 'newSessionStarted' logged at 1631705579210 (17:02:59 GMT+0530 (India Standard Time))
[debug] [35m[W3C (b28ece48)][39m Cached the protocol value 'W3C' for the new session b28ece48-37aa-4dd7-aa9c-e25ddc75e2e3
[debug] [35m[W3C (b28ece48)][39m 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","browserName":"chrome","acceptInsecureCerts":true,"log":{"level":"trace"},"automationName":"uiautomator2","deviceName":"Nexus_5X_API_31","platformVersion":"12","deviceOrientation":"portriat","avd":"Nexus_5X_API_31","commandTimeout":90000,"newCommandTimeout":90000},"platformName":"Android","browserName":"chrome","acceptInsecureCerts":true,"log":{"level":"trace"},"automationName":"uiautomator2","deviceName":"emulator-5554","platformVersion":"12","deviceOrientation":"portriat","avd":"Nexus_5X_API_31","commandTimeout":90000,"newCommandTimeout":90000,"appPackage":"com.android.chrome","appActivity":"com.google.android.apps.chrome.Main","deviceUDID":"emulator-5554","deviceApiLevel":31,"deviceScreenSize":"1080x1920","deviceScreenDensity":420,"deviceModel":"sdk_gphone64_x8...
[35m[HTTP][39m [37m<-- POST /session [39m[32m200[39m [90m28337 ms - 1219[39m
[35m[HTTP][39m [90m[39m
[35m[HTTP][39m [37m-->[39m [37mPOST[39m [37m/session/b28ece48-37aa-4dd7-aa9c-e25ddc75e2e3/url[39m
[35m[HTTP][39m [90m{"url":"https://webtestsite.net/"}[39m
[35m[W3C (b28ece48)][39m Driver proxy active, passing request on via HTTP proxy
[debug] [35m[WD Proxy][39m Matched '/session/b28ece48-37aa-4dd7-aa9c-e25ddc75e2e3/url' to command name 'setUrl'
[debug] [35m[WD Proxy][39m Proxying [POST /session/b28ece48-37aa-4dd7-aa9c-e25ddc75e2e3/url] to [POST http://127.0.0.1:8000/wd/hub/session/940e4cf0993852eb47a77054d8a5c8ea/url] with body: {"url":"https://webtestsite.net/"}
[35m[HTTP][39m [37m<-- POST /session/b28ece48-37aa-4dd7-aa9c-e25ddc75e2e3/url [39m[32m-[39m [90m- ms - -[39m
[35m[HTTP][39m [90m[39m
[35m[HTTP][39m [37m-->[39m [37mPOST[39m [37m/session/b28ece48-37aa-4dd7-aa9c-e25ddc75e2e3/url[39m
[35m[HTTP][39m [90m{"url":"https://webtestsite.net/"}[39m
[35m[W3C (b28ece48)][39m Driver proxy active, passing request on via HTTP proxy
[debug] [35m[WD Proxy][39m Got response with status 200: {"value":null}
[debug] [35m[WD Proxy][39m Matched '/session/b28ece48-37aa-4dd7-aa9c-e25ddc75e2e3/url' to command name 'setUrl'
[debug] [35m[WD Proxy][39m Proxying [POST /session/b28ece48-37aa-4dd7-aa9c-e25ddc75e2e3/url] to [POST http://127.0.0.1:8000/wd/hub/session/940e4cf0993852eb47a77054d8a5c8ea/url] with body: {"url":"https://webtestsite.net/"}
[debug] [35m[WD Proxy][39m Got response with status 200: {"value":null}
[35m[HTTP][39m [37m<-- POST /session/b28ece48-37aa-4dd7-aa9c-e25ddc75e2e3/url [39m[32m200[39m [90m88000 ms - 14[39m
[35m[HTTP][39m [90m[39m
when I run wdio,js its saying
2021-09-15T16:15:50.709Z WARN @wdio/config:ConfigParser: pattern ./test/specs/test.js did not match any file
2021-09-15T16:15:50.709Z ERROR @wdio/cli:launcher: No specs found to run, exiting with failure
2021-09-15T16:15:50.963Z INFO @wdio/local-runner: Waiting for 0 to shut down gracefully
2021-09-15T16:15:50.964Z INFO @wdio/local-runner: shutting down
is there any work around for this? no change in my code, 2 days back worked fine.
Can you share your project folder setup, the error message is pretty clear
pattern ./test/specs/test.js did not match any file
@wswebcreation , @christian-bromann I have shared the project here issue: what we defined in the config file 'before' hook ,the browser launched on mobile android and later script sitting idle …we need to kill forcibly to kill the session
https://github.com/EINBOX/WDIOTest
am not sure what went wrong, feeling strange but definitely together we can solve this issue.
@EINBOX
This code is breaking in multiple places, let me create a PR to make this work
sure @wswebcreation
@EINBOX
I've created a PR, please check the files.
The issue for this to hang (maybe also good for @christian-bromann to know) was the allure reporter.
You had this config option in the reporter useCucumberStepReporter: true
. That one is only needed when you use Cucumber as a framework. You are using Mocha so you or don't need to provide that option, or put it to false.
With the proposed changes your set up will work again
With the proposed changes your set up will work again
Thanks for investigating @wswebcreation ! Why was this halting the execution? Usually a reporter should not be able to do that?
I think the reporter was hanging here https://github.com/webdriverio/webdriverio/blob/7415f3126e15a733b51721492e4995ceafae6046/packages/wdio-allure-reporter/src/index.ts#L89 due to the incorrect option value. Not sure if this is a bug or just a not correct usage of the arguments.
The question is why it would hang there. It is an event emitter function and should not cause other executions to hang.
@wswebcreation thank you very much your support and time , I will do modification accordingly and let you know the status.
once again thank you sir, its working ..just because of one line …created stage situation
sir, can you assist the way to do debugging in wdio, my BG is selenium java there its easy to do debug..here really am sure how to do exactly help me to save my time , definitely debugger is going to save anyones life.
@wswebcreation as you suggested , I have reduced waitTimeout and but getting now timeout issues
mochaOpts: {
ui: 'bdd',
defaultTimeoutInterval: 60000, // => you had 1200000 which is tooooo long
Timeout of 10000ms exceeded. The execution in the test "My Login application" took too long. Try to reduce the run time or increase your timeout for test specs
I have declared 10000ms anywhere from where it is picking?
is there anything line .sync method until need to wait for an elment in case if elment exists within defined ,it shud come out.
where exactly I need to increase time ? is this mocha framework level or spec level or browserconfig level?
increased mochaOpts: {
ui: 'bdd',
defaultTimeoutInterval: 120000,
Though I have increase spec level, still getting the same issue
describe('My Login application', () => {
beforeEach(async () => {
await browser.url('./');
console.log('yes,before each')
//browser.debug()
await browser.setTimeout({'script': 999999999})
});
it('test pages', async () =>{
console.log('yes, testing page test case:')
const view=await $('#View')
await view.waitForExist(50000)
console.log('yes,view object wait 1:')
const isview=await view.isExisting(50000);
console.log('isview exist:'+isview)
})
})
Hi @EINBOX
More information about timeouts can be found here https://webdriver.io/docs/timeouts/
Secondly, if you want to overwrite the timeout for a specific function that you should use the arguments are provided in the docs, see for example your await view.waitForExist(50000)
in the code above. That should be await view.waitForExist({timeout :50000})
@wswebcreation thank you for your guidance/suggestions , for Debugging : I have tried configuring node js like in the picture but when I try to run its giving error message but using rpm run androindBrowser ..no issues do I need to do any setup for debugging purpose
though I have installed wdio-appium-service, its throwing error as below error
2021-09-16T17:35:54.741Z INFO @wdio/local-runner: Shutting down spawned worker
2021-09-16T17:35:54.733Z ERROR @wdio/utils:initialiseServices: Error: Couldn't find plugin "appium" service, neither as wdio scoped package "@wdio/appium-service" nor as community package "wdio-appium-service". Please make sure you have it installed!
2021-09-16T17:35:54.738Z WARN @wdio/config:ConfigParser: pattern ./test/specs/**/*.js did not match any file
2021-09-16T17:35:54.739Z WARN @wdio/config:ConfigParser: pattern ./test/specs/**/fontsize.spec.js did not match any file
2021-09-16T17:35:54.739Z ERROR @wdio/cli:launcher: No specs found to run, exiting with failure
2021-09-16T17:35:54.993Z INFO @wdio/local-runner: Waiting for 0 to shut down gracefully
2021-09-16T17:35:54.994Z INFO @wdio/local-runner: shutting down
please suggest me best setup for debugging.
2021-09-16T17:35:54.738Z WARN @wdio/config:ConfigParser: pattern ./test/specs/*/.js did not match any file 2021-09-16T17:35:54.739Z WARN @wdio/config:ConfigParser: pattern ./test/specs/**/fontsize.spec.js did not match any file 2021-09-16T17:35:54.739Z ERROR @wdio/cli:launcher: No specs found to run, exiting with failure
It seems that your spec files are not existing at the given path.
with the same path ,no issue while running rpm run fontsizetes its throwing error only when i tried above way
in debug mode ,we can build our test very fast but run mode its difficult
Hello,
while in test execution, After launching the application on mobile chrome browser, my test execution is pausing and saying as below , can you please help to fix this
[0-0] 2021-09-14T10:55:43.383Z DEBUG @wdio/utils:shim: Finished to run "before" hook in 9181ms
what does it mean? earlier it was working fine like launching app and performing few actions.
can you please someone help to fix this?
after this ,manually I need to kill the session to run again.