Hi,
I have been running appium tests on Jenkins. I have been observing that intermittently I am getting Session Not Found exception when the test are running on Android Device and Emulator.
E.g. My tests pass 6 times continuously on 6 Jenkins Run. Then 7th time I get a Session Not Found Exception. Then 8th time it passes and 9th time again I get Session Not Found exception. This does not happen on the iPhone Simulator or Device.
Has anyone faced similar kind of issue. Below are the logs from my run on GalaxyNexus Device and when I got the error
org.openqa.selenium.remote.SessionNotFoundException:
Command duration or timeout: 5 milliseconds
Build info: version: ‘2.48.2’, revision: ‘41bccdd10cf2c0560f637404c2d96164b67d9d67’, time: ‘2015-10-09 13:08:06’
System info: host: ‘philips-mac-pro.com’, ip: ‘10.3.4.58’, os.name: ‘Mac OS X’, os.arch: ‘x86_64’, os.version: ‘10.11.1’, java.version: ‘1.8.0_65’
Driver info: io.appium.java_client.android.AndroidDriver
Capabilities [{app=/Users/Shared/Jenkins/Home/jobs/PERSONAL_Raj_Android_PDPTestLatest_GalaxyNexusDevice/workspace/ATDDUIAutomation/testApp/<.apk file>, networkConnectionEnabled=true, noReset=true, warnings={}, databaseEnabled=false, locationServicesEnabled=true, deviceName=emulator-5554, avd=null, platform=LINUX, desired={app=/Users/Shared/Jenkins/Home/jobs/PERSONAL_Raj_Android_PDPTestLatest_GalaxyNexusDevice/workspace/ATDDUIAutomation/testApp/<.apk file>, noReset=true, sendKeyStrategy=setValue, platformVersion=4.4.2, waitForAppScript=true, platformName=Android, udid=null, locationServicesEnabled=true, deviceName=0A3C27F515016010, avd=null, autoAcceptAlerts=true}, sendKeyStrategy=setValue, platformVersion=6.0, webStorageEnabled=false, locationContextEnabled=false, browserName=Android, takesScreenshot=true, waitForAppScript=true, javascriptEnabled=true, platformName=Android, udid=null, autoAcceptAlerts=true}]
Session ID: 51d191f4-8f35-41d4-9b19-7bed5a2aad86
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:422)
at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:206)
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:164)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:647)
at io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:42)
at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:1)
at io.appium.java_client.android.AndroidDriver.execute(AndroidDriver.java:1)
at io.appium.java_client.android.AndroidDriver.pressKeyCode(AndroidDriver.java:164)
at stepDefinition.PDPStepDef.userTapOnSearchList(PDPStepDef.java:311)
at ✽.When User taps on the product from the search list(PDPValidation.feature:28)
org.openqa.selenium.remote.SessionNotFoundException:
Command duration or timeout: 5 milliseconds
Build info: version: ‘2.48.2’, revision: ‘41bccdd10cf2c0560f637404c2d96164b67d9d67’, time: ‘2015-10-09 13:08:06’
System info: host: ‘philips-mac-pro.com’, ip: ‘10.3.4.58’, os.name: ‘Mac OS X’, os.arch: ‘x86_64’, os.version: ‘10.11.1’, java.version: ‘1.8.0_65’
Driver info: io.appium.java_client.android.AndroidDriver
Capabilities [{app=/Users/Shared/Jenkins/Home/jobs/PERSONAL_Raj_Android_PDPTestLatest_GalaxyNexusDevice/workspace/ATDDUIAutomation/testApp/<.apk file>, networkConnectionEnabled=true, noReset=true, warnings={}, databaseEnabled=false, locationServicesEnabled=true, deviceName=emulator-5554, avd=null, platform=LINUX, desired={app=/Users/Shared/Jenkins/Home/jobs/PERSONAL_Raj_Android_PDPTestLatest_GalaxyNexusDevice/workspace/ATDDUIAutomation/testApp/<.apk file>, noReset=true, sendKeyStrategy=setValue, platformVersion=4.4.2, waitForAppScript=true, platformName=Android, udid=null, locationServicesEnabled=true, deviceName=0A3C27F515016010, avd=null, autoAcceptAlerts=true}, sendKeyStrategy=setValue, platformVersion=6.0, webStorageEnabled=false, locationContextEnabled=false, browserName=Android, takesScreenshot=true, waitForAppScript=true, javascriptEnabled=true, platformName=Android, udid=null, autoAcceptAlerts=true}]
Session ID: 51d191f4-8f35-41d4-9b19-7bed5a2aad86
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:422)
at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:206)
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:164)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:647)
at io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:42)
at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:206)
at org.openqa.selenium.remote.RemoteWebDriver.getScreenshotAs(RemoteWebDriver.java:325)
at stepDefinition.CucumberScenarioSetup.takeScreenshot(CucumberScenarioSetup.java:66)
at stepDefinition.CucumberScenarioSetup.printScenarioStatus(CucumberScenarioSetup.java:48)
at stepDefinition.CucumberScenarioSetup.doAfterScenario(CucumberScenarioSetup.java:35)
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:497)
at cucumber.runtime.Utils$1.call(Utils.java:37)
at cucumber.runtime.Timeout.timeout(Timeout.java:13)
at cucumber.runtime.Utils.invoke(Utils.java:31)
at cucumber.runtime.java.JavaHookDefinition.execute(JavaHookDefinition.java:60)
at cucumber.runtime.Runtime.runHookIfTagsMatch(Runtime.java:223)
at cucumber.runtime.Runtime.runHooks(Runtime.java:211)
at cucumber.runtime.Runtime.runAfterHooks(Runtime.java:205)
at cucumber.runtime.model.CucumberScenario.run(CucumberScenario.java:46)
at cucumber.runtime.model.CucumberFeature.run(CucumberFeature.java:165)
at cucumber.api.testng.TestNGCucumberRunner.runCucumber(TestNGCucumberRunner.java:63)
at testRunnerClass.PDPTestClass.feature(PDPTestClass.java:32)
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:497)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:86)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:643)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:820)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1128)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:129)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:112)
at org.testng.TestRunner.privateRun(TestRunner.java:782)
at org.testng.TestRunner.run(TestRunner.java:632)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:366)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:361)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:319)
at org.testng.SuiteRunner.run(SuiteRunner.java:268)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1244)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1169)
at org.testng.TestNG.run(TestNG.java:1064)
at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:281)
at org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:75)
at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:121)
at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:290)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:242)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121)
org.openqa.selenium.remote.SessionNotFoundException:
Command duration or timeout: 5 milliseconds
Build info: version: ‘2.48.2’, revision: ‘41bccdd10cf2c0560f637404c2d96164b67d9d67’, time: ‘2015-10-09 13:08:06’
System info: host: ‘philips-mac-pro.com’, ip: ‘10.3.4.58’, os.name: ‘Mac OS X’, os.arch: ‘x86_64’, os.version: ‘10.11.1’, java.version: ‘1.8.0_65’
Driver info: io.appium.java_client.android.AndroidDriver
Capabilities [{app=/Users/Shared/Jenkins/Home/jobs/PERSONAL_Raj_Android_PDPTestLatest_GalaxyNexusDevice/workspace/ATDDUIAutomation/testApp/<.apk file>, networkConnectionEnabled=true, noReset=true, warnings={}, databaseEnabled=false, locationServicesEnabled=true, deviceName=emulator-5554, avd=null, platform=LINUX, desired={app=/Users/Shared/Jenkins/Home/jobs/PERSONAL_Raj_Android_PDPTestLatest_GalaxyNexusDevice/workspace/ATDDUIAutomation/testApp/<.apk file>, noReset=true, sendKeyStrategy=setValue, platformVersion=4.4.2, waitForAppScript=true, platformName=Android, udid=null, locationServicesEnabled=true, deviceName=0A3C27F515016010, avd=null, autoAcceptAlerts=true}, sendKeyStrategy=setValue, platformVersion=6.0, webStorageEnabled=false, locationContextEnabled=false, browserName=Android, takesScreenshot=true, waitForAppScript=true, javascriptEnabled=true, platformName=Android, udid=null, autoAcceptAlerts=true}]
Session ID: 51d191f4-8f35-41d4-9b19-7bed5a2aad86
*** Element info: {Using=id, value=launchPageGuestButton}
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:422)
at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:206)
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:164)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:647)
at io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:42)
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.findElement(RemoteWebDriver.java:353)
at org.openqa.selenium.remote.RemoteWebDriver.findElementById(RemoteWebDriver.java:403)
at io.appium.java_client.DefaultGenericMobileDriver.findElementById(DefaultGenericMobileDriver.java:62)
at io.appium.java_client.AppiumDriver.findElementById(AppiumDriver.java:1)
at io.appium.java_client.android.AndroidDriver.findElementById(AndroidDriver.java:1)
at utilities.ActionMethods.findElementByDevice(ActionMethods.java:186)
at utilities.ActionMethods.clickButton(ActionMethods.java:20)
at stepDefinition.CommonStepDef.clickButton(CommonStepDef.java:32)
at ✽.And The “Marketing.EnterAsGuest” button is clicked(PDPValidation.feature:49)
org.openqa.selenium.remote.SessionNotFoundException:
Command duration or timeout: 6 milliseconds
Build info: version: ‘2.48.2’, revision: ‘41bccdd10cf2c0560f637404c2d96164b67d9d67’, time: ‘2015-10-09 13:08:06’
System info: host: ‘philips-mac-pro.com’, ip: ‘10.3.4.58’, os.name: ‘Mac OS X’, os.arch: ‘x86_64’, os.version: ‘10.11.1’, java.version: ‘1.8.0_65’
Driver info: io.appium.java_client.android.AndroidDriver
Capabilities [{app=/Users/Shared/Jenkins/Home/jobs/PERSONAL_Raj_Android_PDPTestLatest_GalaxyNexusDevice/workspace/ATDDUIAutomation/testApp/<.apk file>, networkConnectionEnabled=true, noReset=true, warnings={}, databaseEnabled=false, locationServicesEnabled=true, deviceName=emulator-5554, avd=null, platform=LINUX, desired={app=/Users/Shared/Jenkins/Home/jobs/PERSONAL_Raj_Android_PDPTestLatest_GalaxyNexusDevice/workspace/ATDDUIAutomation/testApp/<.apk file>, noReset=true, sendKeyStrategy=setValue, platformVersion=4.4.2, waitForAppScript=true, platformName=Android, udid=null, locationServicesEnabled=true, deviceName=0A3C27F515016010, avd=null, autoAcceptAlerts=true}, sendKeyStrategy=setValue, platformVersion=6.0, webStorageEnabled=false, locationContextEnabled=false, browserName=Android, takesScreenshot=true, waitForAppScript=true, javascriptEnabled=true, platformName=Android, udid=null, autoAcceptAlerts=true}]
Session ID: 51d191f4-8f35-41d4-9b19-7bed5a2aad86
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:422)
at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:206)
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:164)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:647)
at io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:42)
at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:206)
at org.openqa.selenium.remote.RemoteWebDriver.getScreenshotAs(RemoteWebDriver.java:325)
at stepDefinition.CucumberScenarioSetup.takeScreenshot(CucumberScenarioSetup.java:66)
at stepDefinition.CucumberScenarioSetup.printScenarioStatus(CucumberScenarioSetup.java:48)
at stepDefinition.CucumberScenarioSetup.doAfterScenario(CucumberScenarioSetup.java:35)
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:497)
at cucumber.runtime.Utils$1.call(Utils.java:37)
at cucumber.runtime.Timeout.timeout(Timeout.java:13)
at cucumber.runtime.Utils.invoke(Utils.java:31)
at cucumber.runtime.java.JavaHookDefinition.execute(JavaHookDefinition.java:60)
at cucumber.runtime.Runtime.runHookIfTagsMatch(Runtime.java:223)
at cucumber.runtime.Runtime.runHooks(Runtime.java:211)
at cucumber.runtime.Runtime.runAfterHooks(Runtime.java:205)
at cucumber.runtime.model.CucumberScenario.run(CucumberScenario.java:46)
at cucumber.runtime.model.CucumberFeature.run(CucumberFeature.java:165)
at cucumber.api.testng.TestNGCucumberRunner.runCucumber(TestNGCucumberRunner.java:63)
at testRunnerClass.PDPTestClass.feature(PDPTestClass.java:32)
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:497)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:86)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:643)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:820)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1128)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:129)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:112)
at org.testng.TestRunner.privateRun(TestRunner.java:782)
at org.testng.TestRunner.run(TestRunner.java:632)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:366)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:361)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:319)
at org.testng.SuiteRunner.run(SuiteRunner.java:268)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1244)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1169)
at org.testng.TestNG.run(TestNG.java:1064)
at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:281)
at org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:75)
at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:121)
at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:290)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:242)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121)
org.openqa.selenium.remote.SessionNotFoundException:
Command duration or timeout: 7 milliseconds
Build info: version: ‘2.48.2’, revision: ‘41bccdd10cf2c0560f637404c2d96164b67d9d67’, time: ‘2015-10-09 13:08:06’
System info: host: ‘philips-mac-pro.com’, ip: ‘10.3.4.58’, os.name: ‘Mac OS X’, os.arch: ‘x86_64’, os.version: ‘10.11.1’, java.version: ‘1.8.0_65’
Driver info: io.appium.java_client.android.AndroidDriver
Capabilities [{app=/Users/Shared/Jenkins/Home/jobs/PERSONAL_Raj_Android_PDPTestLatest_GalaxyNexusDevice/workspace/ATDDUIAutomation/testApp/<.apk file>, networkConnectionEnabled=true, noReset=true, warnings={}, databaseEnabled=false, locationServicesEnabled=true, deviceName=emulator-5554, avd=null, platform=LINUX, desired={app=/Users/Shared/Jenkins/Home/jobs/PERSONAL_Raj_Android_PDPTestLatest_GalaxyNexusDevice/workspace/ATDDUIAutomation/testApp/<.apk file>, noReset=true, sendKeyStrategy=setValue, platformVersion=4.4.2, waitForAppScript=true, platformName=Android, udid=null, locationServicesEnabled=true, deviceName=0A3C27F515016010, avd=null, autoAcceptAlerts=true}, sendKeyStrategy=setValue, platformVersion=6.0, webStorageEnabled=false, locationContextEnabled=false, browserName=Android, takesScreenshot=true, waitForAppScript=true, javascriptEnabled=true, platformName=Android, udid=null, autoAcceptAlerts=true}]
Session ID: 51d191f4-8f35-41d4-9b19-7bed5a2aad86
*** Element info: {Using=id, value=launchPageLogInButton}
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:422)
at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:206)
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:164)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:647)
at io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:42)
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.findElement(RemoteWebDriver.java:353)
at org.openqa.selenium.remote.RemoteWebDriver.findElementById(RemoteWebDriver.java:403)
at io.appium.java_client.DefaultGenericMobileDriver.findElementById(DefaultGenericMobileDriver.java:62)
at io.appium.java_client.AppiumDriver.findElementById(AppiumDriver.java:1)
at io.appium.java_client.android.AndroidDriver.findElementById(AndroidDriver.java:1)
at utilities.ActionMethods.findElementByDevice(ActionMethods.java:186)
at utilities.ActionMethods.clickButton(ActionMethods.java:20)
at stepDefinition.CommonStepDef.clickButton(CommonStepDef.java:32)
at ✽.When The “Marketing.Login” button is clicked(PDPValidation.feature:91)
org.openqa.selenium.remote.SessionNotFoundException:
Command duration or timeout: 5 milliseconds
Build info: version: ‘2.48.2’, revision: ‘41bccdd10cf2c0560f637404c2d96164b67d9d67’, time: ‘2015-10-09 13:08:06’
System info: host: ‘philips-mac-pro.com’, ip: ‘10.3.4.58’, os.name: ‘Mac OS X’, os.arch: ‘x86_64’, os.version: ‘10.11.1’, java.version: ‘1.8.0_65’
Driver info: io.appium.java_client.android.AndroidDriver
Capabilities [{app=/Users/Shared/Jenkins/Home/jobs/PERSONAL_Raj_Android_PDPTestLatest_GalaxyNexusDevice/workspace/ATDDUIAutomation/testApp/<.apk file>, networkConnectionEnabled=true, noReset=true, warnings={}, databaseEnabled=false, locationServicesEnabled=true, deviceName=emulator-5554, avd=null, platform=LINUX, desired={app=/Users/Shared/Jenkins/Home/jobs/PERSONAL_Raj_Android_PDPTestLatest_GalaxyNexusDevice/workspace/ATDDUIAutomation/testApp/<.apk file>, noReset=true, sendKeyStrategy=setValue, platformVersion=4.4.2, waitForAppScript=true, platformName=Android, udid=null, locationServicesEnabled=true, deviceName=0A3C27F515016010, avd=null, autoAcceptAlerts=true}, sendKeyStrategy=setValue, platformVersion=6.0, webStorageEnabled=false, locationContextEnabled=false, browserName=Android, takesScreenshot=true, waitForAppScript=true, javascriptEnabled=true, platformName=Android, udid=null, autoAcceptAlerts=true}]
Session ID: 51d191f4-8f35-41d4-9b19-7bed5a2aad86
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:422)
at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:206)
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:164)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:647)
at io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:42)
at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:206)
at org.openqa.selenium.remote.RemoteWebDriver.getScreenshotAs(RemoteWebDriver.java:325)
at stepDefinition.CucumberScenarioSetup.takeScreenshot(CucumberScenarioSetup.java:66)
at stepDefinition.CucumberScenarioSetup.printScenarioStatus(CucumberScenarioSetup.java:48)
at stepDefinition.CucumberScenarioSetup.doAfterScenario(CucumberScenarioSetup.java:35)
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:497)
at cucumber.runtime.Utils$1.call(Utils.java:37)
at cucumber.runtime.Timeout.timeout(Timeout.java:13)
at cucumber.runtime.Utils.invoke(Utils.java:31)
at cucumber.runtime.java.JavaHookDefinition.execute(JavaHookDefinition.java:60)
at cucumber.runtime.Runtime.runHookIfTagsMatch(Runtime.java:223)
at cucumber.runtime.Runtime.runHooks(Runtime.java:211)
at cucumber.runtime.Runtime.runAfterHooks(Runtime.java:205)
at cucumber.runtime.model.CucumberScenario.run(CucumberScenario.java:46)
at cucumber.runtime.model.CucumberFeature.run(CucumberFeature.java:165)
at cucumber.api.testng.TestNGCucumberRunner.runCucumber(TestNGCucumberRunner.java:63)
at testRunnerClass.PDPTestClass.feature(PDPTestClass.java:32)
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:497)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:86)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:643)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:820)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1128)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:129)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:112)
at org.testng.TestRunner.privateRun(TestRunner.java:782)
at org.testng.TestRunner.run(TestRunner.java:632)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:366)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:361)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:319)
at org.testng.SuiteRunner.run(SuiteRunner.java:268)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1244)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1169)
at org.testng.TestNG.run(TestNG.java:1064)
at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:281)
at org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:75)
at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:121)
at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:290)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:242)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121)
org.openqa.selenium.remote.SessionNotFoundException:
Command duration or timeout: 5 milliseconds
Build info: version: ‘2.48.2’, revision: ‘41bccdd10cf2c0560f637404c2d96164b67d9d67’, time: ‘2015-10-09 13:08:06’
System info: host: ‘philips-mac-pro.com’, ip: ‘10.3.4.58’, os.name: ‘Mac OS X’, os.arch: ‘x86_64’, os.version: ‘10.11.1’, java.version: ‘1.8.0_65’
Driver info: io.appium.java_client.android.AndroidDriver
Capabilities [{app=/Users/Shared/Jenkins/Home/jobs/PERSONAL_Raj_Android_PDPTestLatest_GalaxyNexusDevice/workspace/ATDDUIAutomation/testApp/<.apk file>, networkConnectionEnabled=true, noReset=true, warnings={}, databaseEnabled=false, locationServicesEnabled=true, deviceName=emulator-5554, avd=null, platform=LINUX, desired={app=/Users/Shared/Jenkins/Home/jobs/PERSONAL_Raj_Android_PDPTestLatest_GalaxyNexusDevice/workspace/ATDDUIAutomation/testApp/<.apk file>, noReset=true, sendKeyStrategy=setValue, platformVersion=4.4.2, waitForAppScript=true, platformName=Android, udid=null, locationServicesEnabled=true, deviceName=0A3C27F515016010, avd=null, autoAcceptAlerts=true}, sendKeyStrategy=setValue, platformVersion=6.0, webStorageEnabled=false, locationContextEnabled=false, browserName=Android, takesScreenshot=true, waitForAppScript=true, javascriptEnabled=true, platformName=Android, udid=null, autoAcceptAlerts=true}]
Session ID: 51d191f4-8f35-41d4-9b19-7bed5a2aad86
*** Element info: {Using=id, value=launchPageLogInButton}
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:422)
at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:206)
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:164)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:647)
at io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:42)
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.findElement(RemoteWebDriver.java:353)
at org.openqa.selenium.remote.RemoteWebDriver.findElementById(RemoteWebDriver.java:403)
at io.appium.java_client.DefaultGenericMobileDriver.findElementById(DefaultGenericMobileDriver.java:62)
at io.appium.java_client.AppiumDriver.findElementById(AppiumDriver.java:1)
at io.appium.java_client.android.AndroidDriver.findElementById(AndroidDriver.java:1)
at utilities.ActionMethods.findElementByDevice(ActionMethods.java:186)
at utilities.ActionMethods.clickButton(ActionMethods.java:20)
at stepDefinition.CommonStepDef.clickButton(CommonStepDef.java:32)
at ✽.When The “Marketing.Login” button is clicked(PDPValidation.feature:136)
org.openqa.selenium.remote.SessionNotFoundException:
Command duration or timeout: 5 milliseconds
Build info: version: ‘2.48.2’, revision: ‘41bccdd10cf2c0560f637404c2d96164b67d9d67’, time: ‘2015-10-09 13:08:06’
System info: host: ‘philips-mac-pro.com’, ip: ‘10.3.4.58’, os.name: ‘Mac OS X’, os.arch: ‘x86_64’, os.version: ‘10.11.1’, java.version: ‘1.8.0_65’
Driver info: io.appium.java_client.android.AndroidDriver
Capabilities [{app=/Users/Shared/Jenkins/Home/jobs/PERSONAL_Raj_Android_PDPTestLatest_GalaxyNexusDevice/workspace/ATDDUIAutomation/testApp/<.apk file>, networkConnectionEnabled=true, noReset=true, warnings={}, databaseEnabled=false, locationServicesEnabled=true, deviceName=emulator-5554, avd=null, platform=LINUX, desired={app=/Users/Shared/Jenkins/Home/jobs/PERSONAL_Raj_Android_PDPTestLatest_GalaxyNexusDevice/workspace/ATDDUIAutomation/testApp/<.apk file>, noReset=true, sendKeyStrategy=setValue, platformVersion=4.4.2, waitForAppScript=true, platformName=Android, udid=null, locationServicesEnabled=true, deviceName=0A3C27F515016010, avd=null, autoAcceptAlerts=true}, sendKeyStrategy=setValue, platformVersion=6.0, webStorageEnabled=false, locationContextEnabled=false, browserName=Android, takesScreenshot=true, waitForAppScript=true, javascriptEnabled=true, platformName=Android, udid=null, autoAcceptAlerts=true}]
Session ID: 51d191f4-8f35-41d4-9b19-7bed5a2aad86
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:422)
at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:206)
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:164)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:647)
at io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:42)
at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:206)
at org.openqa.selenium.remote.RemoteWebDriver.getScreenshotAs(RemoteWebDriver.java:325)
at stepDefinition.CucumberScenarioSetup.takeScreenshot(CucumberScenarioSetup.java:66)
at stepDefinition.CucumberScenarioSetup.printScenarioStatus(CucumberScenarioSetup.java:48)
at stepDefinition.CucumberScenarioSetup.doAfterScenario(CucumberScenarioSetup.java:35)
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:497)
at cucumber.runtime.Utils$1.call(Utils.java:37)
at cucumber.runtime.Timeout.timeout(Timeout.java:13)
at cucumber.runtime.Utils.invoke(Utils.java:31)
at cucumber.runtime.java.JavaHookDefinition.execute(JavaHookDefinition.java:60)
at cucumber.runtime.Runtime.runHookIfTagsMatch(Runtime.java:223)
at cucumber.runtime.Runtime.runHooks(Runtime.java:211)
at cucumber.runtime.Runtime.runAfterHooks(Runtime.java:205)
at cucumber.runtime.model.CucumberScenario.run(CucumberScenario.java:46)
at cucumber.runtime.model.CucumberFeature.run(CucumberFeature.java:165)
at cucumber.api.testng.TestNGCucumberRunner.runCucumber(TestNGCucumberRunner.java:63)
at testRunnerClass.PDPTestClass.feature(PDPTestClass.java:32)
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:497)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:86)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:643)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:820)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1128)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:129)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:112)
at org.testng.TestRunner.privateRun(TestRunner.java:782)
at org.testng.TestRunner.run(TestRunner.java:632)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:366)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:361)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:319)
at org.testng.SuiteRunner.run(SuiteRunner.java:268)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1244)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1169)
at org.testng.TestNG.run(TestNG.java:1064)
at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:281)
at org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:75)
at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:121)
at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:290)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:242)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121)
org.openqa.selenium.remote.SessionNotFoundException:
Command duration or timeout: 5 milliseconds
Build info: version: ‘2.48.2’, revision: ‘41bccdd10cf2c0560f637404c2d96164b67d9d67’, time: ‘2015-10-09 13:08:06’
System info: host: ‘philips-mac-pro.com’, ip: ‘10.3.4.58’, os.name: ‘Mac OS X’, os.arch: ‘x86_64’, os.version: ‘10.11.1’, java.version: ‘1.8.0_65’
Driver info: io.appium.java_client.android.AndroidDriver
Capabilities [{app=/Users/Shared/Jenkins/Home/jobs/PERSONAL_Raj_Android_PDPTestLatest_GalaxyNexusDevice/workspace/ATDDUIAutomation/testApp/<.apk file>, networkConnectionEnabled=true, noReset=true, warnings={}, databaseEnabled=false, locationServicesEnabled=true, deviceName=emulator-5554, avd=null, platform=LINUX, desired={app=/Users/Shared/Jenkins/Home/jobs/PERSONAL_Raj_Android_PDPTestLatest_GalaxyNexusDevice/workspace/ATDDUIAutomation/testApp/<.apk file>, noReset=true, sendKeyStrategy=setValue, platformVersion=4.4.2, waitForAppScript=true, platformName=Android, udid=null, locationServicesEnabled=true, deviceName=0A3C27F515016010, avd=null, autoAcceptAlerts=true}, sendKeyStrategy=setValue, platformVersion=6.0, webStorageEnabled=false, locationContextEnabled=false, browserName=Android, takesScreenshot=true, waitForAppScript=true, javascriptEnabled=true, platformName=Android, udid=null, autoAcceptAlerts=true}]
Session ID: 51d191f4-8f35-41d4-9b19-7bed5a2aad86
*** Element info: {Using=id, value=launchPageLogInButton}
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:422)
at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:206)
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:164)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:647)
at io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:42)
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.findElement(RemoteWebDriver.java:353)
at org.openqa.selenium.remote.RemoteWebDriver.findElementById(RemoteWebDriver.java:403)
at io.appium.java_client.DefaultGenericMobileDriver.findElementById(DefaultGenericMobileDriver.java:62)
at io.appium.java_client.AppiumDriver.findElementById(AppiumDriver.java:1)
at io.appium.java_client.android.AndroidDriver.findElementById(AndroidDriver.java:1)
at utilities.ActionMethods.findElementByDevice(ActionMethods.java:186)
at utilities.ActionMethods.clickButton(ActionMethods.java:20)
at stepDefinition.CommonStepDef.clickButton(CommonStepDef.java:32)
at ✽.When The “Marketing.Login” button is clicked(PDPValidation.feature:181)
org.openqa.selenium.remote.SessionNotFoundException:
Command duration or timeout: 6 milliseconds
Build info: version: ‘2.48.2’, revision: ‘41bccdd10cf2c0560f637404c2d96164b67d9d67’, time: ‘2015-10-09 13:08:06’
System info: host: ‘philips-mac-pro.com’, ip: ‘10.3.4.58’, os.name: ‘Mac OS X’, os.arch: ‘x86_64’, os.version: ‘10.11.1’, java.version: ‘1.8.0_65’
Driver info: io.appium.java_client.android.AndroidDriver
Capabilities [{app=/Users/Shared/Jenkins/Home/jobs/PERSONAL_Raj_Android_PDPTestLatest_GalaxyNexusDevice/workspace/ATDDUIAutomation/testApp/<.apk file>, networkConnectionEnabled=true, noReset=true, warnings={}, databaseEnabled=false, locationServicesEnabled=true, deviceName=emulator-5554, avd=null, platform=LINUX, desired={app=/Users/Shared/Jenkins/Home/jobs/PERSONAL_Raj_Androi_PDPTestLatest_GalaxyNexusDevice/workspace/ATDDUIAutomation/testApp/<.apk file>, noReset=true, sendKeyStrategy=setValue, platformVersion=4.4.2, waitForAppScript=true, platformName=Android, udid=null, locationServicesEnabled=true, deviceName=0A3C27F515016010, avd=null, autoAcceptAlerts=true}, sendKeyStrategy=setValue, platformVersion=6.0, webStorageEnabled=false, locationContextEnabled=false, browserName=Android, takesScreenshot=true, waitForAppScript=true, javascriptEnabled=true, platformName=Android, udid=null, autoAcceptAlerts=true}]
Session ID: 51d191f4-8f35-41d4-9b19-7bed5a2aad86
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:422)
at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:206)
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:164)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:647)
at io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:42)
at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:206)
at org.openqa.selenium.remote.RemoteWebDriver.getScreenshotAs(RemoteWebDriver.java:325)
at stepDefinition.CucumberScenarioSetup.takeScreenshot(CucumberScenarioSetup.java:66)
at stepDefinition.CucumberScenarioSetup.printScenarioStatus(CucumberScenarioSetup.java:48)
at stepDefinition.CucumberScenarioSetup.doAfterScenario(CucumberScenarioSetup.java:35)
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:497)
at cucumber.runtime.Utils$1.call(Utils.java:37)
at cucumber.runtime.Timeout.timeout(Timeout.java:13)
at cucumber.runtime.Utils.invoke(Utils.java:31)
at cucumber.runtime.java.JavaHookDefinition.execute(JavaHookDefinition.java:60)
at cucumber.runtime.Runtime.runHookIfTagsMatch(Runtime.java:223)
at cucumber.runtime.Runtime.runHooks(Runtime.java:211)
at cucumber.runtime.Runtime.runAfterHooks(Runtime.java:205)
at cucumber.runtime.model.CucumberScenario.run(CucumberScenario.java:46)
at cucumber.runtime.model.CucumberFeature.run(CucumberFeature.java:165)
at cucumber.api.testng.TestNGCucumberRunner.runCucumber(TestNGCucumberRunner.java:63)
at testRunnerClass.PDPTestClass.feature(PDPTestClass.java:32)
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:497)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:86)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:643)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:820)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1128)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:129)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:112)
at org.testng.TestRunner.privateRun(TestRunner.java:782)
at org.testng.TestRunner.run(TestRunner.java:632)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:366)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:361)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:319)
at org.testng.SuiteRunner.run(SuiteRunner.java:268)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1244)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1169)
at org.testng.TestNG.run(TestNG.java:1064)
at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:281)
at org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:75)
at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:121)
at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:290)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:242)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121)
org.openqa.selenium.remote.SessionNotFoundException:
Command duration or timeout: 5 milliseconds
Build info: version: ‘2.48.2’, revision: ‘41bccdd10cf2c0560f637404c2d96164b67d9d67’, time: ‘2015-10-09 13:08:06’
System info: host: ‘philips-mac-pro.com’, ip: ‘10.3.4.58’, os.name: ‘Mac OS X’, os.arch: ‘x86_64’, os.version: ‘10.11.1’, java.version: ‘1.8.0_65’
Driver info: io.appium.java_client.android.AndroidDriver
Capabilities [{app=/Users/Shared/Jenkins/Home/jobs/PERSONAL_Raj_Android_PDPTestLatest_GalaxyNexusDevice/workspace/ATDDUIAutomation/testApp/<.apk file>, networkConnectionEnabled=true, noReset=true, warnings={}, databaseEnabled=false, locationServicesEnabled=true, deviceName=emulator-5554, avd=null, platform=LINUX, desired={app=/Users/Shared/Jenkins/Home/jobs/PERSONAL_Raj_Android_PDPTestLatest_GalaxyNexusDevice/workspace/ATDDUIAutomation/testApp/<.apk file>, noReset=true, sendKeyStrategy=setValue, platformVersion=4.4.2, waitForAppScript=true, platformName=Android, udid=null, locationServicesEnabled=true, deviceName=0A3C27F515016010, avd=null, autoAcceptAlerts=true}, sendKeyStrategy=setValue, platformVersion=6.0, webStorageEnabled=false, locationContextEnabled=false, browserName=Android, takesScreenshot=true, waitForAppScript=true, javascriptEnabled=true, platformName=Android, udid=null, autoAcceptAlerts=true}]
Session ID: 51d191f4-8f35-41d4-9b19-7bed5a2aad86
*** Element info: {Using=id, value=launchPageLogInButton}
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:422)
at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:206)
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:164)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:647)
at io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:42)
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.findElement(RemoteWebDriver.java:353)
at org.openqa.selenium.remote.RemoteWebDriver.findElementById(RemoteWebDriver.java:403)
at io.appium.java_client.DefaultGenericMobileDriver.findElementById(DefaultGenericMobileDriver.java:62)
at io.appium.java_client.AppiumDriver.findElementById(AppiumDriver.java:1)
at io.appium.java_client.android.AndroidDriver.findElementById(AndroidDriver.java:1)
at utilities.ActionMethods.findElementByDevice(ActionMethods.java:186)
at utilities.ActionMethods.clickButton(ActionMethods.java:20)
at stepDefinition.CommonStepDef.clickButton(CommonStepDef.java:32)
at ✽.When The “Marketing.Login” button is clicked(PDPValidation.feature:227)
org.openqa.selenium.remote.SessionNotFoundException:
Command duration or timeout: 4 milliseconds
Build info: version: ‘2.48.2’, revision: ‘41bccdd10cf2c0560f637404c2d96164b67d9d67’, time: ‘2015-10-09 13:08:06’
System info: host: ‘philips-mac-pro.com’, ip: ‘10.3.4.58’, os.name: ‘Mac OS X’, os.arch: ‘x86_64’, os.version: ‘10.11.1’, java.version: ‘1.8.0_65’
Driver info: io.appium.java_client.android.AndroidDriver
Capabilities [{app=/Users/Shared/Jenkins/Home/jobs/PERSONAL_Raj_Android_PDPTestLatest_GalaxyNexusDevice/workspace/ATDDUIAutomation/testApp/<.apk file>, networkConnectionEnabled=true, noReset=true, warnings={}, databaseEnabled=false, locationServicesEnabled=true, deviceName=emulator-5554, avd=null, platform=LINUX, desired={app=/Users/Shared/Jenkins/Home/jobs/PERSONAL_Raj_Android_PDPTestLatest_GalaxyNexusDevice/workspace/ATDDUIAutomation/testApp/<.apk file>, noReset=true, sendKeyStrategy=setValue, platformVersion=4.4.2, waitForAppScript=true, platformName=Android, udid=null, locationServicesEnabled=true, deviceName=0A3C27F515016010, avd=null, autoAcceptAlerts=true}, sendKeyStrategy=setValue, platformVersion=6.0, webStorageEnabled=false, locationContextEnabled=false, browserName=Android, takesScreenshot=true, waitForAppScript=true, javascriptEnabled=true, platformName=Android, udid=null, autoAcceptAlerts=true}]
Session ID: 51d191f4-8f35-41d4-9b19-7bed5a2aad86
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:422)
at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:206)
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:164)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:647)
at io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:42)
at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:206)
at org.openqa.selenium.remote.RemoteWebDriver.getScreenshotAs(RemoteWebDriver.java:325)
at stepDefinition.CucumberScenarioSetup.takeScreenshot(CucumberScenarioSetup.java:66)
at stepDefinition.CucumberScenarioSetup.printScenarioStatus(CucumberScenarioSetup.java:48)
at stepDefinition.CucumberScenarioSetup.doAfterScenario(CucumberScenarioSetup.java:35)
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:497)
at cucumber.runtime.Utils$1.call(Utils.java:37)
at cucumber.runtime.Timeout.timeout(Timeout.java:13)
at cucumber.runtime.Utils.invoke(Utils.java:31)
at cucumber.runtime.java.JavaHookDefinition.execute(JavaHookDefinition.java:60)
at cucumber.runtime.Runtime.runHookIfTagsMatch(Runtime.java:223)
at cucumber.runtime.Runtime.runHooks(Runtime.java:211)
at cucumber.runtime.Runtime.runAfterHooks(Runtime.java:205)
at cucumber.runtime.model.CucumberScenario.run(CucumberScenario.java:46)
at cucumber.runtime.model.CucumberFeature.run(CucumberFeature.java:165)
at cucumber.api.testng.TestNGCucumberRunner.runCucumber(TestNGCucumberRunner.java:63)
at testRunnerClass.PDPTestClass.feature(PDPTestClass.java:32)
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:497)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:86)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:643)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:820)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1128)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:129)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:112)
at org.testng.TestRunner.privateRun(TestRunner.java:782)
at org.testng.TestRunner.run(TestRunner.java:632)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:366)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:361)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:319)
at org.testng.SuiteRunner.run(SuiteRunner.java:268)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1244)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1169)
at org.testng.TestNG.run(TestNG.java:1064)
at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:281)
at org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:75)
at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:121)
at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:290)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:242)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121)