Last active
April 14, 2024 18:50
-
-
Save kutobot/198df1443c23739576cfa147f047b64b to your computer and use it in GitHub Desktop.
SessionNotCreatedException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
krishna@krishnas-Mac-mini PageObjectPatternAppium1 % Platform=android mvn clean -Dtest=Runner test | |
[INFO] Scanning for projects... | |
[WARNING] | |
[WARNING] Some problems were encountered while building the effective model for com.pagepattern.appium:PagePatternAppium:jar:0.0.1-SNAPSHOT | |
[WARNING] 'dependencies.dependency.version' for log4j:log4j:jar is either LATEST or RELEASE (both of them are being deprecated) @ line 38, column 22 | |
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 10, column 21 | |
[WARNING] | |
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. | |
[WARNING] | |
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects. | |
[WARNING] | |
[INFO] | |
[INFO] --------------< com.pagepattern.appium:PagePatternAppium >-------------- | |
[INFO] Building PagePatternAppium 0.0.1-SNAPSHOT | |
[INFO] from pom.xml | |
[INFO] --------------------------------[ jar ]--------------------------------- | |
[INFO] | |
[INFO] --- clean:3.2.0:clean (default-clean) @ PagePatternAppium --- | |
[INFO] Deleting /Users/krishna/IdeaProjects/PageObjectPatternAppium1/target | |
[INFO] | |
[INFO] --- resources:3.3.1:resources (default-resources) @ PagePatternAppium --- | |
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! | |
[INFO] skip non existing resourceDirectory /Users/krishna/IdeaProjects/PageObjectPatternAppium1/src/main/resources | |
[INFO] | |
[INFO] --- compiler:3.11.0:compile (default-compile) @ PagePatternAppium --- | |
[INFO] No sources to compile | |
[INFO] | |
[INFO] --- resources:3.3.1:testResources (default-testResources) @ PagePatternAppium --- | |
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! | |
[INFO] Copying 21 resources from src/test/resources to target/test-classes | |
[INFO] | |
[INFO] --- compiler:3.11.0:testCompile (default-testCompile) @ PagePatternAppium --- | |
[INFO] Changes detected - recompiling the module! :source | |
[WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent! | |
[INFO] Compiling 34 source files with javac [debug target 17] to target/test-classes | |
[INFO] /Users/krishna/IdeaProjects/PageObjectPatternAppium1/src/test/java/com/appium/config/CommonAppiumTest.java: Some input files use or override a deprecated API. | |
[INFO] /Users/krishna/IdeaProjects/PageObjectPatternAppium1/src/test/java/com/appium/config/CommonAppiumTest.java: Recompile with -Xlint:deprecation for details. | |
[INFO] /Users/krishna/IdeaProjects/PageObjectPatternAppium1/src/test/java/com/appium/config/CommonAppiumTest.java: /Users/krishna/IdeaProjects/PageObjectPatternAppium1/src/test/java/com/appium/config/CommonAppiumTest.java uses unchecked or unsafe operations. | |
[INFO] /Users/krishna/IdeaProjects/PageObjectPatternAppium1/src/test/java/com/appium/config/CommonAppiumTest.java: Recompile with -Xlint:unchecked for details. | |
[INFO] | |
[INFO] --- surefire:3.2.2:test (default-test) @ PagePatternAppium --- | |
[INFO] Using auto detected provider org.apache.maven.surefire.testng.TestNGProvider | |
[INFO] | |
[INFO] ------------------------------------------------------- | |
[INFO] T E S T S | |
[INFO] ------------------------------------------------------- | |
[INFO] Running com.appium.tests.Runner | |
SLF4J: No SLF4J providers were found. | |
SLF4J: Defaulting to no-operation (NOP) logger implementation | |
SLF4J: See https://www.slf4j.org/codes.html#noProviders for further details. | |
[Appium] Attempting to load plugin device-farm... | |
[Appium] Requiring plugin at /Users/krishna/.appium/node_modules/appium-device-farm/lib/src/main.js | |
[Appium] DevicePlugin has been successfully loaded in 0.405s | |
[Appium] Welcome to Appium v2.5.2 (REV 0476c2e5e4f02b409084553896340b2f4ab3352e) | |
[Appium] Non-default server args: | |
[Appium] { address: '127.0.0.1', | |
[Appium] basePath: '/wd/hub/', | |
[Appium] port: 16919, | |
[Appium] relaxedSecurityEnabled: true, | |
[Appium] usePlugins: [ 'device-farm' ] } | |
[Appium] The autodetected Appium home path: /Users/krishna/.appium | |
[Appium] Attempting to load driver uiautomator2... | |
[Appium] Attempting to load driver xcuitest... | |
[Appium] Requiring driver at /Users/krishna/.appium/node_modules/appium-uiautomator2-driver/build/index.js | |
[Appium] AndroidUiautomator2Driver has been successfully loaded in 0.325s | |
[Appium] Requiring driver at /Users/krishna/.appium/node_modules/appium-xcuitest-driver/build/index.js | |
[Appium] XCUITestDriver has been successfully loaded in 0.675s | |
[device-farm-main] 📱 Update server with CLI Args: {"subcommand":"server","address":"127.0.0.1","basePath":"/wd/hub/","logFile":"/Users/krishna/IdeaProjects/PageObjectPatternAppium1/target/appiumlogs/appium_logs.txt","port":16919,"relaxedSecurityEnabled":true,"configFile":"/Users/krishna/IdeaProjects/PageObjectPatternAppium1/target/server.json","extraArgs":[],"usePlugins":["device-farm"],"plugin":{"device-farm":{"skipChromeDownload":true,"platform":"android","androidDeviceType":"both","iosDeviceType":"both"}},"allowCors":false,"allowInsecure":[],"callbackPort":4723,"debugLogSpacing":false,"denyInsecure":[],"keepAliveTimeout":600,"localTimezone":false,"loglevel":"debug","logNoColors":false,"logTimestamp":false,"pluginsImportChunkSize":7,"driversImportChunkSize":3,"longStacktrace":false,"noPermsCheck":false,"sessionOverride":false,"strictCaps":false,"useDrivers":[],"driver":{"xcuitest":{"wdaLocalPort":8100}},"tmpDir":"/var/folders/6g/3v3p295x16n03_zby11b2dsr0000gn/T"} | |
[device-farm-main] Cli Args: {"subcommand":"server","address":"127.0.0.1","basePath":"/wd/hub/","logFile":"/Users/krishna/IdeaProjects/PageObjectPatternAppium1/target/appiumlogs/appium_logs.txt","port":16919,"relaxedSecurityEnabled":true,"configFile":"/Users/krishna/IdeaProjects/PageObjectPatternAppium1/target/server.json","extraArgs":[],"usePlugins":["device-farm"],"plugin":{"device-farm":{"skipChromeDownload":true,"platform":"android","androidDeviceType":"both","iosDeviceType":"both"}},"allowCors":false,"allowInsecure":[],"callbackPort":4723,"debugLogSpacing":false,"denyInsecure":[],"keepAliveTimeout":600,"localTimezone":false,"loglevel":"debug","logNoColors":false,"logTimestamp":false,"pluginsImportChunkSize":7,"driversImportChunkSize":3,"longStacktrace":false,"noPermsCheck":false,"sessionOverride":false,"strictCaps":false,"useDrivers":[],"driver":{"xcuitest":{"wdaLocalPort":8100}},"tmpDir":"/var/folders/6g/3v3p295x16n03_zby11b2dsr0000gn/T"} | |
[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.0.9","enableDashboard":false,"removeDevicesFromDatabaseBeforeRunningThePlugin":false,"remoteConnectionTimeout":60000} | |
[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] 📣📣📣 Device Farm Plugin will be served at 🔗 http://xxxxxxxxx:16919/device-farm with id xxxxxxxxxxxxx | |
[device-farm-main] 📣📣📣 I'm a hub and I'm listening on xxx.xxx.x.x:16919 | |
[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] Found 1 'build-tools' folders under '/Users/krishna/Library/Android/sdk' (newest first): | |
[ADB] /Users/krishna/Library/Android/sdk/build-tools/34.0.0 | |
[ADB] Using 'adb' from '/Users/krishna/Library/Android/sdk/platform-tools/adb' | |
[ADB] Running '/Users/krishna/Library/Android/sdk/platform-tools/adb -P 5037 start-server' | |
[ADB] Getting connected devices | |
[ADB] Connected devices: [{"udid":"xxxxxxx","state":"device"}] | |
[device-farm-main] fetchAndroidDevices from host: undefined. Found 1 android devices | |
[device-farm-main] Android Device details for xxxxxxxx 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 '/Users/krishna/Library/Android/sdk/platform-tools/adb -P 5037 -s xxxxxxxx shell getprop ro.build.version.release' | |
[ADB] Running '/Users/krishna/Library/Android/sdk/platform-tools/adb -P 5037 -s xxxxxxxx shell getprop ro.build.characteristics' | |
[ADB] Running '/Users/krishna/Library/Android/sdk/platform-tools/adb -P 5037 -s xxxxxxxx shell getprop ro.product.name' | |
[device-farm-main] Found 1 android devices | |
[device-farm-main] Added 1 new devices to local database | |
[Appium] Appium REST http interface listener started on http://127.0.0.1:16919/wd/hub | |
[Appium] Available drivers: | |
[Appium] - uiautomator2@3.1.0 (automationName 'UiAutomator2') | |
[Appium] - xcuitest@7.11.3 (automationName 'XCUITest') | |
[Appium] Available plugins: | |
[Appium] - element-wait@3.0.2 | |
[Appium] - device-farm@8.4.7-rc.18 (ACTIVE) | |
[HTTP] --> GET /wd/hub/status | |
[HTTP] {} | |
[device-farm-main] Received non-webdriver request with url /wd/hub/status. So, not proxying it to downstream. | |
[AppiumDriver@6dd7] Calling AppiumDriver.getStatus() with args: [] | |
[device-farm-main] 📱 Plugin Args: {"skipChromeDownload":true,"platform":"android","androidDeviceType":"both","iosDeviceType":"both"} | |
[AppiumDriver@6dd7] Plugins which can handle cmd 'getStatus': device-farm | |
[AppiumDriver@6dd7] Plugin device-farm is now handling cmd 'getStatus' | |
[AppiumDriver@6dd7] Executing default handling behavior for command 'getStatus' | |
[AppiumDriver@6dd7] Responding to client with driver.getStatus() result: {"ready":true,"message":"The server is ready to accept new connections","build":{"version":"2.5.2","git-sha":"0476c2e5e4f02b409084553896340b2f4ab3352e","built":"2024-04-07 06:56:18 +0800"}} | |
[HTTP] <-- GET /wd/hub/status 200 7 ms - 199 | |
[HTTP] | |
1 | |
[HTTP] --> GET /device-farm/api/device | |
[HTTP] {} | |
[device-farm-main] Received non-webdriver request with url /device-farm/api/device. So, not proxying it to downstream. | |
[HTTP] --> GET /dashboard/api/ping | |
[HTTP] {} | |
[device-farm-main] Received non-webdriver request with url /dashboard/api/ping. So, not proxying it to downstream. | |
[HTTP] No route found for /dashboard/api/ping | |
[HTTP] <-- GET /dashboard/api/ping 404 4 ms - 211 | |
[HTTP] | |
[HTTP] <-- GET /device-farm/api/device 200 36 ms - 412 | |
[HTTP] | |
... | |
... TestNG 7.7.0 by Cédric Beust (cedric@beust.com) | |
... | |
[HTTP] --> GET /device-farm/api/cliArgs | |
[HTTP] {} | |
[device-farm-main] Received non-webdriver request with url /device-farm/api/cliArgs. So, not proxying it to downstream. | |
[HTTP] <-- GET /device-farm/api/cliArgs 200 1 ms - 999 | |
[HTTP] | |
org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure. | |
Host info: host: 'krishnas-Mac-mini.local', ip: '127.0.0.1' | |
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:536) | |
at io.appium.java_client.AppiumDriver.startSession(AppiumDriver.java:268) | |
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:161) | |
at io.appium.java_client.AppiumDriver.<init>(AppiumDriver.java:90) | |
at io.appium.java_client.AppiumDriver.<init>(AppiumDriver.java:102) | |
at io.appium.java_client.android.AndroidDriver.<init>(AndroidDriver.java:109) | |
at com.appium.manager.AppiumDriverManager.createAppiumDriver(AppiumDriverManager.java:66) | |
at com.appium.manager.AppiumDriverManager.initialiseDriver(AppiumDriverManager.java:52) | |
at com.appium.manager.AppiumDriverManager.startAppiumDriverInstance(AppiumDriverManager.java:104) | |
at com.appium.manager.AppiumDriverManager.startAppiumDriverInstance(AppiumDriverManager.java:89) | |
at com.appium.manager.AppiumParallelMethodTestListener.allocateDeviceAndStartDriver(AppiumParallelMethodTestListener.java:101) | |
at com.appium.manager.AppiumParallelMethodTestListener.beforeInvocation(AppiumParallelMethodTestListener.java:74) | |
at org.testng.internal.invokers.InvokedMethodListenerInvoker.invokeListener(InvokedMethodListenerInvoker.java:55) | |
at org.testng.internal.invokers.BaseInvoker.runInvokedMethodListeners(BaseInvoker.java:67) | |
at org.testng.internal.invokers.ConfigInvoker.invokeConfigurationMethod(ConfigInvoker.java:331) | |
at org.testng.internal.invokers.ConfigInvoker.invokeConfigurations(ConfigInvoker.java:296) | |
at org.testng.internal.invokers.TestInvoker.runConfigMethods(TestInvoker.java:823) | |
at org.testng.internal.invokers.TestInvoker.invokeMethod(TestInvoker.java:590) | |
at org.testng.internal.invokers.TestInvoker.invokeTestMethod(TestInvoker.java:221) | |
at org.testng.internal.invokers.MethodRunner.runInSequence(MethodRunner.java:50) | |
at org.testng.internal.invokers.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:969) | |
at org.testng.internal.invokers.TestInvoker.invokeTestMethods(TestInvoker.java:194) | |
at org.testng.internal.invokers.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:148) | |
at org.testng.internal.invokers.TestMethodWorker.run(TestMethodWorker.java:128) | |
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) | |
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) | |
at java.base/java.lang.Thread.run(Thread.java:833) | |
Caused by: org.openqa.selenium.WebDriverException: java.lang.NoSuchMethodException: org.openqa.selenium.remote.ProtocolHandshake.createSession(org.openqa.selenium.remote.http.HttpHandler,java.util.function.Supplier,long) | |
Build info: version: '4.19.1', revision: 'abe0ee07dc' | |
System info: os.name: 'Mac OS X', os.arch: 'aarch64', os.version: '14.4.1', java.version: '17.0.1' | |
Driver info: driver.version: AndroidDriver | |
at io.appium.java_client.remote.AppiumProtocolHandshake.createSession(AppiumProtocolHandshake.java:137) | |
at io.appium.java_client.remote.AppiumProtocolHandshake.createSession(AppiumProtocolHandshake.java:102) | |
at io.appium.java_client.remote.AppiumCommandExecutor.createSession(AppiumCommandExecutor.java:177) | |
at io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:238) | |
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:518) | |
... 26 more | |
Caused by: java.lang.NoSuchMethodException: org.openqa.selenium.remote.ProtocolHandshake.createSession(org.openqa.selenium.remote.http.HttpHandler,java.util.function.Supplier,long) | |
at java.base/java.lang.Class.getDeclaredMethod(Class.java:2675) | |
at io.appium.java_client.remote.AppiumProtocolHandshake.createSession(AppiumProtocolHandshake.java:128) | |
... 30 more | |
org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure. | |
Host info: host: 'krishnas-Mac-mini.local', ip: '127.0.0.1' | |
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:536) | |
at io.appium.java_client.AppiumDriver.startSession(AppiumDriver.java:268) | |
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:161) | |
at io.appium.java_client.AppiumDriver.<init>(AppiumDriver.java:90) | |
at io.appium.java_client.AppiumDriver.<init>(AppiumDriver.java:102) | |
at io.appium.java_client.android.AndroidDriver.<init>(AndroidDriver.java:109) | |
at com.appium.manager.AppiumDriverManager.createAppiumDriver(AppiumDriverManager.java:66) | |
at com.appium.manager.AppiumDriverManager.initialiseDriver(AppiumDriverManager.java:52) | |
at com.appium.manager.AppiumDriverManager.startAppiumDriverInstance(AppiumDriverManager.java:104) | |
at com.appium.manager.AppiumDriverManager.startAppiumDriverInstance(AppiumDriverManager.java:89) | |
at com.appium.manager.AppiumParallelMethodTestListener.allocateDeviceAndStartDriver(AppiumParallelMethodTestListener.java:101) | |
at com.appium.manager.AppiumParallelMethodTestListener.beforeInvocation(AppiumParallelMethodTestListener.java:74) | |
at org.testng.internal.invokers.InvokedMethodListenerInvoker.invokeListener(InvokedMethodListenerInvoker.java:55) | |
at org.testng.internal.invokers.BaseInvoker.runInvokedMethodListeners(BaseInvoker.java:67) | |
at org.testng.internal.invokers.TestInvoker.invokeListenersForSkippedTestResult(TestInvoker.java:510) | |
at org.testng.internal.invokers.TestInvoker.invokeMethod(TestInvoker.java:612) | |
at org.testng.internal.invokers.TestInvoker.invokeTestMethod(TestInvoker.java:221) | |
at org.testng.internal.invokers.MethodRunner.runInSequence(MethodRunner.java:50) | |
at org.testng.internal.invokers.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:969) | |
at org.testng.internal.invokers.TestInvoker.invokeTestMethods(TestInvoker.java:194) | |
at org.testng.internal.invokers.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:148) | |
at org.testng.internal.invokers.TestMethodWorker.run(TestMethodWorker.java:128) | |
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) | |
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) | |
at java.base/java.lang.Thread.run(Thread.java:833) | |
Caused by: org.openqa.selenium.WebDriverException: java.lang.NoSuchMethodException: org.openqa.selenium.remote.ProtocolHandshake.createSession(org.openqa.selenium.remote.http.HttpHandler,java.util.function.Supplier,long) | |
Build info: version: '4.19.1', revision: 'abe0ee07dc' | |
System info: os.name: 'Mac OS X', os.arch: 'aarch64', os.version: '14.4.1', java.version: '17.0.1' | |
Driver info: driver.version: AndroidDriver | |
at io.appium.java_client.remote.AppiumProtocolHandshake.createSession(AppiumProtocolHandshake.java:137) | |
at io.appium.java_client.remote.AppiumProtocolHandshake.createSession(AppiumProtocolHandshake.java:102) | |
at io.appium.java_client.remote.AppiumCommandExecutor.createSession(AppiumCommandExecutor.java:177) | |
at io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:238) | |
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:518) | |
... 24 more | |
Caused by: java.lang.NoSuchMethodException: org.openqa.selenium.remote.ProtocolHandshake.createSession(org.openqa.selenium.remote.http.HttpHandler,java.util.function.Supplier,long) | |
at java.base/java.lang.Class.getDeclaredMethod(Class.java:2675) | |
at io.appium.java_client.remote.AppiumProtocolHandshake.createSession(AppiumProtocolHandshake.java:128) | |
... 28 more | |
org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure. | |
Host info: host: 'krishnas-Mac-mini.local', ip: '127.0.0.1' | |
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:536) | |
at io.appium.java_client.AppiumDriver.startSession(AppiumDriver.java:268) | |
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:161) | |
at io.appium.java_client.AppiumDriver.<init>(AppiumDriver.java:90) | |
at io.appium.java_client.AppiumDriver.<init>(AppiumDriver.java:102) | |
at io.appium.java_client.android.AndroidDriver.<init>(AndroidDriver.java:109) | |
at com.appium.manager.AppiumDriverManager.createAppiumDriver(AppiumDriverManager.java:66) | |
at com.appium.manager.AppiumDriverManager.initialiseDriver(AppiumDriverManager.java:52) | |
at com.appium.manager.AppiumDriverManager.startAppiumDriverInstance(AppiumDriverManager.java:104) | |
at com.appium.manager.AppiumDriverManager.startAppiumDriverInstance(AppiumDriverManager.java:89) | |
at com.appium.manager.AppiumParallelMethodTestListener.allocateDeviceAndStartDriver(AppiumParallelMethodTestListener.java:101) | |
at com.appium.manager.AppiumParallelMethodTestListener.beforeInvocation(AppiumParallelMethodTestListener.java:74) | |
at org.testng.internal.invokers.InvokedMethodListenerInvoker.invokeListener(InvokedMethodListenerInvoker.java:55) | |
at org.testng.internal.invokers.BaseInvoker.runInvokedMethodListeners(BaseInvoker.java:67) | |
at org.testng.internal.invokers.ConfigInvoker.invokeConfigurationMethod(ConfigInvoker.java:331) | |
at org.testng.internal.invokers.ConfigInvoker.invokeConfigurations(ConfigInvoker.java:296) | |
at org.testng.internal.invokers.TestInvoker.runConfigMethods(TestInvoker.java:823) | |
at org.testng.internal.invokers.TestInvoker.invokeMethod(TestInvoker.java:590) | |
at org.testng.internal.invokers.TestInvoker.invokeTestMethod(TestInvoker.java:221) | |
at org.testng.internal.invokers.MethodRunner.runInSequence(MethodRunner.java:50) | |
at org.testng.internal.invokers.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:969) | |
at org.testng.internal.invokers.TestInvoker.invokeTestMethods(TestInvoker.java:194) | |
at org.testng.internal.invokers.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:148) | |
at org.testng.internal.invokers.TestMethodWorker.run(TestMethodWorker.java:128) | |
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) | |
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) | |
at java.base/java.lang.Thread.run(Thread.java:833) | |
Caused by: org.openqa.selenium.WebDriverException: java.lang.NoSuchMethodException: org.openqa.selenium.remote.ProtocolHandshake.createSession(org.openqa.selenium.remote.http.HttpHandler,java.util.function.Supplier,long) | |
Build info: version: '4.19.1', revision: 'abe0ee07dc' | |
System info: os.name: 'Mac OS X', os.arch: 'aarch64', os.version: '14.4.1', java.version: '17.0.1' | |
Driver info: driver.version: AndroidDriver | |
at io.appium.java_client.remote.AppiumProtocolHandshake.createSession(AppiumProtocolHandshake.java:137) | |
at io.appium.java_client.remote.AppiumProtocolHandshake.createSession(AppiumProtocolHandshake.java:102) | |
at io.appium.java_client.remote.AppiumCommandExecutor.createSession(AppiumCommandExecutor.java:177) | |
at io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:238) | |
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:518) | |
... 26 more | |
Caused by: java.lang.NoSuchMethodException: org.openqa.selenium.remote.ProtocolHandshake.createSession(org.openqa.selenium.remote.http.HttpHandler,java.util.function.Supplier,long) | |
at java.base/java.lang.Class.getDeclaredMethod(Class.java:2675) | |
at io.appium.java_client.remote.AppiumProtocolHandshake.createSession(AppiumProtocolHandshake.java:128) | |
... 30 more | |
org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure. | |
Host info: host: 'krishnas-Mac-mini.local', ip: '127.0.0.1' | |
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:536) | |
at io.appium.java_client.AppiumDriver.startSession(AppiumDriver.java:268) | |
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:161) | |
at io.appium.java_client.AppiumDriver.<init>(AppiumDriver.java:90) | |
at io.appium.java_client.AppiumDriver.<init>(AppiumDriver.java:102) | |
at io.appium.java_client.android.AndroidDriver.<init>(AndroidDriver.java:109) | |
at com.appium.manager.AppiumDriverManager.createAppiumDriver(AppiumDriverManager.java:66) | |
at com.appium.manager.AppiumDriverManager.initialiseDriver(AppiumDriverManager.java:52) | |
at com.appium.manager.AppiumDriverManager.startAppiumDriverInstance(AppiumDriverManager.java:104) | |
at com.appium.manager.AppiumDriverManager.startAppiumDriverInstance(AppiumDriverManager.java:89) | |
at com.appium.manager.AppiumParallelMethodTestListener.allocateDeviceAndStartDriver(AppiumParallelMethodTestListener.java:101) | |
at com.appium.manager.AppiumParallelMethodTestListener.beforeInvocation(AppiumParallelMethodTestListener.java:74) | |
at org.testng.internal.invokers.InvokedMethodListenerInvoker.invokeListener(InvokedMethodListenerInvoker.java:55) | |
at org.testng.internal.invokers.BaseInvoker.runInvokedMethodListeners(BaseInvoker.java:67) | |
at org.testng.internal.invokers.TestInvoker.invokeListenersForSkippedTestResult(TestInvoker.java:510) | |
at org.testng.internal.invokers.TestInvoker.invokeMethod(TestInvoker.java:612) | |
at org.testng.internal.invokers.TestInvoker.invokeTestMethod(TestInvoker.java:221) | |
at org.testng.internal.invokers.MethodRunner.runInSequence(MethodRunner.java:50) | |
at org.testng.internal.invokers.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:969) | |
at org.testng.internal.invokers.TestInvoker.invokeTestMethods(TestInvoker.java:194) | |
at org.testng.internal.invokers.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:148) | |
at org.testng.internal.invokers.TestMethodWorker.run(TestMethodWorker.java:128) | |
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) | |
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) | |
at java.base/java.lang.Thread.run(Thread.java:833) | |
Caused by: org.openqa.selenium.WebDriverException: java.lang.NoSuchMethodException: org.openqa.selenium.remote.ProtocolHandshake.createSession(org.openqa.selenium.remote.http.HttpHandler,java.util.function.Supplier,long) | |
Build info: version: '4.19.1', revision: 'abe0ee07dc' | |
System info: os.name: 'Mac OS X', os.arch: 'aarch64', os.version: '14.4.1', java.version: '17.0.1' | |
Driver info: driver.version: AndroidDriver | |
at io.appium.java_client.remote.AppiumProtocolHandshake.createSession(AppiumProtocolHandshake.java:137) | |
at io.appium.java_client.remote.AppiumProtocolHandshake.createSession(AppiumProtocolHandshake.java:102) | |
at io.appium.java_client.remote.AppiumCommandExecutor.createSession(AppiumCommandExecutor.java:177) | |
at io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:238) | |
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:518) | |
... 24 more | |
Caused by: java.lang.NoSuchMethodException: org.openqa.selenium.remote.ProtocolHandshake.createSession(org.openqa.selenium.remote.http.HttpHandler,java.util.function.Supplier,long) | |
at java.base/java.lang.Class.getDeclaredMethod(Class.java:2675) | |
at io.appium.java_client.remote.AppiumProtocolHandshake.createSession(AppiumProtocolHandshake.java:128) | |
... 28 more | |
FAILED CONFIGURATION: @BeforeMethod com.appium.tests.LoginTest.setUp | |
java.lang.NullPointerException: Cannot invoke "io.appium.java_client.AppiumDriver.getCapabilities()" because "driver" is null | |
at com.appium.pages.LoginPage.<init>(LoginPage.java:25) | |
at com.appium.tests.LoginTest.setUp(LoginTest.java:22) | |
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | |
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) | |
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | |
at java.base/java.lang.reflect.Method.invoke(Method.java:568) | |
at org.testng.internal.invokers.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:139) | |
at org.testng.internal.invokers.MethodInvocationHelper.invokeMethodConsideringTimeout(MethodInvocationHelper.java:69) | |
at org.testng.internal.invokers.ConfigInvoker.invokeConfigurationMethod(ConfigInvoker.java:361) | |
at org.testng.internal.invokers.ConfigInvoker.invokeConfigurations(ConfigInvoker.java:296) | |
at org.testng.internal.invokers.TestInvoker.runConfigMethods(TestInvoker.java:823) | |
at org.testng.internal.invokers.TestInvoker.invokeMethod(TestInvoker.java:590) | |
at org.testng.internal.invokers.TestInvoker.invokeTestMethod(TestInvoker.java:221) | |
at org.testng.internal.invokers.MethodRunner.runInSequence(MethodRunner.java:50) | |
at org.testng.internal.invokers.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:969) | |
at org.testng.internal.invokers.TestInvoker.invokeTestMethods(TestInvoker.java:194) | |
at org.testng.internal.invokers.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:148) | |
at org.testng.internal.invokers.TestMethodWorker.run(TestMethodWorker.java:128) | |
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) | |
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) | |
at java.base/java.lang.Thread.run(Thread.java:833) | |
FAILED CONFIGURATION: @BeforeMethod com.appium.tests.LoginTest.setUp | |
java.lang.NullPointerException: Cannot invoke "io.appium.java_client.AppiumDriver.getCapabilities()" because "driver" is null | |
at com.appium.pages.LoginPage.<init>(LoginPage.java:25) | |
at com.appium.tests.LoginTest.setUp(LoginTest.java:22) | |
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | |
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) | |
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | |
at java.base/java.lang.reflect.Method.invoke(Method.java:568) | |
at org.testng.internal.invokers.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:139) | |
at org.testng.internal.invokers.MethodInvocationHelper.invokeMethodConsideringTimeout(MethodInvocationHelper.java:69) | |
at org.testng.internal.invokers.ConfigInvoker.invokeConfigurationMethod(ConfigInvoker.java:361) | |
at org.testng.internal.invokers.ConfigInvoker.invokeConfigurations(ConfigInvoker.java:296) | |
at org.testng.internal.invokers.TestInvoker.runConfigMethods(TestInvoker.java:823) | |
at org.testng.internal.invokers.TestInvoker.invokeMethod(TestInvoker.java:590) | |
at org.testng.internal.invokers.TestInvoker.invokeTestMethod(TestInvoker.java:221) | |
at org.testng.internal.invokers.MethodRunner.runInSequence(MethodRunner.java:50) | |
at org.testng.internal.invokers.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:969) | |
at org.testng.internal.invokers.TestInvoker.invokeTestMethods(TestInvoker.java:194) | |
at org.testng.internal.invokers.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:148) | |
at org.testng.internal.invokers.TestMethodWorker.run(TestMethodWorker.java:128) | |
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) | |
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) | |
at java.base/java.lang.Thread.run(Thread.java:833) | |
SKIPPED: com.appium.tests.LoginTest.logOutTest | |
java.lang.NullPointerException: Cannot invoke "io.appium.java_client.AppiumDriver.getCapabilities()" because "driver" is null | |
at com.appium.pages.LoginPage.<init>(LoginPage.java:25) | |
at com.appium.tests.LoginTest.setUp(LoginTest.java:22) | |
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | |
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) | |
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | |
at java.base/java.lang.reflect.Method.invoke(Method.java:568) | |
at org.testng.internal.invokers.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:139) | |
at org.testng.internal.invokers.MethodInvocationHelper.invokeMethodConsideringTimeout(MethodInvocationHelper.java:69) | |
at org.testng.internal.invokers.ConfigInvoker.invokeConfigurationMethod(ConfigInvoker.java:361) | |
at org.testng.internal.invokers.ConfigInvoker.invokeConfigurations(ConfigInvoker.java:296) | |
at org.testng.internal.invokers.TestInvoker.runConfigMethods(TestInvoker.java:823) | |
at org.testng.internal.invokers.TestInvoker.invokeMethod(TestInvoker.java:590) | |
at org.testng.internal.invokers.TestInvoker.invokeTestMethod(TestInvoker.java:221) | |
at org.testng.internal.invokers.MethodRunner.runInSequence(MethodRunner.java:50) | |
at org.testng.internal.invokers.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:969) | |
at org.testng.internal.invokers.TestInvoker.invokeTestMethods(TestInvoker.java:194) | |
at org.testng.internal.invokers.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:148) | |
at org.testng.internal.invokers.TestMethodWorker.run(TestMethodWorker.java:128) | |
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) | |
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) | |
at java.base/java.lang.Thread.run(Thread.java:833) | |
SKIPPED: com.appium.tests.LoginTest.loginWithValidUser | |
java.lang.NullPointerException: Cannot invoke "io.appium.java_client.AppiumDriver.getCapabilities()" because "driver" is null | |
at com.appium.pages.LoginPage.<init>(LoginPage.java:25) | |
at com.appium.tests.LoginTest.setUp(LoginTest.java:22) | |
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | |
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) | |
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | |
at java.base/java.lang.reflect.Method.invoke(Method.java:568) | |
at org.testng.internal.invokers.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:139) | |
at org.testng.internal.invokers.MethodInvocationHelper.invokeMethodConsideringTimeout(MethodInvocationHelper.java:69) | |
at org.testng.internal.invokers.ConfigInvoker.invokeConfigurationMethod(ConfigInvoker.java:361) | |
at org.testng.internal.invokers.ConfigInvoker.invokeConfigurations(ConfigInvoker.java:296) | |
at org.testng.internal.invokers.TestInvoker.runConfigMethods(TestInvoker.java:823) | |
at org.testng.internal.invokers.TestInvoker.invokeMethod(TestInvoker.java:590) | |
at org.testng.internal.invokers.TestInvoker.invokeTestMethod(TestInvoker.java:221) | |
at org.testng.internal.invokers.MethodRunner.runInSequence(MethodRunner.java:50) | |
at org.testng.internal.invokers.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:969) | |
at org.testng.internal.invokers.TestInvoker.invokeTestMethods(TestInvoker.java:194) | |
at org.testng.internal.invokers.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:148) | |
at org.testng.internal.invokers.TestMethodWorker.run(TestMethodWorker.java:128) | |
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) | |
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) | |
at java.base/java.lang.Thread.run(Thread.java:833) | |
=============================================== | |
ATDTest | |
Tests run: 2, Failures: 0, Skips: 2 | |
Configuration Failures: 2, Skips: 0 | |
=============================================== | |
=============================================== | |
ATDSuiteName | |
Total tests run: 2, Passes: 0, Failures: 0, Skips: 2 | |
Configuration Failures: 2, Skips: 0 | |
=============================================== | |
true | |
[ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 3.240 s <<< FAILURE! -- in com.appium.tests.Runner | |
[ERROR] com.appium.tests.Runner.testRunner -- Time elapsed: 3.125 s <<< FAILURE! | |
java.lang.AssertionError: expected [false] but found [true] | |
at org.testng.Assert.fail(Assert.java:110) | |
at org.testng.Assert.failNotEquals(Assert.java:1413) | |
at org.testng.Assert.assertFalse(Assert.java:78) | |
at org.testng.Assert.assertFalse(Assert.java:88) | |
at com.appium.tests.Runner.testRunner(Runner.java:18) | |
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | |
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) | |
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | |
at java.base/java.lang.reflect.Method.invoke(Method.java:568) | |
at org.testng.internal.invokers.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:139) | |
at org.testng.internal.invokers.TestInvoker.invokeMethod(TestInvoker.java:677) | |
at org.testng.internal.invokers.TestInvoker.invokeTestMethod(TestInvoker.java:221) | |
at org.testng.internal.invokers.MethodRunner.runInSequence(MethodRunner.java:50) | |
at org.testng.internal.invokers.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:969) | |
at org.testng.internal.invokers.TestInvoker.invokeTestMethods(TestInvoker.java:194) | |
at org.testng.internal.invokers.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:148) | |
at org.testng.internal.invokers.TestMethodWorker.run(TestMethodWorker.java:128) | |
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) | |
at org.testng.TestRunner.privateRun(TestRunner.java:829) | |
at org.testng.TestRunner.run(TestRunner.java:602) | |
at org.testng.SuiteRunner.runTest(SuiteRunner.java:437) | |
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:431) | |
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:391) | |
at org.testng.SuiteRunner.run(SuiteRunner.java:330) | |
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52) | |
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:95) | |
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1256) | |
at org.testng.TestNG.runSuitesLocally(TestNG.java:1176) | |
at org.testng.TestNG.runSuites(TestNG.java:1099) | |
at org.testng.TestNG.run(TestNG.java:1067) | |
at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:155) | |
at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeSingleClass(TestNGDirectoryTestSuite.java:102) | |
at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:91) | |
at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:137) | |
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:385) | |
at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:162) | |
at org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:507) | |
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:495) | |
[INFO] | |
[INFO] Results: | |
[INFO] | |
[ERROR] Failures: | |
[ERROR] Runner.testRunner:18 expected [false] but found [true] | |
[INFO] | |
[ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0 | |
[INFO] | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] BUILD FAILURE | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] Total time: 4.997 s | |
[INFO] Finished at: 2024-04-14T23:53:22+05:30 | |
[INFO] ------------------------------------------------------------------------ | |
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.2.2:test (default-test) on project PagePatternAppium: There are test failures. | |
[ERROR] | |
[ERROR] Please refer to /Users/krishna/IdeaProjects/PageObjectPatternAppium1/target/surefire-reports for the individual test results. | |
[ERROR] Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream. | |
[ERROR] -> [Help 1] | |
[ERROR] | |
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. | |
[ERROR] Re-run Maven using the -X switch to enable full debug logging. | |
[ERROR] | |
[ERROR] For more information about the errors and possible solutions, please read the following articles: | |
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException | |
krishna@krishnas-Mac-mini PageObjectPatternAppium1 % ; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment