Skip to content

Instantly share code, notes, and snippets.

@vjmaiky
Created May 24, 2021 12:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vjmaiky/540f14f4bcfa39ee9764eb375f143505 to your computer and use it in GitHub Desktop.
Save vjmaiky/540f14f4bcfa39ee9764eb375f143505 to your computer and use it in GitHub Desktop.
Scenario: RESET: Validate free voucher is displayed in Connect screen # src/test/java/cucumber/inflight/features/013GroundShopFreeVoucher.feature:3
05-24-2021 15:46:11 - [cucumber.inflight.hooks.Hooks / starting][INFO ] - +++++++++++++ Starting test +++++++++++++
05-24-2021 15:46:11 - [cucumber.inflight.hooks.Hooks / starting][INFO ] - +++++++++++++ file:///Users/Shared/InflightAutomation/inflightautomationtest/src/test/java/cucumber/inflight/features/013GroundShopFreeVoucher.feature:3 +++++++++++++
05-24-2021 15:46:11 - [cucumber.inflight.hooks.Hooks / starting][INFO ] - +++++++++++++ RESET: Validate free voucher is displayed in Connect screen +++++++++++++
05-24-2021 15:46:11 - [cucumber.inflight.hooks.Hooks / starting][INFO ] - +++++++++++++ Started Tests: 1 +++++++++++++
05-24-2021 15:46:11 - [cucumber.inflight.hooks.Hooks / starting][INFO ] - ++++++++++++++++++++++ Android Driver creation started ++++++++++++++++++++++
05-24-2021 15:46:11 - [core.managers.DriverManagerAndroid / createDriver][INFO ] - Trying to create new Driver for device: HT8281A03687
05-24-2021 15:46:11 - [core.managers.DriverManagerAndroid / getCaps][INFO ] - +++++++++++ Creating androidDriver caps for device: HT8281A03687 +++++++++++
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
05-24-2021 15:46:11 - [core.managers.DriverManagerAndroid / createService][INFO ] - +++++++++++++++++++++++ STARTING APPIUM SERVER ++++++++++++++++++++++
05-24-2021 15:46:11 - [core.managers.DriverManagerAndroid / createService][INFO ] - Appium server running for device with UDID: HT8281A03687 using bootstrap port: 4777 and chromedriverport: 9537
05-24-2021 15:46:11 - [core.managers.DriverManagerAndroid / createService][INFO ] - ++++++++++++++++++ STARTED APPIUM SERVER ++++++++++++++++++: http://127.0.0.1:5138/wd/hub
[Appium] Welcome to Appium v1.22.0-beta.0
[Appium] Non-default server args:
[Appium] address: 127.0.0.1
[Appium] port: 5138
[Appium] bootstrapPort: 4777
[Appium] robotAddress: HT8281A03687
[Appium] defaultCapabilities: {
[Appium] app: /Users/lmihai/Downloads/app.apk
[Appium] appActivity:
[Appium] appPackage:
[Appium] automationName: uiautomator2
[Appium] deviceName: HT8281A03687
[Appium] newCommandTimeout: 600
[Appium] noReset: false
[Appium] platformName: android
[Appium] systemPort: 8204
[Appium] udid: HT8281A03687
[Appium] unicodeKeyboard: true
[Appium] }
[Appium] relaxedSecurityEnabled: true
[Appium] chromedriverPort: 9537
[Appium] Deprecated server args:
[Appium] --chromedriver-port => --default-capabilities
[Appium] Default capabilities, which will be added to each request unless overridden by desired capabilities:
[Appium] app: /Users/lmihai/Downloads/app.apk
[Appium] appActivity:
[Appium] appPackage:
[Appium] automationName: uiautomator2
[Appium] deviceName: HT8281A03687
[Appium] newCommandTimeout: 600
[Appium] noReset: false
[Appium] platformName: android
[Appium] systemPort: 8204
[Appium] udid: HT8281A03687
[Appium] unicodeKeyboard: true
[Appium] Appium REST http interface listener started on 127.0.0.1:5138
[HTTP] --> GET /wd/hub/status
[HTTP] {}
[debug] [GENERIC] Calling AppiumDriver.getStatus() with args: []
[debug] [GENERIC] Responding to client with driver.getStatus() result: {"build":{"version":"1.22.0-beta.0"}}
[HTTP] <-- GET /wd/hub/status 200 3 ms - 75
[HTTP]
05-24-2021 15:46:12 - [core.managers.DriverManagerAndroid / getCaps][INFO ] - +++++++++++ Creating androidDriver caps for device: HT8281A03687 +++++++++++
[HTTP] --> GET /wd/hub/status
[HTTP] {}
[debug] [GENERIC] Calling AppiumDriver.getStatus() with args: []
[debug] [GENERIC] Responding to client with driver.getStatus() result: {"build":{"version":"1.22.0-beta.0"}}
[HTTP] <-- GET /wd/hub/status 200 1 ms - 75
[HTTP]
[debug] [HTTP] Request idempotency key: 4df0dc91-72c2-46b1-bc84-1fdf0d006241
[HTTP] --> POST /wd/hub/session
[HTTP] {"desiredCapabilities":{"app":"/Users/lmihai/Downloads/app.apk","appActivity":"","appPackage":"","noReset":false,"newCommandTimeout":600,"automationName":"uiautomator2","unicodeKeyboard":true,"platformName":"android","udid":"HT8281A03687","deviceName":"HT8281A03687","systemPort":8204},"capabilities":{"firstMatch":[{"appium:app":"/Users/lmihai/Downloads/app.apk","appium:appActivity":"","appium:appPackage":"","appium:automationName":"uiautomator2","appium:deviceName":"HT8281A03687","appium:newCommandTimeout":600,"appium:noReset":false,"platformName":"android","appium:systemPort":8204,"appium:udid":"HT8281A03687","appium:unicodeKeyboard":true}]}}
[debug] [W3C] Calling AppiumDriver.createSession() with args: [{"app":"/Users/lmihai/Downloads/app-lufthansa-qa-mock.apk","appActivity":"","appPackage":"","noReset":false,"newCommandTimeout":600,"automationName":"uiautomator2","unicodeKeyboard":true,"platformName":"android","udid":"HT8281A03687","deviceName":"HT8281A03687","systemPort":8204},null,{"firstMatch":[{"appium:app":"/Users/lmihai/Downloads/app.apk","appium:appActivity":"","appium:appPackage":"","appium:automationName":"uiautomator2","appium:deviceName":"HT8281A03687","appium:newCommandTimeout":600,"appium:noReset":false,"platformName":"android","appium:systemPort":8204,"appium:udid":"HT8281A03687","appium:unicodeKeyboard":true}]}]
[debug] [BaseDriver] Event 'newSessionRequested' logged at 1621860373006 (15:46:13 GMT+0300 (Eastern European Summer Time))
[Appium] Appium v1.22.0-beta.0 creating new AndroidUiautomator2Driver (v1.66.1) session
[Appium] Applying relaxed security to 'AndroidUiautomator2Driver' as per server command line argument. All insecure features will be enabled unless explicitly disabled by --deny-insecure
[debug] [BaseDriver] W3C capabilities and MJSONWP desired capabilities were provided
[debug] [BaseDriver] Creating session with W3C capabilities: {
[debug] [BaseDriver] "alwaysMatch": {
[debug] [BaseDriver] "platformName": "android",
[debug] [BaseDriver] "appium:app": "/Users/lmihai/Downloads/app.apk",
[debug] [BaseDriver] "appium:appActivity": "",
[debug] [BaseDriver] "appium:appPackage": "",
[debug] [BaseDriver] "appium:automationName": "uiautomator2",
[debug] [BaseDriver] "appium:deviceName": "HT8281A03687",
[debug] [BaseDriver] "appium:newCommandTimeout": 600,
[debug] [BaseDriver] "appium:noReset": false,
[debug] [BaseDriver] "appium:systemPort": 8204,
[debug] [BaseDriver] "appium:udid": "HT8281A03687",
[debug] [BaseDriver] "appium:unicodeKeyboard": true
[debug] [BaseDriver] },
[debug] [BaseDriver] "firstMatch": [
[debug] [BaseDriver] {}
[debug] [BaseDriver] ]
[debug] [BaseDriver] }
[BaseDriver] Session created with session id: 6121f5cf-2948-44b2-b7f7-d4a02591b9a0
[BaseDriver] Using local app '/Users/lmihai/Downloads/app-lufthansa-qa-mock.apk'
[debug] [UiAutomator2] Checking whether app is actually present
[debug] [UiAutomator2] Deleting UiAutomator2 session
[debug] [BaseDriver] Event 'newSessionStarted' logged at 1621860373138 (15:46:13 GMT+0300 (Eastern European Summer Time))
[debug] [W3C] Encountered internal error running command: Error: Neither ANDROID_HOME nor ANDROID_SDK_ROOT environment variable was exported. Read https://developer.android.com/studio/command-line/variables for more details
[debug] [W3C] at requireSdkRoot (/opt/homebrew/lib/node_modules/appium/node_modules/appium-adb/lib/helpers.js:36:11)
[debug] [W3C] at Function.createADB (/opt/homebrew/lib/node_modules/appium/node_modules/appium-adb/lib/adb.js:55:23)
[debug] [W3C] at Object.createBaseADB (/opt/homebrew/lib/node_modules/appium/node_modules/appium-android-driver/lib/android-helpers.js:108:20)
[debug] [W3C] at Object.getDeviceInfoFromCaps (/opt/homebrew/lib/node_modules/appium/node_modules/appium-android-driver/lib/android-helpers.js:193:29)
[debug] [W3C] at AndroidUiautomator2Driver.startUiAutomator2Session (/opt/homebrew/lib/node_modules/appium/node_modules/appium-uiautomator2-driver/lib/driver.js:338:40)
[debug] [W3C] at AndroidUiautomator2Driver.createSession (/opt/homebrew/lib/node_modules/appium/node_modules/appium-uiautomator2-driver/lib/driver.js:229:18)
[debug] [W3C] at AppiumDriver.createSession (/opt/homebrew/lib/node_modules/appium/lib/appium.js:387:35)
[HTTP] <-- POST /wd/hub/session 500 185 ms - 819
[HTTP]
[HTTP] --> GET /wd/hub/status
[HTTP] {}
[debug] [GENERIC] Calling AppiumDriver.getStatus() with args: []
[debug] [GENERIC] Responding to client with driver.getStatus() result: {"build":{"version":"1.22.0-beta.0"}}
[HTTP] <-- GET /wd/hub/status 200 0 ms - 75
[HTTP]
[debug] [HTTP] Request idempotency key: d7297729-50cd-41f4-85d8-462891506651
[HTTP] --> POST /wd/hub/session
[HTTP] {"desiredCapabilities":{"app":"/Users/lmihai/Downloads/app.apk","appActivity":"","appPackage":"","noReset":false,"newCommandTimeout":600,"automationName":"uiautomator2","unicodeKeyboard":true,"platformName":"android","udid":"HT8281A03687","deviceName":"HT8281A03687","systemPort":8204},"capabilities":{"firstMatch":[{"appium:app":"/Users/lmihai/Downloads/app.apk","appium:appActivity":"","appium:appPackage":"","appium:automationName":"uiautomator2","appium:deviceName":"HT8281A03687","appium:newCommandTimeout":600,"appium:noReset":false,"platformName":"android","appium:systemPort":8204,"appium:udid":"HT8281A03687","appium:unicodeKeyboard":true}]}}
[debug] [W3C] Calling AppiumDriver.createSession() with args: [{"app":"/Users/lmihai/Downloads/app","appActivity":"","appPackage":"","noReset":false,"newCommandTimeout":600,"automationName":"uiautomator2","unicodeKeyboard":true,"platformName":"android","udid":"HT8281A03687","deviceName":"HT8281A03687","systemPort":8204},null,{"firstMatch":[{"appium:app":"/Users/lmihai/Downloads/app.apk","appium:appActivity":","appium:appPackage":"","appium:automationName":"uiautomator2","appium:deviceName":"HT8281A03687","appium:newCommandTimeout":600,"appium:noReset":false,"platformName":"android","appium:systemPort":8204,"appium:udid":"HT8281A03687","appium:unicodeKeyboard":true}]}]
[debug] [BaseDriver] Event 'newSessionRequested' logged at 1621860373212 (15:46:13 GMT+0300 (Eastern European Summer Time))
[Appium] Appium v1.22.0-beta.0 creating new AndroidUiautomator2Driver (v1.66.1) session
[Appium] Applying relaxed security to 'AndroidUiautomator2Driver' as per server command line argument. All insecure features will be enabled unless explicitly disabled by --deny-insecure
[debug] [BaseDriver] W3C capabilities and MJSONWP desired capabilities were provided
[debug] [BaseDriver] Creating session with W3C capabilities: {
[debug] [BaseDriver] "alwaysMatch": {
[debug] [BaseDriver] "platformName": "android",
[debug] [BaseDriver] "appium:app": "/Users/lmihai/Downloads/appk",
[debug] [BaseDriver] "appium:appActivity": "",
[debug] [BaseDriver] "appium:appPackage": "",
[debug] [BaseDriver] "appium:automationName": "uiautomator2",
[debug] [BaseDriver] "appium:deviceName": "HT8281A03687",
[debug] [BaseDriver] "appium:newCommandTimeout": 600,
[debug] [BaseDriver] "appium:noReset": false,
[debug] [BaseDriver] "appium:systemPort": 8204,
[debug] [BaseDriver] "appium:udid": "HT8281A03687",
[debug] [BaseDriver] "appium:unicodeKeyboard": true
[debug] [BaseDriver] },
[debug] [BaseDriver] "firstMatch": [
[debug] [BaseDriver] {}
[debug] [BaseDriver] ]
[debug] [BaseDriver] }
[BaseDriver] Session created with session id: 9f2bdb2b-129f-4c52-96fc-129d4c83883c
[BaseDriver] Using local app '/Users/lmihai/Downloads/app-lufthansa-qa-mock.apk'
[debug] [UiAutomator2] Checking whether app is actually present
[debug] [UiAutomator2] Deleting UiAutomator2 session
[debug] [BaseDriver] Event 'newSessionStarted' logged at 1621860373217 (15:46:13 GMT+0300 (Eastern European Summer Time))
[debug] [W3C] Encountered internal error running command: Error: Neither ANDROID_HOME nor ANDROID_SDK_ROOT environment variable was exported. Read https://developer.android.com/studio/command-line/variables for more details
[debug] [W3C] at requireSdkRoot (/opt/homebrew/lib/node_modules/appium/node_modules/appium-adb/lib/helpers.js:36:11)
[debug] [W3C] at Function.createADB (/opt/homebrew/lib/node_modules/appium/node_modules/appium-adb/lib/adb.js:55:23)
[debug] [W3C] at Object.createBaseADB (/opt/homebrew/lib/node_modules/appium/node_modules/appium-android-driver/lib/android-helpers.js:108:20)
[debug] [W3C] at Object.getDeviceInfoFromCaps (/opt/homebrew/lib/node_modules/appium/node_modules/appium-android-driver/lib/android-helpers.js:193:29)
[debug] [W3C] at AndroidUiautomator2Driver.startUiAutomator2Session (/opt/homebrew/lib/node_modules/appium/node_modules/appium-uiautomator2-driver/lib/driver.js:338:40)
[debug] [W3C] at AndroidUiautomator2Driver.createSession (/opt/homebrew/lib/node_modules/appium/node_modules/appium-uiautomator2-driver/lib/driver.js:229:18)
[debug] [W3C] at AppiumDriver.createSession (/opt/homebrew/lib/node_modules/appium/lib/appium.js:387:35)
[HTTP] <-- POST /wd/hub/session 500 6 ms - 819
[HTTP]
org.openqa.selenium.SessionNotCreatedException: Unable to create a new remote session. Please check the server log for more details. Original error: An unknown server-side error occurred while processing the command. Original error: Neither ANDROID_HOME nor ANDROID_SDK_ROOT environment variable was exported. Read https://developer.android.com/studio/command-line/variables for more details
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
System info: host: '192-168-0-113.rdsnet.ro', ip: '2a02:2f0e:c0d:8e00:bc3f:ffc8:279a:ad18%en0', os.name: 'Mac OS X', os.arch: 'aarch64', os.version: '11.3.1', java.version: '1.8.0_282'
Driver info: driver.version: AndroidDriver
remote stacktrace: UnknownError: An unknown server-side error occurred while processing the command. Original error: Neither ANDROID_HOME nor ANDROID_SDK_ROOT environment variable was exported. Read https://developer.android.com/studio/command-line/variables for more details
at getResponseForW3CError (/opt/homebrew/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:804:9)
at asyncHandler (/opt/homebrew/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/protocol.js:380:37)
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
System info: host: '192-168-0-113.rdsnet.ro', ip: '2a02:2f0e:c0d:8e00:bc3f:ffc8:279a:ad18%en0', os.name: 'Mac OS X', os.arch: 'aarch64', os.version: '11.3.1', java.version: '1.8.0_282'
Driver info: driver.version: AndroidDriver
at io.appium.java_client.remote.AppiumCommandExecutor$1.createSession(AppiumCommandExecutor.java:216)
at io.appium.java_client.remote.AppiumCommandExecutor.createSession(AppiumCommandExecutor.java:225)
at io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:247)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)
at io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:41)
at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:1)
at io.appium.java_client.android.AndroidDriver.execute(AndroidDriver.java:1)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:213)
at io.appium.java_client.AppiumDriver.startSession(AppiumDriver.java:338)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:131)
at io.appium.java_client.DefaultGenericMobileDriver.<init>(DefaultGenericMobileDriver.java:37)
at io.appium.java_client.AppiumDriver.<init>(AppiumDriver.java:89)
at io.appium.java_client.AppiumDriver.<init>(AppiumDriver.java:110)
at io.appium.java_client.android.AndroidDriver.<init>(AndroidDriver.java:119)
at core.managers.DriverManagerAndroid.getNewDriver(DriverManagerAndroid.java:147)
at core.managers.DriverManagerAndroid.createDriver(DriverManagerAndroid.java:109)
at cucumber.inflight.hooks.Hooks.starting(Hooks.java:40)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at io.cucumber.java.Invoker.doInvoke(Invoker.java:66)
at io.cucumber.java.Invoker.invoke(Invoker.java:24)
at io.cucumber.java.AbstractGlueDefinition.invokeMethod(AbstractGlueDefinition.java:47)
at io.cucumber.java.JavaHookDefinition.execute(JavaHookDefinition.java:59)
at io.cucumber.core.runner.CoreHookDefinition.execute(CoreHookDefinition.java:46)
at io.cucumber.core.runner.HookDefinitionMatch.runStep(HookDefinitionMatch.java:21)
at io.cucumber.core.runner.ExecutionMode$1.execute(ExecutionMode.java:10)
at io.cucumber.core.runner.TestStep.executeStep(TestStep.java:92)
at io.cucumber.core.runner.TestStep.run(TestStep.java:64)
at io.cucumber.core.runner.TestCase.run(TestCase.java:98)
at io.cucumber.core.runner.Runner.runPickle(Runner.java:73)
at io.cucumber.junit.PickleRunners$WithStepDescriptions.run(PickleRunners.java:110)
at io.cucumber.junit.FeatureRunner.runChild(FeatureRunner.java:135)
at io.cucumber.junit.FeatureRunner.runChild(FeatureRunner.java:27)
at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
at io.cucumber.junit.Cucumber.runChild(Cucumber.java:200)
at io.cucumber.junit.Cucumber.runChild(Cucumber.java:90)
at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
at io.cucumber.junit.Cucumber$RunCucumber.evaluate(Cucumber.java:235)
at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecuter.runTestClass(JUnitTestClassExecuter.java:114)
at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecuter.execute(JUnitTestClassExecuter.java:57)
at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassProcessor.processTestClass(JUnitTestClassProcessor.java:66)
at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.processTestClass(SuiteTestClassProcessor.java:51)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)
at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
at org.gradle.internal.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:32)
at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93)
at com.sun.proxy.$Proxy1.processTestClass(Unknown Source)
at org.gradle.api.internal.tasks.testing.worker.TestWorker.processTestClass(TestWorker.java:109)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)
at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:146)
at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:128)
at org.gradle.internal.remote.internal.hub.MessageHub$Handler.run(MessageHub.java:404)
at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)
at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at io.appium.java_client.remote.AppiumCommandExecutor$1.createSession(AppiumCommandExecutor.java:193)
... 80 more
Caused by: org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: Neither ANDROID_HOME nor ANDROID_SDK_ROOT environment variable was exported. Read https://developer.android.com/studio/command-line/variables for more details
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
System info: host: '192-168-0-113.rdsnet.ro', ip: '2a02:2f0e:c0d:8e00:bc3f:ffc8:279a:ad18%en0', os.name: 'Mac OS X', os.arch: 'aarch64', os.version: '11.3.1', java.version: '1.8.0_282'
Driver info: driver.version: AndroidDriver
remote stacktrace: UnknownError: An unknown server-side error occurred while processing the command. Original error: Neither ANDROID_HOME nor ANDROID_SDK_ROOT environment variable was exported. Read https://developer.android.com/studio/command-line/variables for more details
at getResponseForW3CError (/opt/homebrew/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:804:9)
at asyncHandler (/opt/homebrew/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/protocol.js:380:37)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.openqa.selenium.remote.W3CHandshakeResponse.lambda$errorHandler$0(W3CHandshakeResponse.java:62)
at org.openqa.selenium.remote.HandshakeResponse.lambda$getResponseFunction$0(HandshakeResponse.java:30)
at org.openqa.selenium.remote.ProtocolHandshake.lambda$createSession$0(ProtocolHandshake.java:126)
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
at java.util.Spliterators$ArraySpliterator.tryAdvance(Spliterators.java:958)
at java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:126)
at java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:499)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:486)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472)
at java.util.stream.FindOps$FindOp.evaluateSequential(FindOps.java:152)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.findFirst(ReferencePipeline.java:531)
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:128)
... 85 more
05-24-2021 15:46:13 - [cucumber.inflight.hooks.Hooks / seeIfWifiIsEnabled][INFO ] - +++++++++++++ VERIFY IF WI-FI IS ENABLED BEFORE STARTING THE TEST +++++++++++++
java.lang.NullPointerException
at core.helpers.NetworkHelpers.getConnectionStatus(NetworkHelpers.java:12)
at cucumber.inflight.hooks.Hooks.seeIfWifiIsEnabled(Hooks.java:57)
java.lang.NullPointerException
at core.helpers.NetworkHelpers.getConnectionStatus(NetworkHelpers.java:12)
at cucumber.inflight.hooks.Hooks.seeIfWifiIsEnabled(Hooks.java:57)
Given Disclaimer is showed when app opens # cucumber.inflight.tests.disclaimerSteps.DisclaimerStepsDefinition.disclaimerIsShowedWhenAppOpens()
And User clicks continue on app disclaimer # cucumber.inflight.tests.disclaimerSteps.DisclaimerStepsDefinition.userClicksContinueOnAppDisclaimer()
And User clicks continue in analytics view # cucumber.inflight.tests.analytivsSteps.AnalyticsStepsDefinition.validateAnalyticsDisplayed()
Then User is in PinCode view # cucumber.inflight.tests.pincodeSteps.PinCodeStepsDefinition.user_is_in_PinCode_view()
And User clicks on setup pin later # cucumber.inflight.tests.pincodeSteps.PinCodeStepsDefinition.user_clicks_on_setup_pin_later()
Then User is in login with partners screen # cucumber.inflight.tests.loginSteps.LoginStepsDefinition.userIsInLoginWithPartnersScreen()
And User logs in with "Facebook" # cucumber.inflight.tests.loginSteps.LoginStepsDefinition.userLogsInWith(java.lang.String)
And User clicks on "Connect" option # cucumber.inflight.tests.dashboardSteps.DashboardStepsDefinition.userClicksOnOption(java.lang.String)
Then Validate search flight header # cucumber.inflight.tests.connectSteps.ConnectGuestStepsDefinition.validateSearchFlightHeader()
Then Enter departure and arrival airports # cucumber.inflight.tests.connectSteps.ConnectGuestStepsDefinition.enterDepartureAndArrivalAirports()
Then Free voucher is shown # cucumber.inflight.tests.connectSteps.ConnectLoggedUserStepsDefinition.freeVoucherIsShown()
05-24-2021 15:46:13 - [cucumber.inflight.hooks.Hooks / finished][INFO ] - Test Failed: file:///Users/Shared/InflightAutomation/inflightautomationtest/src/test/java/cucumber/inflight/features/013GroundShopFreeVoucher.feature:3, RESET: Validate free voucher is displayed in Connect screen
java.lang.NullPointerException
at cucumber.inflight.hooks.Hooks.finished(Hooks.java:87)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at io.cucumber.java.Invoker.doInvoke(Invoker.java:66)
at io.cucumber.java.Invoker.invoke(Invoker.java:24)
at io.cucumber.java.AbstractGlueDefinition.invokeMethod(AbstractGlueDefinition.java:47)
at io.cucumber.java.JavaHookDefinition.execute(JavaHookDefinition.java:59)
at io.cucumber.core.runner.CoreHookDefinition.execute(CoreHookDefinition.java:46)
at io.cucumber.core.runner.HookDefinitionMatch.runStep(HookDefinitionMatch.java:21)
at io.cucumber.core.runner.ExecutionMode$1.execute(ExecutionMode.java:10)
at io.cucumber.core.runner.TestStep.executeStep(TestStep.java:92)
at io.cucumber.core.runner.TestStep.run(TestStep.java:64)
at io.cucumber.core.runner.TestCase.run(TestCase.java:110)
at io.cucumber.core.runner.Runner.runPickle(Runner.java:73)
at io.cucumber.junit.PickleRunners$WithStepDescriptions.run(PickleRunners.java:110)
at io.cucumber.junit.FeatureRunner.runChild(FeatureRunner.java:135)
at io.cucumber.junit.FeatureRunner.runChild(FeatureRunner.java:27)
at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
at io.cucumber.junit.Cucumber.runChild(Cucumber.java:200)
at io.cucumber.junit.Cucumber.runChild(Cucumber.java:90)
at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
at io.cucumber.junit.Cucumber$RunCucumber.evaluate(Cucumber.java:235)
at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecuter.runTestClass(JUnitTestClassExecuter.java:114)
at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecuter.execute(JUnitTestClassExecuter.java:57)
at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassProcessor.processTestClass(JUnitTestClassProcessor.java:66)
at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.processTestClass(SuiteTestClassProcessor.java:51)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)
at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
at org.gradle.internal.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:32)
at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93)
at com.sun.proxy.$Proxy1.processTestClass(Unknown Source)
at org.gradle.api.internal.tasks.testing.worker.TestWorker.processTestClass(TestWorker.java:109)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)
at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:146)
at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:128)
at org.gradle.internal.remote.internal.hub.MessageHub$Handler.run(MessageHub.java:404)
at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)
at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
at java.lang.Thread.run(Thread.java:748)
05-24-2021 15:46:13 - [cucumber.inflight.hooks.Hooks / finished][INFO ] - +++++++++++++ Started Tests: 1 +++++++++++++
05-24-2021 15:46:13 - [cucumber.inflight.hooks.Hooks / finished][INFO ] - +++++++++++++ Succeeded Tests: 0 +++++++++++++
05-24-2021 15:46:13 - [cucumber.inflight.hooks.Hooks / finished][INFO ] - +++++++++++++ Failed Tests: 1 +++++++++++++
05-24-2021 15:46:13 - [cucumber.inflight.hooks.Hooks / finished][INFO ] - +++++++++++++ Finished Tests: 1 +++++++++++++
05-24-2021 15:46:13 - [cucumber.inflight.hooks.Hooks / finished][INFO ] - ++++++++++++++++++++++ Killing Android Driver ++++++++++++++++++++++
05-24-2021 15:46:13 - [core.managers.DriverManagerAndroid / killDriver][INFO ] - +++++++++++ Drivers Driver is not initialized, nothing to kill +++++++++++
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment