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

Cannot connect Appium server when run device-farm - using Appium Java 2x #1512

Open
anhtester opened this issue Jan 16, 2025 · 6 comments
Open

Comments

@anhtester
Copy link

anhtester commented Jan 16, 2025

Start Appium server with command:

appium -pa /wd/hub -ka 800 --use-plugins=element-wait,gestures,device-farm  --plugin-device-farm-platform=android
[Appium] Attempting to load plugin element-wait...
[Appium] Attempting to load plugin gestures...
[Appium] Attempting to load plugin device-farm...
[Appium] Requiring plugin at C:\Users\votha\node_modules\appium-wait-plugin\lib\index.js
[Appium] Requiring plugin at C:\Users\votha\node_modules\appium-gestures-plugin\lib\index.js
[Appium] Requiring plugin at C:\Users\votha\node_modules\appium-device-farm\lib\src\main.js
{ DeviceFarmProLoader: [class q], default: [class q] }
[Appium] Ot has been successfully loaded in 0.898s
[Appium] WaitCommandPlugin has been successfully loaded in 0.922s
[Appium] GesturesPlugin has been successfully loaded in 0.925s
[Appium] Welcome to Appium v2.13.1
[Appium] Non-default server args:
[Appium] {
  basePath: '/wd/hub',
  keepAliveTimeout: 800,
  usePlugins: [
    'element-wait',
    'gestures',
    'device-farm'
  ]
}
[Appium] The autodetected Appium home path: C:\Users\votha
[Appium] Attempting to load driver flutter...
[Appium] Attempting to load driver xcuitest...
[Appium] Attempting to load driver uiautomator2...
[Appium] Requiring driver at C:\Users\votha\node_modules\appium-flutter-driver\build\lib\driver.js
[Appium] Requiring driver at C:\Users\votha\node_modules\appium-xcuitest-driver\build\index.js
[Appium] Requiring driver at C:\Users\votha\node_modules\appium-uiautomator2-driver\build\index.js
[Appium] FlutterDriver has been successfully loaded in 1.494s
[Appium] XCUITestDriver has been successfully loaded in 2.070s
[Appium] AndroidUiautomator2Driver has been successfully loaded in 2.603s
(node:23076) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 exit listeners added to [process]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit
(Use `node --trace-warnings ...` to show where the warning was created)
[device-farm-main] 📱 Update server with CLI Args: {"subcommand":"server","address":"0.0.0.0","basePath":"/wd/hub","keepAliveTimeout":800,"port":4723,"usePlugins":["element-wait","gestures","device-farm"],"plugin":{"device-farm":{"platform":"android","androidDeviceType":"both","iosDeviceType":"both"}},"extraArgs":[],"allowCors":false,"allowInsecure":[],"callbackPort":4723,"debugLogSpacing":false,"denyInsecure":[],"localTimezone":false,"loglevel":"debug","logFormat":"text","logNoColors":false,"logTimestamp":false,"pluginsImportChunkSize":7,"driversImportChunkSize":3,"longStacktrace":false,"noPermsCheck":false,"relaxedSecurityEnabled":false,"shutdownTimeout":5000,"sessionOverride":false,"strictCaps":false,"useDrivers":[],"driver":{"xcuitest":{"wdaLocalPort":8100}},"tmpDir":"C:\\Users\\votha\\AppData\\Local\\Temp"}
{ DeviceFarmProLoader: [class q], default: [class q] }
[ADB] Found 9 'build-tools' folders under 'C:\Users\votha\AppData\Local\Android\Sdk' (newest first):
[ADB]     C:\Users\votha\AppData\Local\Android\Sdk\build-tools\35.0.0-rc1
[ADB]     C:\Users\votha\AppData\Local\Android\Sdk\build-tools\34.0.0
[ADB]     C:\Users\votha\AppData\Local\Android\Sdk\build-tools\34.0.0-rc3
[ADB]     C:\Users\votha\AppData\Local\Android\Sdk\build-tools\33.0.1
[ADB]     C:\Users\votha\AppData\Local\Android\Sdk\build-tools\33.0.0
[ADB]     C:\Users\votha\AppData\Local\Android\Sdk\build-tools\32.0.0
[ADB]     C:\Users\votha\AppData\Local\Android\Sdk\build-tools\31.0.0
[ADB]     C:\Users\votha\AppData\Local\Android\Sdk\build-tools\30.0.3
[ADB]     C:\Users\votha\AppData\Local\Android\Sdk\build-tools\30.0.0
[ADB] Using 'adb.exe' from 'C:\Users\votha\AppData\Local\Android\Sdk\platform-tools\adb.exe'
[ADB] Running 'C:\Users\votha\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 start-server'
[device-farm-main] Cli Args: {"subcommand":"server","address":"0.0.0.0","basePath":"/wd/hub","keepAliveTimeout":800,"port":4723,"usePlugins":["element-wait","gestures","device-farm"],"plugin":{"device-farm":{"platform":"android","androidDeviceType":"both","iosDeviceType":"both"}},"extraArgs":[],"allowCors":false,"allowInsecure":[],"callbackPort":4723,"debugLogSpacing":false,"denyInsecure":[],"localTimezone":false,"loglevel":"debug","logFormat":"text","logNoColors":false,"logTimestamp":false,"pluginsImportChunkSize":7,"driversImportChunkSize":3,"longStacktrace":false,"noPermsCheck":false,"relaxedSecurityEnabled":false,"shutdownTimeout":5000,"sessionOverride":false,"strictCaps":false,"useDrivers":[],"driver":{"xcuitest":{"wdaLocalPort":8100}},"tmpDir":"C:\\Users\\votha\\AppData\\Local\\Temp"}
[device-farm-main] 📱 Update server with Plugin Args: {"platform":"android","iosDeviceType":"both","androidDeviceType":"both","skipChromeDownload":true,"maxSessions":8,"adbRemote":[],"emulators":[],"simulators":[],"deviceAvailabilityTimeoutMs":300000,"deviceAvailabilityQueryIntervalMs":10000,"sendNodeDevicesToHubIntervalMs":30000,"checkStaleDevicesIntervalMs":30000,"checkBlockedDevicesIntervalMs":30000,"newCommandTimeoutSec":60,"bindHostOrIp":"192.168.1.18","enableDashboard":false,"removeDevicesFromDatabaseBeforeRunningThePlugin":false,"remoteConnectionTimeout":60000,"liveStreaming":true,"wdaBundleId":"","preBuildWDAPath":""}
[device-farm-main] Initializing storage
[device-farm-main] Initializing database
[device-farm-main] Creating new database: ./temp-appium/db.json
[device-farm-main] Database loaded
[device-farm-main] proxy is not required for axios
[device-farm-main] Registering proxy middleware
[device-farm-main] Registering websocket handler for Android Streaming
[device-farm-main] 📣📣📣 I'm a hub and I'm listening on 192.168.1.18:4723
[device-farm-main] Found 0 device candidates to be released
[device-farm-main] Hub will clean pending sessions every 30000 ms with pending session timeout: 310000 ms
[ADB] Using 'adb.exe' from 'C:\Users\votha\AppData\Local\Android\Sdk\platform-tools\adb.exe'
[ADB] Running 'C:\Users\votha\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 start-server'
[ADB] Getting connected devices
[ADB] Connected devices: [{"udid":"emulator-5554","state":"device"},{"udid":"emulator-5556","state":"device"}]
[device-farm-main] fetchAndroidDevices from host: undefined. Found 2 android devices
[device-farm-main] Android Device details for emulator-5554 not available. So querying now.
[device-farm-main] skipChromeDownload server arg is set; skipping Chromedriver installation.
[device-farm-main] Android web/hybrid testing will not be possible without Chromedriver.
[ADB] Running 'C:\Users\votha\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell getprop ro.build.version.release'
[ADB] Running 'C:\Users\votha\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell getprop ro.build.characteristics'
[ADB] Running 'C:\Users\votha\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell wm size'
[ADB] Running 'C:\Users\votha\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5554 shell getprop ro.product.name'
[device-farm-main] Screen dimension for device emulator-5554 : Physical size: 1344x2992
[device-farm-main] Parsed screen dimension for device emulator-5554 : 1344x2992
[device-farm-main] Android Device details for emulator-5556 not available. So querying now.
[device-farm-main] skipChromeDownload server arg is set; skipping Chromedriver installation.
[device-farm-main] Android web/hybrid testing will not be possible without Chromedriver.
[ADB] Running 'C:\Users\votha\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5556 shell getprop ro.build.version.release'
[ADB] Running 'C:\Users\votha\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5556 shell getprop ro.build.characteristics'
[ADB] Running 'C:\Users\votha\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5556 shell wm size'
[ADB] Running 'C:\Users\votha\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s emulator-5556 shell getprop ro.product.name'
[device-farm-main] Screen dimension for device emulator-5556 : Physical size: 1344x2992
[device-farm-main] Parsed screen dimension for device emulator-5556 : 1344x2992
[device-farm-main] Found 2 android devices
[device-farm-main] Added 2 new devices to local database
[device-farm-main] 📣📣📣 Device Farm Plugin will be served at 🔗 http://192.168.1.18:4723/device-farm with id 33b9aab2-8f1c-4e5e-842b-adbd9653b6d6
[Appium] Appium REST http interface listener started on http://0.0.0.0:4723/wd/hub
[Appium] You can provide the following URLs in your client code to connect to this server:
        http://192.168.1.18:4723/wd/hub
        http://192.168.30.1:4723/wd/hub
        http://192.168.31.1:4723/wd/hub
        http://127.0.0.1:4723/wd/hub (only accessible from the same host)
        http://172.20.16.1:4723/wd/hub
[Appium] Available drivers:
[Appium]   - [email protected] (automationName 'Flutter')
[Appium]   - [email protected] (automationName 'XCUITest')
[Appium]   - [email protected] (automationName 'UiAutomator2')
[Appium] Available plugins:
[Appium]   - [email protected] (ACTIVE)
[Appium]   - [email protected] (ACTIVE)
[Appium]   - [email protected]
[Appium]   - [email protected] (ACTIVE)
[Appium]   - [email protected]
[Appium]   - [email protected]
[Appium]   - [email protected]
[HTTP] --> GET /device-farm/api/device {}
[device-farm-main] Received non-webdriver request with url /device-farm/api/device. So, not proxying it to downstream.
[HTTP] --> GET /dashboard/api/ping {}
[device-farm-main] Received non-webdriver request with url /dashboard/api/ping. So, not proxying it to downstream.

2025-01-16_15-21-48

In BaseTest class using Appium Java (2x):

try {
            driver = new AppiumDriver(new URL("http://" + ConfigData.IP_ADDRESS + ":" + ConfigData.PORT + "/wd/hub"), option);
            DriverManager.setDriver(driver);
        } catch (MalformedURLException e) {
            throw new RuntimeException(e);
        }

ERROR:

org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Response code 500. Message: An unknown server-side error occurred while processing the command. Original error: Cannot read properties of undefined (reading '0') 
Host info: host: 'ANHTESTER', ip: '192.168.31.1'
Build info: version: '4.27.0', revision: 'd6e718d134'
System info: os.name: 'Windows 11', os.arch: 'amd64', os.version: '10.0', java.version: '22.0.2'
Driver info: io.appium.java_client.AppiumDriver
Command: [null, newSession {capabilities=[Capabilities {appium:appActivity: com.anhtester.mobile_app.ta..., appium:appPackage: com.anhtester.mobile_app.ta..., appium:autoGrantPermissions: true, appium:automationName: Flutter, appium:deviceName: Pixel_8_Pro_API_35, appium:forceAppLaunch: true, appium:fullReset: false, appium:noReset: true, appium:platformVersion: 15, platformName: ANDROID}]}]
Capabilities {appium:appActivity: com.anhtester.mobile_app.ta..., appium:appPackage: com.anhtester.mobile_app.ta..., appium:autoGrantPermissions: true, appium:automationName: Flutter, appium:deviceName: Pixel_8_Pro_API_35, appium:forceAppLaunch: true, appium:fullReset: false, appium:noReset: true, appium:platformVersion: 15, platformName: ANDROID}

	at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:114)
	at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:75)
	at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:61)
	at io.appium.java_client.remote.AppiumCommandExecutor.createSession(AppiumCommandExecutor.java:176)
	at io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:237)
	at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:545)
	at io.appium.java_client.AppiumDriver.startSession(AppiumDriver.java:270)
	at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:174)
	at io.appium.java_client.AppiumDriver.<init>(AppiumDriver.java:91)
	at io.appium.java_client.AppiumDriver.<init>(AppiumDriver.java:103)
	at com.anhtester.common.BaseTest.setUpDriver(BaseTest.java:95)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.testng.internal.invokers.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:141)
	at org.testng.internal.invokers.MethodInvocationHelper.invokeMethodConsideringTimeout(MethodInvocationHelper.java:71)
	at org.testng.internal.invokers.ConfigInvoker.invokeConfigurationMethod(ConfigInvoker.java:400)
	at org.testng.internal.invokers.ConfigInvoker.invokeConfigurations(ConfigInvoker.java:333)
	at org.testng.TestRunner.invokeTestConfigurations(TestRunner.java:655)
	at org.testng.TestRunner.beforeRun(TestRunner.java:644)
	at org.testng.TestRunner.run(TestRunner.java:610)
	at org.testng.SuiteRunner.runTest(SuiteRunner.java:421)
	at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:413)
	at org.testng.SuiteRunner.privateRun(SuiteRunner.java:373)
	at org.testng.SuiteRunner.run(SuiteRunner.java:312)
	at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
	at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:95)
	at org.testng.TestNG.runSuitesSequentially(TestNG.java:1274)
	at org.testng.TestNG.runSuitesLocally(TestNG.java:1208)
	at org.testng.TestNG.runSuites(TestNG.java:1112)
	at org.testng.TestNG.run(TestNG.java:1079)
	at com.intellij.rt.testng.IDEARemoteTestNG.run(IDEARemoteTestNG.java:65)
	at com.intellij.rt.testng.RemoteTestNGStarter.main(RemoteTestNGStarter.java:105)

2025-01-16_15-21-40

@anhtester anhtester changed the title Cannot connect Appium server when run device-farm before Cannot connect Appium server when run device-farm before using Appium Java 2x Jan 16, 2025
@anhtester anhtester changed the title Cannot connect Appium server when run device-farm before using Appium Java 2x Cannot connect Appium server when run device-farm - using Appium Java 2x Jan 16, 2025
@sudharsan-selvaraj
Copy link
Member

sudharsan-selvaraj commented Jan 16, 2025

@anhtester We haven't thoroughly tested the device farm with appium-flutter-driver yet, so there might be some breaking issues. We'll investigate this further and implement a fix.

Meanwhile, could you share the complete server logs as a gist for us to investigate?

@saikrishna321
Copy link
Member

@anhtester Can you try with the latest appium device farm and also the version in this pom.xml https://github.com/AppiumTestDistribution/ATD_LT_DEMO/blob/main/pom.xml

@anhtester
Copy link
Author

@anhtester We haven't thoroughly tested the device farm with appium-flutter-driver yet, so there might be some breaking issues. We'll investigate this further and implement a fix.

Meanwhile, could you share the complete server logs as a gist for us to investigate?

Send you my logs:

***SERVER ADDRESS: 0.0.0.0
***SERVER POST: 4723
***platformName: Android
***platformVersion: 15
***automationName: Flutter
***noReset: true
***fullReset: false
***deviceName: Pixel_8_Pro_API_35
***appPackage: com.anhtester.mobile_app.taurus
***appActivity: com.anhtester.mobile_app.taurus.MainActivity
[HTTP] --> POST /session {"capabilities":{"firstMatch":[{"appium:noReset":true,"appium:forceAppLaunch":true,"appium:appActivity":"com.anhtester.mobile_app.taurus.MainActivity","appium:deviceName":"Pixel_8_Pro_API_35","platformName":"ANDROID","appium:automationName":"Flutter","appium:fullReset":false,"appium:platformVersion":"15","appium:appPackage":"com.anhtester.mobile_app.taurus"}]}}
[AppiumDriver@a191] Plugins which can handle cmd 'createSession': element-wait
[AppiumDriver@a191] Plugin element-wait is now handling cmd 'createSession'
[AppiumDriver@a191] Executing default handling behavior for command 'createSession'
[Appium] Attempting to find matching driver for automationName 'Flutter' and platformName 'ANDROID'
[Appium] The 'flutter' driver was installed and matched caps.
[Appium] Will require it at C:\Users\votha.appium\node_modules\appium-flutter-driver
[AppiumDriver@a191] Appium v2.15.0 creating new FlutterDriver (v2.11.0) session
[AppiumDriver@a191] Checking BaseDriver versions for Appium and FlutterDriver
[AppiumDriver@a191] Appium's BaseDriver version is 9.15.0
[AppiumDriver@a191] FlutterDriver's BaseDriver version is 9.12.1
[FlutterDriver@b5d5] The following provided capabilities were not recognized by this driver:
[FlutterDriver@b5d5] forceAppLaunch
[FlutterDriver@b5d5] appActivity
[FlutterDriver@b5d5] deviceName
[FlutterDriver@b5d5] appPackage
[738e6209][FlutterDriver@b5d5] Session created with session id: 738e6209-9b80-44d2-8f0b-24d2d0f5b81e
[738e6209][FlutterDriver@b5d5] Starting an Android proxy session
[2333b714]�[38;5;-93m[AndroidUiautomator2Driver@3292] Session created with session id: 2333b714-8f47-4071-a5ab-83de65acea1a
[2333b714][ADB] Found 9 'build-tools' folders under 'C:\Users\votha\AppData\Local\Android\Sdk' (newest first):
[2333b714][ADB] C:\Users\votha\AppData\Local\Android\Sdk\build-tools\35.0.0-rc1
[2333b714][ADB] C:\Users\votha\AppData\Local\Android\Sdk\build-tools\34.0.0
[2333b714][ADB] C:\Users\votha\AppData\Local\Android\Sdk\build-tools\34.0.0-rc3
[2333b714][ADB] C:\Users\votha\AppData\Local\Android\Sdk\build-tools\33.0.1
[2333b714][ADB] C:\Users\votha\AppData\Local\Android\Sdk\build-tools\33.0.0
[2333b714][ADB] C:\Users\votha\AppData\Local\Android\Sdk\build-tools\32.0.0
[2333b714][ADB] C:\Users\votha\AppData\Local\Android\Sdk\build-tools\31.0.0
[2333b714][ADB] C:\Users\votha\AppData\Local\Android\Sdk\build-tools\30.0.3
[2333b714][ADB] C:\Users\votha\AppData\Local\Android\Sdk\build-tools\30.0.0
[2333b714][ADB] Using 'adb.exe' from 'C:\Users\votha\AppData\Local\Android\Sdk\platform-tools\adb.exe'
[2333b714]�[38;5;-93m[AndroidUiautomator2Driver@3292] Retrieving device list
[2333b714]�[38;5;-93m[AndroidUiautomator2Driver@3292] Looking for a device with Android '15.0.0'
[2333b714][ADB] Getting device platform version
[2333b714]�[38;5;-93m[AndroidUiautomator2Driver@3292] Using device: emulator-5554
[2333b714][ADB] Using 'adb.exe' from 'C:\Users\votha\AppData\Local\Android\Sdk\platform-tools\adb.exe'
[2333b714]�[38;5;-93m[AndroidUiautomator2Driver@3292] Starting 'com.anhtester.mobile_app.taurus' directly on the device
[2333b714][ADB] Getting device platform version
[2333b714]�[38;5;-93m[AndroidUiautomator2Driver@3292] Relaxing hidden api policy
[2333b714]�[38;5;-93m[AndroidUiautomator2Driver@3292] No app sent in, not parsing package/activity
[2333b714][ADB] Using 'aapt2.exe' from 'C:\Users\votha\AppData\Local\Android\Sdk\build-tools\35.0.0-rc1\aapt2.exe'
[2333b714]�[38;5;-93m[AndroidUiautomator2Driver@3292] Server packages are not going to be (re)installed
[2333b714][ADB] Adding packages ["io.appium.settings","io.appium.uiautomator2.server","io.appium.uiautomator2.server.test"] to Doze whitelist
[2333b714]�[38;5;-93m[AndroidUiautomator2Driver@3292] Starting UIAutomator2 server 7.1.5
[2333b714]�[38;5;-93m[AndroidUiautomator2Driver@3292] Using UIAutomator2 server from 'C:\Users\votha.appium\node_modules\appium-flutter-driver\node_modules\appium-uiautomator2-driver\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v7.1.5.apk' and test from 'C:\Users\votha.appium\node_modules\appium-flutter-driver\node_modules\appium-uiautomator2-driver\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk'
[2333b714]�[38;5;-93m[AndroidUiautomator2Driver@3292] Waiting up to 30000ms for UiAutomator2 to be online...
[2333b714]�[38;5;-93m[AndroidUiautomator2Driver@3292] socket hang up
[2333b714]�[38;5;-93m[AndroidUiautomator2Driver@3292] socket hang up
[2333b714]�[38;5;-93m[AndroidUiautomator2Driver@3292] socket hang up
[2333b714]�[38;5;-93m[AndroidUiautomator2Driver@3292] Determined the downstream protocol as 'W3C'
[2333b714]�[38;5;-93m[AndroidUiautomator2Driver@3292] Screen already unlocked, doing nothing
[2333b714]�[38;5;-93m[AndroidUiautomator2Driver@3292] Starting 'com.anhtester.mobile_app.taurus/com.anhtester.mobile_app.taurus.MainActivity and waiting for 'com.anhtester.mobile_app.taurus/com.anhtester.mobile_app.taurus.MainActivity'
[2333b714][FlutterDriver@b5d5] Deleting Flutter Driver session
[2333b714][FlutterDriver@b5d5] Cleanup the port forward
[2333b714][wait-plugin] Failed to create sessions
[2333b714][HTTP] <-- POST /session 500 6415 ms - 664

org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Response code 500. Message: An unknown server-side error occurred while processing the command. Original error: Cannot read properties of undefined (reading '0')
Host info: host: 'ANHTESTER', ip: '10.10.60.2'
Build info: version: '4.27.0', revision: 'd6e718d134'
System info: os.name: 'Windows 11', os.arch: 'amd64', os.version: '10.0', java.version: '22.0.2'
Driver info: io.appium.java_client.AppiumDriver
Command: [null, newSession {capabilities=[Capabilities {appium:appActivity: com.anhtester.mobile_app.ta..., appium:appPackage: com.anhtester.mobile_app.ta..., appium:automationName: Flutter, appium:deviceName: Pixel_8_Pro_API_35, appium:forceAppLaunch: true, appium:fullReset: false, appium:noReset: true, appium:platformVersion: 15, platformName: ANDROID}]}]
Capabilities {appium:appActivity: com.anhtester.mobile_app.ta..., appium:appPackage: com.anhtester.mobile_app.ta..., appium:automationName: Flutter, appium:deviceName: Pixel_8_Pro_API_35, appium:forceAppLaunch: true, appium:fullReset: false, appium:noReset: true, appium:platformVersion: 15, platformName: ANDROID}

at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:114)
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:75)
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:61)
at io.appium.java_client.remote.AppiumCommandExecutor.createSession(AppiumCommandExecutor.java:176)
at io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:237)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:545)
at io.appium.java_client.AppiumDriver.startSession(AppiumDriver.java:270)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:174)
at io.appium.java_client.AppiumDriver.<init>(AppiumDriver.java:91)
at io.appium.java_client.AppiumDriver.<init>(AppiumDriver.java:103)
at com.anhtester.common.BaseTest.setUpDriver(BaseTest.java:95)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at org.testng.internal.invokers.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:141)
at org.testng.internal.invokers.MethodInvocationHelper.invokeMethodConsideringTimeout(MethodInvocationHelper.java:71)
at org.testng.internal.invokers.ConfigInvoker.invokeConfigurationMethod(ConfigInvoker.java:400)
at org.testng.internal.invokers.ConfigInvoker.invokeConfigurations(ConfigInvoker.java:333)
at org.testng.TestRunner.invokeTestConfigurations(TestRunner.java:655)
at org.testng.TestRunner.beforeRun(TestRunner.java:644)
at org.testng.TestRunner.run(TestRunner.java:610)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:421)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:413)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:373)
at org.testng.SuiteRunner.run(SuiteRunner.java:312)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:95)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1274)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1208)
at org.testng.TestNG.runSuites(TestNG.java:1112)
at org.testng.TestNG.run(TestNG.java:1079)
at com.intellij.rt.testng.IDEARemoteTestNG.run(IDEARemoteTestNG.java:65)
at com.intellij.rt.testng.RemoteTestNGStarter.main(RemoteTestNGStarter.java:105)

@anhtester
Copy link
Author

@anhtester Can you try with the latest appium device farm and also the version in this pom.xml https://github.com/AppiumTestDistribution/ATD_LT_DEMO/blob/main/pom.xml

I using the latest appium device farm. Not work.

@saikrishna321
Copy link
Member

Do u have the same version as pom.xml

@anhtester
Copy link
Author

Do u have the same version as pom.xml

com.github.AppiumTestDistribution AppiumTestDistribution 9a8b2e340f

I do not it. It not work.

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

No branches or pull requests

3 participants