Git Product home page Git Product logo

optimustemplate's People

Contributors

krishnb avatar mayankgupta804 avatar nishantverma avatar sukesh15 avatar thenishant avatar vagrantlab avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

optimustemplate's Issues

Error on Mongo DB and then Failed to get adb devices from code , but from command line I able to see the devices.

13:46:35.787 [ERROR] [system.err] 108 [main] INFO org.mongodb.driver.cluster - No server chosen by ReadPreferenceServerSelector{readPreference=primary} from cluster description ClusterDescription{type=UNKNOWN, connectionMode=SINGLE, serverDescriptions=[ServerDescription{address=localhost:27017, type=UNKNOWN, state=CONNECTING}]}. Waiting for 30000 ms before timing out
13:46:35.791 [ERROR] [system.err] 112 [cluster-ClusterId{value='59ed580b17235e08d4dc7719', description='null'}-localhost:27017] INFO org.mongodb.driver.connection - Opened connection [connectionId{localValue:1, serverValue:29}] to localhost:27017
13:46:35.792 [ERROR] [system.err] 113 [cluster-ClusterId{value='59ed580b17235e08d4dc7719', description='null'}-localhost:27017] INFO org.mongodb.driver.cluster - Monitor thread successfully connected to server with description ServerDescription{address=localhost:27017, type=STANDALONE, state=CONNECTED, ok=true, version=ServerVersion{versionList=[3, 4, 9]}, minWireVersion=0, maxWireVersion=5, maxDocumentSize=16777216, roundTripTimeNanos=450948}
13:46:35.797 [ERROR] [system.err] 118 [main] INFO org.mongodb.driver.connection - Opened connection [connectionId{localValue:2, serverValue:30}] to localhost:27017
13:46:35.822 [QUIET] [system.out] -------- All devices and there status --------
13:46:35.822 [QUIET] [system.out] CB5A28GAZP --- Available
13:46:35.827 [QUIET] [system.out] MongoClient:1648458262
13:46:35.827 [QUIET] [system.out] Updating first available device to Engaged
13:46:35.838 [QUIET] [system.out] Device query -- { "$and" : [ { "status" : "Available"} , { "platform" : "ANDROID"} , { "udid" : "CB5A28GAZP"}] , "buildId" : { "$oid" : "59ed58051a43d90828c1d4ed"}}
13:46:35.860 [QUIET] [system.out] Updated device E5823 to engaged
13:46:35.862 [QUIET] [system.out] Scenario id -- say-hello-to-optimus;hello-optimus
13:46:35.862 [QUIET] [system.out] Scenario Name -- Hello Optimus
13:46:35.863 [QUIET] [system.out] Failure in before hook:StartingSteps.setUp(Scenario)
13:46:35.863 [QUIET] [system.out] Message: java.lang.RuntimeException: Cannot extract line number from the String.say-hello-to-optimus;hello-optimus
13:46:35.863 [QUIET] [system.out] at com.testvagrant.commons.helpers.ScenarioHelper.getLineNumber(ScenarioHelper.java:71)
13:46:35.863 [QUIET] [system.out] at com.testvagrant.commons.helpers.ScenarioHelper.getUniqueScenarioName(ScenarioHelper.java:42)
13:46:35.863 [QUIET] [system.out] at com.testvagrant.optimus.device.OptimusController.registerSmartBOTs(OptimusController.java:156)
13:46:35.863 [QUIET] [system.out] at steps.StartingSteps.setUp(StartingSteps.java:20)
13:46:35.863 [QUIET] [system.out] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
13:46:35.863 [QUIET] [system.out] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
13:46:35.863 [QUIET] [system.out] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
13:46:35.863 [QUIET] [system.out] at java.lang.reflect.Method.invoke(Method.java:498)
13:46:35.863 [QUIET] [system.out] at cucumber.runtime.Utils$1.call(Utils.java:40)
13:46:35.863 [QUIET] [system.out] at cucumber.runtime.Timeout.timeout(Timeout.java:16)
13:46:35.863 [QUIET] [system.out] at cucumber.runtime.Utils.invoke(Utils.java:34)
13:46:35.863 [QUIET] [system.out] at cucumber.runtime.java.JavaHookDefinition.execute(JavaHookDefinition.java:60)
13:46:35.864 [QUIET] [system.out] at cucumber.runtime.Runtime.runHookIfTagsMatch(Runtime.java:224)
13:46:35.864 [QUIET] [system.out] at cucumber.runtime.Runtime.runHooks(Runtime.java:212)
13:46:35.864 [QUIET] [system.out] at cucumber.runtime.Runtime.runBeforeHooks(Runtime.java:202)
13:46:35.864 [QUIET] [system.out] at cucumber.runtime.model.CucumberScenario.run(CucumberScenario.java:40)
13:46:35.864 [QUIET] [system.out] at cucumber.runtime.model.CucumberFeature.run(CucumberFeature.java:165)
13:46:35.864 [QUIET] [system.out] at cucumber.runtime.Runtime.run(Runtime.java:122)
13:46:35.864 [QUIET] [system.out] at cucumber.api.cli.Main.run(Main.java:36)
13:46:35.864 [QUIET] [system.out] at cucumber.api.cli.Main.main(Main.java:18)
13:46:35.864 [QUIET] [system.out]
13:46:35.864 [QUIET] [system.out] java.lang.RuntimeException: Cannot extract line number from the String.say-hello-to-optimus;hello-optimus
13:46:35.864 [QUIET] [system.out] at com.testvagrant.commons.helpers.ScenarioHelper.getLineNumber(ScenarioHelper.java:71)
13:46:35.864 [QUIET] [system.out] at com.testvagrant.commons.helpers.ScenarioHelper.getUniqueScenarioName(ScenarioHelper.java:42)
13:46:35.864 [QUIET] [system.out] at com.testvagrant.optimus.device.OptimusController.registerSmartBOTs(OptimusController.java:156)
13:46:35.864 [QUIET] [system.out] at steps.StartingSteps.setUp(StartingSteps.java:20)
13:46:35.864 [QUIET] [system.out] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
13:46:35.864 [QUIET] [system.out] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
13:46:35.864 [QUIET] [system.out] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
13:46:35.864 [QUIET] [system.out] at java.lang.reflect.Method.invoke(Method.java:498)
13:46:35.864 [QUIET] [system.out] at cucumber.runtime.Utils$1.call(Utils.java:40)
13:46:35.864 [QUIET] [system.out] at cucumber.runtime.Timeout.timeout(Timeout.java:16)
13:46:35.864 [QUIET] [system.out] at cucumber.runtime.Utils.invoke(Utils.java:34)
13:46:35.864 [QUIET] [system.out] at cucumber.runtime.java.JavaHookDefinition.execute(JavaHookDefinition.java:60)
13:46:35.864 [QUIET] [system.out] at cucumber.runtime.Runtime.runHookIfTagsMatch(Runtime.java:224)
13:46:35.864 [QUIET] [system.out] at cucumber.runtime.Runtime.runHooks(Runtime.java:212)
13:46:35.864 [QUIET] [system.out] at cucumber.runtime.Runtime.runBeforeHooks(Runtime.java:202)
13:46:35.864 [QUIET] [system.out] at cucumber.runtime.model.CucumberScenario.run(CucumberScenario.java:40)
13:46:35.864 [QUIET] [system.out] at cucumber.runtime.model.CucumberFeature.run(CucumberFeature.java:165)
13:46:35.864 [QUIET] [system.out] at cucumber.runtime.Runtime.run(Runtime.java:122)
13:46:35.864 [QUIET] [system.out] at cucumber.api.cli.Main.run(Main.java:36)
13:46:35.864 [QUIET] [system.out] at cucumber.api.cli.Main.main(Main.java:18)
13:46:35.865 [QUIET] [system.out]
13:46:35.868 [QUIET] [system.out] Failure in after hook:StartingSteps.tearDown(Scenario)
13:46:35.868 [QUIET] [system.out] Message: java.lang.NullPointerException
13:46:35.868 [QUIET] [system.out] at steps.StartingSteps.tearDown(StartingSteps.java:29)
13:46:35.868 [QUIET] [system.out] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
13:46:35.868 [QUIET] [system.out] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
13:46:35.868 [QUIET] [system.out] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
13:46:35.868 [QUIET] [system.out] at java.lang.reflect.Method.invoke(Method.java:498)
13:46:35.868 [QUIET] [system.out] at cucumber.runtime.Utils$1.call(Utils.java:40)
13:46:35.868 [QUIET] [system.out] at cucumber.runtime.Timeout.timeout(Timeout.java:16)
13:46:35.868 [QUIET] [system.out] at cucumber.runtime.Utils.invoke(Utils.java:34)
13:46:35.868 [QUIET] [system.out] at cucumber.runtime.java.JavaHookDefinition.execute(JavaHookDefinition.java:60)
13:46:35.868 [QUIET] [system.out] at cucumber.runtime.Runtime.runHookIfTagsMatch(Runtime.java:224)
13:46:35.868 [QUIET] [system.out] at cucumber.runtime.Runtime.runHooks(Runtime.java:212)
13:46:35.868 [QUIET] [system.out] at cucumber.runtime.Runtime.runAfterHooks(Runtime.java:206)
13:46:35.869 [QUIET] [system.out] at cucumber.runtime.model.CucumberScenario.run(CucumberScenario.java:46)
13:46:35.869 [QUIET] [system.out] at cucumber.runtime.model.CucumberFeature.run(CucumberFeature.java:165)
13:46:35.869 [QUIET] [system.out] at cucumber.runtime.Runtime.run(Runtime.java:122)
13:46:35.869 [QUIET] [system.out] at cucumber.api.cli.Main.run(Main.java:36)
13:46:35.869 [QUIET] [system.out] at cucumber.api.cli.Main.main(Main.java:18)
13:46:35.869 [QUIET] [system.out]
13:46:35.869 [QUIET] [system.out] java.lang.NullPointerException
13:46:35.869 [QUIET] [system.out] at steps.StartingSteps.tearDown(StartingSteps.java:29)
13:46:35.869 [QUIET] [system.out] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
13:46:35.869 [QUIET] [system.out] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
13:46:35.869 [QUIET] [system.out] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
13:46:35.869 [QUIET] [system.out] at java.lang.reflect.Method.invoke(Method.java:498)
13:46:35.869 [QUIET] [system.out] at cucumber.runtime.Utils$1.call(Utils.java:40)
13:46:35.869 [QUIET] [system.out] at cucumber.runtime.Timeout.timeout(Timeout.java:16)
13:46:35.869 [QUIET] [system.out] at cucumber.runtime.Utils.invoke(Utils.java:34)
13:46:35.869 [QUIET] [system.out] at cucumber.runtime.java.JavaHookDefinition.execute(JavaHookDefinition.java:60)
13:46:35.869 [QUIET] [system.out] at cucumber.runtime.Runtime.runHookIfTagsMatch(Runtime.java:224)
13:46:35.869 [QUIET] [system.out] at cucumber.runtime.Runtime.runHooks(Runtime.java:212)
13:46:35.869 [QUIET] [system.out] at cucumber.runtime.Runtime.runAfterHooks(Runtime.java:206)
13:46:35.869 [QUIET] [system.out] at cucumber.runtime.model.CucumberScenario.run(CucumberScenario.java:46)
13:46:35.869 [QUIET] [system.out] at cucumber.runtime.model.CucumberFeature.run(CucumberFeature.java:165)
13:46:35.869 [QUIET] [system.out] at cucumber.runtime.Runtime.run(Runtime.java:122)
13:46:35.869 [QUIET] [system.out] at cucumber.api.cli.Main.run(Main.java:36)
13:46:35.869 [QUIET] [system.out] at cucumber.api.cli.Main.main(Main.java:18)
13:46:35.869 [QUIET] [system.out]
13:46:35.869 [QUIET] [system.out]
13:46:35.869 [QUIET] [system.out] @helloOptimus
13:46:35.869 [QUIET] [system.out] Scenario: Hello Optimus # HelloOptimus.feature:4
13:46:35.870 [QUIET] [system.out] Given I have optimus hello application # HelloOptimusSteps.iHaveOptimusHelloApplication()
13:46:35.870 [QUIET] [system.out] When I open it on either emulator, simulator or device on any platform # HelloOptimusSteps.iOpenItOnEitherEmulatorSimulatorOrDeviceOnAnyPlatform()
13:46:35.870 [QUIET] [system.out] Then I should be able to say a hello to optimus # HelloOptimusSteps.iShouldBeAbleToSayAHelloToOptimus()
13:46:35.870 [QUIET] [system.out] Feature: Say Hello to Optimus
13:46:35.870 [QUIET] [system.out] Using generic steps, I want read the welcome message
13:46:35.870 [QUIET] [system.out] appJson updated with - CB5A28GAZP
13:46:35.870 [QUIET] [system.out] {"executionDetails":{"appium_js_path":"/usr/local/bin/appium","monitoring":true,"appium_node_path":"/usr/local/bin/node"},"testFeed":[{"optimusDesiredCapabilities":{"appiumServerCapabilities":{"app":"HelloOptimus.apk","platformName":"Android","udid":"CB5A28GAZP"},"androidOnlyCapabilities":{"appActivity":"com.testvagrant.hellooptimus.MainActivity","appPackage":"com.testvagrant.hellooptimus","avdLaunchTimeout":300000,"useKeystore":false}},"appDir":"app","runsOn":"any","deviceState":{"captureVideo":true},"belongsTo":"optimus","nativeApp":true}]}
13:46:35.871 [QUIET] [system.out] 2017-10-23 13:46:35 INFO OptimusController:147 - Starting Scenario -- generic step example
13:46:35.871 [QUIET] [system.out] updated testFeed -- {"optimusDesiredCapabilities":{"appiumServerCapabilities":{"app":"HelloOptimus.apk","platformName":"Android","udid":"CB5A28GAZP"},"androidOnlyCapabilities":{"appActivity":"com.testvagrant.hellooptimus.MainActivity","appPackage":"com.testvagrant.hellooptimus","avdLaunchTimeout":300000,"useKeystore":false}},"appDir":"app","runsOn":"any","deviceState":{"captureVideo":true},"belongsTo":"optimus","nativeApp":true}
13:46:35.871 [QUIET] [system.out] MongoClient:1648458262
13:46:35.873 [QUIET] [system.out] -------- All devices and there status --------
13:46:35.873 [QUIET] [system.out] CB5A28GAZP --- Engaged
13:46:35.873 [QUIET] [system.out] MongoClient:1648458262
13:46:35.873 [QUIET] [system.out] Updating first available device to Engaged
13:46:35.873 [QUIET] [system.out] Device query -- { "$and" : [ { "status" : "Available"} , { "platform" : "ANDROID"} , { "udid" : "CB5A28GAZP"}] , "buildId" : { "$oid" : "59ed58051a43d90828c1d4ed"}}
13:46:35.875 [QUIET] [system.out] Failure in before hook:StartingSteps.setUp(Scenario)
13:46:35.875 [QUIET] [system.out] Message: java.lang.NullPointerException: Unable to Mark Device to 'Engaged'. Check for device State using adb devices. If it is offline, kill the adb server adb kill-server and try again.
13:46:35.875 [QUIET] [system.out] at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:799)
13:46:35.875 [QUIET] [system.out] at com.testvagrant.monitor.radiator.MongoWriter.updateFirstAvailableDeviceToEngaged(MongoWriter.java:160)
13:46:35.875 [QUIET] [system.out] at com.testvagrant.optimus.device.DeviceFinder.getAvailableDeviceAndUpdateToEngaged(DeviceFinder.java:56)
13:46:35.875 [QUIET] [system.out] at com.testvagrant.optimus.parser.OptimusConfigParser.mapOwnerToDesiredCapabilities(OptimusConfigParser.java:61)
13:46:35.875 [QUIET] [system.out] at com.testvagrant.optimus.device.OptimusController.registerSmartBOTs(OptimusController.java:151)
13:46:35.875 [QUIET] [system.out] at steps.StartingSteps.setUp(StartingSteps.java:20)
13:46:35.875 [QUIET] [system.out] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
13:46:35.875 [QUIET] [system.out] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
13:46:35.875 [QUIET] [system.out] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
13:46:35.875 [QUIET] [system.out] at java.lang.reflect.Method.invoke(Method.java:498)
13:46:35.875 [QUIET] [system.out] at cucumber.runtime.Utils$1.call(Utils.java:40)
13:46:35.875 [QUIET] [system.out] at cucumber.runtime.Timeout.timeout(Timeout.java:16)
13:46:35.875 [QUIET] [system.out] at cucumber.runtime.Utils.invoke(Utils.java:34)
13:46:35.875 [QUIET] [system.out] at cucumber.runtime.java.JavaHookDefinition.execute(JavaHookDefinition.java:60)
13:46:35.875 [QUIET] [system.out] at cucumber.runtime.Runtime.runHookIfTagsMatch(Runtime.java:224)
13:46:35.875 [QUIET] [system.out] at cucumber.runtime.Runtime.runHooks(Runtime.java:212)
13:46:35.875 [QUIET] [system.out] at cucumber.runtime.Runtime.runBeforeHooks(Runtime.java:202)
13:46:35.875 [QUIET] [system.out] at cucumber.runtime.model.CucumberScenario.run(CucumberScenario.java:40)
13:46:35.875 [QUIET] [system.out] at cucumber.runtime.model.CucumberFeature.run(CucumberFeature.java:165)
13:46:35.875 [QUIET] [system.out] at cucumber.runtime.Runtime.run(Runtime.java:122)
13:46:35.876 [QUIET] [system.out] at cucumber.api.cli.Main.run(Main.java:36)
13:46:35.876 [QUIET] [system.out] at cucumber.api.cli.Main.main(Main.java:18)
13:46:35.876 [QUIET] [system.out]
13:46:35.876 [QUIET] [system.out] java.lang.NullPointerException: Unable to Mark Device to 'Engaged'. Check for device State using adb devices. If it is offline, kill the adb server adb kill-server and try again.
13:46:35.876 [QUIET] [system.out] at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:799)
13:46:35.876 [QUIET] [system.out] at com.testvagrant.monitor.radiator.MongoWriter.updateFirstAvailableDeviceToEngaged(MongoWriter.java:160)
13:46:35.876 [QUIET] [system.out] at com.testvagrant.optimus.device.DeviceFinder.getAvailableDeviceAndUpdateToEngaged(DeviceFinder.java:56)
13:46:35.876 [QUIET] [system.out] at com.testvagrant.optimus.parser.OptimusConfigParser.mapOwnerToDesiredCapabilities(OptimusConfigParser.java:61)
13:46:35.876 [QUIET] [system.out] at com.testvagrant.optimus.device.OptimusController.registerSmartBOTs(OptimusController.java:151)
13:46:35.876 [QUIET] [system.out] at steps.StartingSteps.setUp(StartingSteps.java:20)
13:46:35.876 [QUIET] [system.out] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
13:46:35.876 [QUIET] [system.out] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
13:46:35.876 [QUIET] [system.out] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
13:46:35.876 [QUIET] [system.out] at java.lang.reflect.Method.invoke(Method.java:498)
13:46:35.876 [QUIET] [system.out] at cucumber.runtime.Utils$1.call(Utils.java:40)
13:46:35.876 [QUIET] [system.out] at cucumber.runtime.Timeout.timeout(Timeout.java:16)
13:46:35.876 [QUIET] [system.out] at cucumber.runtime.Utils.invoke(Utils.java:34)
13:46:35.876 [QUIET] [system.out] at cucumber.runtime.java.JavaHookDefinition.execute(JavaHookDefinition.java:60)
13:46:35.876 [QUIET] [system.out] at cucumber.runtime.Runtime.runHookIfTagsMatch(Runtime.java:224)
13:46:35.876 [QUIET] [system.out] at cucumber.runtime.Runtime.runHooks(Runtime.java:212)
13:46:35.876 [QUIET] [system.out] at cucumber.runtime.Runtime.runBeforeHooks(Runtime.java:202)
13:46:35.876 [QUIET] [system.out] at cucumber.runtime.model.CucumberScenario.run(CucumberScenario.java:40)
13:46:35.876 [QUIET] [system.out] at cucumber.runtime.model.CucumberFeature.run(CucumberFeature.java:165)
13:46:35.876 [QUIET] [system.out] at cucumber.runtime.Runtime.run(Runtime.java:122)
13:46:35.876 [QUIET] [system.out] at cucumber.api.cli.Main.run(Main.java:36)
13:46:35.876 [QUIET] [system.out] at cucumber.api.cli.Main.main(Main.java:18)
13:46:35.876 [QUIET] [system.out]
13:46:35.877 [QUIET] [system.out] Failure in after hook:StartingSteps.tearDown(Scenario)
13:46:35.877 [QUIET] [system.out] Message: java.lang.NullPointerException
13:46:35.877 [QUIET] [system.out] at steps.StartingSteps.tearDown(StartingSteps.java:29)
13:46:35.877 [QUIET] [system.out] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
13:46:35.877 [QUIET] [system.out] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
13:46:35.877 [QUIET] [system.out] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
13:46:35.877 [QUIET] [system.out] at java.lang.reflect.Method.invoke(Method.java:498)
13:46:35.877 [QUIET] [system.out] at cucumber.runtime.Utils$1.call(Utils.java:40)
13:46:35.877 [QUIET] [system.out] at cucumber.runtime.Timeout.timeout(Timeout.java:16)
13:46:35.877 [QUIET] [system.out] at cucumber.runtime.Utils.invoke(Utils.java:34)
13:46:35.877 [QUIET] [system.out] at cucumber.runtime.java.JavaHookDefinition.execute(JavaHookDefinition.java:60)
13:46:35.877 [QUIET] [system.out] at cucumber.runtime.Runtime.runHookIfTagsMatch(Runtime.java:224)
13:46:35.877 [QUIET] [system.out] at cucumber.runtime.Runtime.runHooks(Runtime.java:212)
13:46:35.877 [QUIET] [system.out] at cucumber.runtime.Runtime.runAfterHooks(Runtime.java:206)
13:46:35.877 [QUIET] [system.out] at cucumber.runtime.model.CucumberScenario.run(CucumberScenario.java:46)
13:46:35.877 [QUIET] [system.out] at cucumber.runtime.model.CucumberFeature.run(CucumberFeature.java:165)
13:46:35.877 [QUIET] [system.out] at cucumber.runtime.Runtime.run(Runtime.java:122)
13:46:35.877 [QUIET] [system.out] at cucumber.api.cli.Main.run(Main.java:36)
13:46:35.878 [QUIET] [system.out] at cucumber.api.cli.Main.main(Main.java:18)
13:46:35.878 [QUIET] [system.out]
13:46:35.878 [QUIET] [system.out] java.lang.NullPointerException
13:46:35.878 [QUIET] [system.out] at steps.StartingSteps.tearDown(StartingSteps.java:29)
13:46:35.878 [QUIET] [system.out] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
13:46:35.878 [QUIET] [system.out] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
13:46:35.878 [QUIET] [system.out] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
13:46:35.878 [QUIET] [system.out] at java.lang.reflect.Method.invoke(Method.java:498)
13:46:35.878 [QUIET] [system.out] at cucumber.runtime.Utils$1.call(Utils.java:40)
13:46:35.878 [QUIET] [system.out] at cucumber.runtime.Timeout.timeout(Timeout.java:16)
13:46:35.878 [QUIET] [system.out] at cucumber.runtime.Utils.invoke(Utils.java:34)
13:46:35.878 [QUIET] [system.out] at cucumber.runtime.java.JavaHookDefinition.execute(JavaHookDefinition.java:60)
13:46:35.878 [QUIET] [system.out] at cucumber.runtime.Runtime.runHookIfTagsMatch(Runtime.java:224)
13:46:35.878 [QUIET] [system.out] at cucumber.runtime.Runtime.runHooks(Runtime.java:212)
13:46:35.878 [QUIET] [system.out] at cucumber.runtime.Runtime.runAfterHooks(Runtime.java:206)
13:46:35.878 [QUIET] [system.out] at cucumber.runtime.model.CucumberScenario.run(CucumberScenario.java:46)
13:46:35.878 [QUIET] [system.out] at cucumber.runtime.model.CucumberFeature.run(CucumberFeature.java:165)
13:46:35.878 [QUIET] [system.out] at cucumber.runtime.Runtime.run(Runtime.java:122)
13:46:35.878 [QUIET] [system.out] at cucumber.api.cli.Main.run(Main.java:36)
13:46:35.878 [QUIET] [system.out] at cucumber.api.cli.Main.main(Main.java:18)
13:46:35.878 [QUIET] [system.out]
13:46:35.878 [QUIET] [system.out]
13:46:35.878 [QUIET] [system.out] @helloOptimus
13:46:35.878 [QUIET] [system.out] Scenario: generic step example # HelloOptimusGeneric.feature:6
13:46:35.878 [QUIET] [system.out] Given optimus on Home screen verifies WelcomeMessage has textpresent value Welcome to Optimus!! You are all ready to experience Automation like never before. # GenericSteps.assertelementwithvalue(String,String,String,String,String)
13:46:35.885 [QUIET] [system.out]
13:46:35.885 [QUIET] [system.out] Failed scenarios:
13:46:35.885 [QUIET] [system.out] HelloOptimus.feature:4 # Scenario: Hello Optimus
13:46:35.885 [QUIET] [system.out] HelloOptimusGeneric.feature:6 # Scenario: generic step example
13:46:35.885 [QUIET] [system.out]
13:46:35.885 [QUIET] [system.out] 2 Scenarios (2 failed)
13:46:35.885 [QUIET] [system.out] 4 Steps (4 skipped)
13:46:35.886 [QUIET] [system.out] 0m5.707s
13:46:35.886 [QUIET] [system.out]

Exception in thread "main" java.lang.IllegalStateException: Cannot parse object because no supported Content-Type was specified in response. Content-Type was 'text/html;charset=iso-8859-1'.

10:39:28 Mongo uri mongodb://localhost:27017
10:39:28 Services URI http://localhost:8080/v1
10:39:28 Service commands [java, -jar, /Users/jenkins/.jenkins/workspace/MobileApp(Android)/libs/optimus-services-1.0.jar, --port=8080, --database=optimus, --uri=mongodb://localhost:27017]
10:44:31 :runFragmentation
10:44:32 Notifying build start
10:44:32 Builds Pathhttp://localhost:8080/v1/builds
10:44:34 Exception in thread "main" java.lang.IllegalStateException: Cannot parse object because no supported Content-Type was specified in response. Content-Type was 'text/html;charset=iso-8859-1'.
10:44:34 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
10:44:34 at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
10:44:34 at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
10:44:34 at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
10:44:34 at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:83)
10:44:34 at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrapNoCoerce.callConstructor(ConstructorSite.java:105)
10:44:34 at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConstructor(CallSiteArray.java:60)
10:44:34 at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:235)
10:44:34 at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:247)
10:44:34 at io.restassured.internal.mapping.ObjectMapping.deserialize(ObjectMapping.groovy:82)
10:44:34 at io.restassured.internal.mapping.ObjectMapping$deserialize$0.call(Unknown Source)
10:44:34 at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
10:44:34 at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
10:44:34 at io.restassured.internal.RestAssuredResponseOptionsGroovyImpl.as(RestAssuredResponseOptionsGroovyImpl.groovy:222)
10:44:34 at io.restassured.internal.RestAssuredResponseOptionsImpl.as(RestAssuredResponseOptionsImpl.java:164)
10:44:34 at com.testvagrant.monitor.clients.BuildsClient.createNewBuild(BuildsClient.java:25)
10:44:34 at com.testvagrant.monitor.services.BuildsServiceImpl.notifyBuildStart(BuildsServiceImpl.java:21)
10:44:34 at com.testvagrant.monitor.MongoMain.createOptimusDb(MongoMain.java:54)
10:44:34 at com.testvagrant.optimus.OptimusMain.setup(OptimusMain.java:37)
10:44:34 at com.testvagrant.optimus.OptimusMain.main(OptimusMain.java:33)
10:44:34 /Users/jenkins/.jenkins/workspace/MobileApp(Android)/src/test/resources/ProdAndroid.json
10:44:35 :runFragmentation FAILED
10:44:35 :fragmentationReport
10:44:35 updating build end time
10:44:35 java.lang.IllegalStateException: Cannot parse object because no supported Content-Type was specified in response. Content-Type was 'text/html;charset=utf-8'.
10:44:35 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
10:44:35 at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
10:44:35 at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
10:44:35 at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
10:44:35 at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:83)
10:44:35 at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrapNoCoerce.callConstructor(ConstructorSite.java:105)
10:44:35 at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:247)
10:44:35 at io.restassured.internal.mapping.ObjectMapping.deserialize(ObjectMapping.groovy:82)
10:44:35 at io.restassured.internal.mapping.ObjectMapping$deserialize.call(Unknown Source)
10:44:35 at io.restassured.internal.RestAssuredResponseOptionsGroovyImpl.as(RestAssuredResponseOptionsGroovyImpl.groovy:222)
10:44:35 at io.restassured.internal.RestAssuredResponseOptionsImpl.as(RestAssuredResponseOptionsImpl.java:164)
10:44:35 at com.testvagrant.monitor.clients.BuildsClient.getLatestBuildId(BuildsClient.java:40)
10:44:35 at com.testvagrant.monitor.services.OptimusServiceImpl.getLatestBuild(OptimusServiceImpl.java:10)
10:44:35 at com.testvagrant.monitor.services.BuildsServiceImpl.notifyBuildEnd(BuildsServiceImpl.java:26)
10:44:35 at com.testvagrant.monitor.services.BuildsService$notifyBuildEnd.call(Unknown Source)
10:44:35 at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
10:44:35 at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
10:44:35 at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:117)
10:44:35 at com.testvagrant.optimus.utils.OptimusTearDown.updateBuildRecord(OptimusTearDown.groovy:9)
10:44:35 at com.testvagrant.optimus.utils.OptimusTearDown$updateBuildRecord.call(Unknown Source)
10:44:35 at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
10:44:35 at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
10:44:35 at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:117)
10:44:35 at com.testvagrant.optimus.tasks.FragmentationReportTask.fragmentationReport(FragmentationReportTask.groovy:20)
10:44:35 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
10:44:35 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
10:44:35 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
10:44:35 at java.lang.reflect.Method.invoke(Method.java:498)
10:44:35 at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:73)
10:44:35 at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.doExecute(DefaultTaskClassInfoStore.java:141)
10:44:35 at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(DefaultTaskClassInfoStore.java:134)
10:44:35 at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(DefaultTaskClassInfoStore.java:123)
10:44:35 at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:692)
10:44:35 at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:675)
10:44:35 at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$1.execute(ExecuteActionsTaskExecuter.java:115)
10:44:35 at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$1.execute(ExecuteActionsTaskExecuter.java:109)
10:44:35 at org.gradle.internal.Transformers$4.transform(Transformers.java:169)
10:44:35 at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:106)
10:44:35 at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:56)
10:44:35 at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:109)
10:44:35 at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:90)
10:44:35 at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:68)
10:44:35 at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:62)
10:44:35 at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)
10:44:35 at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:88)
10:44:35 at org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:46)
10:44:35 at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:51)
10:44:35 at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:54)
10:44:35 at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
10:44:35 at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:34)
10:44:35 at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker$1.execute(DefaultTaskGraphExecuter.java:236)
10:44:35 at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker$1.execute(DefaultTaskGraphExecuter.java:228)
10:44:35 at org.gradle.internal.Transformers$4.transform(Transformers.java:169)
10:44:35 at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:106)
10:44:35 at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:61)
10:44:35 at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:228)
10:44:35 at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:215)
10:44:35 at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.processTask(AbstractTaskPlanExecutor.java:77)
10:44:35 at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.run(AbstractTaskPlanExecutor.java:58)
10:44:35 at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:32)
10:44:35 at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:113)
10:44:35 at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:37)
10:44:35 at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:37)
10:44:35 at org.gradle.execution.DefaultBuildExecuter.access$000(DefaultBuildExecuter.java:23)
10:44:35 at org.gradle.execution.DefaultBuildExecuter$1.proceed(DefaultBuildExecuter.java:43)
10:44:35 at org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExecutionAction.java:32)
10:44:35 at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:37)
10:44:35 at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:30)
10:44:35 at org.gradle.initialization.DefaultGradleLauncher$RunTasksAction.execute(DefaultGradleLauncher.java:230)
10:44:35 at org.gradle.initialization.DefaultGradleLauncher$RunTasksAction.execute(DefaultGradleLauncher.java:227)
10:44:35 at org.gradle.internal.Transformers$4.transform(Transformers.java:169)
10:44:35 at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:106)
10:44:35 at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:56)
10:44:35 at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:161)
10:44:35 at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:112)
10:44:35 at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:95)
10:44:35 at org.gradle.launcher.exec.GradleBuildController.run(GradleBuildController.java:66)
10:44:35 at org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(ExecuteBuildActionRunner.java:28)
10:44:35 at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)
10:44:35 at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:41)
10:44:35 at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:26)
10:44:35 at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:75)
10:44:35 at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:49)
10:44:35 at org.gradle.tooling.internal.provider.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.java:49)
10:44:35 at org.gradle.tooling.internal.provider.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.java:31)
10:44:35 at org.gradle.launcher.daemon.server.exec.ExecuteBuild.doBuild(ExecuteBuild.java:67)
10:44:35 at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
10:44:35 at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
10:44:35 at org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute(WatchForDisconnection.java:37)
10:44:35 at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
10:44:35 at org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute(ResetDeprecationLogger.java:26)
10:44:35 at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
10:44:35 at org.gradle.launcher.daemon.server.exec.RequestStopIfSingleUsedDaemon.execute(RequestStopIfSingleUsedDaemon.java:34)
10:44:35 at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
10:44:35 at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:74)
10:44:35 at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:72)
10:44:35 at org.gradle.util.Swapper.swap(Swapper.java:38)
10:44:35 at org.gradle.launcher.daemon.server.exec.ForwardClientInput.execute(ForwardClientInput.java:72)
10:44:35 at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
10:44:35 at org.gradle.launcher.daemon.server.exec.LogAndCheckHealth.execute(LogAndCheckHealth.java:55)
10:44:35 at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
10:44:35 at org.gradle.launcher.daemon.server.exec.LogToClient.doBuild(LogToClient.java:60)
10:44:35 at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
10:44:35 at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
10:44:35 at org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild(EstablishBuildEnvironment.java:72)
10:44:35 at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
10:44:35 at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
10:44:35 at org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy$1.run(StartBuildOrRespondWithBusy.java:50)
10:44:35 at org.gradle.launcher.daemon.server.DaemonStateCoordinator$1.run(DaemonStateCoordinator.java:297)
10:44:35 at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)
10:44:35 at org.gradle.internal.concurrent.StoppableExecutorImpl$1.run(StoppableExecutorImpl.java:46)
10:44:35 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
10:44:35 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
10:44:35 at java.lang.Thread.run(Thread.java:748)
10:44:35 Parsing report
10:44:35 ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console.
10:44:35
10:44:35 R

Enquiry: Is there a option to customise the Optimus reporting

Hi Team,

I am using Optimus as a framework to automate the tests. The cucumber report that is generated is good but, my management wants reporting in a different format, and every one is interested in the "Cucumber Extent reporting" eg: https://github.com/email2vimalraj/CucumberExtentReporter.

  1. Is there a way to get a report in this format from Optimus?
  2. How can I pass in the options while running cucumber files like the below.
    @CucumberOptions(
    features = {"src/test/resources/features"},
    glue = {"com.cucumber.stepdefinitions"},
    plugin = {"com.cucumber.listener.ExtentCucumberFormatter:output/report.html"}
    )

Thanks,
Arvind

Tests failing in fragmentation runs

If the tests are, due to some reason, stopped during a fragmentation run, and then again when the tests are run from the beginning, an error is thrown saying that the tests failed.This could possibly due to failure in the proper shutdown of the Redis server.However, if we do a Gradle run, the error does not occur.In fact, after the Gradle run, if we do a proper test run, the error does not occur at all.
Below, the image is attached which is related to the problem being faced.
image

Question: If I run a Synchronized method in my test, will the test wait for one method to be done?

Please help me understand how this work. I have a method that I want to run on each device and they can't run on each of the other devices while in parallel. How can I achieve this while running the devices in a Fragmentation setup?

Any thoughts thank you. I have tried the synchronized method but that doesn't seem to do the job, the method I synchronized is not locked, and is running on two devices at the same time.

Thank you.

An error happens on running Template scenario ":fragmentationReport FAILED"

After setting up the solution and successfully running HelloOptimusAndroid test feed I'm constantly getting following error:

MongoClient:1851422703
say-hello-to-optimus;hello-optimus
ce021712ad0fe4250c
:fragmentationReport FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':fragmentationReport'.
> java.lang.NullPointerException (no error message)

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 1 mins 8.098 secs

Command executed: gradle runFragmentation -DtestFeed=HelloOptimusAndroid -Dtags=@helloOptimus

Commit 3b5fccaef5050d85764899a64286b66b7f460e3e [3b5fcca]

Info : DeviceReleaseException is not preset inside "import com.testvagrant.monitor.exceptions" for controller.deRegisterSmartBOTs(smartBOTs);

DeviceReleaseException is not available for export so on using Optimus 3.0.

Bit wandering how it work in optimusTemplate code preset in Git.

To handle this we have to embed in try catch block.
try{
controller.deRegisterSmartBOTs(smartBOTs);
}
catch(Exception e){
logger.info(" import com.testvagrant.monitor.exceptions.DeviceReleaseException not preset ");
//TODO Act of the exception
}

execution on physical iOS device throws error as "The executable contains an invalid signature."

./gradlew runDistribution -DtestFeed="helloOptimusIos" -Dtags=@helloOptimus

{
"executionDetails": {
"appium_js_path": "/usr/local/bin/appium",
"appium_node_path": "/usr/local/bin/node"
},
"testFeed": [
{
"belongsTo": "optimus",
"runsOn": "device",
"appDir": "app",
"nativeApp":true,
"optimusDesiredCapabilities": {
"appiumServerCapabilities": {
"app": "HelloOptimus.app",
"platformName": "iOS",
"platformVersion": "11.0",
"deviceName": "iPhone 5s",
"automationName":"XcuiTest"
},
"iOSOnlyCapabilities": {
"launchTimeout": 300000,
"useNewWDA":false,
"showXcodeLog":true,
"autoGrantPermissions": true
}
},
"deviceState":{
"captureVideo":true
}
}
]
}

Stack trace on Debug mode.

01:19:10.469 [QUIET] [system.out] '. Stderr: '2017-10-22 01:19:09.951 ios-deploy[2493:227341] [ !! ] Error 0xe8008014: The executable contains an invalid signature. AMDeviceSecureInstallApplication(0, device, url, options, install_callback, 0)
01:19:10.469 [QUIET] [system.out] '.
01:19:10.470 [QUIET] [system.out] [XCUITest] Error: Could not install app: 'Command 'ios-deploy --id cc685401a30be51ff3b73840cbaacc858937bf6e --bundle /Users/asit/Documents/MobileAutomation/app/HelloOptimus.app' exited with code 253'
01:19:10.470 [QUIET] [system.out] at IOSDeploy.install$ (../../lib/ios-deploy.js:40:13)
01:19:10.470 [QUIET] [system.out] at tryCatch (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
01:19:10.470 [QUIET] [system.out] at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
01:19:10.470 [QUIET] [system.out] at GeneratorFunctionPrototype.prototype.(anonymous function) [as throw] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
01:19:10.470 [QUIET] [system.out] at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
01:19:10.470 [QUIET] [system.out] at
01:19:10.470 [QUIET] [system.out] Error: Could not install app: 'Command 'ios-deploy --id cc685401a30be51ff3b73840cbaacc858937bf6e --bundle /Users/asit/Documents/MobileAutomation/app/HelloOptimus.app' exited with code 253'
01:19:10.470 [QUIET] [system.out] at IOSDeploy.install$ (../../lib/ios-deploy.js:40:13)
01:19:10.470 [QUIET] [system.out] at tryCatch (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
01:19:10.470 [QUIET] [system.out] at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
01:19:10.470 [QUIET] [system.out] at GeneratorFunctionPrototype.prototype.(anonymous function) [as throw] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
01:19:10.470 [QUIET] [system.out] at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
01:19:10.470 [QUIET] [system.out] at
01:19:10.470 [QUIET] [system.out] [debug] [XCUITest] Not clearing log files. Use clearSystemFiles capability to turn on.
01:19:10.470 [QUIET] [system.out] [debug] [iOSLog] Stopping iOS log capture
01:19:10.471 [QUIET] [system.out] [MJSONWP] Encountered internal error running command: Error: Could not install app: 'Command 'ios-deploy --id cc685401a30be51ff3b73840cbaacc858937bf6e --bundle /Users/asit/Documents/MobileAutomation/app/HelloOptimus.app' exited with code 253'
01:19:10.471 [QUIET] [system.out] at IOSDeploy.install$ (../../lib/ios-deploy.js:40:13)
01:19:10.471 [QUIET] [system.out] at tryCatch (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
01:19:10.471 [QUIET] [system.out] at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
01:19:10.471 [QUIET] [system.out] at GeneratorFunctionPrototype.prototype.(anonymous function) [as throw] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
01:19:10.471 [QUIET] [system.out] at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
01:19:10.471 [QUIET] [system.out] at
01:19:10.477 [QUIET] [system.out] [HTTP] <-- POST /wd/hub/session 500 14399 ms - 318
01:19:14.705 [DEBUG] [org.gradle.process.internal.health.memory.MemoryManager] Emitting OS memory status event {Total: 17179869184, Free: 6284390400}
01:19:14.705 [DEBUG] [org.gradle.launcher.daemon.server.health.LowMemoryDaemonExpirationStrategy] Received memory status update: {Total: 17179869184, Free: 6284390400}
01:19:14.705 [DEBUG] [org.gradle.process.internal.health.memory.MemoryManager] Emitting JVM memory status event {Maximum: 954728448, Committed: 554172416}
01:19:16.063 [DEBUG] [org.mongodb.driver.cluster] Checking status of localhost:27017
01:19:16.064 [DEBUG] [org.mongodb.driver.cluster] Updating cluster description to {type=STANDALONE, servers=[{address=localhost:27017, type=STANDALONE, roundTripTime=1.4 ms, state=CONNECTED}]
01:19:17.999 [DEBUG] [org.gradle.launcher.daemon.server.Daemon] DaemonExpirationPeriodicCheck running
01:19:18.000 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire shared lock on daemon addresses registry.
01:19:18.000 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired on daemon addresses registry.
01:19:18.000 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on daemon addresses registry.
01:19:18.000 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire shared lock on daemon addresses registry.
01:19:18.000 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired on daemon addresses registry.
01:19:18.000 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on daemon addresses registry.
01:19:19.706 [DEBUG] [org.gradle.process.internal.health.memory.MemoryManager] Emitting OS memory status event {Total: 17179869184, Free: 6285725696}
01:19:19.706 [DEBUG] [org.gradle.launcher.daemon.server.health.LowMemoryDaemonExpirationStrategy] Received memory status update: {Total: 17179869184, Free: 6285725696}
01:19:19.706 [DEBUG] [org.gradle.process.internal.health.memory.MemoryManager] Emitting JVM memory status event {Maximum: 954728448, Committed: 554172416}
01:19:20.502 [QUIET] [system.out] Failure in before hook:StartingSteps.setUp(Scenario)
01:19:20.502 [QUIET] [system.out] Message: org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: Could not install app: 'Command 'ios-deploy --id cc685401a30be51ff3b73840cbaacc858937bf6e --bundle /Users/asit/Documents/MobileAutomation/app/HelloOptimus.app' exited with code 253' (WARNING: The server did not provide any stacktrace information)
0

Optimus 3.0 Error in`com.testvagrant.monitor.services.ScenariosServiceImpl.notifyScenarioCompletion`

Executed a bunch of test but after ah hour of execution remaining test start skipping/failed as the tearDown scenario failed to close the connection

After StartingSteps.tearDown(Scenario)1.564
Error message
java.lang.NullPointerException
  at com.testvagrant.monitor.services.ScenariosServiceImpl.notifyScenarioCompletion(ScenariosServiceImpl.java:37)
      at com.testvagrant.optimus.device.Radiator.notifyScenarioCompletion(Radiator.java:42)
    at com.testvagrant.optimus.device.OptimusController.stopScenarioListernerIfMonitoring(OptimusController.java:142)
      at com.testvagrant.optimus.device.OptimusController.deRegisterSmartBOTs(OptimusController.java:114)
      at steps.StartingSteps.tearDown(StartingSteps.java:34)
   at sun.reflect.GeneratedMethodAccessor253.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:498)
   at cucumber.runtime.Utils$1.call(Utils.java:32)
       at cucumber.runtime.Timeout.timeout(Timeout.java:16)
      at cucumber.runtime.Utils.invoke(Utils.java:26)
  at cucumber.runtime.java.JavaHookDefinition.execute(JavaHookDefinition.java:60)
      at cucumber.runtime.HookDefinitionMatch.runStep(HookDefinitionMatch.java:17)
     at cucumber.runner.UnskipableStep.executeStep(UnskipableStep.java:22)
   at cucumber.api.TestStep.run(TestStep.java:83)
        at cucumber.api.TestCase.run(TestCase.java:58)
     at cucumber.runner.Runner.runPickle(Runner.java:80)
     at cucumber.runtime.Runtime.runFeature(Runtime.java:119)
        at cucumber.runtime.Runtime.run(Runtime.java:104)
  at cucumber.api.cli.Main.run(Main.java:36)
   at cucumber.api.cli.Main.main(Main.java:18)



Before StartingSteps.setUp(Scenario)0.048
Error message
java.lang.IllegalStateException: Cannot parse content to class com.testvagrant.monitor.requests.Device because no content-type was present in the response and no default parser has been set.
You can specify a default parser using e.g.:
RestAssured.defaultParser = Parser.JSON;

or you can specify an explicit ObjectMapper using as(class com.testvagrant.monitor.requests.Device, <ObjectMapper>);
  at sun.reflect.GeneratedConstructorAccessor97.newInstance(Unknown Source)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
  at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
   at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:83)
 at org.codehaus.groovy.reflection.CachedConstructor.doConstructorInvoke(CachedConstructor.java:77)
  at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrap.callConstructor(ConstructorSite.java:84)
     at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:247)
     at io.restassured.internal.RestAssuredResponseOptionsGroovyImpl$_as_closure3.doCall(RestAssuredResponseOptionsGroovyImpl.groovy:219)
    at io.restassured.internal.RestAssuredResponseOptionsGroovyImpl$_as_closure3.doCall(RestAssuredResponseOptionsGroovyImpl.groovy)
       at sun.reflect.GeneratedMethodAccessor257.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
       at java.lang.reflect.Method.invoke(Method.java:498)
       at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
       at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
     at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:294)
       at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022)
        at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:42)
  at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:117)
     at io.restassured.internal.RestAssuredResponseOptionsGroovyImpl.findContentType(RestAssuredResponseOptionsGroovyImpl.groovy:482)
        at sun.reflect.GeneratedMethodAccessor142.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSiteNoUnwrapNoCoerce.invoke(PogoMetaMethodSite.java:210)
        at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:59)
 at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:166)
     at io.restassured.internal.RestAssuredResponseOptionsGroovyImpl.as(RestAssuredResponseOptionsGroovyImpl.groovy:218)
     at io.restassured.internal.RestAssuredResponseOptionsImpl.as(RestAssuredResponseOptionsImpl.java:164)
   at com.testvagrant.monitor.clients.DevicesClient.getDevice(DevicesClient.java:50)
     at com.testvagrant.monitor.services.DevicesServiceImpl.updateFirstAvailableDeviceToEngaged(DevicesServiceImpl.java:38)
  at com.testvagrant.optimus.device.DeviceFinder.getAvailableDeviceAndUpdateToEngaged(DeviceFinder.java:56)
    at com.testvagrant.optimus.parser.OptimusConfigParser.allocateDevicesForCurrentScenario(OptimusConfigParser.java:151)
  at com.testvagrant.optimus.device.OptimusController.registerSmartBOTs(OptimusController.java:152)
    at steps.StartingSteps.setUp(StartingSteps.java:20)
    at sun.reflect.GeneratedMethodAccessor240.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at cucumber.runtime.Utils$1.call(Utils.java:32)
        at cucumber.runtime.Timeout.timeout(Timeout.java:16)
       at cucumber.runtime.Utils.invoke(Utils.java:26)
   at cucumber.runtime.java.JavaHookDefinition.execute(JavaHookDefinition.java:60)
       at cucumber.runtime.HookDefinitionMatch.runStep(HookDefinitionMatch.java:17)
      at cucumber.runner.UnskipableStep.executeStep(UnskipableStep.java:22)
    at cucumber.api.TestStep.run(TestStep.java:83)
 at cucumber.api.TestCase.run(TestCase.java:58)
      at cucumber.runner.Runner.runPickle(Runner.java:80)
      at cucumber.runtime.Runtime.runFeature(Runtime.java:119)
 at cucumber.runtime.Runtime.run(Runtime.java:104)
   at cucumber.api.cli.Main.run(Main.java:36)
    at cucumber.api.cli.Main.main(Main.java:18)

Unable to make device 'Engaged" with Optimus 2.2.3

Unable to make device 'Engaged" from code and all test failed . Where " adb devies " give list of devices back in terminal.

java.lang.NullPointerException: Unable to Mark Device to 'Engaged'. Check for device State using adb devices. If it is offline, kill the adb server adb kill-server and try again.
at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:900)
at com.testvagrant.monitor.radiator.MongoWriter.updateFirstAvailableDeviceToEngaged(MongoWriter.java:161)
at com.testvagrant.optimus.device.DeviceFinder.getAvailableDeviceAndUpdateToEngaged(DeviceFinder.java:56)
at com.testvagrant.optimus.parser.OptimusConfigParser.mapOwnerToDesiredCapabilities(OptimusConfigParser.java:59)
at com.testvagrant.optimus.device.OptimusController.registerSmartBOTs(OptimusController.java:157)
at steps.StartingSteps.setUp(StartingSteps.java:23)
at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at cucumber.runtime.Utils$1.call(Utils.java:32)
at cucumber.runtime.Timeout.timeout(Timeout.java:16)
at cucumber.runtime.Utils.invoke(Utils.java:26)
at cucumber.runtime.java.JavaHookDefinition.execute(JavaHookDefinition.java:60)
at cucumber.runtime.HookDefinitionMatch.runStep(HookDefinitionMatch.java:17)
at cucumber.runner.UnskipableStep.executeStep(UnskipableStep.java:22)
at cucumber.api.TestStep.run(TestStep.java:83)
at cucumber.api.TestCase.run(TestCase.java:58)
at cucumber.runner.Runner.runPickle(Runner.java:80)
at cucumber.runtime.Runtime.runFeature(Runtime.java:119)
at cucumber.runtime.Runtime.run(Runtime.java:104)
at cucumber.api.cli.Main.run(Main.java:36)
at cucumber.api.cli.Main.main(Main.java:18)

Exception opening socket}, caused by {java.net.ConnectException: Connection refused (Connection refused)}}]

11:03:09.895 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Timed out after 30000 ms while waiting for a server that matches ReadPreferenceServerSelector{readPreference=primary}. Client view of cluster state is {type=UNKNOWN, servers=[{address=localhost:27017, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSocketOpenException: Exception opening socket}, caused by {java.net.ConnectException: Connection refused (Connection refused)}}]
11

Platform : iOS and "appium_js_path" and "appium_node_path" are mapped

{
"executionDetails": {
"appium_js_path": "/usr/local/bin/appium",
"appium_node_path": "/usr/local/bin/node",
"monitoring":true
},
"testFeed":[
{
"belongsTo":"optimus",
"runsOn": "any",
"appDir": "app",
"nativeApp":true,
"optimusDesiredCapabilities": {
"appiumServerCapabilities": {
"app": "hellooptimus.apk",
"platformName": "Android"
},
"androidOnlyCapabilities": {
"appActivity": "com.testvagrant.hellooptimus.MainActivity",
"appPackage": "com.testvagrant.hellooptimus",
"avdLaunchTimeout": 300000,
"useKeystore": false
}
},
"deviceState": {
"captureVideo": true
}
}
]
}

running a bunch of test in fragmented mode (2 devices) I am facing below issue frequently but same time in console if I query adb devices in console return comes as List of devices

Before StartingSteps.setUp(Scenario)

Issue: When I am running a bunch of test in fragmented mode (2 devices) I am facing below issue frequently but same time in console if I query adb devices in console return comes as List of devices. This says some how optimus failed fetch List of attached evices.

Any thoughts

Stack Trace

java.lang.NullPointerException: Unable to Mark Device to 'Engaged'. Check for device State using adb devices. If it is offline, kill the adb server adb kill-server and try again.
at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:805)
at com.testvagrant.monitor.radiator.MongoWriter.updateFirstAvailableDeviceToEngaged(MongoWriter.java:160)
at com.testvagrant.optimus.device.DeviceFinder.getAvailableDeviceAndUpdateToEngaged(DeviceFinder.java:56)
at com.testvagrant.optimus.parser.OptimusConfigParser.mapOwnerToDesiredCapabilities(OptimusConfigParser.java:61)
at com.testvagrant.optimus.device.OptimusController.registerSmartBOTs(OptimusController.java:157)
at steps.StartingSteps.setUp(StartingSteps.java:23)
at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at cucumber.runtime.Utils$1.call(Utils.java:32)
at cucumber.runtime.Timeout.timeout(Timeout.java:16)
at cucumber.runtime.Utils.invoke(Utils.java:26)
at cucumber.runtime.java.JavaHookDefinition.execute(JavaHookDefinition.java:60)
at cucumber.runtime.HookDefinitionMatch.runStep(HookDefinitionMatch.java:17)
at cucumber.runner.UnskipableStep.executeStep(UnskipableStep.java:22)
at cucumber.api.TestStep.run(TestStep.java:83)
at cucumber.api.TestCase.run(TestCase.java:58)
at cucumber.runner.Runner.runPickle(Runner.java:80)
at cucumber.runtime.Runtime.runFeature(Runtime.java:119)
at cucumber.runtime.Runtime.run(Runtime.java:104)
at cucumber.api.cli.Main.run(Main.java:36)
at cucumber.api.cli.Main.main(Main.java:18)

Always failed to build after the first build (Unable to delete directory)

I am new to Java and Optimus. After the first build of Optimus, I always got this error message when I run

gradle runDistribution -DtestFeed="helloOptimus" -Dtags=@helloOptimus

> Task :clean FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':clean'.
> Unable to delete directory: C:\Users\Chairul\EDCAutomation\build

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 1s
1 actionable task: 1 executed

I can't manually delete the file/folder and already tried all the methods in here https://stackoverflow.com/questions/36492904/unable-to-delete-directory-in-android-studio.

I'm using Windows 10, Android Studio 3.2 and IntelliJ IDEA 2018.2.5

Issue with iOS

Here is the issue on iOS:
gradle runFragmentation -DtestFeed=HelloOptimusIOS -Dtags=@helloOptimus

Task :compileTestJava
Note: /Users/sampadrout/AMA_New/src/test/java/pages/BasePage.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

Task :runFragmentation
Executing MongoMain
MongoClient:1084179762
Running command ---- instruments -s devices | grep 'iPhone'
command output -- Known Devices:
Sampad’s MacBook Pro [76300B76-877E-5B6C-8A5C-63989CB37CA8]
Apple TV 1080p (10.2) [7D48EE19-760D-4044-B793-755CE912A7F6] (Simulator)
iPad (5th generation) (10.3.1) [18D78ADA-C7BC-4C49-A80B-A59BC3C7CDB1] (Simulator)
iPad 2 (8.4) [43133935-09F3-4292-B8A3-2F339552E178] (Simulator)
iPad 2 (9.0) [DD6A644E-69C0-443A-BCA4-2D7C29CF9EE5] (Simulator)
iPad 2 (9.1) [8ABC9D59-67B3-46BB-9A61-2C0AD3B5F53E] (Simulator)
iPad Air (10.3.1) [E3D79778-8161-43D2-9764-5F2DC4BF939F] (Simulator)
iPad Air (8.4) [A4737584-B9AF-4792-96D3-6024394E131F] (Simulator)
iPad Air (9.0) [3A1D59E7-FFFE-42D1-9A77-DDF340764D4F] (Simulator)
iPad Air (9.1) [D2B62DEE-8DCB-446A-B74B-423BE2690228] (Simulator)
iPad Air 2 (10.3.1) [C55DE100-1ECE-4234-9164-0AB6F944DCF3] (Simulator)
iPad Air 2 (9.0) [66714260-1523-497A-804C-E847557E0261] (Simulator)
iPad Air 2 (9.1) [79EB27CF-D24E-4ECF-A24A-A11A16DFB4ED] (Simulator)
iPad Pro (10.5-inch) (10.3.1) [E0944F65-72BB-4F78-A62F-0B6339B24EF8] (Simulator)
iPad Pro (12.9 inch) (10.3.1) [52D9DE62-8CD0-41DF-AF7C-1DF6A24D89C5] (Simulator)
iPad Pro (12.9-inch) (2nd generation) (10.3.1) [59D06F3F-EE71-4894-A877-86089101B92C] (Simulator)
iPad Pro (9.1) [7A29232E-D0CF-4354-9616-24BCDD3B37F3] (Simulator)
iPad Pro (9.7 inch) (10.3.1) [F6E358CA-6F76-45A4-B01A-9DEB8C6D6221] (Simulator)
iPad Retina (8.4) [27A0F759-1917-46BD-8092-4016BB4C352D] (Simulator)
iPad Retina (9.0) [61C74654-C198-41AD-A731-8FD8D75E61CC] (Simulator)
iPad Retina (9.1) [F9637EF8-2743-4005-992B-2FEE663F3A0C] (Simulator)
iPhone 4s (8.4) [0A2AB258-2C99-4D88-AAF3-E127B73452E1] (Simulator)
iPhone 4s (9.0) [B0D6D58B-351E-4005-A920-80B0FDD5C2F6] (Simulator)
iPhone 4s (9.1) [D3DFF92E-FD47-4B8C-833B-F40FFECEE825] (Simulator)
iPhone 5 (10.3.1) [CE24ADBE-4279-476A-97E3-78B392A0B944] (Simulator)
iPhone 5 (8.4) [6748CC2B-CA76-4669-A2E3-77DF53277E3F] (Simulator)
iPhone 5 (9.0) [77DDB9FA-BD16-409C-97D2-DED4F0DB65F4] (Simulator)
iPhone 5 (9.1) [B4DC5205-4561-4D94-8765-D20B634DE4F6] (Simulator)
iPhone 5s (10.3.1) [30D45EA2-24E2-4BEB-B557-0D6DE7FC3334] (Simulator)
iPhone 5s (8.4) [6A59986F-44BE-4043-BDD9-C364877968E3] (Simulator)
iPhone 5s (9.0) [0B356BBE-D183-42DD-843B-3B69539F074D] (Simulator)
iPhone 5s (9.1) [AE000EDB-39AE-42FE-BD3F-F511F25A351D] (Simulator)
iPhone 6 (10.3.1) [4B58CFD4-B4D1-4FBC-A2F0-A22BBC159236] (Simulator)
iPhone 6 (8.4) [9215CB23-D071-440E-B7A0-5392081F4468] (Simulator)
iPhone 6 (9.0) [ECC85B32-EB1E-4F73-AC7E-32BC972A7B7B] (Simulator)
iPhone 6 (9.1) [0587865E-62A4-4F96-A214-D043BB916FA9] (Simulator)
iPhone 6 Plus (10.3.1) [6E2F62CA-80CE-400A-BEAE-A02B83CD5D37] (Simulator)
iPhone 6 Plus (8.4) [CF141892-FBAE-4BAE-9037-C9B77A32375A] (Simulator)
iPhone 6 Plus (9.0) [355E8AA2-D4E0-4063-8D63-924605D47FC2] (Simulator)
iPhone 6 Plus (9.1) [61AE47A9-EF4F-4D31-8002-CFCC746B3DBF] (Simulator)
iPhone 6s (10.3.1) [626407FE-7E83-484C-BD98-3146B65C7D30] (Simulator)
iPhone 6s (10.3.1) + Apple Watch - 38mm (3.2) [AF13D2B4-068E-4A72-B5A6-2551E115082A] (Simulator)
iPhone 6s (9.0) [D1B66D52-586E-4476-B06A-8D1000E0133C] (Simulator)
iPhone 6s (9.1) [804D9964-3B2F-45F0-A64A-61ED51679624] (Simulator)
iPhone 6s Plus (10.3.1) [D1E354B8-A08C-4FD2-A972-AF02DE022870] (Simulator)
iPhone 6s Plus (10.3.1) + Apple Watch - 42mm (3.2) [8F7DC03E-7CD2-4DD5-B5AB-2C996C5FCAAC] (Simulator)
iPhone 6s Plus (9.0) [0D00F7DF-5117-4F54-AF83-B9E8C2DE07FB] (Simulator)
iPhone 6s Plus (9.1) [CF1826E5-1C78-4116-A6AC-A91C75F8E127] (Simulator)
iPhone 7 (10.3.1) [C5FB1A1B-7824-43B2-9636-519037095775] (Simulator)
iPhone 7 (10.3.1) + Apple Watch Series 2 - 38mm (3.2) [31DACC47-B1D8-4519-ADE3-39F0579CC803] (Simulator)
iPhone 7 Plus (10.3.1) [CD65E1F0-F797-42C3-A209-551F2548A31D] (Simulator)
iPhone 7 Plus (10.3.1) + Apple Watch Series 2 - 42mm (3.2) [1B55BB2C-2167-477B-A4F8-0312FB0D5F02] (Simulator)
iPhone SE (10.3.1) [89DBA886-5245-4895-A346-1CA1A5DB6570] (Simulator)

MongoClient:1084179762
/Users/sampadrout/AMA_New/src/test/resources/HelloOptimusIOS.json
MongoClient:1084179762

Task :fragmentationReport
MongoClient:1084179762
MongoClient:1084179762

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.

  • What went wrong:
    Execution failed for task ':runFragmentation'.

java.lang.NullPointerException (no error message)

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
    ==============================================================================

2: Task failed with an exception.

  • What went wrong:
    Execution failed for task ':fragmentationReport'.

java.lang.NullPointerException (no error message)

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
    ==============================================================================

BUILD FAILED in 58s
7 actionable tasks: 7 executed

com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize instance of `com.testvagrant.monitor.requests.Scenario[]` out of START_OBJECT token

:fragmentationReport
updating build end time
updating build unique scenario count
com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize instance of com.testvagrant.monitor.requests.Scenario[] out of START_OBJECT token
at [Source: (String)"{
"timestamp" : 1529038637841,
"status" : 500,
"error" : "Internal Server Error",
"exception" : "org.springframework.dao.InvalidDataAccessApiUsageException",
"message" : "Command execution failed: Error [The 'cursor' option is required, except for aggregate with the explain argument], Command = { "aggregate" : "scenarios" , "pipeline" : [ { "$group" : { "_id" : { "scenarioName" : "$scenarioName" , "dataRowNumber" : "$dataRowNumber" , "status" : "$status"}}}]}; ne"[truncated 414 chars]; line: 1, column: 1]
at com.fasterxml.jackson.databind.exc.MismatchedInputException.from(MismatchedInputException.java:63)
at com.fasterxml.jackson.databind.DeserializationContext.reportInputMismatch(DeserializationContext.java:1342)
at com.fasterxml.jackson.databind.DeserializationContext.handleUnexpectedToken(DeserializationContext.java:1138)
at com.fasterxml.jackson.databind.DeserializationContext.handleUnexpectedToken(DeserializationContext.java:1092)
at com.fasterxml.jackson.databind.deser.std.ObjectArrayDeserializer.handleNonArray(ObjectArrayDeserializer.java:330)
at com.fasterxml.jackson.databind.deser.std.ObjectArrayDeserializer.deserialize(ObjectArrayDeserializer.java:175)
at com.fasterxml.jackson.databind.deser.std.ObjectArrayDeserializer.deserialize(ObjectArrayDeserializer.java:21)
at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:4001)
at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3030)
at com.fasterxml.jackson.databind.ObjectMapper$readValue$0.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
at com.fasterxml.jackson.databind.ObjectMapper$readValue$0.call(Unknown Source)
at io.restassured.internal.path.json.mapping.JsonPathJackson2ObjectDeserializer.deserialize(JsonPathJackson2ObjectDeserializer.groovy:45)
at io.restassured.path.json.mapping.JsonPathObjectDeserializer$deserialize.call(Unknown Source)
at io.restassured.internal.mapping.Jackson2Mapper.deserialize(Jackson2Mapper.groovy:58)
at io.restassured.mapper.ObjectMapper$deserialize.call(Unknown Source)
at io.restassured.internal.mapping.ObjectMapping.parseWithJackson2(ObjectMapping.groovy:202)
at io.restassured.internal.mapping.ObjectMapping$parseWithJackson2$0.callStatic(Unknown Source)
at io.restassured.internal.mapping.ObjectMapping.deserialize(ObjectMapping.groovy:55)
at io.restassured.internal.mapping.ObjectMapping$deserialize.call(Unknown Source)
at io.restassured.internal.RestAssuredResponseOptionsGroovyImpl.as(RestAssuredResponseOptionsGroovyImpl.groovy:222)
at io.restassured.internal.RestAssuredResponseOptionsImpl.as(RestAssuredResponseOptionsImpl.java:164)
at com.testvagrant.monitor.clients.ScenariosClient.getDistinctScenarios(ScenariosClient.java:73)
at com.testvagrant.monitor.services.BuildsServiceImpl.updateBuildWithUniqueScenarios(BuildsServiceImpl.java:37)
at com.testvagrant.monitor.services.BuildsService$updateBuildWithUniqueScenarios$0.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:117)
at com.testvagrant.optimus.utils.OptimusTearDown.updateBuildRecord(OptimusTearDown.groovy:11)
at com.testvagrant.optimus.utils.OptimusTearDown$updateBuildRecord.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:117)
at com.testvagrant.optimus.tasks.FragmentationReportTask.fragmentationReport(FragmentationReportTask.groovy:20)
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.reflect.JavaMethod.invoke(JavaMethod.java:73)
at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.doExecute(DefaultTaskClassInfoStore.java:141)
at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(DefaultTaskClassInfoStore.java:134)
at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(DefaultTaskClassInfoStore.java:123)
at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:692)
at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:675)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$1.execute(ExecuteActionsTaskExecuter.java:115)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$1.execute(ExecuteActionsTaskExecuter.java:109)
at org.gradle.internal.Transformers$4.transform(Transformers.java:169)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:106)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:56)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:109)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:90)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:68)
at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:62)
at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)
at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:88)
at org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:46)
at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:51)
at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:54)
at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:34)
at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker$1.execute(DefaultTaskGraphExecuter.java:236)
at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker$1.execute(DefaultTaskGraphExecuter.java:228)
at org.gradle.internal.Transformers$4.transform(Transformers.java:169)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:106)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:61)
at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:228)
at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:215)
at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.processTask(AbstractTaskPlanExecutor.java:77)
at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.run(AbstractTaskPlanExecutor.java:58)
at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:32)
at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:113)
at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:37)
at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:37)
at org.gradle.execution.DefaultBuildExecuter.access$000(DefaultBuildExecuter.java:23)
at org.gradle.execution.DefaultBuildExecuter$1.proceed(DefaultBuildExecuter.java:43)
at org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExecutionAction.java:32)
at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:37)
at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:30)
at org.gradle.initialization.DefaultGradleLauncher$RunTasksAction.execute(DefaultGradleLauncher.java:230)
at org.gradle.initialization.DefaultGradleLauncher$RunTasksAction.execute(DefaultGradleLauncher.java:227)
at org.gradle.internal.Transformers$4.transform(Transformers.java:169)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:106)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:56)
at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:161)
at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:112)
at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:95)
at org.gradle.launcher.exec.GradleBuildController.run(GradleBuildController.java:66)
at org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(ExecuteBuildActionRunner.java:28)
at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)
at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:41)
at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:26)
at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:75)
at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:49)
at org.gradle.tooling.internal.provider.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.java:49)
at org.gradle.tooling.internal.provider.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.java:31)
at org.gradle.launcher.daemon.server.exec.ExecuteBuild.doBuild(ExecuteBuild.java:67)
at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
at org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute(WatchForDisconnection.java:37)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
at org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute(ResetDeprecationLogger.java:26)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
at org.gradle.launcher.daemon.server.exec.RequestStopIfSingleUsedDaemon.execute(RequestStopIfSingleUsedDaemon.java:34)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:74)
at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:72)
at org.gradle.util.Swapper.swap(Swapper.java:38)
at org.gradle.launcher.daemon.server.exec.ForwardClientInput.execute(ForwardClientInput.java:72)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
at org.gradle.launcher.daemon.server.exec.LogAndCheckHealth.execute(LogAndCheckHealth.java:55)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
at org.gradle.launcher.daemon.server.exec.LogToClient.doBuild(LogToClient.java:60)
at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
at org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild(EstablishBuildEnvironment.java:72)
at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
at org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy$1.run(StartBuildOrRespondWithBusy.java:50)
at org.gradle.launcher.daemon.server.DaemonStateCoordinator$1.run(DaemonStateCoordinator.java:297)
at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)
at org.gradle.internal.concurrent.StoppableExecutorImpl$1.run(StoppableExecutorImpl.java:46)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Parsing report

Question: Proxy server similar to charles?

Hi,
This is not particular to optimus, but thought it would check with you all to see if there are any good alternatives to Charles proxy for re-writing api request and responses?
I have been using charles proxy for the same so far, but it is not easy to programmatically modify the request on runtime or re-write the response code as per the test scenarios.

There is mitmproxy-java which does allow me to intercept the messages and read response code, but does not seem to help me with rewriting request body or response code.

Please let me know if you have any suggestions.

Thanks
Sarath

Error while trying to install optimus-cli with node v10.7.0

I am getting errors while trying to install the optimus-cli with the latest node v 10.7.0

Please find the attached error
optimusLog.txt

ERR! build error
gyp
ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:182:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:237:12)
gyp ERR! System Darwin 17.7.0
gyp
ERR! command
"/usr/local/Cellar/node/10.7.0/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/usr/local/lib/node_modules/optimus-cli/node_modules/nodegit/build/Release/nodegit.node" "--module_name=nodegit" "--module_path=/usr/local/lib/node_modules/optimus-cli/node_modules/nodegit/build/Release"
gyp ERR!
cwd /usr/local/lib/node_modules/optimus-cli/node_modules/nodegit
gyp
ERR! node -v
v10.7.0
gyp ERR!
node-gyp -v v3.7.0
gyp ERR!
not ok
[nodegit] ERROR - Could not finish install
[nodegit] ERROR - finished with error code: 1

Queries: appium driver, server, parallel execution

Hi,

Please clarify below

  • how & which file does creation of android/ios driver,
  • launch server how it takes place
  • can I pass any additional flags if needed e.g. local time zone etc
  • how do you achieve parallel execution.
  • where do you specify appium java client version ?
  • overview of technical implementation of the framework can be useful for those who want to dig deep and contribute

I tried searching the repo but didn't find answers

Thanks & Regards,
Vikram

Question: iOS - Need more details on how we can run an application which is already installed

First of all thanks a lot for developing such a nice project. It makes the life real easy to test mobile application.

I have few queries, i tried searching all documents but did not find enough information.

1: If I want to run already installed application , how can i do that ? As the framework need .apk or app to be present in /app folder ? Is there any way i can override the settings ?

e.g In one of my iPhone the application is already installed i want to run it without reinstalling .

Like in Appium capability we can

    capabilities.setCapability("noReset", true);
    capabilities.setCapability("fullReset", false);
    capabilities.setCapability("bundleId","com.XYZ.dev.abc");

This will only open the app in the device rather installation.

Thanks a lot for your help and support.

Optimus 3.0.1: Error

Hi After upgrading the optimus, only the scenarios from first feature file gets executed, all the other features are skipped with below error
I have followed the upgrade process and manually started the mongod as well.
Also the other update I had to do was to upgrade the groovy to 2.4.11

java.lang.IllegalStateException: Cannot parse content to class com.testvagrant.monitor.requests.Device because no content-type was present in the response and no default parser has been set.
You can specify a default parser using e.g.:
RestAssured.defaultParser = Parser.JSON;

or you can specify an explicit ObjectMapper using as(class com.testvagrant.monitor.requests.Device, );
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.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:83)
at org.codehaus.groovy.reflection.CachedConstructor.doConstructorInvoke(CachedConstructor.java:77)
at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrap.callConstructor(ConstructorSite.java:84)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConstructor(CallSiteArray.java:60)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:235)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:247)
at io.restassured.internal.RestAssuredResponseOptionsGroovyImpl$_as_closure3.doCall(RestAssuredResponseOptionsGroovyImpl.groovy:219)
at io.restassured.internal.RestAssuredResponseOptionsGroovyImpl$_as_closure3.doCall(RestAssuredResponseOptionsGroovyImpl.groovy)
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.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:294)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022)
at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:42)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:117)
at io.restassured.internal.RestAssuredResponseOptionsGroovyImpl.findContentType(RestAssuredResponseOptionsGroovyImpl.groovy:482)
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.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSiteNoUnwrapNoCoerce.invoke(PogoMetaMethodSite.java:210)
at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:59)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:166)
at io.restassured.internal.RestAssuredResponseOptionsGroovyImpl.as(RestAssuredResponseOptionsGroovyImpl.groovy:218)
at io.restassured.internal.RestAssuredResponseOptionsImpl.as(RestAssuredResponseOptionsImpl.java:164)
at com.testvagrant.monitor.clients.DevicesClient.getDevice(DevicesClient.java:50)
at com.testvagrant.monitor.services.DevicesServiceImpl.updateFirstAvailableDeviceToEngaged(DevicesServiceImpl.java:38)
at com.testvagrant.optimus.device.DeviceFinder.getAvailableDeviceAndUpdateToEngaged(DeviceFinder.java:56)
at com.testvagrant.optimus.parser.OptimusConfigParser.allocateDevicesForCurrentScenario(OptimusConfigParser.java:151)
at com.testvagrant.optimus.device.OptimusController.registerSmartBOTs(OptimusController.java:152)
at steps.StartingSteps.setUp(StartingSteps.java:31)
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 cucumber.runtime.Utils$1.call(Utils.java:32)
at cucumber.runtime.Timeout.timeout(Timeout.java:16)
at cucumber.runtime.Utils.invoke(Utils.java:26)
at cucumber.runtime.java.JavaHookDefinition.execute(JavaHookDefinition.java:60)
at cucumber.runtime.HookDefinitionMatch.runStep(HookDefinitionMatch.java:17)
at cucumber.runner.UnskipableStep.executeStep(UnskipableStep.java:22)
at cucumber.api.TestStep.run(TestStep.java:83)
at cucumber.api.TestCase.run(TestCase.java:58)
at cucumber.runner.Runner.runPickle(Runner.java:80)
at cucumber.runtime.Runtime.runFeature(Runtime.java:119)
at cucumber.runtime.Runtime.run(Runtime.java:104)
at cucumber.api.cli.Main.run(Main.java:36)
at cucumber.api.cli.Main.main(Main.java:18)

Facing issue with Parallel execution in Android. Getting different issues in different machines.

Hello,

I am facing different issues while executing the scripts in a suite on 2 different devices:
Different errors for the same run in different machines:

  1. Unable to mark device as engaged, Check for device state using adb devices
  2. java.lang.NullPointerException at Starting steps
  3. An unknown server-side error occurred while processing the command. Original error: Could not proxy command to remote server. Original error: Error: connect ECONNREFUSED 127.0.0.1:8200

Command used: ./gradlew runFragmentation -DtestFeed=android-*****-qa -Dtags=@androidSmoke
Same issue with runDistribution mode.
We have checked for the duplicate steps in feature files but not sure whats causing this issue. It has previously worked for us. Any pointers?

Unable to debug or run scenario using Intellij

I followed the steps as mentioned in wiki to execute test using intellij but I am getting the below exception

Testing started at 12:31 PM ...
/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/bin/java -DtestFeed=OpalTravelAppAndroid -DrunMode=Fragmentation -Dorg.jetbrains.run.directory=/Users/sarath/workspace/tfnswAppium/src/test/resources/features "-javaagent:/Applications/IntelliJ IDEA CE.app/Contents/lib/idea_rt.jar=63427:/Applications/IntelliJ IDEA CE.app/Contents/bin" -Dfile.encoding=UTF-8 -classpath "/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/charsets.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/deploy.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/ext/cldrdata.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/ext/dnsns.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/ext/jaccess.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/ext/jfxrt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/ext/localedata.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/ext/nashorn.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/ext/sunec.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/ext/sunjce_provider.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/ext/sunpkcs11.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/ext/zipfs.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/javaws.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/jce.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/jfr.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/jfxswt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/jsse.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/management-agent.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/plugin.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/resources.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/rt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/lib/ant-javafx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/lib/dt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/lib/javafx-mx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/lib/jconsole.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/lib/packager.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/lib/sa-jdi.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/lib/tools.jar:/Users/sarath/workspace/tfnswAppium/out/test/classes:/Users/sarath/workspace/tfnswAppium/out/test/resources:/Users/sarath/.gradle/caches/modules-2/files-2.1/org.codehaus.groovy/groovy-all/2.4.11/444a64af79c540aad257e49d95050e7c189f1309/groovy-all-2.4.11.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/org.seleniumhq.selenium/selenium-java/3.141.59/e8e20b741299cb8ffedbd2925a3ab69d08b41063/selenium-java-3.141.59.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/org.seleniumhq.selenium/selenium-remote-driver/3.141.59/1c79ca890c312ff9916bd95df4f0c5182ec722d8/selenium-remote-driver-3.141.59.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/cglib/cglib/3.2.10/24af53869d7f1de2a0d2cd3d59c35386ea5a2b1a/cglib-3.2.10.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/com.testvagrant/optimus/2.3.7-beta/8717c992f09f6c354aa78bb73691641dde38f9f5/optimus-2.3.7-beta.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/com.testvagrant.stepdefs/stepdefs/1.0.8/a9a01f022525a717f54585960a6fbea1aef34000/stepdefs-1.0.8.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/com.testvagrant.intents/intents/1.0.6/7d47ce3b32cc5625b894fbc921ed7e37a4bd0932/intents-1.0.6.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/com.google.guava/guava/22.0/3564ef3803de51fb0530a8377ec6100b33b0d073/guava-22.0.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/io.appium/java-client/7.0.0/de7c59ca74441bf9ad2943b41a179bf84b7fc8f2/java-client-7.0.0.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/com.amazonaws/aws-java-sdk-s3/1.11.228/67636504d63f604d286ae15311cab7aee36671bd/aws-java-sdk-s3-1.11.228.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/com.google.inject/guice/3.0/9d84f15fe35e2c716a02979fb62f50a29f38aefa/guice-3.0.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/com.googlecode.lambdaj/lambdaj/2.3.3/7dee2fb62ef89f1bd5ccaf3c8628f61f80b22054/lambdaj-2.3.3.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/org.json/json/20131018/c5b366c02a8dfca2b1d8ba1a0c4d2e666a2eeb75/json-20131018.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/junit/junit/4.11/4e031bb61df09069aeb2bffb4019e7a5034a4ee0/junit-4.11.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/org.seleniumhq.selenium/selenium-api/3.141.59/e006ffd3aa7841e6e9125d9e6691b3a6b7592b05/selenium-api-3.141.59.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/org.seleniumhq.selenium/selenium-chrome-driver/3.141.59/67137314736c6a2f39a8aa59a562e9616ae5f77e/selenium-chrome-driver-3.141.59.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/org.seleniumhq.selenium/selenium-edge-driver/3.141.59/fc09c66f2d0b33b0816d770761ad1d599ef0df29/selenium-edge-driver-3.141.59.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/org.seleniumhq.selenium/selenium-firefox-driver/3.141.59/a99f2fe2a42747ed9809d4f62f51a9e1b336dde8/selenium-firefox-driver-3.141.59.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/org.seleniumhq.selenium/selenium-ie-driver/3.141.59/677b9b414a3a9bb2aeea89042a7b326edeb13a82/selenium-ie-driver-3.141.59.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/org.seleniumhq.selenium/selenium-opera-driver/3.141.59/6b11ed01182bfd8bb62ddeae34cf9eadd3cfc7ff/selenium-opera-driver-3.141.59.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/org.seleniumhq.selenium/selenium-safari-driver/3.141.59/a32b5b88f46ea4b0356079f0d2e2217543923046/selenium-safari-driver-3.141.59.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/org.seleniumhq.selenium/selenium-support/3.141.59/8735de5049acf0e761defc65ee5837d6541abaf5/selenium-support-3.141.59.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/net.bytebuddy/byte-buddy/1.8.15/cb36fe3c70ead5fcd016856a7efff908402d86b8/byte-buddy-1.8.15.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/org.apache.commons/commons-exec/1.3/8dfb9facd0830a27b1b5f29f84593f0aeee7773b/commons-exec-1.3.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/com.squareup.okhttp3/okhttp/3.11.0/75966e05a49046ca2ae734e5626f28837a8d1e82/okhttp-3.11.0.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/com.squareup.okio/okio/1.14.0/102d7be47241d781ef95f1581d414b0943053130/okio-1.14.0.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/org.ow2.asm/asm/7.0/d74d4ba0dee443f68fb2dcb7fcdb945a2cd89912/asm-7.0.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/org.apache.ant/ant/1.10.3/88becdeb77cdd2457757b7268e1a10666c03d382/ant-1.10.3.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/io.cucumber/cucumber-junit/2.1.0/b5e0d69bcccd42cf0ac66f3fabf9ceb0db0df5d/cucumber-junit-2.1.0.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/io.cucumber/cucumber-core/2.1.0/f06b3491e6919a2e58fbb277869627df86d2d3f9/cucumber-core-2.1.0.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/io.cucumber/cucumber-java8/2.1.0/b33cc385f2db1133104f3bfb1854ea772778b7c8/cucumber-java8-2.1.0.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/org.slf4j/slf4j-simple/1.6.1/58e59bfb3e247097b8122243b3bfe0049c8cfae8/slf4j-simple-1.6.1.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/log4j/log4j/1.2.17/5af35056b4d257e4b64b9e8069c0746e8b08629f/log4j-1.2.17.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/org.codehaus.jackson/jackson-jaxrs/1.8.5/9a808075c5a0422536b9b9209e4da8f887daf693/jackson-jaxrs-1.8.5.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/com.jayway.awaitility/awaitility/1.7.0/e4fa7955cab67d880e4868a0795cce3498ea7bf2/awaitility-1.7.0.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/net.coobird/thumbnailator/0.4.8/4f10c440dd7776630aee9da4611a45032db1e041/thumbnailator-0.4.8.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/org.mongodb/mongo-java-driver/3.4.2/5d0448606f5f7f3974dbae69c4ccfffe214ae60d/mongo-java-driver-3.4.2.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/com.fasterxml.jackson.core/jackson-databind/2.9.2/1d8d8cb7cf26920ba57fb61fa56da88cc123b21f/jackson-databind-2.9.2.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/com.googlecode.json-simple/json-simple/1.1.1/c9ad4a0850ab676c5c64461a05ca524cdfff59f1/json-simple-1.1.1.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/io.rest-assured/rest-assured/3.0.6/7048c659a0f1b8adca66af281edbf1397dddd63d/rest-assured-3.0.6.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/org.apache.opennlp/opennlp-tools/1.6.0/e89fc5317497ee3ed0e6c48a72e4f280961a02b4/opennlp-tools-1.6.0.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/org.apache.opennlp/opennlp-uima/1.6.0/1d2a0b06d9a980911d564cce88e759eac513b8ba/opennlp-uima-1.6.0.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/com.fasterxml.jackson.dataformat/jackson-dataformat-yaml/2.9.0.pr4/2c1a33de6dc49785b7d2402d5010b0ba05556faa/jackson-dataformat-yaml-2.9.0.pr4.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/com.testvagrant.optimus-commons/optimus-commons/2.2.1/1b0f40a2a96cb0ba17bf83dea90856c8d51ecd9b/optimus-commons-2.2.1.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/org.apache.poi/poi/3.16/ad21c123ee5d6b5b2a8f0d4ed23b3ffe6759a889/poi-3.16.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/org.apache.poi/poi-ooxml/3.16/76e20fe22404cc4da55ddfdaaaadee32bbfa3bdd/poi-ooxml-3.16.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/org.reflections/reflections/0.9.11/4c686033d918ec1727e329b7222fcb020152e32b/reflections-0.9.11.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/com.google.code.findbugs/jsr305/1.3.9/40719ea6961c0cb6afaeb6a921eaa1f6afd4cfdf/jsr305-1.3.9.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/com.google.errorprone/error_prone_annotations/2.0.18/5f65affce1684999e2f4024983835efc3504012e/error_prone_annotations-2.0.18.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/com.google.j2objc/j2objc-annotations/1.1/ed28ded51a8b1c6b112568def5f4b455e6809019/j2objc-annotations-1.1.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/org.codehaus.mojo/animal-sniffer-annotations/1.14/775b7e22fb10026eed3f86e8dc556dfafe35f2d5/animal-sniffer-annotations-1.14.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/org.apache.httpcomponents/httpclient/4.5.6/1afe5621985efe90a92d0fbc9be86271efbe796f/httpclient-4.5.6.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/commons-validator/commons-validator/1.6/e989d1e87cdd60575df0765ed5bac65c905d7908/commons-validator-1.6.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/commons-io/commons-io/2.6/815893df5f31da2ece4040fe0a12fd44b577afaf/commons-io-2.6.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/org.springframework/spring-context/5.1.0.RELEASE/20a41450e54b544687d1fec565ba2bd7335b050a/spring-context-5.1.0.RELEASE.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/org.aspectj/aspectjweaver/1.9.1/286d98dc6bed3021f76a241d593fd713515777dd/aspectjweaver-1.9.1.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/org.slf4j/slf4j-api/1.7.25/da76ca59f6a57ee3102f8f9bd9cee742973efa8a/slf4j-api-1.7.25.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/com.amazonaws/aws-java-sdk-kms/1.11.228/e4111bee8770dbce10af13d142a15fc1a558d3dc/aws-java-sdk-kms-1.11.228.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/com.amazonaws/aws-java-sdk-core/1.11.228/9ec309be7f6717c29c4bb714c85b5b77dca3c2f8/aws-java-sdk-core-1.11.228.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/com.amazonaws/jmespath-java/1.11.228/d38365313411af3631d6ed470b6ec6c645a42d09/jmespath-java-1.11.228.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/javax.inject/javax.inject/1/6975da39a7040257bd51d21a231b76c915872d38/javax.inject-1.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/aopalliance/aopalliance/1.0/235ba8b489512805ac13a8f9ea77a1ca5ebe3e8/aopalliance-1.0.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/org.sonatype.sisu.inject/cglib/2.2.1-v20090111/7ce5e983fd0e6c78346f4c9cbfa39d83049dda2/cglib-2.2.1-v20090111.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/org.hamcrest/hamcrest-all/1.1/2ddcad726ed88eab63eb6666c60970db0ac6d44e/hamcrest-all-1.1.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/org.hamcrest/hamcrest-core/1.3/42a25dc3219429f0e5d060061f71acb49bf010a0/hamcrest-core-1.3.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/org.apache.ant/ant-launcher/1.10.3/9dd5189e7f561ca19833b4e3672720b9bc5cb2fe/ant-launcher-1.10.3.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/info.cukes/cucumber-html/0.2.6/e2577a2a51fdb821e877433ae55ac9211ffcb16a/cucumber-html-0.2.6.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/io.cucumber/cucumber-jvm-deps/1.0.6/f099f06378ef35f9391fa2fbb41ac21d214fe737/cucumber-jvm-deps-1.0.6.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/io.cucumber/gherkin/5.0.0/a05c7dd957349d6ce3908771aa5414cb15777eb7/gherkin-5.0.0.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/io.cucumber/tag-expressions/1.0.1/b10ecf10a0ea1b3e0e55631c63799320efc1071d/tag-expressions-1.0.1.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/io.cucumber/cucumber-java/2.1.0/677ebc28682615eca3f93af0391598c0174f1e63/cucumber-java-2.1.0.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/net.jodah/typetools/0.5.0/f61380c805c48c98305157e2543ca0bfc91583fe/typetools-0.5.0.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/org.codehaus.jackson/jackson-core-asl/1.8.5/713a5564acb9a5467521bbb53221ab8e1fe65039/jackson-core-asl-1.8.5.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/org.codehaus.jackson/jackson-mapper-asl/1.8.5/56439095aa051521c5abb330235820c66886b5e5/jackson-mapper-asl-1.8.5.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/org.hamcrest/hamcrest-library/1.3/4785a3c21320980282f9f33d0d1264a69040538f/hamcrest-library-1.3.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/org.codehaus.groovy/groovy/2.4.12/a43be367110c491787219f1c128b5b5fc54f1e70/groovy-2.4.12.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/org.codehaus.groovy/groovy-xml/2.4.12/b5c023bbbc8a4bbf9c0b38d731fe31d53f00c64a/groovy-xml-2.4.12.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/org.apache.httpcomponents/httpmime/4.5.1/96823b9421ebb9f490dec837d9f96134e864e3a7/httpmime-4.5.1.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/org.ccil.cowan.tagsoup/tagsoup/1.2.1/5584627487e984c03456266d3f8802eb85a9ce97/tagsoup-1.2.1.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/io.rest-assured/json-path/3.0.6/46b9832bdcf3b009ef29dad04e5bf1b951c2966e/json-path-3.0.6.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/io.rest-assured/xml-path/3.0.6/5ea3318626ac935bfc5088c772ea6d57c43e1bf3/xml-path-3.0.6.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/org.yaml/snakeyaml/1.17/7a27ea250c5130b2922b86dea63cbb1cc10a660c/snakeyaml-1.17.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/commons-codec/commons-codec/1.10/4b95f4897fa13f2cd904aee711aeafc0c5295cd8/commons-codec-1.10.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/org.apache.commons/commons-collections4/4.1/a4cf4688fe1c7e3a63aa636cc96d013af537768e/commons-collections4-4.1.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/org.apache.poi/poi-ooxml-schemas/3.16/9828a49307fc6bebfd42185b677d88b6e4994c63/poi-ooxml-schemas-3.16.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/com.github.virtuald/curvesapi/1.04/3386abf821719bc89c7685f9eaafaf4a842f0199/curvesapi-1.04.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/org.javassist/javassist/3.21.0-GA/598244f595db5c5fb713731eddbb1c91a58d959b/javassist-3.21.0-GA.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/commons-beanutils/commons-beanutils/1.9.2/7a87d845ad3a155297e8f67d9008f4c1e5656b71/commons-beanutils-1.9.2.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/commons-digester/commons-digester/1.8.1/3dec9b9c7ea9342d4dbe8c38560080d85b44a015/commons-digester-1.8.1.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/commons-logging/commons-logging/1.2/4bfc12adfe4842bf07b657f0369c4cb522955686/commons-logging-1.2.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/commons-collections/commons-collections/3.2.2/8ad72fe39fa8c91eaaf12aadb21e0c3661fe26d5/commons-collections-3.2.2.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/org.springframework/spring-aop/5.1.0.RELEASE/2e94c3aa0b9d2c0626d8328ff61e166decb33046/spring-aop-5.1.0.RELEASE.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/org.springframework/spring-beans/5.1.0.RELEASE/8de4fe847e95a87e25acfb7fe5f21c0eddbe94c7/spring-beans-5.1.0.RELEASE.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/org.springframework/spring-core/5.1.0.RELEASE/7835804188894b86a39b5a6028d50381638170c6/spring-core-5.1.0.RELEASE.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/org.springframework/spring-expression/5.1.0.RELEASE/62468cb6d40da37ee6b9c119e39fda5dfb86042/spring-expression-5.1.0.RELEASE.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/software.amazon.ion/ion-java/1.0.2/ee9dacea7726e495f8352b81c12c23834ffbc564/ion-java-1.0.2.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/com.fasterxml.jackson.dataformat/jackson-dataformat-cbor/2.6.7/ba9e74b11135b18248e960df657a2b86ae77a079/jackson-dataformat-cbor-2.6.7.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/joda-time/joda-time/2.8.1/f5bfc718c95a7b1d3c371bb02a188a4df18361a9/joda-time-2.8.1.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/asm/asm/3.1/c157def142714c544bdea2e6144645702adf7097/asm-3.1.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/org.codehaus.groovy/groovy-json/2.4.12/810b46f2b359b904c4c7428ad4c03c09094a01ff/groovy-json-2.4.12.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/io.rest-assured/rest-assured-common/3.0.6/fa0cb69682ed3df571cab6d20894c4ed2970b901/rest-assured-common-3.0.6.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/javax.xml.bind/jaxb-api/2.2.12/4c83805595b15acf41d71d49e3add7c0e85baaed/jaxb-api-2.2.12.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/org.apache.xmlbeans/xmlbeans/2.6.0/29e80d2dd51f9dcdef8f9ffaee0d4dc1c9bbfc87/xmlbeans-2.6.0.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/org.springframework/spring-jcl/5.1.0.RELEASE/20ee05d41b5bebcab471226517f83447ad3d163c/spring-jcl-5.1.0.RELEASE.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/stax/stax-api/1.0.1/49c100caf72d658aca8e58bd74a4ba90fa2b0d70/stax-api-1.0.1.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/com.fasterxml.jackson.core/jackson-annotations/2.9.0/7c10d545325e3a6e72e06381afe469fd40eb701/jackson-annotations-2.9.0.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/com.google.code.gson/gson/2.8.5/f645ed69d595b24d4cf8b3fbb64cc505bede8829/gson-2.8.5.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/org.apache.commons/commons-lang3/3.8/222fc4cf714a63f27cbdafdbd863efd0d30c8a1e/commons-lang3-3.8.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/cglib/cglib-nodep/3.1/aa83efbd1aedc4f26bdf00e7ea78191483f2c9b3/cglib-nodep-3.1.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/org.objenesis/objenesis/2.1/87c0ea803b69252868d09308b4618f766f135a96/objenesis-2.1.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/org.apache.httpcomponents/httpcore/4.4.10/acc54d9b28bdffe4bbde89ed2e4a1e86b5285e2b/httpcore-4.4.10.jar:/Users/sarath/.gradle/caches/modules-2/files-2.1/com.fasterxml.jackson.core/jackson-core/2.9.2/aed20e50152a2f19adc1995c8d8f307c7efa414d/jackson-core-2.9.2.jar:/Users/sarath/Library/Application Support/IdeaIC2018.1/cucumber-java/lib/cucumber-jvm-formatter.jar" cucumber.api.cli.Main --plugin org.jetbrains.plugins.cucumber.java.run.CucumberJvm2SMFormatter --monochrome --name "^Trip Planner$" --glue steps /Users/sarath/workspace/tfnswAppium/src/test/resources/features/OpalTripPlan.feature
objc[4571]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/bin/java (0x10973a4c0) and /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/libinstrument.dylib (0x10a75c4e0). One of the two will be used. Which one is undefined.
WARNING: Found tags option '@BruteForceLinkCardError,@bruteForceResetPassword,@tripSubscribePreference'. Support for '@tag1,@tag2' will be removed from the next release of Cucumber-JVM. Please use '@tag or @tag2' instead
WARNING: Found tags option '@BruteForceLinkCardError,@bruteForceResetPassword,@blockCardAndBalanceTransfer'. Support for '@tag1,@tag2' will be removed from the next release of Cucumber-JVM. Please use '@tag or @tag2' instead
WARNING: Found tags option '@forceUpgradeBlackListVersion,@forceUpgradeBlackListVersionBkg'. Support for '@tag1,@tag2' will be removed from the next release of Cucumber-JVM. Please use '@tag or @tag2' instead
appJson updated with - null
{"executionDetails":{"appium_js_path":"/usr/local/bin/appium","monitoring":true,"appium_node_path":"/usr/local/bin/node"},"testFeed":[{"optimusDesiredCapabilities":{"appiumServerCapabilities":{"app":"app-internalDebug.apk","platformName":"Android"},"androidOnlyCapabilities":{"appActivity":"au.com.opal.travel.application.presentation.ui.activities.OnboardingActivity","appPackage":"au.com.opal.travel.debug","avdLaunchTimeout":300000,"noReset":true,"dontStopAppOnReset":true,"newCommandTimeout":120,"automationName":"UiAutomator2","autoGrantPermissions":true,"useKeystore":false}},"appDir":"app","runsOn":"any","deviceState":{"grantAllPermissions":true,"clearADBLogs":true,"captureVideo":false,"clearNotification":true},"belongsTo":"opalTravel","nativeApp":true}]}
2019-04-30 12:31:44 INFO OptimusController:148 - Starting Scenario -- Trip Planner
updated testFeed -- {"optimusDesiredCapabilities":{"appiumServerCapabilities":{"app":"app-internalDebug.apk","platformName":"Android"},"androidOnlyCapabilities":{"appActivity":"au.com.opal.travel.application.presentation.ui.activities.OnboardingActivity","appPackage":"au.com.opal.travel.debug","avdLaunchTimeout":300000,"noReset":true,"dontStopAppOnReset":true,"newCommandTimeout":120,"automationName":"UiAutomator2","autoGrantPermissions":true,"useKeystore":false}},"appDir":"app","runsOn":"any","deviceState":{"grantAllPermissions":true,"clearADBLogs":true,"captureVideo":false,"clearNotification":true},"belongsTo":"opalTravel","nativeApp":true}
Skipped step

Skipped step

Skipped step

Skipped step
the scenario is failed
Error while trying to get screenshot null
Failed scenarios:
/Users/sarath/workspace/tfnswAppium/src/test/resources/features/OpalTripPlan.feature:14 # Trip Planner

1 Scenarios (1 failed)
4 Steps (4 skipped)
0m16.594s

java.net.ConnectException: Connection refused (Connection refused)
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:121)
at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:180)
at org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:326)
at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:610)
at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:445)
at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:835)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56)
at org.apache.http.client.HttpClient$execute$0.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:133)
at io.restassured.internal.RequestSpecificationImpl$RestAssuredHttpBuilder.doRequest(RequestSpecificationImpl.groovy:2128)
at io.restassured.internal.http.HTTPBuilder.doRequest(HTTPBuilder.java:494)
at io.restassured.internal.http.HTTPBuilder.request(HTTPBuilder.java:451)
at io.restassured.internal.http.HTTPBuilder$request$2.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:141)
at io.restassured.internal.RequestSpecificationImpl.sendHttpRequest(RequestSpecificationImpl.groovy:1531)
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.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1213)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:810)
at io.restassured.internal.RequestSpecificationImpl.invokeMethod(RequestSpecificationImpl.groovy)
at org.codehaus.groovy.runtime.callsite.PogoInterceptableSite.call(PogoInterceptableSite.java:48)
at org.codehaus.groovy.runtime.callsite.PogoInterceptableSite.callCurrent(PogoInterceptableSite.java:58)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:52)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:154)
at io.restassured.internal.RequestSpecificationImpl.sendRequest(RequestSpecificationImpl.groovy:1290)
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.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1213)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:810)
at io.restassured.internal.RequestSpecificationImpl.invokeMethod(RequestSpecificationImpl.groovy)
at org.codehaus.groovy.runtime.callsite.PogoInterceptableSite.call(PogoInterceptableSite.java:48)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:149)
at io.restassured.internal.filter.SendRequestFilter.filter(SendRequestFilter.groovy:30)
at io.restassured.filter.Filter$filter$0.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
at io.restassured.filter.Filter$filter.call(Unknown Source)
at io.restassured.internal.filter.FilterContextImpl.next(FilterContextImpl.groovy:72)
at io.restassured.filter.time.TimingFilter.filter(TimingFilter.java:56)
at io.restassured.filter.Filter$filter.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:141)
at io.restassured.internal.filter.FilterContextImpl.next(FilterContextImpl.groovy:72)
at io.restassured.filter.FilterContext$next.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:133)
at io.restassured.internal.RequestSpecificationImpl.applyPathParamsAndSendRequest(RequestSpecificationImpl.groovy:1731)
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.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1213)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:810)
at io.restassured.internal.RequestSpecificationImpl.invokeMethod(RequestSpecificationImpl.groovy)
at org.codehaus.groovy.runtime.callsite.PogoInterceptableSite.call(PogoInterceptableSite.java:48)
at org.codehaus.groovy.runtime.callsite.PogoInterceptableSite.callCurrent(PogoInterceptableSite.java:58)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:52)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:154)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:182)
at io.restassured.internal.RequestSpecificationImpl.applyPathParamsAndSendRequest(RequestSpecificationImpl.groovy:1737)
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.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1213)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:810)
at io.restassured.internal.RequestSpecificationImpl.invokeMethod(RequestSpecificationImpl.groovy)
at org.codehaus.groovy.runtime.callsite.PogoInterceptableSite.call(PogoInterceptableSite.java:48)
at org.codehaus.groovy.runtime.callsite.PogoInterceptableSite.callCurrent(PogoInterceptableSite.java:58)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:52)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:154)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:182)
at io.restassured.internal.RequestSpecificationImpl.get(RequestSpecificationImpl.groovy:170)
at io.restassured.internal.RequestSpecificationImpl.get(RequestSpecificationImpl.groovy)
at com.testvagrant.monitor.clients.BuildsClient.getLatestBuildId(BuildsClient.java:39)
at com.testvagrant.monitor.services.OptimusServiceImpl.getLatestBuild(OptimusServiceImpl.java:10)
at com.testvagrant.monitor.services.DevicesServiceImpl.getAllDevices(DevicesServiceImpl.java:25)
at com.testvagrant.optimus.device.DeviceFinder.getAvailableDeviceAndUpdateToEngaged(DeviceFinder.java:33)
at com.testvagrant.optimus.parser.OptimusConfigParser.allocateDevicesForCurrentScenario(OptimusConfigParser.java:151)
at com.testvagrant.optimus.device.OptimusController.registerSmartBOTs(OptimusController.java:152)
at steps.StartingSteps.setUp(StartingSteps.java:33)
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 cucumber.runtime.Utils$1.call(Utils.java:32)
at cucumber.runtime.Timeout.timeout(Timeout.java:16)
at cucumber.runtime.Utils.invoke(Utils.java:26)
at cucumber.runtime.java.JavaHookDefinition.execute(JavaHookDefinition.java:60)
at cucumber.runtime.HookDefinitionMatch.runStep(HookDefinitionMatch.java:17)
at cucumber.runner.UnskipableStep.executeStep(UnskipableStep.java:22)
at cucumber.api.TestStep.run(TestStep.java:83)
at cucumber.api.TestCase.run(TestCase.java:58)
at cucumber.runner.Runner.runPickle(Runner.java:80)
at cucumber.runtime.Runtime.runFeature(Runtime.java:119)
at cucumber.runtime.Runtime.run(Runtime.java:104)
at cucumber.api.cli.Main.run(Main.java:36)
at cucumber.api.cli.Main.main(Main.java:18)

cucumber.runtime.CucumberException: Failed to instantiate class steps.OpalActivitySteps
at cucumber.runtime.java.DefaultJavaObjectFactory.cacheNewInstance(DefaultJavaObjectFactory.java:47)
at cucumber.runtime.java.DefaultJavaObjectFactory.getInstance(DefaultJavaObjectFactory.java:33)
at cucumber.runtime.java.JavaHookDefinition.execute(JavaHookDefinition.java:60)
at cucumber.runtime.HookDefinitionMatch.runStep(HookDefinitionMatch.java:17)
at cucumber.runner.UnskipableStep.executeStep(UnskipableStep.java:22)
at cucumber.api.TestStep.run(TestStep.java:83)
at cucumber.api.TestCase.run(TestCase.java:58)
at cucumber.runner.Runner.runPickle(Runner.java:80)
at cucumber.runtime.Runtime.runFeature(Runtime.java:119)
at cucumber.runtime.Runtime.run(Runtime.java:104)
at cucumber.api.cli.Main.run(Main.java:36)
at cucumber.api.cli.Main.main(Main.java:18)
Caused by: java.lang.reflect.InvocationTargetException
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 cucumber.runtime.java.DefaultJavaObjectFactory.cacheNewInstance(DefaultJavaObjectFactory.java:41)
... 11 more
Caused by: java.lang.NullPointerException
at steps.BaseSteps.getSmartBOTBelongingTo(BaseSteps.java:33)
at steps.BaseSteps.getDriverInstanceFor(BaseSteps.java:29)
at steps.BaseSteps.getDriver(BaseSteps.java:81)
at steps.OpalActivitySteps.(OpalActivitySteps.java:32)
... 16 more

cucumber.runtime.CucumberException: Failed to instantiate class steps.LoginSteps
at cucumber.runtime.java.DefaultJavaObjectFactory.cacheNewInstance(DefaultJavaObjectFactory.java:47)
at cucumber.runtime.java.DefaultJavaObjectFactory.getInstance(DefaultJavaObjectFactory.java:33)
at cucumber.runtime.java.JavaHookDefinition.execute(JavaHookDefinition.java:60)
at cucumber.runtime.HookDefinitionMatch.runStep(HookDefinitionMatch.java:17)
at cucumber.runner.UnskipableStep.executeStep(UnskipableStep.java:22)
at cucumber.api.TestStep.run(TestStep.java:83)
at cucumber.api.TestCase.run(TestCase.java:58)
at cucumber.runner.Runner.runPickle(Runner.java:80)
at cucumber.runtime.Runtime.runFeature(Runtime.java:119)
at cucumber.runtime.Runtime.run(Runtime.java:104)
at cucumber.api.cli.Main.run(Main.java:36)
at cucumber.api.cli.Main.main(Main.java:18)
Caused by: java.lang.reflect.InvocationTargetException
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 cucumber.runtime.java.DefaultJavaObjectFactory.cacheNewInstance(DefaultJavaObjectFactory.java:41)
... 11 more
Caused by: java.lang.NullPointerException
at steps.BaseSteps.getSmartBOTBelongingTo(BaseSteps.java:33)
at steps.BaseSteps.getDriverInstanceFor(BaseSteps.java:29)
at steps.BaseSteps.getDriver(BaseSteps.java:81)
at steps.LoginSteps.(LoginSteps.java:32)
... 16 more

cucumber.runtime.CucumberException: Failed to instantiate class steps.TripPlannerSteps
at cucumber.runtime.java.DefaultJavaObjectFactory.cacheNewInstance(DefaultJavaObjectFactory.java:47)
at cucumber.runtime.java.DefaultJavaObjectFactory.getInstance(DefaultJavaObjectFactory.java:33)
at cucumber.runtime.java.JavaHookDefinition.execute(JavaHookDefinition.java:60)
at cucumber.runtime.HookDefinitionMatch.runStep(HookDefinitionMatch.java:17)
at cucumber.runner.UnskipableStep.executeStep(UnskipableStep.java:22)
at cucumber.api.TestStep.run(TestStep.java:83)
at cucumber.api.TestCase.run(TestCase.java:58)
at cucumber.runner.Runner.runPickle(Runner.java:80)
at cucumber.runtime.Runtime.runFeature(Runtime.java:119)
at cucumber.runtime.Runtime.run(Runtime.java:104)
at cucumber.api.cli.Main.run(Main.java:36)
at cucumber.api.cli.Main.main(Main.java:18)
Caused by: java.lang.reflect.InvocationTargetException
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 cucumber.runtime.java.DefaultJavaObjectFactory.cacheNewInstance(DefaultJavaObjectFactory.java:41)
... 11 more
Caused by: java.lang.NullPointerException
at steps.BaseSteps.getSmartBOTBelongingTo(BaseSteps.java:33)
at steps.BaseSteps.getDriverInstanceFor(BaseSteps.java:29)
at steps.BaseSteps.getDriver(BaseSteps.java:81)
at steps.TripPlannerSteps.(TripPlannerSteps.java:49)
... 16 more

java.lang.NullPointerException
at steps.BaseSteps.getSmartBOTBelongingTo(BaseSteps.java:33)
at steps.BaseSteps.getDriverInstanceFor(BaseSteps.java:29)
at steps.BaseSteps.getDriver(BaseSteps.java:81)
at steps.BaseSteps.resetOTAApp(BaseSteps.java:99)
at steps.StartingSteps.tearDown(StartingSteps.java:88)
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 cucumber.runtime.Utils$1.call(Utils.java:32)
at cucumber.runtime.Timeout.timeout(Timeout.java:16)
at cucumber.runtime.Utils.invoke(Utils.java:26)
at cucumber.runtime.java.JavaHookDefinition.execute(JavaHookDefinition.java:60)
at cucumber.runtime.HookDefinitionMatch.runStep(HookDefinitionMatch.java:17)
at cucumber.runner.UnskipableStep.executeStep(UnskipableStep.java:22)
at cucumber.api.TestStep.run(TestStep.java:83)
at cucumber.api.TestCase.run(TestCase.java:58)
at cucumber.runner.Runner.runPickle(Runner.java:80)
at cucumber.runtime.Runtime.runFeature(Runtime.java:119)
at cucumber.runtime.Runtime.run(Runtime.java:104)
at cucumber.api.cli.Main.run(Main.java:36)
at cucumber.api.cli.Main.main(Main.java:18)

Process finished with exit code 1

Cannot parse content to class com.testvagrant.monitor.requests.Device because no content-type was present in the response and no default parser has been set.

09:10:35 -------- All devices and there status --------
09:10:35 4S99LV4SO7KNWKRG --- Engaged
09:10:35 Matching Device is Device{platform:"ANDROID", deviceName:"null", runsOn:"DEVICE", platformVersion:"null", udid:"4S99LV4SO7KNWKRG"}
09:10:35 �[31mjava.lang.IllegalStateException: Cannot parse content to class com.testvagrant.monitor.requests.Device because no content-type was present in the response and no default parser has been set.
09:10:35 You can specify a default parser using e.g.:
09:10:35 RestAssured.defaultParser = Parser.JSON;
09:10:35
09:10:35 or you can specify an explicit ObjectMapper using as(class com.testvagrant.monitor.requests.Device, );
09:10:35 at sun.reflect.GeneratedConstructorAccessor80.newInstance(Unknown Source)
09:10:35 at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
09:10:35 at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
09:10:35 at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:83)
09:10:35 at org.codehaus.groovy.reflection.CachedConstructor.doConstructorInvoke(CachedConstructor.java:77)
09:10:35 at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrap.callConstructor(ConstructorSite.java:84)
09:10:35 at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:247)
09:10:35 at io.restassured.internal.RestAssuredResponseOptionsGroovyImpl$_as_closure3.doCall(RestAssuredResponseOptionsGroovyImpl.groovy:219)
09:10:35 at io.restassured.internal.RestAssuredResponseOptionsGroovyImpl$_as_closure3.doCall(RestAssuredResponseOptionsGroovyImpl.groovy)
09:10:35 at sun.reflect.GeneratedMethodAccessor160.invoke(Unknown Source)
09:10:35 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
09:10:35 at java.lang.reflect.Method.invoke(Method.java:498)
09:10:35 at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
09:10:35 at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
09:10:35 at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:294)
09:10:35 at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022)
09:10:35 at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:42)
09:10:35 at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:117)
09:10:35 at io.restassured.internal.RestAssuredResponseOptionsGroovyImpl.findContentType(RestAssuredResponseOptionsGroovyImpl.groovy:482)
09:10:35 at sun.reflect.GeneratedMethodAccessor141.invoke(Unknown Source)
09:10:35 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
09:10:35 at java.lang.reflect.Method.invoke(Method.java:498)
09:10:35 at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSiteNoUnwrapNoCoerce.invoke(PogoMetaMethodSite.java:210)
09:10:35 at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:59)
09:10:35 at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:166)
09:10:35 at io.restassured.internal.RestAssuredResponseOptionsGroovyImpl.as(RestAssuredResponseOptionsGroovyImpl.groovy:218)
09:10:35 at io.restassured.internal.RestAssuredResponseOptionsImpl.as(RestAssuredResponseOptionsImpl.java:164)
09:10:35 at com.testvagrant.monitor.clients.DevicesClient.getDevice(DevicesClient.java:50)
09:10:35 at com.testvagrant.monitor.services.DevicesServiceImpl.updateFirstAvailableDeviceToEngaged(DevicesServiceImpl.java:38)
09:10:35 at com.testvagrant.optimus.device.DeviceFinder.getAvailableDeviceAndUpdateToEngaged(DeviceFinder.java:56)
09:10:35 at com.testvagrant.optimus.parser.OptimusConfigParser.allocateDevicesForCurrentScenario(OptimusConfigParser.java:151)
09:10:35 at com.testvagrant.optimus.device.OptimusController.registerSmartBOTs(OptimusController.java:152)
09:10:35 at steps.StartingSteps.setUp(StartingSteps.java:26)
09:10:35 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
09:10:35 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
09:10:35 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
09:10:35 at java.lang.reflect.Method.invoke(Method.java:498)
09:10:35 at cucumber.runtime.Utils$1.call(Utils.java:32)
09:10:35 at cucumber.runtime.Timeout.timeout(Timeout.java:16)
09:10:35 at cucumber.runtime.Utils.invoke(Utils.java:26)
09:10:35 at cucumber.runtime.java.JavaHookDefinition.execute(JavaHookDefinition.java:60)
09:10:35 at cucumber.runtime.HookDefinitionMatch.runStep(HookDefinitionMatch.java:17)
09:10:35 at cucumber.runner.UnskipableStep.executeStep(UnskipableStep.java:22)
09:10:35 at cucumber.api.TestStep.run(TestStep.java:83)
09:10:35 at cucumber.api.TestCase.run(TestCase.java:58)
09:10:35 at cucumber.runner.Runner.runPickle(Runner.java:80)
09:10:35 at cucumber.runtime.Runtime.runFeature(Runtime.java:119)
09:10:35 at cucumber.runtime.Runtime.run(Runtime.java:104)
09:10:35 at cucumber.api.cli.Main.run(Main.java:36)
09:10:35 at cucumber.api.cli.Main.main(Main.java:18)

Issue: Optimus debug not working with new build script as it may need few other VM option, the wiki page need modification

Stack:

java.net.ConnectException: Connection refused (Connection refused)
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:121)
at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:180)
at org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:326)
at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:610)
at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:445)
at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:835)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56)
at org.apache.http.client.HttpClient$execute$0.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:133)
at io.restassured.internal.RequestSpecificationImpl$RestAssuredHttpBuilder.doRequest(RequestSpecificationImpl.groovy:2128)
at io.restassured.internal.http.HTTPBuilder.doRequest(HTTPBuilder.java:494)
at io.restassured.internal.http.HTTPBuilder.request(HTTPBuilder.java:451)
at io.restassured.internal.http.HTTPBuilder$request$2.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:141)
at io.restassured.internal.RequestSpecificationImpl.sendHttpRequest(RequestSpecificationImpl.groovy:1531)
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.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1213)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:810)
at io.restassured.internal.RequestSpecificationImpl.invokeMethod(RequestSpecificationImpl.groovy)
at org.codehaus.groovy.runtime.callsite.PogoInterceptableSite.call(PogoInterceptableSite.java:48)
at org.codehaus.groovy.runtime.callsite.PogoInterceptableSite.callCurrent(PogoInterceptableSite.java:58)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:52)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:154)
at io.restassured.internal.RequestSpecificationImpl.sendRequest(RequestSpecificationImpl.groovy:1290)
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.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1213)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:810)
at io.restassured.internal.RequestSpecificationImpl.invokeMethod(RequestSpecificationImpl.groovy)
at org.codehaus.groovy.runtime.callsite.PogoInterceptableSite.call(PogoInterceptableSite.java:48)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:149)
at io.restassured.internal.filter.SendRequestFilter.filter(SendRequestFilter.groovy:30)
at io.restassured.filter.Filter$filter$0.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
at io.restassured.filter.Filter$filter.call(Unknown Source)
at io.restassured.internal.filter.FilterContextImpl.next(FilterContextImpl.groovy:72)
at io.restassured.filter.time.TimingFilter.filter(TimingFilter.java:56)
at io.restassured.filter.Filter$filter.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:141)
at io.restassured.internal.filter.FilterContextImpl.next(FilterContextImpl.groovy:72)
at io.restassured.filter.FilterContext$next.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:133)
at io.restassured.internal.RequestSpecificationImpl.applyPathParamsAndSendRequest(RequestSpecificationImpl.groovy:1731)
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.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1213)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:810)
at io.restassured.internal.RequestSpecificationImpl.invokeMethod(RequestSpecificationImpl.groovy)
at org.codehaus.groovy.runtime.callsite.PogoInterceptableSite.call(PogoInterceptableSite.java:48)
at org.codehaus.groovy.runtime.callsite.PogoInterceptableSite.callCurrent(PogoInterceptableSite.java:58)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:52)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:154)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:182)
at io.restassured.internal.RequestSpecificationImpl.applyPathParamsAndSendRequest(RequestSpecificationImpl.groovy:1737)
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.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1213)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:810)
at io.restassured.internal.RequestSpecificationImpl.invokeMethod(RequestSpecificationImpl.groovy)
at org.codehaus.groovy.runtime.callsite.PogoInterceptableSite.call(PogoInterceptableSite.java:48)
at org.codehaus.groovy.runtime.callsite.PogoInterceptableSite.callCurrent(PogoInterceptableSite.java:58)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:52)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:154)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:182)
at io.restassured.internal.RequestSpecificationImpl.get(RequestSpecificationImpl.groovy:170)
at io.restassured.internal.RequestSpecificationImpl.get(RequestSpecificationImpl.groovy)
at com.testvagrant.monitor.clients.BuildsClient.getLatestBuildId(BuildsClient.java:39)
at com.testvagrant.monitor.services.OptimusServiceImpl.getLatestBuild(OptimusServiceImpl.java:10)
at com.testvagrant.monitor.services.DevicesServiceImpl.getAllDevices(DevicesServiceImpl.java:25)
at com.testvagrant.optimus.device.DeviceFinder.getAvailableDeviceAndUpdateToEngaged(DeviceFinder.java:33)
at com.testvagrant.optimus.parser.OptimusConfigParser.allocateDevicesForCurrentScenario(OptimusConfigParser.java:151)
at com.testvagrant.optimus.device.OptimusController.registerSmartBOTs(OptimusController.java:152)
at steps.StartingSteps.setUp(StartingSteps.java:26)
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 cucumber.runtime.Utils$1.call(Utils.java:32)
at cucumber.runtime.Timeout.timeout(Timeout.java:16)
at cucumber.runtime.Utils.invoke(Utils.java:26)
at cucumber.runtime.java.JavaHookDefinition.execute(JavaHookDefinition.java:60)
at cucumber.runtime.HookDefinitionMatch.runStep(HookDefinitionMatch.java:17)
at cucumber.runner.UnskipableStep.executeStep(UnskipableStep.java:22)
at cucumber.api.TestStep.run(TestStep.java:83)
at cucumber.api.TestCase.run(TestCase.java:58)
at cucumber.runner.Runner.runPickle(Runner.java:80)
at cucumber.runtime.Runtime.runFeature(Runtime.java:119)
at cucumber.runtime.Runtime.run(Runtime.java:104)
at cucumber.api.cli.Main.run(Main.java:36)
at cucumber.api.cli.Main.main(Main.java:18)

java.lang.NullPointerException
at steps.StartingSteps.tearDown(StartingSteps.java:36)
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 cucumber.runtime.Utils$1.call(Utils.java:32)
at cucumber.runtime.Timeout.timeout(Timeout.java:16)
at cucumber.runtime.Utils.invoke(Utils.java:26)
at cucumber.runtime.java.JavaHookDefinition.execute(JavaHookDefinition.java:60)
at cucumber.runtime.HookDefinitionMatch.runStep(HookDefinitionMatch.java:17)
at cucumber.runner.UnskipableStep.executeStep(UnskipableStep.java:22)
at cucumber.api.TestStep.run(TestStep.java:83)
at cucumber.api.TestCase.run(TestCase.java:58)
at cucumber.runner.Runner.runPickle(Runner.java:80)
at cucumber.runtime.Runtime.runFeature(Runtime.java:119)
at cucumber.runtime.Runtime.run(Runtime.java:104)
at cucumber.api.cli.Main.run(Main.java:36)
at cucumber.api.cli.Main.main(Main.java:18)

Process finished with exit code 1

gradle build

group 'au.com.woolworths.appAutomation'
version '1.0'
apply plugin: 'java'
apply plugin: 'groovy'
apply plugin: 'idea'
apply plugin: 'maven'
apply plugin: "com.testvagrant.optimus.plugin"
/*
IMPORTANT: Optimus extension is required to run optimus plugin.
*/
optimus {
testFeed = System.getProperty("testFeed");
tags = System.getProperty("tags");
devMode = System.getProperty("devMode");
regression = System.getProperty("regression");
env = System.getProperty("env", "integration");
classpath = sourceSets.test.runtimeClasspath
}

service {
database = System.getProperty("database", "optimus")
port = System.getProperty("port", "8090")
uri = System.getProperty("uri", "mongodb://localhost:27017")
}

//Optimus Execution Rules
tasks.runFragmentation.dependsOn 'clean', 'build','spinServices'
tasks.runDistribution.dependsOn 'clean', 'build','spinServices'
tasks.build.mustRunAfter 'clean'
tasks.runFragmentation.finalizedBy 'fragmentationReport'
tasks.runDistribution.finalizedBy 'distributionReport'
tasks.fragmentationReport.finalizedBy 'stopServices'
tasks.distributionReport.finalizedBy 'stopServices'

buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
mavenCentral()
}
dependencies {
classpath "gradle.plugin.com.testvagrant.optimus:OptimusGradle:3.0"
}

}

repositories {
mavenCentral()
jcenter()

}

dependencies {
compile 'com.google.guava:guava:25.0-jre'
compile 'com.squareup.okhttp3:okhttp:3.10.0'

compile 'org.codehaus.groovy:groovy-all:2.2.0'
compile group: 'org.seleniumhq.selenium', name: 'selenium-java', version: '3.6.0'
compile 'cglib:cglib:3.2.4'
compile group: 'com.testvagrant', name: 'optimus', version: '3.0'
compile 'com.testvagrant.stepdefs:stepdefs:1.0.8'
compile 'com.testvagrant.intents:intents:1.0.6'
testCompile('com.google.inject:guice:3.0')
testCompile(group: 'com.googlecode.lambdaj', name: 'lambdaj', version: '2.3.3')
testCompile(group: 'org.json', name: 'json', version: '20131018')
compile group: 'com.google.guava', name: 'guava', version: '22.0'

}

NullPointerException on ReportParser.getDeviceName

After successful execution of simple test on real device NullPointerException happens when distributionReport tries to parse JSON with getDeviceName() method:

What went wrong:
Execution failed for task ':distributionReport'.
java.lang.NullPointerException (no error message)

Please see gist with stack trace of the error:
https://gist.github.com/ochubey/2f414d91e4ecdadfc5ef76d98a869c85#file-gistfile1-txt

TestFeed configuration file:
https://gist.github.com/ochubey/d1a3f72064bdd19a9197d7bad27dbb0f#file-iphonedevicese-json

Same issue when using Android device and or simulators/emulators

Versions used:

java 1.8.0_131
optimus-cli 1.4.4
"gradle.plugin.com.testvagrant.optimus:OptimusGradle:2.1"
'com.testvagrant:optimus:2.+'
'com.testvagrant.stepdefs:stepdefs:1.+'

Ability to execute tests at Feature level instead of scenario

Currently the setup and teardown is done on scenario level , which approximately takes around 1-2 mins each per scenario.
In my case , say I run a test with around 20 scenarios, the actual test scenario execution takes around 5-7 mins , but another 8-10 mins goes into setup and teardown per scenario. Thats around double the actual test execution.

I have done a temporary workaround at my end by registering or de-registering the bot on feature level by adding few conditions in the starting steps.

But I was wondering if you could give this as an option, so we can reduce the execution time?

iOS - Nothing is running or the framework is idle after the tests ran successfully

Hi Team,

The framework is not completing the task for iOS and is stopping after successfully running the tests and also report is not generated.

Its getting stopped at "> Building 83% > :runFragmentation" and not getting exited .

Kindly, help coz im not able to proceed further with the automation

Please find the logs below.

MacBook-Pro:Core_BDD_Framework_Mobile $ ./gradlew runFragmentation -DtestFeed=CoreBDDiOS -Dtags=@loginValidNewUser
Starting a Gradle Daemon (subsequent builds will be faster)
:clean
:compileJava UP-TO-DATE
:compileGroovy UP-TO-DATE
:processResources UP-TO-DATE
:classes UP-TO-DATE
:jar
:assemble
:compileTestJava
Note: /Users/suhasini/Desktop/Test_Automation/Core_BDD_Framework_Mobile/src/test/java/pages/BasePage.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
:compileTestGroovy UP-TO-DATE
:processTestResources
:testClasses
:test
:check
:build
:spinServices
Mongo uri mongodb://localhost:27017
Services URI http://localhost:8090/v1
Service commands [java, -jar, /Users/suhasini/Desktop/Test_Automation/Core_BDD_Framework_Mobile/libs/optimus-services-2.0.jar, --port=8090, --database=optimus, --uri=mongodb://localhost:27017]
:runFragmentation
Notifying build start
Builds Pathhttp://localhost:8090/v1/builds
2019-10-15 14:59:41 INFO DeviceMatrix:44 - [DeviceDetails{deviceName='iPhone 5s', udid='C475CE08-3284-49CA-A53A-DCB35143E2DE', status='Available', platform=IOS, platformVersion='12.4', runsOn=SIMULATOR}, DeviceDetails{deviceName='iPhone 6', udid='7A385BAA-6499-4E8F-95FD-549F9BFB3F51', status='Available', platform=IOS, platformVersion='12.4', runsOn=SIMULATOR}, DeviceDetails{deviceName='iPhone 6 Plus', udid='B31ABD1D-B396-4ED0-9B3D-306EC9E51D81', status='Available', platform=IOS, platformVersion='12.4', runsOn=SIMULATOR}, DeviceDetails{deviceName='iPhone 6s', udid='BE7E996F-F8F3-4196-A566-B1E169305DAA', status='Available', platform=IOS, platformVersion='12.4', runsOn=SIMULATOR}, DeviceDetails{deviceName='iPhone 6s Plus', udid='56BC2EF7-B217-4D37-B728-2048C552FBFE', status='Available', platform=IOS, platformVersion='12.4', runsOn=SIMULATOR}, DeviceDetails{deviceName='iPhone 7', udid='5E5EEBDB-F601-414D-8937-829E7DF16DAF', status='Available', platform=IOS, platformVersion='12.4', runsOn=SIMULATOR}, DeviceDetails{deviceName='iPhone 7 Plus', udid='1B4728F8-21B2-448C-973D-F5A61DC3451E', status='Available', platform=IOS, platformVersion='12.4', runsOn=SIMULATOR}, DeviceDetails{deviceName='iPhone 8', udid='1ADB89B1-C8C3-4A3E-AD73-619FB737825C', status='Available', platform=IOS, platformVersion='12.4', runsOn=SIMULATOR}, DeviceDetails{deviceName='iPhone 8 Plus', udid='98680FB2-2F91-4A85-A704-C393BCE6CBB9', status='Available', platform=IOS, platformVersion='12.4', runsOn=SIMULATOR}, DeviceDetails{deviceName='iPhone SE', udid='7D7CFE1A-03FA-4354-B47D-BE1257A7725B', status='Available', platform=IOS, platformVersion='12.4', runsOn=SIMULATOR}, DeviceDetails{deviceName='iPhone X', udid='F6B77862-5ABE-483D-894D-3D410C543694', status='Available', platform=IOS, platformVersion='12.4', runsOn=SIMULATOR}, DeviceDetails{deviceName='iPhone Xs', udid='FEE0CF2A-1E89-485F-9CFC-B811B58F1FF3', status='Available', platform=IOS, platformVersion='12.4', runsOn=SIMULATOR}, DeviceDetails{deviceName='iPhone Xs Max', udid='B822C8C5-564C-4015-913 2-48AB435113B0', status='Available', platform=IOS, platformVersion='12.4', runsOn=SIMULATOR}, DeviceDetails{deviceName='iPhone Xʀ', udid='4246CB8E-2090-4B12-9961-BF9810666CF2', status='Available', platform=IOS, platformVersion='12.4', runsOn=SIMULATOR}, DeviceDetails{deviceName='CI iOS 1', udid='', status='Available', platform=IOS, platformVersion='11.4.1', runsOn=DEVICE}]
/Users/suhasini/Desktop/Test_Automation/Core_BDD_Framework_Mobile/src/test/resources/CoreBDDiOS.json
Total devices -- 1
WARNING: Found tags option '@intent,@intent,@DataIntent,@DataIntent'. Support for '@tag1,@tag2' will be removed from the next release of Cucumber-JVM. Please use '@tag or @tag2' instead
WARNING: Found tags option '@intent,@intent,@DataIntent,@DataIntent'. Support for '~@tag' will be removed from the next release of Cucumber-JVM. Please use 'not @tag' instead.
Feature: General test cases for login page

@loginValidNewUser
Scenario: Login with valid credentials then I should see the overview page # /Users/suhasini/Desktop/Test_Automation/Core_BDD_Framework_Mobile/src/test/resources/features/01_login.feature:4

CoreBDDiOS.json
Test Feed> CoreBDDiOS.json
appJson updated with -
{"executionDetails":{"appium_js_path":"/usr/local/bin/appium","appium_node_path":"/usr/local/bin/node"},"testFeed":[{"optimusDesiredCapabilities":{"appiumServerCapabilities":{"app":"app.ipa","platformVersion":"11.4.1","automationName":"XcuiTest","platformName":"iOS","udid":"","deviceName":"CI iOS 1"},"iOSOnlyCapabilities":{"showXcodeLog":false,"clearSystemFiles":true,"useNewWDA":false,"launchTimeout":3000}},"appDir":"app","runsOn":"any","deviceState":{"captureVideo":false},"belongsTo":"coreframework","nativeApp":true}]}
2019-10-15 14:59:43 INFO OptimusController:148 - Starting Scenario -- Login with valid credentials then I should see the overview page
updated testFeed -- {"optimusDesiredCapabilities":{"appiumServerCapabilities":{"app":"app.ipa","platformVersion":"11.4.1","automationName":"XcuiTest","platformName":"iOS","udid":"","deviceName":"CI iOS 1"},"iOSOnlyCapabilities":{"showXcodeLog":false,"clearSystemFiles":true,"useNewWDA":false,"launchTimeout":3000}},"appDir":"app","runsOn":"any","deviceState":{"captureVideo":false},"belongsTo":"coreframework","nativeApp":true}
-------- All devices and there status --------
C475CE08-3284-49CA-A53A-DCB35143E2DE --- Available
7A385BAA-6499-4E8F-95FD-549F9BFB3F51 --- Available
B31ABD1D-B396-4ED0-9B3D-306EC9E51D81 --- Available
BE7E996F-F8F3-4196-A566-B1E169305DAA --- Available
56BC2EF7-B217-4D37-B728-2048C552FBFE --- Available
5E5EEBDB-F601-414D-8937-829E7DF16DAF --- Available
1B4728F8-21B2-448C-973D-F5A61DC3451E --- Available
1ADB89B1-C8C3-4A3E-AD73-619FB737825C --- Available
98680FB2-2F91-4A85-A704-C393BCE6CBB9 --- Available
7D7CFE1A-03FA-4354-B47D-BE1257A7725B --- Available
F6B77862-5ABE-483D-894D-3D410C543694 --- Available
FEE0CF2A-1E89-485F-9CFC-B811B58F1FF3 --- Available
B822C8C5-564C-4015-9132-48AB435113B0 --- Available
4246CB8E-2090-4B12-9961-BF9810666CF2 --- Available
--- Available
Matching Device is Device{platform:"IOS", deviceName:"null", runsOn:"ANY", platformVersion:"11.4.1", udid:""}
Scenario id -- /Users/suhasini/Desktop/Test_Automation/Core_BDD_Framework_Mobile/src/test/resources/features/01_login.feature:4
Scenario Name -- Login with valid credentials then I should see the overview page
[Appium] Welcome to Appium v1.15.1
[Appium] Non-default server args:n
[Appium] address: 127.0.0.1
[Appium] port: 21960
[Appium] sessionOverride: true
[Appium] logFile: /Users/suhasini/Desktop/Test_Automation/Core_BDD_Framework_Mobile/build/Login-with-valid-credentials-then-I-should-see-the-overview-page-4_.log
[Appium] wdaLocalPort: 53867
[Appium] Appium REST http interface listener started on 127.0.0.1:21960
[HTTP] --> GET /wd/hub/statusation
[HTTP] {}
[debug] [GENERIC] Calling AppiumDriver.getStatus() with args: []
[debug] [GENERIC] Responding to client with driver.getStatus() result: {"build":{"version":"1.15.1"}}
[HTTP] <-- GET /wd/hub/status 200 7 ms - 68
[HTTP]
[HTTP] --> GET /wd/hub/statusation
[HTTP] {}
[debug] [GENERIC] Calling AppiumDriver.getStatus() with args: []
[debug] [GENERIC] Responding to client with driver.getStatus() result: {"build":{"version":"1.15.1"}}
[HTTP] <-- GET /wd/hub/status 200 2 ms - 68
[HTTP]
[HTTP] --> POST /wd/hub/sessionion
[HTTP] {"desiredCapabilities":{"app":"/Users/suhasini/Desktop/Test_Automation/Core_BDD_Framework_Mobile/app/app.ipa","clearSystemFiles":true,"showXcodeLog":false,"platformVersion":"11.4.1","automationName":"XcuiTest","useNewWDA":false,"platformName":"iOS","udid":"","deviceName":"CI iOS 1","launchTimeout":3000},"capabilities":{"alwaysMatch":{"appium:app":"/Users/suhasini/Desktop/Test_Automation/Core_BDD_Framework_Mobile/app/app.ipa","appium:automationName":"XcuiTest","appium:clearSystemFiles":true,"appium:deviceName":"CI iOS 1","appium:launchTimeout":3000,"platformName":"ios","appium:platformVersion":"11.4.1","appium:showXcodeLog":false,"appium:udid":"","appium:useNewWDA":false},"firstMatch":[{}]}}
[debug] [W3C] Calling AppiumDriver.createSession() with args: [{"app":"/Users/suhasini/Desktop/Test_Automation/Core_BDD_Framework_Mobile/app/app.ipa","clearSystemFiles":true,"showXcodeLog":false,"platformVersion":"11.4.1","automationName":"XcuiTest","useNewWDA":false,"platformName":"iOS","udid":"","deviceName":"CI iOS 1","launchTimeout":3000},null,{"alwaysMatch":{"appium:app":"/Users/suhasini/Desktop/Test_Automation/Core_BDD_Framework_Mobile/app/app.ipa","appium:automationName":"XcuiTest","appium:clearSystemFiles":true,"appium:deviceName":"CI iOS 1","appium:launchTimeout":3000,"platformName":"ios","appium:platformVersion":"11.4.1","appium:showXcodeLog":false,"appium:udid":"","appium:useNewWDA":false},"firstMatch":[{}]}]
[debug] [BaseDriver] Event 'newSessionRequested' logged at 1571144387175 (14:59:47 GMT+0200 (Central European Summer Time))
[Appium] Appium v1.15.1 creating new XCUITestDriver (v2.133.1) session
[debug] [BaseDriver] W3C capabilities and MJSONWP desired capabilities were provided
[debug] [BaseDriver] Creating session with W3C capabilities: {
[debug] [BaseDriver] "alwaysMatch": {
[debug] [BaseDriver] "platformName": "ios",
[debug] [BaseDriver] "appium:app": "/Users/suhasini/Desktop/Test_Automation/Core_BDD_Framework_Mobile/app/app.ipa",
[debug] [BaseDriver] "appium:automationName": "XcuiTest",
[debug] [BaseDriver] "appium:clearSystemFiles": true,
[debug] [BaseDriver] "appium:deviceName": "CI iOS 1",
[debug] [BaseDriver] "appium:launchTimeout": 3000,
[debug] [BaseDriver] "appium:platformVersion": "11.4.1",
[debug] [BaseDriver] "appium:showXcodeLog": false,
[debug] [BaseDriver] "appium:udid": "",
[debug] [BaseDriver] "appium:useNewWDA": false
[debug] [BaseDriver] },
[debug] [BaseDriver] "firstMatch": [
[debug] [BaseDriver] {}
[debug] [BaseDriver] ]
[debug] [BaseDriver] }
[BaseDriver] Session created with session id: de6e3a7e-a850-4456-a8f7-c888a616755e
[debug] [XCUITest] Current user: 'suhasini'
[debug] [XCUITest] Available devices:
[debug] [XCUITest] Creating iDevice object with udid ''
[XCUITest] Determining device to run tests on: udid: '', real device: true
[XCUITest] Normalized platformVersion capability value '11.4.1' to '11.4'
[debug] [BaseDriver] Event 'xcodeDetailsRetrieved' logged at 1571144389123 (14:59:49 GMT+0200 (Central European Summer Time))
[BaseDriver] Using local app '/Users/suhasini/Desktop/Test_Automation/Core_BDD_Framework_Mobile/app/app.ipa'
[debug] [BaseDriver] Unzipping '/Users/suhasini/Desktop/Test_Automation/Core_BDD_Framework_Mobile/app/app.ipa'
[debug] [BaseDriver] Extracted 1024 item(s) from '/Users/suhasini/Desktop/Test_Automation/Core_BDD_Framework_Mobile/app/app.ipa'
[debug] [BaseDriver] Matched 1023 item(s) in the extracted archive. Assuming 'Payload/core.app' is the correct bundle
[BaseDriver] Unzipped local app to '/var/folders/7y/hgs15zr972g2m49769mvl_4r0000gn/T/2019915-15928-o0oiv9.bljr/Payload/core.app'
[debug] [BaseDriver] Event 'appConfigured' logged at 1571144391836 (14:59:51 GMT+0200 (Central European Summer Time))
[debug] [XCUITest] Checking whether app '/var/folders/7y/hgs15zr972g2m49769mvl_4r0000gn/T/2019915-15928-o0oiv9.bljr/Payload/core.app' is actually present on file system
[debug] [XCUITest] App is present
[debug] [iOS] Getting bundle ID from app '/var/folders/7y/hgs15zr972g2m49769mvl_4r0000gn/T/2019915-15928-o0oiv9.bljr/Payload/core.app': 'bundleid'
[debug] [BaseDriver] Event 'resetStarted' logged at 1571144391846 (14:59:51 GMT+0200 (Central European Summer Time))
[debug] [XCUITest] Reset: running ios real device reset flow
[debug] [BaseDriver] Event 'resetComplete' logged at 1571144391846 (14:59:51 GMT+0200 (Central European Summer Time))
[debug] [XCUITest] Crash reports root '/Users/suhasini/Library/Logs/CrashReporter/MobileDevice/CI iOS 1' does not exist. Got nothing to gather.
[debug] [BaseDriver] Event 'logCaptureStarted' logged at 1571144392102 (14:59:52 GMT+0200 (Central European Summer Time))
[XCUITest] Setting up real device
[debug] [XCUITest] Verifying application platform
[debug] [XCUITest] CFBundleSupportedPlatforms: ["iPhoneOS"]
[debug] [XCUITest] Reset requested. Removing app with id 'bundleid' from the device
[debug] [XCUITest] Installing '/var/folders/7y/hgs15zr972g2m49769mvl_4r0000gn/T/2019915-15928-o0oiv9.bljr/Payload/core.app' on device with UUID ''...
[debug] [XCUITest] Pushed the app files successfully after 17152ms
[XCUITest] Installation is successful after 18754ms
[debug] [XCUITest] The app has been installed successfully.
[debug] [BaseDriver] Event 'appInstalled' logged at 1571144411260 (15:00:11 GMT+0200 (Central European Summer Time))
[XCUITest] Using WDA path: '/usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent'
[XCUITest] Using WDA agent: '/usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj'
[debug] [XCUITest] No obsolete cached processes from previous WDA sessions listening on port 53867 have been found
[DevCon Factory] Requesting connection for device on local port 53867, device port 53867
[debug] [DevCon Factory] Cached connections count: 0
[DevCon Factory] Port #53867 is busy
[DevCon Factory] Successfully requested the connection for :53867
[debug] [XCUITest] Parsed BUILD_DIR configuration value: '/Users/suhasini/Library/Developer/Xcode/DerivedData/WebDriverAgent-/Build/Products'
[debug] [XCUITest] Got derived data root: '/Users/suhasini/Library/Developer/Xcode/DerivedData/WebDriverAgent-'
[debug] [XCUITest] Starting WebDriverAgent initialization with the synchronization key '/Users/suhasini/Library/Developer/Xcode/DerivedData/WebDriverAgent-'
[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://localhost:53867/status] with no body
[iProxy@bc2d6...] Connection was refused to port 53867
[WD Proxy] Got an unexpected response with status undefined: {"code":"ECONNRESET"}
[debug] [XCUITest] WDA is not listening at 'http://localhost:53867/'
[debug] [XCUITest] WDA is currently not running. There is nothing to cache
[debug] [XCUITest] Trying to start WebDriverAgent 1 times with 10000ms interval
[debug] [XCUITest] These values can be customized by changing wdaStartupRetries/wdaStartupRetryInterval capabilities
[debug] [BaseDriver] Event 'wdaStartAttempted' logged at 1571144413266 (15:00:13 GMT+0200 (Central European Summer Time))
[XCUITest] Launching WebDriverAgent on the device
[WebDriverAgent] Fetching dependencies
[WebDriverAgent] Dependencies up-to-date
[debug] [XCUITest] Killing running processes 'xcodebuild.' for the device ...
[debug] [XCUITest] 'pgrep -ifn xcodebuild.
' didn't detect any matching processes. Return code: 1
[debug] [XCUITest] Beginning test with command 'xcodebuild build-for-testing test-without-building -project /usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -derivedDataPath /Users/suhasini/Library/Developer/Xcode/DerivedData/WebDriverAgent- -destination id= IPHONEOS_DEPLOYMENT_TARGET=11.4 GCC_TREAT_WARNINGS_AS_ERRORS=0 COMPILER_INDEX_STORE_ENABLE=NO' in directory '/usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent'
[debug] [XCUITest] Output from xcodebuild will not be logged. To change this, use 'showXcodeLog' desired capability
[debug] [XCUITest] Waiting up to 60000ms for WebDriverAgent to start
[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://localhost:53867/status] with no body
[iProxy@bc2d6...] Connection was refused to port 53867
[WD Proxy] Got an unexpected response with status undefined: {"code":"ECONNRESET"}
[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://localhost:53867/status] with no body
[iProxy@bc2d6...] Connection was refused to port 53867
[WD Proxy] Got an unexpected response with status undefined: {"code":"ECONNRESET"}
[debug] [XCUITest] Log file for xcodebuild test: /Users/suhasini/Library/Developer/Xcode/DerivedData/WebDriverAgent-/Logs/Test/Test-WebDriverAgentRunner-2019.10.15_15-00-15-+0200.xcresult/2_Test/Diagnostics/WebDriverAgentRunner-5C7A8CC0-5BE4-411A-9DB7-20A1223214A6/WebDriverAgentRunner-634AD7F6-F563-4E94-83EA-6A8CED74A743/Session-WebDriverAgentRunner-2019-10-15_150015-O96RmZ.log
[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://localhost:53867/status] with no body
[iProxy@bc2d6...] Connection was refused to port 53867
[WD Proxy] Got an unexpected response with status undefined: {"code":"ECONNRESET"}
[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://localhost:53867/status] with no body
[iProxy@bc2d6...] Connection was refused to port 53867
[WD Proxy] Got an unexpected response with status undefined: {"code":"ECONNRESET"}
[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://localhost:53867/status] with no body
[iProxy@bc2d6...] Connection was refused to port 53867
[WD Proxy] Got an unexpected response with status undefined: {"code":"ECONNRESET"}
[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://localhost:53867/status] with no body
[iProxy@bc2d6...] Connection was refused to port 53867
[WD Proxy] Got an unexpected response with status undefined: {"code":"ECONNRESET"}
[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://localhost:53867/status] with no body
[iProxy@bc2d6...] Connection was refused to port 53867
[WD Proxy] Got an unexpected response with status undefined: {"code":"ECONNRESET"}
[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://localhost:53867/status] with no body
[debug] [WD Proxy] Got response with status 200: {
[debug] [WD Proxy] "value" : {
[debug] [WD Proxy] "message" : "WebDriverAgent is ready to accept commands",
[debug] [WD Proxy] "state" : "success",
[debug] [WD Proxy] "os" : {
[debug] [WD Proxy] "name" : "iOS",
[debug] [WD Proxy] "version" : "11.4.1",
[debug] [WD Proxy] "sdkVersion" : "12.2"
[debug] [WD Proxy] },
[debug] [WD Proxy] "ios" : {
[debug] [WD Proxy] "simulatorVersion" : "11.4.1",
[debug] [WD Proxy] "ip" : "192.168.10.158"
[debug] [WD Proxy] },
[debug] [WD Proxy] "ready" : true,
[debug] [WD Proxy] "build" : {
[debug] [WD Proxy] "upgradedAt" : "1571129796363",
[debug] [WD Proxy] "time" : "Oct 15 2019 14:50:29",
[debug] [WD Proxy] "productBundleIdentifier" : "com.facebook.WebDriverAgentRunner"
[debug] [WD Proxy] }
[debug] [WD Proxy] },
[debug] [WD Proxy] "sessionId" : "14EEC00E-1453-4217-A911-DA4F31289C88"
[debug] [WD Proxy] }
[debug] [XCUITest] WebDriverAgent information:
[debug] [XCUITest] {
[debug] [XCUITest] "message": "WebDriverAgent is ready to accept commands",
[debug] [XCUITest] "state": "success",
[debug] [XCUITest] "os": {
[debug] [XCUITest] "name": "iOS",
[debug] [XCUITest] "version": "11.4.1",
[debug] [XCUITest] "sdkVersion": "12.2"
[debug] [XCUITest] },
[debug] [XCUITest] "ios": {
[debug] [XCUITest] "simulatorVersion": "11.4.1",
[debug] [XCUITest] "ip": "192.168.10.158"
[debug] [XCUITest] },
[debug] [XCUITest] "ready": true,
[debug] [XCUITest] "build": {
[debug] [XCUITest] "upgradedAt": "1571129796363",
[debug] [XCUITest] "time": "Oct 15 2019 14:50:29",
[debug] [XCUITest] "productBundleIdentifier": "com.facebook.WebDriverAgentRunner"
[debug] [XCUITest] }
[debug] [XCUITest] }
[debug] [XCUITest] WebDriverAgent successfully started after 7774ms
[debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1571144421243 (15:00:21 GMT+0200 (Central European Summer Time))
[debug] [XCUITest] Sending createSession command to WDA
[debug] [WD Proxy] Matched '/session' to command name 'createSession'
[debug] [WD Proxy] Proxying [POST /session] to [POST http://localhost:53867/session] with body: {"capabilities":{"firstMatch":[{"bundleId":"bundleid","arguments":[],"environment":{},"eventloopIdleDelaySec":0,"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true}],"alwaysMatch":{}}}
[debug] [WD Proxy] Got response with status 200: {"value":{"sessionId":"62E34148-E0E3-4683-98C2-E5232D1AAFB4","capabilities":{"device":"iphone","browserName":"core","sdkVersion":"11.4.1","CFBundleIdentifier":"bundleid"}},"sessionId":"62E34148-E0E3-4683-98C2-E5232D1AAFB4"}
[WD Proxy] Determined the downstream protocol as 'W3C'
[debug] [BaseDriver] Event 'wdaSessionStarted' logged at 1571144424980 (15:00:24 GMT+0200 (Central European Summer Time))
[debug] [BaseDriver] Event 'wdaStarted' logged at 1571144424980 (15:00:24 GMT+0200 (Central European Summer Time))
[XCUITest] Skipping setting of the initial display orientation. Set the "orientation" capability to either "LANDSCAPE" or "PORTRAIT", if this is an undesired behavior.
[debug] [BaseDriver] Event 'orientationSet' logged at 1571144424981 (15:00:24 GMT+0200 (Central European Summer Time))
[Appium] New XCUITestDriver session created successfully, session de6e3a7e-a850-4456-a8f7-c888a616755e added to master session list
[debug] [BaseDriver] Event 'newSessionStarted' logged at 1571144424982 (15:00:24 GMT+0200 (Central European Summer Time))
[debug] [W3C (de6e3a7e)] Cached the protocol value 'W3C' for the new session de6e3a7e-a850-4456-a8f7-c888a616755e
[debug] [W3C (de6e3a7e)] Responding to client with driver.createSession() result: {"capabilities":{"webStorageEnabled":false,"locationContextEnabled":false,"browserName":"","platform":"MAC","javascriptEnabled":true,"databaseEnabled":false,"takesScreenshot":true,"networkConnectionEnabled":false,"platformName":"ios","app":"/Users/suhasini/Desktop/Test_Automation/Core_BDD_Framework_Mobile/app/app.ipa","automationName":"XcuiTest","clearSystemFiles":true,"deviceName":"CI iOS 1","launchTimeout":3000,"platformVersion":"11.4.1","showXcodeLog":false,"udid":"","useNewWDA":false}}
[HTTP] <-- POST /wd/hub/session 200 37810 ms - 603
[HTTP]
Oct 15, 2019 3:00:24 PM io.appium.java_client.remote.AppiumCommandExecutor$1 lambda$0
INFO: Detected dialect: W3C
[HTTP] --> GET /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e
[HTTP] {}
[debug] [W3C (de6e3a7e)] Calling AppiumDriver.getSession() with args: ["de6e3a7e-a850-4456-a8f7-c888a616755e"]
[debug] [XCUITest] Executing command 'getSession'
[debug] [WD Proxy] Matched '/' to command name 'getSession'
[debug] [WD Proxy] Proxying [GET /] to [GET http://localhost:53867/session/62E34148-E0E3-4683-98C2-E5232D1AAFB4] with no body
[debug] [WD Proxy] Got response with status 200: {
[debug] [WD Proxy] "value" : {
[debug] [WD Proxy] "sessionId" : "62E34148-E0E3-4683-98C2-E5232D1AAFB4",
[debug] [WD Proxy] "capabilities" : {
[debug] [WD Proxy] "device" : "iphone",
[debug] [WD Proxy] "browserName" : "core",
[debug] [WD Proxy] "sdkVersion" : "11.4.1",
[debug] [WD Proxy] "CFBundleIdentifier" : "bundleid"
[debug] [WD Proxy] }
[debug] [WD Proxy] },
[debug] [WD Proxy] "sessionId" : "62E34148-E0E3-4683-98C2-E5232D1AAFB4"
[debug] [WD Proxy] }
[debug] [WD Proxy] Proxying [GET /wda/screen] to [GET http://localhost:53867/session/62E34148-E0E3-4683-98C2-E5232D1AAFB4/wda/screen] with no body
[debug] [WD Proxy] Got response with status 200: {
[debug] [WD Proxy] "value" : {on
[debug] [WD Proxy] "statusBarSize" : {
[debug] [WD Proxy] "width" : 375,
[debug] [WD Proxy] "height" : 20
[debug] [WD Proxy] },
[debug] [WD Proxy] "scale" : 2
[debug] [WD Proxy] },
[debug] [WD Proxy] "sessionId" : "62E34148-E0E3-4683-98C2-E5232D1AAFB4"
[debug] [WD Proxy] }
[debug] [WD Proxy] Proxying [GET /window/size] to [GET http://localhost:53867/session/62E34148-E0E3-4683-98C2-E5232D1AAFB4/window/size] with no body
[debug] [WD Proxy] Got response with status 200: {
[debug] [WD Proxy] "value" : {
[debug] [WD Proxy] "width" : 375,
[debug] [WD Proxy] "height" : 667
[debug] [WD Proxy] },
[debug] [WD Proxy] "sessionId" : "62E34148-E0E3-4683-98C2-E5232D1AAFB4"
[debug] [WD Proxy] }
[XCUITest] Merging WDA caps over Appium caps for session detail response
[debug] [W3C (de6e3a7e)] Responding to client with driver.getSession() result: {"udid":"","platformName":"ios","app":"/Users/suhasini/Desktop/Test_Automation/Core_BDD_Framework_Mobile/app/app.ipa","automationName":"XcuiTest","clearSystemFiles":true,"deviceName":"CI iOS 1","launchTimeout":3000,"platformVersion":"11.4.1","showXcodeLog":false,"useNewWDA":false,"device":"iphone","browserName":"core","sdkVersion":"11.4.1","CFBundleIdentifier":"bundleid","pixelRatio":2,"statBarHeight":20,"viewportRect":{"left":0,"top":40,"width":750,"height":1294}}
[HTTP] <-- GET /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e 200 367 ms - 544
[HTTP]
[HTTP] --> GET /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e
[HTTP] {}
[debug] [W3C (de6e3a7e)] Calling AppiumDriver.getSession() with args: ["de6e3a7e-a850-4456-a8f7-c888a616755e"]
[debug] [XCUITest] Executing command 'getSession'
[XCUITest] Merging WDA caps over Appium caps for session detail response
[debug] [W3C (de6e3a7e)] Responding to client with driver.getSession() result: {"udid":"","platformName":"ios","app":"/Users/suhasini/Desktop/Test_Automation/Core_BDD_Framework_Mobile/app/app.ipa","automationName":"XcuiTest","clearSystemFiles":true,"deviceName":"CI iOS 1","launchTimeout":3000,"platformVersion":"11.4.1","showXcodeLog":false,"useNewWDA":false,"device":"iphone","browserName":"core","sdkVersion":"11.4.1","CFBundleIdentifier":"bundleid","pixelRatio":2,"statBarHeight":20,"viewportRect":{"left":0,"top":40,"width":750,"height":1294}}
[HTTP] <-- GET /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e 200 2 ms - 544
[HTTP]
2019-10-15 15:00:25 INFO OptimusController:170 - Login-with-valid-credentials-then-I-should-see-the-overview-page-4--driver instance created for
UDID:
DeviceNameCI iOS 1
[HTTP] --> GET /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/screenshot
[HTTP] {}
[debug] [W3C (de6e3a7e)] Calling AppiumDriver.getScreenshot() with args: ["de6e3a7e-a850-4456-a8f7-c888a616755e"]
[debug] [XCUITest] Executing command 'getScreenshot'
[debug] [XCUITest] Taking screenshot with WDA
[debug] [WD Proxy] Matched '/screenshot' to command name 'getScreenshot'
[debug] [WD Proxy] Proxying [GET /screenshot] to [GET http://localhost:53867/session/62E34148-E0E3-4683-98C2-E5232D1AAFB4/screenshot] with no body
[debug] [WD Proxy] Got response with status 200: {
[debug] [WD Proxy] "value" : "iVBORw0KGgoAAAANSUhEUgAAAu4AAAU2CAIAAABFtaRRAAAAAXNSR0IArs4c6QAA\r\nABxpRE9UAAAAAgAAAAAAAAKbAAAAKAAAApsAAAKbAAEWDeJOgpAAAEAASURBVHgB\r\n7J0HgFbF9fZXwBZT/McUExNrTKImthhNYkxiiUaMICjSRBAQNWg0FmKPMU0TO3Vh\r\nQaxJrIkdu4govZeFZelL2d533zbfb+6zHK677LpL9HOVua7D3Llnzpx57tyZ5z0z\r\nc2+WC0dAICAQEAgIBAQCAp8+BDK+SvXO1UV/SU5ISaVdIukSCZdKuDRpSZ8W/RFp\r\n01+Vc7VRRp8tnfZ/Tgp96P8yhCSmVcRHB3DWR6c6aA4IBAQCAgGBgEBA4GNDABYR\r\nUQ3YDH/wlYjKwDGS/i/VQDWMvrTVTngMaskeUZmIzTQQF7iLZzD+z1/2QfRvW0to\r\nrXygMq1FKsgFBAICAYGAQEDgk4SA6ESmwenSQGUaOAYko4Fn+BqJa2yhH8ZDWo40\r\nsBPlQjuRKEnKGq6a8q3nHz6Egcp8+JgGjQGBgEBAICAQEPj4ERDJiJgFAWQjim7L\r\nLl1oI5XZBtGJiqAg/aG1ochmC96WMW1PC1Sm7ZiFHAGBgEBAICAQEGj/CHi/S4P3\r\nBS4BvWDpiiabCIm/j9yIbbQpZHEMKuSMIeOWIqJlMlv1ezYjkvSRIRaozEcGbVAc\r\nEAgIBAQCAgGBjxOBRKO1t5AMLQEmNDaz/QZqqS9saYszxkiMIqJKEZXRouDtL6rl\r\nnIHKtIxPuBoQCAgEBAICAYFPJAIZz1tgM/aXTLk0DEZshkgD1dgyUcTVNv1pgxIr\r\nfNEDdzFuJM9OpByWEy0uziRchmI/qiNQmY8K2aA3IBAQCAgEBAICHyMCKZfIbOUx\r\nkAn4ht9bBMnQXzQphIHR9E8GotOQ3sqIMqIEebl...
[debug] [W3C (de6e3a7e)] Responding to client with driver.getScreenshot() result: "iVBORw0KGgoAAAANSUhEUgAAAu4AAAU2CAIAAABFtaRRAAAAAXNSR0IArs4c6QAA\r\nABxpRE9UAAAAAgAAAAAAAAKbAAAAKAAAApsAAAKbAAEWDeJOgpAAAEAASURBVHgB\r\n7J0HgFbF9fZXwBZT/McUExNrTKImthhNYkxiiUaMICjSRBAQNWg0FmKPMU0TO3Vh\r\nQaxJrIkdu4govZeFZelL2d533zbfb+6zHK677LpL9HOVua7D3Llnzpx57tyZ5z0z\r\nc2+WC0dAICAQEAgIBAQCAp8+BDK+SvXO1UV/SU5ISaVdIukSCZdKuDRpSZ8W/RFp\r\n01+Vc7VRRp8tnfZ/Tgp96P8yhCSmVcRHB3DWR6c6aA4IBAQCAgGBgEBA4GNDABYR\r\nUQ3YDH/wlYjKwDGS/i/VQDWMvrTVTngMaskeUZmIzTQQF7iLZzD+z1/2QfRvW0to\r\nrXygMq1FKsgFBAICAYGAQEDgk4SA6ESmwenSQGUaOAYko4Fn+BqJa2yhH8ZDWo40\r\nsBPlQjuRKEnKGq6a8q3nHz6Egcp8+JgGjQGBgEBAICAQEPj4ERDJiJgFAWQjim7L\r\nLl1oI5XZBtGJiqAg/aG1ochmC96WMW1PC1Sm7ZiFHAGBgEBAICAQEGj/CHi/S4P3\r\nBS4BvWDpiiabCIm/j9yIbbQpZHEMKuSMIeOWIqJlMlv1ezYjkvSRIRaozEcGbVAc\r\nEAgIBAQCAgGBjxOBRKO1t5AMLQEmNDaz/QZqqS9saYszxkiMIqJKEZXRouDtL6rl\r\nnIHKtIxPuBoQCAgEBAICAYFPJAIZz1tgM/aXTLk0DEZshkgD1dgyUcTVNv1pgxIr\r\nfNEDdzFuJM9OpByWEy0uziRchmI/qiNQmY8K2aA3IBAQCAgEBAICHyMCKZfIbOUx\r\nkAn4ht9bBMnQXzQphIHR9E8GotOQ3sqIMqIEeblhGhSKyzQwJK7Apeo+NiqTSmEe\r\n...
[HTTP] <-- GET /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/screenshot 200 64 ms - 193688
[HTTP]
2019-10-15 15:00:25 INFO OptimusController:193 - cucumber.runtime.ScenarioImpl@17f2dd85---BOT registered successfully for --

Appium Services are...1 io.appium.java_client.service.local.AppiumDriverLocalService@22a736d7 [HTTP] --> GET /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e [HTTP] {} [debug] [W3C (de6e3a7e)] Calling AppiumDriver.getSession() with args: ["de6e3a7e-a850-4456-a8f7-c888a616755e"] [debug] [XCUITest] Executing command 'getSession' [XCUITest] Merging WDA caps over Appium caps for session detail response [debug] [W3C (de6e3a7e)] Responding to client with driver.getSession() result: {"udid":"","platformName":"ios","app":"/Users/suhasini/Desktop/Test_Automation/Core_BDD_Framework_Mobile/app/app.ipa","automationName":"XcuiTest","clearSystemFiles":true,"deviceName":"CI iOS 1","launchTimeout":3000,"platformVersion":"11.4.1","showXcodeLog":false,"useNewWDA":false,"device":"iphone","browserName":"core","sdkVersion":"11.4.1","CFBundleIdentifier":"bundleid","pixelRatio":2,"statBarHeight":20,"viewportRect":{"left":0,"top":40,"width":750,"height":1294}} [HTTP] <-- GET /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e 200 4 ms - 544 [HTTP] [HTTP] --> GET /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e [HTTP] {} [debug] [W3C (de6e3a7e)] Calling AppiumDriver.getSession() with args: ["de6e3a7e-a850-4456-a8f7-c888a616755e"] [debug] [XCUITest] Executing command 'getSession' [XCUITest] Merging WDA caps over Appium caps for session detail response [debug] [W3C (de6e3a7e)] Responding to client with driver.getSession() result: {"udid":"","platformName":"ios","app":"/Users/suhasini/Desktop/Test_Automation/Core_BDD_Framework_Mobile/app/app.ipa","automationName":"XcuiTest","clearSystemFiles":true,"deviceName":"CI iOS 1","launchTimeout":3000,"platformVersion":"11.4.1","showXcodeLog":false,"useNewWDA":false,"device":"iphone","browserName":"core","sdkVersion":"11.4.1","CFBundleIdentifier":"bundleid","pixelRatio":2,"statBarHeight":20,"viewportRect":{"left":0,"top":40,"width":750,"height":1294}} [HTTP] <-- GET /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e 200 2 ms - 544 [HTTP] [HTTP] --> GET /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e [HTTP] {} [debug] [W3C (de6e3a7e)] Calling AppiumDriver.getSession() with args: ["de6e3a7e-a850-4456-a8f7-c888a616755e"] [debug] [XCUITest] Executing command 'getSession' [XCUITest] Merging WDA caps over Appium caps for session detail response [debug] [W3C (de6e3a7e)] Responding to client with driver.getSession() result: {"udid":"","platformName":"ios","app":"/Users/suhasini/Desktop/Test_Automation/Core_BDD_Framework_Mobile/app/app.ipa","automationName":"XcuiTest","clearSystemFiles":true,"deviceName":"CI iOS 1","launchTimeout":3000,"platformVersion":"11.4.1","showXcodeLog":false,"useNewWDA":false,"device":"iphone","browserName":"core","sdkVersion":"11.4.1","CFBundleIdentifier":"bundleid","pixelRatio":2,"statBarHeight":20,"viewportRect":{"left":0,"top":40,"width":750,"height":1294}} [HTTP] <-- GET /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e 200 2 ms - 544 [HTTP] [HTTP] --> GET /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/context [HTTP] {} [debug] [W3C (de6e3a7e)] Calling AppiumDriver.getCurrentContext() with args: ["de6e3a7e-a850-4456-a8f7-c888a616755e"] [debug] [XCUITest] Executing command 'getCurrentContext' [debug] [W3C (de6e3a7e)] Responding to client with driver.getCurrentContext() result: "NATIVE_APP" [HTTP] <-- GET /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/context 200 3 ms - 22 [HTTP] [HTTP] --> POST /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/element [HTTP] {"using":"xpath","value":"//*[@name='welcome_new_user_title_label']"} [debug] [W3C (de6e3a7e)] Calling AppiumDriver.findElement() with args: ["xpath","//*[@name='welcome_new_user_title_label']","de6e3a7e-a850-4456-a8f7-c888a616755e"] [debug] [XCUITest] Executing command 'findElement' [debug] [BaseDriver] Valid locator strategies for this request: xpath, id, name, class name, -ios predicate string, -ios class chain, accessibility id [debug] [BaseDriver] Waiting up to 0 ms for condition [debug] [WD Proxy] Matched '/element' to command name 'findElement' [debug] [WD Proxy] Proxying [POST /element] to [POST http://localhost:53867/session/62E34148-E0E3-4683-98C2-E5232D1AAFB4/element] with body: {"using":"xpath","value":"//*[@name='welcome_new_user_title_label']"} [debug] [WD Proxy] Got response with status 200: {"value":{"ELEMENT":"1D000000-0000-0000-F104-000000000000","element-6066-11e4-a52e-4f735466cecf":"1D000000-0000-0000-F104-000000000000"},"sessionId":"62E34148-E0E3-4683-98C2-E5232D1AAFB4"} [debug] [W3C (de6e3a7e)] Responding to client with driver.findElement() result: {"element-6066-11e4-a52e-4f735466cecf":"1D000000-0000-0000-F104-000000000000","ELEMENT":"1D000000-0000-0000-F104-000000000000"} [HTTP] <-- POST /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/element 200 1102 ms - 137 [HTTP] [HTTP] --> GET /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/element/1D000000-0000-0000-F104-000000000000/displayed [HTTP] {} [W3C (de6e3a7e)] Driver proxy active, passing request on via HTTP proxy [debug] [XCUITest] Executing command 'proxyReqRes' [debug] [WD Proxy] Matched '/wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/element/1D000000-0000-0000-F104-000000000000/displayed' to command name 'elementDisplayed' [debug] [WD Proxy] Proxying [GET /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/element/1D000000-0000-0000-F104-000000000000/displayed] to [GET http://localhost:53867/session/62E34148-E0E3-4683-98C2-E5232D1AAFB4/element/1D000000-0000-0000-F104-000000000000/displayed] with body: {} [debug] [WD Proxy] Got response with status 200: { [debug] [WD Proxy] "value" : true, [debug] [WD Proxy] "sessionId" : "62E34148-E0E3-4683-98C2-E5232D1AAFB4" [debug] [WD Proxy] } [WD Proxy] Replacing sessionId 62E34148-E0E3-4683-98C2-E5232D1AAFB4 with de6e3a7e-a850-4456-a8f7-c888a616755e [HTTP] <-- GET /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/element/1D000000-0000-0000-F104-000000000000/displayed 200 100 ms - 65 [HTTP] [HTTP] --> GET /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e [HTTP] {} [debug] [W3C (de6e3a7e)] Calling AppiumDriver.getSession() with args: ["de6e3a7e-a850-4456-a8f7-c888a616755e"] [debug] [XCUITest] Executing command 'getSession' [XCUITest] Merging WDA caps over Appium caps for session detail response [debug] [W3C (de6e3a7e)] Responding to client with driver.getSession() result: {"udid":"","platformName":"ios","app":"/Users/suhasini/Desktop/Test_Automation/Core_BDD_Framework_Mobile/app/app.ipa","automationName":"XcuiTest","clearSystemFiles":true,"deviceName":"CI iOS 1","launchTimeout":3000,"platformVersion":"11.4.1","showXcodeLog":false,"useNewWDA":false,"device":"iphone","browserName":"core","sdkVersion":"11.4.1","CFBundleIdentifier":"bundleid","pixelRatio":2,"statBarHeight":20,"viewportRect":{"left":0,"top":40,"width":750,"height":1294}} [HTTP] <-- GET /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e 200 2 ms - 544 [HTTP] [HTTP] --> GET /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/context [HTTP] {} [debug] [W3C (de6e3a7e)] Calling AppiumDriver.getCurrentContext() with args: ["de6e3a7e-a850-4456-a8f7-c888a616755e"] [debug] [XCUITest] Executing command 'getCurrentContext' [debug] [W3C (de6e3a7e)] Responding to client with driver.getCurrentContext() result: "NATIVE_APP" [HTTP] <-- GET /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/context 200 2 ms - 22 [HTTP] [HTTP] --> POST /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/element [HTTP] {"using":"xpath","value":"//*[@name='welcome_new_user_title_label']"} [debug] [W3C (de6e3a7e)] Calling AppiumDriver.findElement() with args: ["xpath","//*[@name='welcome_new_user_title_label']","de6e3a7e-a850-4456-a8f7-c888a616755e"] [debug] [XCUITest] Executing command 'findElement' [debug] [BaseDriver] Valid locator strategies for this request: xpath, id, name, class name, -ios predicate string, -ios class chain, accessibility id [debug] [BaseDriver] Waiting up to 0 ms for condition [debug] [WD Proxy] Matched '/element' to command name 'findElement' [debug] [WD Proxy] Proxying [POST /element] to [POST http://localhost:53867/session/62E34148-E0E3-4683-98C2-E5232D1AAFB4/element] with body: {"using":"xpath","value":"//*[@name='welcome_new_user_title_label']"} [debug] [WD Proxy] Got response with status 200: {"value":{"ELEMENT":"1D000000-0000-0000-F104-000000000000","element-6066-11e4-a52e-4f735466cecf":"1D000000-0000-0000-F104-000000000000"},"sessionId":"62E34148-E0E3-4683-98C2-E5232D1AAFB4"} [debug] [W3C (de6e3a7e)] Responding to client with driver.findElement() result: {"element-6066-11e4-a52e-4f735466cecf":"1D000000-0000-0000-F104-000000000000","ELEMENT":"1D000000-0000-0000-F104-000000000000"} [HTTP] <-- POST /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/element 200 1127 ms - 137 [HTTP] [HTTP] --> GET /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/element/1D000000-0000-0000-F104-000000000000/displayed [HTTP] {} [W3C (de6e3a7e)] Driver proxy active, passing request on via HTTP proxy [debug] [XCUITest] Executing command 'proxyReqRes' [debug] [WD Proxy] Matched '/wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/element/1D000000-0000-0000-F104-000000000000/displayed' to command name 'elementDisplayed' [debug] [WD Proxy] Proxying [GET /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/element/1D000000-0000-0000-F104-000000000000/displayed] to [GET http://localhost:53867/session/62E34148-E0E3-4683-98C2-E5232D1AAFB4/element/1D000000-0000-0000-F104-000000000000/displayed] with body: {} [debug] [WD Proxy] Got response with status 200: { [debug] [WD Proxy] "value" : true, [debug] [WD Proxy] "sessionId" : "62E34148-E0E3-4683-98C2-E5232D1AAFB4" [debug] [WD Proxy] } [WD Proxy] Replacing sessionId 62E34148-E0E3-4683-98C2-E5232D1AAFB4 with de6e3a7e-a850-4456-a8f7-c888a616755e [HTTP] <-- GET /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/element/1D000000-0000-0000-F104-000000000000/displayed 200 115 ms - 65 [HTTP] checkPageReached: true Given I am on onaboarding screen # LoginSteps.iAmOnOnaboardingScreen() [HTTP] --> GET /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e [HTTP] {} [debug] [W3C (de6e3a7e)] Calling AppiumDriver.getSession() with args: ["de6e3a7e-a850-4456-a8f7-c888a616755e"] [debug] [XCUITest] Executing command 'getSession' [XCUITest] Merging WDA caps over Appium caps for session detail response [debug] [W3C (de6e3a7e)] Responding to client with driver.getSession() result: {"udid":"","platformName":"ios","app":"/Users/suhasini/Desktop/Test_Automation/Core_BDD_Framework_Mobile/app/app.ipa","automationName":"XcuiTest","clearSystemFiles":true,"deviceName":"CI iOS 1","launchTimeout":3000,"platformVersion":"11.4.1","showXcodeLog":false,"useNewWDA":false,"device":"iphone","browserName":"core","sdkVersion":"11.4.1","CFBundleIdentifier":"bundleid","pixelRatio":2,"statBarHeight":20,"viewportRect":{"left":0,"top":40,"width":750,"height":1294}} [HTTP] <-- GET /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e 200 3 ms - 544 [HTTP] [HTTP] --> GET /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/context [HTTP] {} [debug] [W3C (de6e3a7e)] Calling AppiumDriver.getCurrentContext() with args: ["de6e3a7e-a850-4456-a8f7-c888a616755e"] [debug] [XCUITest] Executing command 'getCurrentContext' [debug] [W3C (de6e3a7e)] Responding to client with driver.getCurrentContext() result: "NATIVE_APP" [HTTP] <-- GET /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/context 200 2 ms - 22 [HTTP] [HTTP] --> POST /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/element [HTTP] {"using":"xpath","value":"//*[@name='onboarding_new_user_start_button_text_label']"} [debug] [W3C (de6e3a7e)] Calling AppiumDriver.findElement() with args: ["xpath","//*[@name='onboarding_new_user_start_button_text_label']","de6e3a7e-a850-4456-a8f7-c888a616755e"] [debug] [XCUITest] Executing command 'findElement' [debug] [BaseDriver] Valid locator strategies for this request: xpath, id, name, class name, -ios predicate string, -ios class chain, accessibility id [debug] [BaseDriver] Waiting up to 0 ms for condition [debug] [WD Proxy] Matched '/element' to command name 'findElement' [debug] [WD Proxy] Proxying [POST /element] to [POST http://localhost:53867/session/62E34148-E0E3-4683-98C2-E5232D1AAFB4/element] with body: {"using":"xpath","value":"//*[@name='onboarding_new_user_start_button_text_label']"} [debug] [WD Proxy] Got response with status 200: {"value":{"ELEMENT":"23000000-0000-0000-F104-000000000000","element-6066-11e4-a52e-4f735466cecf":"23000000-0000-0000-F104-000000000000"},"sessionId":"62E34148-E0E3-4683-98C2-E5232D1AAFB4"} [debug] [W3C (de6e3a7e)] Responding to client with driver.findElement() result: {"element-6066-11e4-a52e-4f735466cecf":"23000000-0000-0000-F104-000000000000","ELEMENT":"23000000-0000-0000-F104-000000000000"} [HTTP] <-- POST /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/element 200 1160 ms - 137 [HTTP] [HTTP] --> GET /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/element/23000000-0000-0000-F104-000000000000/displayed [HTTP] {} [W3C (de6e3a7e)] Driver proxy active, passing request on via HTTP proxy [debug] [XCUITest] Executing command 'proxyReqRes' [debug] [WD Proxy] Matched '/wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/element/23000000-0000-0000-F104-000000000000/displayed' to command name 'elementDisplayed' [debug] [WD Proxy] Proxying [GET /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/element/23000000-0000-0000-F104-000000000000/displayed] to [GET http://localhost:53867/session/62E34148-E0E3-4683-98C2-E5232D1AAFB4/element/23000000-0000-0000-F104-000000000000/displayed] with body: {} [debug] [WD Proxy] Got response with status 200: { [debug] [WD Proxy] "value" : true, [debug] [WD Proxy] "sessionId" : "62E34148-E0E3-4683-98C2-E5232D1AAFB4" [debug] [WD Proxy] } [WD Proxy] Replacing sessionId 62E34148-E0E3-4683-98C2-E5232D1AAFB4 with de6e3a7e-a850-4456-a8f7-c888a616755e [HTTP] <-- GET /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/element/23000000-0000-0000-F104-000000000000/displayed 200 104 ms - 65 [HTTP] Language name: <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<: English (Germany) Language name: <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<: [HTTP] --> GET /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e [HTTP] {} [debug] [W3C (de6e3a7e)] Calling AppiumDriver.getSession() with args: ["de6e3a7e-a850-4456-a8f7-c888a616755e"] [debug] [XCUITest] Executing command 'getSession' [XCUITest] Merging WDA caps over Appium caps for session detail response [debug] [W3C (de6e3a7e)] Responding to client with driver.getSession() result: {"udid":"","platformName":"ios","app":"/Users/suhasini/Desktop/Test_Automation/Core_BDD_Framework_Mobile/app/app.ipa","automationName":"XcuiTest","clearSystemFiles":true,"deviceName":"CI iOS 1","launchTimeout":3000,"platformVersion":"11.4.1","showXcodeLog":false,"useNewWDA":false,"device":"iphone","browserName":"core","sdkVersion":"11.4.1","CFBundleIdentifier":"bundleid","pixelRatio":2,"statBarHeight":20,"viewportRect":{"left":0,"top":40,"width":750,"height":1294}} [HTTP] <-- GET /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e 200 2 ms - 544 [HTTP] Platform name: <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<: ios [HTTP] --> GET /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e [HTTP] {} [debug] [W3C (de6e3a7e)] Calling AppiumDriver.getSession() with args: ["de6e3a7e-a850-4456-a8f7-c888a616755e"] [debug] [XCUITest] Executing command 'getSession' [XCUITest] Merging WDA caps over Appium caps for session detail response [debug] [W3C (de6e3a7e)] Responding to client with driver.getSession() result: {"udid":"","platformName":"ios","app":"/Users/suhasini/Desktop/Test_Automation/Core_BDD_Framework_Mobile/app/app.ipa","automationName":"XcuiTest","clearSystemFiles":true,"deviceName":"CI iOS 1","launchTimeout":3000,"platformVersion":"11.4.1","showXcodeLog":false,"useNewWDA":false,"device":"iphone","browserName":"core","sdkVersion":"11.4.1","CFBundleIdentifier":"bundleid","pixelRatio":2,"statBarHeight":20,"viewportRect":{"left":0,"top":40,"width":750,"height":1294}} [HTTP] <-- GET /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e 200 2 ms - 544 [HTTP] [HTTP] --> GET /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/context [HTTP] {} [debug] [W3C (de6e3a7e)] Calling AppiumDriver.getCurrentContext() with args: ["de6e3a7e-a850-4456-a8f7-c888a616755e"] [debug] [XCUITest] Executing command 'getCurrentContext' [debug] [W3C (de6e3a7e)] Responding to client with driver.getCurrentContext() result: "NATIVE_APP" [HTTP] <-- GET /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/context 200 2 ms - 22 [HTTP] [HTTP] --> POST /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/element [HTTP] {"using":"xpath","value":"//*[@name='onboarding_new_user_start_button_text_label']"} [debug] [W3C (de6e3a7e)] Calling AppiumDriver.findElement() with args: ["xpath","//*[@name='onboarding_new_user_start_button_text_label']","de6e3a7e-a850-4456-a8f7-c888a616755e"] [debug] [XCUITest] Executing command 'findElement' [debug] [BaseDriver] Valid locator strategies for this request: xpath, id, name, class name, -ios predicate string, -ios class chain, accessibility id [debug] [BaseDriver] Waiting up to 0 ms for condition [debug] [WD Proxy] Matched '/element' to command name 'findElement' [debug] [WD Proxy] Proxying [POST /element] to [POST http://localhost:53867/session/62E34148-E0E3-4683-98C2-E5232D1AAFB4/element] with body: {"using":"xpath","value":"//*[@name='onboarding_new_user_start_button_text_label']"} [debug] [WD Proxy] Got response with status 200: {"value":{"ELEMENT":"23000000-0000-0000-F104-000000000000","element-6066-11e4-a52e-4f735466cecf":"23000000-0000-0000-F104-000000000000"},"sessionId":"62E34148-E0E3-4683-98C2-E5232D1AAFB4"} [debug] [W3C (de6e3a7e)] Responding to client with driver.findElement() result: {"element-6066-11e4-a52e-4f735466cecf":"23000000-0000-0000-F104-000000000000","ELEMENT":"23000000-0000-0000-F104-000000000000"} [HTTP] <-- POST /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/element 200 1087 ms - 137 [HTTP] [HTTP] --> POST /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/element/23000000-0000-0000-F104-000000000000/click [HTTP] {"id":"23000000-0000-0000-F104-000000000000"} [W3C (de6e3a7e)] Driver proxy active, passing request on via HTTP proxy [debug] [XCUITest] Executing command 'proxyReqRes' [debug] [WD Proxy] Matched '/wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/element/23000000-0000-0000-F104-000000000000/click' to command name 'click' [debug] [WD Proxy] Proxying [POST /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/element/23000000-0000-0000-F104-000000000000/click] to [POST http://localhost:53867/session/62E34148-E0E3-4683-98C2-E5232D1AAFB4/element/23000000-0000-0000-F104-000000000000/click] with body: {"id":"23000000-0000-0000-F104-000000000000"} [debug] [WD Proxy] Got response with status 200: {"value":null,"sessionId":"62E34148-E0E3-4683-98C2-E5232D1AAFB4"} [WD Proxy] Replacing sessionId 62E34148-E0E3-4683-98C2-E5232D1AAFB4 with de6e3a7e-a850-4456-a8f7-c888a616755e [HTTP] <-- POST /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/element/23000000-0000-0000-F104-000000000000/click 200 450 ms - 65 [HTTP] And I click on Let's go on onboarding screen # LoginSteps.iContinueOnOnaboardingScreen() [HTTP] --> GET /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e [HTTP] {} [debug] [W3C (de6e3a7e)] Calling AppiumDriver.getSession() with args: ["de6e3a7e-a850-4456-a8f7-c888a616755e"] [debug] [XCUITest] Executing command 'getSession' [XCUITest] Merging WDA caps over Appium caps for session detail response [debug] [W3C (de6e3a7e)] Responding to client with driver.getSession() result: {"udid":"","platformName":"ios","app":"/Users/suhasini/Desktop/Test_Automation/Core_BDD_Framework_Mobile/app/app.ipa","automationName":"XcuiTest","clearSystemFiles":true,"deviceName":"CI iOS 1","launchTimeout":3000,"platformVersion":"11.4.1","showXcodeLog":false,"useNewWDA":false,"device":"iphone","browserName":"core","sdkVersion":"11.4.1","CFBundleIdentifier":"bundleid","pixelRatio":2,"statBarHeight":20,"viewportRect":{"left":0,"top":40,"width":750,"height":1294}} [HTTP] <-- GET /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e 200 3 ms - 544 [HTTP] [HTTP] --> GET /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/context [HTTP] {} [debug] [W3C (de6e3a7e)] Calling AppiumDriver.getCurrentContext() with args: ["de6e3a7e-a850-4456-a8f7-c888a616755e"] [debug] [XCUITest] Executing command 'getCurrentContext' [debug] [W3C (de6e3a7e)] Responding to client with driver.getCurrentContext() result: "NATIVE_APP" [HTTP] <-- GET /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/context 200 2 ms - 22 [HTTP] [HTTP] --> POST /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/element [HTTP] {"using":"xpath","value":"//*[@name='login_username_title' or @name='login_username_input']"} [debug] [W3C (de6e3a7e)] Calling AppiumDriver.findElement() with args: ["xpath","//*[@name='login_username_title' or @name='login_username_input']","de6e3a7e-a850-4456-a8f7-c888a616755e"] [debug] [XCUITest] Executing command 'findElement' [debug] [BaseDriver] Valid locator strategies for this request: xpath, id, name, class name, -ios predicate string, -ios class chain, accessibility id [debug] [BaseDriver] Waiting up to 0 ms for condition [debug] [WD Proxy] Matched '/element' to command name 'findElement' [debug] [WD Proxy] Proxying [POST /element] to [POST http://localhost:53867/session/62E34148-E0E3-4683-98C2-E5232D1AAFB4/element] with body: {"using":"xpath","value":"//*[@name='login_username_title' or @name='login_username_input']"} [WD Proxy] Got an unexpected response with status 404: {"value":{"error":"no such element","message":"unable to find an element using 'xpath', value '//*[@name='login_username_title' or @name='login_username_input']'","traceback":"(\n\t0 WebDri verAgentLib 0x0000000104a078d0 FBNoSuchElementErrorResponseForRequest + 312\n\t1 WebDriverAgentLib 0x0000000104a07698 +[FBFindElementCommands handleFindElement:] + 460\n\t2 WebDriverAgentLib 0x00000001049e60a0 -[FBRoute_TargetAction mountRequest:intoResponse:] + 220\n\t3 WebDriverAgentLib 0x00000001049d324c __37-[FBWebServer registerRouteHandlers:]_block_invoke + 504\n\t4 RoutingHTTPServer 0x0000000104b52480 -[RoutingHTTPServer handleRoute:withRequest:response:] + 144\n\t5 RoutingHTTPServer 0x0000000104b52c50 __72-[RoutingHTTPServer routeMethod:withPath:parameters:request:connection:]_block_invoke + 44\n\t6 libdispatch.dylib 0x00000001834c0a60 + 16\n\t7 libdispatch.dylib... [debug] [W3C] Matched W3C error code 'no such element' to NoSuchElementError [debug] [W3C (de6e3a7e)] Encountered internal error running command: NoSuchElementError: An element could not be located on the page using the given search parameters. [debug] [W3C (de6e3a7e)] at XCUITestDriver.doNativeFind (/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/commands/find.js:126:11) [HTTP] <-- POST /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/element 404 1320 ms - 379 [HTTP] [HTTP] --> GET /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e [HTTP] {} [debug] [W3C (de6e3a7e)] Calling AppiumDriver.getSession() with args: ["de6e3a7e-a850-4456-a8f7-c888a616755e"] [debug] [XCUITest] Executing command 'getSession' [XCUITest] Merging WDA caps over Appium caps for session detail response [debug] [W3C (de6e3a7e)] Responding to client with driver.getSession() result: {"udid":"","platformName":"ios","app":"/Users/suhasini/Desktop/Test_Automation/Core_BDD_Framework_Mobile/app/app.ipa","automationName":"XcuiTest","clearSystemFiles":true,"deviceName":"CI iOS 1","launchTimeout":3000,"platformVersion":"11.4.1","showXcodeLog":false,"useNewWDA":false,"device":"iphone","browserName":"core","sdkVersion":"11.4.1","CFBundleIdentifier":"bundleid","pixelRatio":2,"statBarHeight":20,"viewportRect":{"left":0,"top":40,"width":750,"height":1294}} [HTTP] <-- GET /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e 200 3 ms - 544 [HTTP] [HTTP] --> GET /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/context [HTTP] {} [debug] [W3C (de6e3a7e)] Calling AppiumDriver.getCurrentContext() with args: ["de6e3a7e-a850-4456-a8f7-c888a616755e"] [debug] [XCUITest] Executing command 'getCurrentContext' [debug] [W3C (de6e3a7e)] Responding to client with driver.getCurrentContext() result: "NATIVE_APP" [HTTP] <-- GET /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/context 200 2 ms - 22 [HTTP] [HTTP] --> POST /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/element [HTTP] {"using":"xpath","value":"//*[@name='login_username_title' or @name='login_username_input']"} [debug] [W3C (de6e3a7e)] Calling AppiumDriver.findElement() with args: ["xpath","//*[@name='login_username_title' or @name='login_username_input']","de6e3a7e-a850-4456-a8f7-c888a616755e"] [debug] [XCUITest] Executing command 'findElement' [debug] [BaseDriver] Valid locator strategies for this request: xpath, id, name, class name, -ios predicate string, -ios class chain, accessibility id [debug] [BaseDriver] Waiting up to 0 ms for condition [debug] [WD Proxy] Matched '/element' to command name 'findElement' [debug] [WD Proxy] Proxying [POST /element] to [POST http://localhost:53867/session/62E34148-E0E3-4683-98C2-E5232D1AAFB4/element] with body: {"using":"xpath","value":"//*[@name='login_username_title' or @name='login_username_input']"} [debug] [WD Proxy] Got response with status 200: {"value":{"ELEMENT":"5B000000-0000-0000-F104-000000000000","element-6066-11e4-a52e-4f735466cecf":"5B000000-0000-0000-F104-000000000000"},"sessionId":"62E34148-E0E3-4683-98C2-E5232D1AAFB4"} [debug] [W3C (de6e3a7e)] Responding to client with driver.findElement() result: {"element-6066-11e4-a52e-4f735466cecf":"5B000000-0000-0000-F104-000000000000","ELEMENT":"5B000000-0000-0000-F104-000000000000"} [HTTP] <-- POST /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/element 200 1636 ms - 137 [HTTP] [HTTP] --> GET /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/element/5B000000-0000-0000-F104-000000000000/displayed [HTTP] {} [W3C (de6e3a7e)] Driver proxy active, passing request on via HTTP proxy [debug] [XCUITest] Executing command 'proxyReqRes' [debug] [WD Proxy] Matched '/wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/element/5B000000-0000-0000-F104-000000000000/displayed' to command name 'elementDisplayed' [debug] [WD Proxy] Proxying [GET /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/element/5B000000-0000-0000-F104-000000000000/displayed] to [GET http://localhost:53867/session/62E34148-E0E3-4683-98C2-E5232D1AAFB4/element/5B000000-0000-0000-F104-000000000000/displayed] with body: {} [debug] [WD Proxy] Got response with status 200: { [debug] [WD Proxy] "value" : true, [debug] [WD Proxy] "sessionId" : "62E34148-E0E3-4683-98C2-E5232D1AAFB4" [debug] [WD Proxy] } [WD Proxy] Replacing sessionId 62E34148-E0E3-4683-98C2-E5232D1AAFB4 with de6e3a7e-a850-4456-a8f7-c888a616755e [HTTP] <-- GET /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/element/5B000000-0000-0000-F104-000000000000/displayed 200 162 ms - 65 [HTTP] [HTTP] --> GET /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e [HTTP] {} [debug] [W3C (de6e3a7e)] Calling AppiumDriver.getSession() with args: ["de6e3a7e-a850-4456-a8f7-c888a616755e"] [debug] [XCUITest] Executing command 'getSession' [XCUITest] Merging WDA caps over Appium caps for session detail response [debug] [W3C (de6e3a7e)] Responding to client with driver.getSession() result: {"udid":"","platformName":"ios","app":"/Users/suhasini/Desktop/Test_Automation/Core_BDD_Framework_Mobile/app/app.ipa","automationName":"XcuiTest","clearSystemFiles":true,"deviceName":"CI iOS 1","launchTimeout":3000,"platformVersion":"11.4.1","showXcodeLog":false,"useNewWDA":false,"device":"iphone","browserName":"core","sdkVersion":"11.4.1","CFBundleIdentifier":"bundleid","pixelRatio":2,"statBarHeight":20,"viewportRect":{"left":0,"top":40,"width":750,"height":1294}} [HTTP] <-- GET /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e 200 2 ms - 544 [HTTP] [HTTP] --> GET /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/context [HTTP] {} [debug] [W3C (de6e3a7e)] Calling AppiumDriver.getCurrentContext() with args: ["de6e3a7e-a850-4456-a8f7-c888a616755e"] [debug] [XCUITest] Executing command 'getCurrentContext' [debug] [W3C (de6e3a7e)] Responding to client with driver.getCurrentContext() result: "NATIVE_APP" [HTTP] <-- GET /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/context 200 2 ms - 22 [HTTP] [HTTP] --> POST /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/element [HTTP] {"using":"xpath","value":"//*[@name='login_username_title' or @name='login_username_input']"} [debug] [W3C (de6e3a7e)] Calling AppiumDriver.findElement() with args: ["xpath","//*[@name='login_username_title' or @name='login_username_input']","de6e3a7e-a850-4456-a8f7-c888a616755e"] [debug] [XCUITest] Executing command 'findElement' [debug] [BaseDriver] Valid locator strategies for this request: xpath, id, name, class name, -ios predicate string, -ios class chain, accessibility id [debug] [BaseDriver] Waiting up to 0 ms for condition [debug] [WD Proxy] Matched '/element' to command name 'findElement' [debug] [WD Proxy] Proxying [POST /element] to [POST http://localhost:53867/session/62E34148-E0E3-4683-98C2-E5232D1AAFB4/element] with body: {"using":"xpath","value":"//*[@name='login_username_title' or @name='login_username_input']"} [debug] [WD Proxy] Got response with status 200: {"value":{"ELEMENT":"5B000000-0000-0000-F104-000000000000","element-6066-11e4-a52e-4f735466cecf":"5B000000-0000-0000-F104-000000000000"},"sessionId":"62E34148-E0E3-4683-98C2-E5232D1AAFB4"} [debug] [W3C (de6e3a7e)] Responding to client with driver.findElement() result: {"element-6066-11e4-a52e-4f735466cecf":"5B000000-0000-0000-F104-000000000000","ELEMENT":"5B000000-0000-0000-F104-000000000000"} [HTTP] <-- POST /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/element 200 1740 ms - 137 [HTTP] [HTTP] --> POST /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/element/5B000000-0000-0000-F104-000000000000/click [HTTP] {"id":"5B000000-0000-0000-F104-000000000000"} [W3C (de6e3a7e)] Driver proxy active, passing request on via HTTP proxy [debug] [XCUITest] Executing command 'proxyReqRes' [debug] [WD Proxy] Matched '/wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/element/5B000000-0000-0000-F104-000000000000/click' to command name 'click' [debug] [WD Proxy] Proxying [POST /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/element/5B000000-0000-0000-F104-000000000000/click] to [POST http://localhost:53867/session/62E34148-E0E3-4683-98C2-E5232D1AAFB4/element/5B000000-0000-0000-F104-000000000000/click] with body: {"id":"5B000000-0000-0000-F104-000000000000"} [debug] [WD Proxy] Got response with status 200: {"value":null,"sessionId":"62E34148-E0E3-4683-98C2-E5232D1AAFB4"} [WD Proxy] Replacing sessionId 62E34148-E0E3-4683-98C2-E5232D1AAFB4 with de6e3a7e-a850-4456-a8f7-c888a616755e [HTTP] <-- POST /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/element/5B000000-0000-0000-F104-000000000000/click 200 431 ms - 65 [HTTP] [HTTP] --> GET /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e [HTTP] {} [debug] [W3C (de6e3a7e)] Calling AppiumDriver.getSession() with args: ["de6e3a7e-a850-4456-a8f7-c888a616755e"] [debug] [XCUITest] Executing command 'getSession' [XCUITest] Merging WDA caps over Appium caps for session detail response [debug] [W3C (de6e3a7e)] Responding to client with driver.getSession() result: {"udid":"","platformName":"ios","app":"/Users/suhasini/Desktop/Test_Automation/Core_BDD_Framework_Mobile/app/app.ipa","automationName":"XcuiTest","clearSystemFiles":true,"deviceName":"CI iOS 1","launchTimeout":3000,"platformVersion":"11.4.1","showXcodeLog":false,"useNewWDA":false,"device":"iphone","browserName":"core","sdkVersion":"11.4.1","CFBundleIdentifier":"bundleid","pixelRatio":2,"statBarHeight":20,"viewportRect":{"left":0,"top":40,"width":750,"height":1294}} [HTTP] <-- GET /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e 200 2 ms - 544 [HTTP] [HTTP] --> GET /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/context [HTTP] {} [debug] [W3C (de6e3a7e)] Calling AppiumDriver.getCurrentContext() with args: ["de6e3a7e-a850-4456-a8f7-c888a616755e"] [debug] [XCUITest] Executing command 'getCurrentContext' [debug] [W3C (de6e3a7e)] Responding to client with driver.getCurrentContext() result: "NATIVE_APP" [HTTP] <-- GET /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/context 200 2 ms - 22 [HTTP] [HTTP] --> POST /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/element [HTTP] {"using":"xpath","value":"//*[@name='login_username_input']"} [debug] [W3C (de6e3a7e)] Calling AppiumDriver.findElement() with args: ["xpath","//*[@name='login_username_input']","de6e3a7e-a850-4456-a8f7-c888a616755e"] [debug] [XCUITest] Executing command 'findElement' [debug] [BaseDriver] Valid locator strategies for this request: xpath, id, name, class name, -ios predicate string, -ios class chain, accessibility id [debug] [BaseDriver] Waiting up to 0 ms for condition [debug] [WD Proxy] Matched '/element' to command name 'findElement' [debug] [WD Proxy] Proxying [POST /element] to [POST http://localhost:53867/session/62E34148-E0E3-4683-98C2-E5232D1AAFB4/element] with body: {"using":"xpath","value":"//*[@name='login_username_input']"} [debug] [WD Proxy] Got response with status 200: {"value":{"ELEMENT":"91000000-0000-0000-F104-000000000000","element-6066-11e4-a52e-4f735466cecf":"91000000-0000-0000-F104-000000000000"},"sessionId":"62E34148-E0E3-4683-98C2-E5232D1AAFB4"} [debug] [W3C (de6e3a7e)] Responding to client with driver.findElement() result: {"element-6066-11e4-a52e-4f735466cecf":"91000000-0000-0000-F104-000000000000","ELEMENT":"91000000-0000-0000-F104-000000000000"} [HTTP] <-- POST /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/element 200 2867 ms - 137 [HTTP] [HTTP] --> POST /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/element/91000000-0000-0000-F104-000000000000/value [HTTP] {"id":"91000000-0000-0000-F104-000000000000","text":"maverick","value":["m","a","v","e","r","i","c","k"]} [debug] [W3C (de6e3a7e)] Calling AppiumDriver.setValue() with args: [["m","a","v","e","r","i","c","k"],"91000000-0000-0000-F104-000000000000","de6e3a7e-a850-4456-a8f7-c888a616755e"] [debug] [XCUITest] Executing command 'setValue' [debug] [WD Proxy] Matched '/element/91000000-0000-0000-F104-000000000000/value' to command name 'setValue' [debug] [Protocol Converter] Added 'text' property "maverick" to 'setValue' request body [debug] [WD Proxy] Proxying [POST /element/91000000-0000-0000-F104-000000000000/value] to [POST http://localhost:53867/session/62E34148-E0E3-4683-98C2-E5232D1AAFB4/element/91000000-0000-0000-F104-000000000000/value] with body: {"value":["m","a","v","e","r","i","c","k"],"text":"maverick"} [debug] [WD Proxy] Got response with status 200: {"value":null,"sessionId":"62E34148-E0E3-4683-98C2-E5232D1AAFB4"} [debug] [W3C (de6e3a7e)] Responding to client with driver.setValue() result: null [HTTP] <-- POST /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/element/91000000-0000-0000-F104-000000000000/value 200 864 ms - 14 [HTTP] [HTTP] --> GET /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e [HTTP] {} [debug] [W3C (de6e3a7e)] Calling AppiumDriver.getSession() with args: ["de6e3a7e-a850-4456-a8f7-c888a616755e"] [debug] [XCUITest] Executing command 'getSession' [XCUITest] Merging WDA caps over Appium caps for session detail response [debug] [W3C (de6e3a7e)] Responding to client with driver.getSession() result: {"udid":"","platformName":"ios","app":"/Users/suhasini/Desktop/Test_Automation/Core_BDD_Framework_Mobile/app/app.ipa","automationName":"XcuiTest","clearSystemFiles":true,"deviceName":"CI iOS 1","launchTimeout":3000,"platformVersion":"11.4.1","showXcodeLog":false,"useNewWDA":false,"device":"iphone","browserName":"core","sdkVersion":"11.4.1","CFBundleIdentifier":"bundleid","pixelRatio":2,"statBarHeight":20,"viewportRect":{"left":0,"top":40,"width":750,"height":1294}} [HTTP] <-- GET /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e 200 3 ms - 544 [HTTP] [HTTP] --> GET /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/context [HTTP] {} [debug] [W3C (de6e3a7e)] Calling AppiumDriver.getCurrentContext() with args: ["de6e3a7e-a850-4456-a8f7-c888a616755e"] [debug] [XCUITest] Executing command 'getCurrentContext' [debug] [W3C (de6e3a7e)] Responding to client with driver.getCurrentContext() result: "NATIVE_APP" [HTTP] <-- GET /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/context 200 2 ms - 22 [HTTP] [HTTP] --> POST /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/element [HTTP] {"using":"xpath","value":"//*[@name='login_password_title']"} [debug] [W3C (de6e3a7e)] Calling AppiumDriver.findElement() with args: ["xpath","//*[@name='login_password_title']","de6e3a7e-a850-4456-a8f7-c888a616755e"] [debug] [XCUITest] Executing command 'findElement' [debug] [BaseDriver] Valid locator strategies for this request: xpath, id, name, class name, -ios predicate string, -ios class chain, accessibility id [debug] [BaseDriver] Waiting up to 0 ms for condition [debug] [WD Proxy] Matched '/element' to command name 'findElement' [debug] [WD Proxy] Proxying [POST /element] to [POST http://localhost:53867/session/62E34148-E0E3-4683-98C2-E5232D1AAFB4/element] with body: {"using":"xpath","value":"//*[@name='login_password_title']"} [debug] [WD Proxy] Got response with status 200: {"value":{"ELEMENT":"5C000000-0000-0000-F104-000000000000","element-6066-11e4-a52e-4f735466cecf":"5C000000-0000-0000-F104-000000000000"},"sessionId":"62E34148-E0E3-4683-98C2-E5232D1AAFB4"} [debug] [W3C (de6e3a7e)] Responding to client with driver.findElement() result: {"element-6066-11e4-a52e-4f735466cecf":"5C000000-0000-0000-F104-000000000000","ELEMENT":"5C000000-0000-0000-F104-000000000000"} [HTTP] <-- POST /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/element 200 2680 ms - 137 [HTTP] [HTTP] --> POST /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/element/5C000000-0000-0000-F104-000000000000/click [HTTP] {"id":"5C000000-0000-0000-F104-000000000000"} [W3C (de6e3a7e)] Driver proxy active, passing request on via HTTP proxy [debug] [XCUITest] Executing command 'proxyReqRes' [debug] [WD Proxy] Matched '/wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/element/5C000000-0000-0000-F104-000000000000/click' to command name 'click' [debug] [WD Proxy] Proxying [POST /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/element/5C000000-0000-0000-F104-000000000000/click] to [POST http://localhost:53867/session/62E34148-E0E3-4683-98C2-E5232D1AAFB4/element/5C000000-0000-0000-F104-000000000000/click] with body: {"id":"5C000000-0000-0000-F104-000000000000"} [debug] [WD Proxy] Got response with status 200: {"value":null,"sessionId":"62E34148-E0E3-4683-98C2-E5232D1AAFB4"} [WD Proxy] Replacing sessionId 62E34148-E0E3-4683-98C2-E5232D1AAFB4 with de6e3a7e-a850-4456-a8f7-c888a616755e [HTTP] <-- POST /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/element/5C000000-0000-0000-F104-000000000000/click 200 568 ms - 65 [HTTP] [HTTP] --> GET /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e [HTTP] {} [debug] [W3C (de6e3a7e)] Calling AppiumDriver.getSession() with args: ["de6e3a7e-a850-4456-a8f7-c888a616755e"] [debug] [XCUITest] Executing command 'getSession' [XCUITest] Merging WDA caps over Appium caps for session detail response [debug] [W3C (de6e3a7e)] Responding to client with driver.getSession() result: {"udid":"","platformName":"ios","app":"/Users/suhasini/Desktop/Test_Automation/Core_BDD_Framework_Mobile/app/app.ipa","automationName":"XcuiTest","clearSystemFiles":true,"deviceName":"CI iOS 1","launchTimeout":3000,"platformVersion":"11.4.1","showXcodeLog":false,"useNewWDA":false,"device":"iphone","browserName":"core","sdkVersion":"11.4.1","CFBundleIdentifier":"bundleid","pixelRatio":2,"statBarHeight":20,"viewportRect":{"left":0,"top":40,"width":750,"height":1294}} [HTTP] <-- GET /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e 200 3 ms - 544 [HTTP] [HTTP] --> GET /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/context [HTTP] {} [debug] [W3C (de6e3a7e)] Calling AppiumDriver.getCurrentContext() with args: ["de6e3a7e-a850-4456-a8f7-c888a616755e"] [debug] [XCUITest] Executing command 'getCurrentContext' [debug] [W3C (de6e3a7e)] Responding to client with driver.getCurrentContext() result: "NATIVE_APP" [HTTP] <-- GET /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/context 200 2 ms - 22 [HTTP] [HTTP] --> POST /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/element [HTTP] {"using":"xpath","value":"//*[@name='login_password_input']"} [debug] [W3C (de6e3a7e)] Calling AppiumDriver.findElement() with args: ["xpath","//*[@name='login_password_input']","de6e3a7e-a850-4456-a8f7-c888a616755e"] [debug] [XCUITest] Executing command 'findElement' [debug] [BaseDriver] Valid locator strategies for this request: xpath, id, name, class name, -ios predicate string, -ios class chain, accessibility id [debug] [BaseDriver] Waiting up to 0 ms for condition [debug] [WD Proxy] Matched '/element' to command name 'findElement' [debug] [WD Proxy] Proxying [POST /element] to [POST http://localhost:53867/session/62E34148-E0E3-4683-98C2-E5232D1AAFB4/element] with body: {"using":"xpath","value":"//*[@name='login_password_input']"} [debug] [WD Proxy] Got response with status 200: {"value":{"ELEMENT":"B5000000-0000-0000-F104-000000000000","element-6066-11e4-a52e-4f735466cecf":"B5000000-0000-0000-F104-000000000000"},"sessionId":"62E34148-E0E3-4683-98C2-E5232D1AAFB4"} [debug] [W3C (de6e3a7e)] Responding to client with driver.findElement() result: {"element-6066-11e4-a52e-4f735466cecf":"B5000000-0000-0000-F104-000000000000","ELEMENT":"B5000000-0000-0000-F104-000000000000"} [HTTP] <-- POST /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/element 200 2801 ms - 137 [HTTP] [HTTP] --> POST /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/element/B5000000-0000-0000-F104-000000000000/value [HTTP] {"id":"B5000000-0000-0000-F104-000000000000","text":"00000","value":["0","0","0","0","0"]} [debug] [W3C (de6e3a7e)] Calling AppiumDriver.setValue() with args: [["0","0","0","0","0"],"B5000000-0000-0000-F104-000000000000","de6e3a7e-a850-4456-a8f7-c888a616755e"] [debug] [XCUITest] Executing command 'setValue' [debug] [WD Proxy] Matched '/element/B5000000-0000-0000-F104-000000000000/value' to command name 'setValue' [debug] [Protocol Converter] Added 'text' property "00000" to 'setValue' request body [debug] [WD Proxy] Proxying [POST /element/B5000000-0000-0000-F104-000000000000/value] to [POST http://localhost:53867/session/62E34148-E0E3-4683-98C2-E5232D1AAFB4/element/B5000000-0000-0000-F104-000000000000/value] with body: {"value":["0","0","0","0","0"],"text":"00000"} [debug] [WD Proxy] Got response with status 200: {"value":null,"sessionId":"62E34148-E0E3-4683-98C2-E5232D1AAFB4"} [debug] [W3C (de6e3a7e)] Responding to client with driver.setValue() result: null [HTTP] <-- POST /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/element/B5000000-0000-0000-F104-000000000000/value 200 748 ms - 14 [HTTP] When I enter valid credentials # LoginSteps.iEnterValidCredentials() [HTTP] --> GET /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e [HTTP] {} [debug] [W3C (de6e3a7e)] Calling AppiumDriver.getSession() with args: ["de6e3a7e-a850-4456-a8f7-c888a616755e"] [debug] [XCUITest] Executing command 'getSession' [XCUITest] Merging WDA caps over Appium caps for session detail response [debug] [W3C (de6e3a7e)] Responding to client with driver.getSession() result: {"udid":"","platformName":"ios","app":"/Users/suhasini/Desktop/Test_Automation/Core_BDD_Framework_Mobile/app/app.ipa","automationName":"XcuiTest","clearSystemFiles":true,"deviceName":"CI iOS 1","launchTimeout":3000,"platformVersion":"11.4.1","showXcodeLog":false,"useNewWDA":false,"device":"iphone","browserName":"core","sdkVersion":"11.4.1","CFBundleIdentifier":"bundleid","pixelRatio":2,"statBarHeight":20,"viewportRect":{"left":0,"top":40,"width":750,"height":1294}} [HTTP] <-- GET /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e 200 3 ms - 544 [HTTP] [HTTP] --> GET /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/context [HTTP] {} [debug] [W3C (de6e3a7e)] Calling AppiumDriver.getCurrentContext() with args: ["de6e3a7e-a850-4456-a8f7-c888a616755e"] [debug] [XCUITest] Executing command 'getCurrentContext' [debug] [W3C (de6e3a7e)] Responding to client with driver.getCurrentContext() result: "NATIVE_APP" [HTTP] <-- GET /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/context 200 2 ms - 22 [HTTP] [HTTP] --> POST /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/element [HTTP] {"using":"xpath","value":"//*[@name='login_bar_submit']"} [debug] [W3C (de6e3a7e)] Calling AppiumDriver.findElement() with args: ["xpath","//*[@name='login_bar_submit']","de6e3a7e-a850-4456-a8f7-c888a616755e"] [debug] [XCUITest] Executing command 'findElement' [debug] [BaseDriver] Valid locator strategies for this request: xpath, id, name, class name, -ios predicate string, -ios class chain, accessibility id [debug] [BaseDriver] Waiting up to 0 ms for condition [debug] [WD Proxy] Matched '/element' to command name 'findElement' [debug] [WD Proxy] Proxying [POST /element] to [POST http://localhost:53867/session/62E34148-E0E3-4683-98C2-E5232D1AAFB4/element] with body: {"using":"xpath","value":"//*[@name='login_bar_submit']"} [debug] [WD Proxy] Got response with status 200: {"value":{"ELEMENT":"4F000000-0000-0000-F104-000000000000","element-6066-11e4-a52e-4f735466cecf":"4F000000-0000-0000-F104-000000000000"},"sessionId":"62E34148-E0E3-4683-98C2-E5232D1AAFB4"} [debug] [W3C (de6e3a7e)] Responding to client with driver.findElement() result: {"element-6066-11e4-a52e-4f735466cecf":"4F000000-0000-0000-F104-000000000000","ELEMENT":"4F000000-0000-0000-F104-000000000000"} [HTTP] <-- POST /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/element 200 2814 ms - 137 [HTTP] [HTTP] --> GET /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/element/4F000000-0000-0000-F104-000000000000/displayed [HTTP] {} [W3C (de6e3a7e)] Driver proxy active, passing request on via HTTP proxy [debug] [XCUITest] Executing command 'proxyReqRes' [debug] [WD Proxy] Matched '/wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/element/4F000000-0000-0000-F104-000000000000/displayed' to command name 'elementDisplayed' [debug] [WD Proxy] Proxying [GET /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/element/4F000000-0000-0000-F104-000000000000/displayed] to [GET http://localhost:53867/session/62E34148-E0E3-4683-98C2-E5232D1AAFB4/element/4F000000-0000-0000-F104-000000000000/displayed] with body: {} [debug] [WD Proxy] Got response with status 200: { [debug] [WD Proxy] "value" : true, [debug] [WD Proxy] "sessionId" : "62E34148-E0E3-4683-98C2-E5232D1AAFB4" [debug] [WD Proxy] } [WD Proxy] Replacing sessionId 62E34148-E0E3-4683-98C2-E5232D1AAFB4 with de6e3a7e-a850-4456-a8f7-c888a616755e [HTTP] <-- GET /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/element/4F000000-0000-0000-F104-000000000000/displayed 200 190 ms - 65 [HTTP] [HTTP] --> GET /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e [HTTP] {} [debug] [W3C (de6e3a7e)] Calling AppiumDriver.getSession() with args: ["de6e3a7e-a850-4456-a8f7-c888a616755e"] [debug] [XCUITest] Executing command 'getSession' [XCUITest] Merging WDA caps over Appium caps for session detail response [debug] [W3C (de6e3a7e)] Responding to client with driver.getSession() result: {"udid":"","platformName":"ios","app":"/Users/suhasini/Desktop/Test_Automation/Core_BDD_Framework_Mobile/app/app.ipa","automationName":"XcuiTest","clearSystemFiles":true,"deviceName":"CI iOS 1","launchTimeout":3000,"platformVersion":"11.4.1","showXcodeLog":false,"useNewWDA":false,"device":"iphone","browserName":"core","sdkVersion":"11.4.1","CFBundleIdentifier":"bundleid","pixelRatio":2,"statBarHeight":20,"viewportRect":{"left":0,"top":40,"width":750,"height":1294}} [HTTP] <-- GET /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e 200 2 ms - 544 [HTTP] [HTTP] --> GET /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/context [HTTP] {} [debug] [W3C (de6e3a7e)] Calling AppiumDriver.getCurrentContext() with args: ["de6e3a7e-a850-4456-a8f7-c888a616755e"] [debug] [XCUITest] Executing command 'getCurrentContext' [debug] [W3C (de6e3a7e)] Responding to client with driver.getCurrentContext() result: "NATIVE_APP" [HTTP] <-- GET /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/context 200 1 ms - 22 [HTTP] [HTTP] --> POST /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/element [HTTP] {"using":"xpath","value":"//*[@name='login_bar_submit']"} [debug] [W3C (de6e3a7e)] Calling AppiumDriver.findElement() with args: ["xpath","//*[@name='login_bar_submit']","de6e3a7e-a850-4456-a8f7-c888a616755e"] [debug] [XCUITest] Executing command 'findElement' [debug] [BaseDriver] Valid locator strategies for this request: xpath, id, name, class name, -ios predicate string, -ios class chain, accessibility id [debug] [BaseDriver] Waiting up to 0 ms for condition [debug] [WD Proxy] Matched '/element' to command name 'findElement' [debug] [WD Proxy] Proxying [POST /element] to [POST http://localhost:53867/session/62E34148-E0E3-4683-98C2-E5232D1AAFB4/element] with body: {"using":"xpath","value":"//*[@name='login_bar_submit']"} [debug] [WD Proxy] Got response with status 200: {"value":{"ELEMENT":"4F000000-0000-0000-F104-000000000000","element-6066-11e4-a52e-4f735466cecf":"4F000000-0000-0000-F104-000000000000"},"sessionId":"62E34148-E0E3-4683-98C2-E5232D1AAFB4"} [debug] [W3C (de6e3a7e)] Responding to client with driver.findElement() result: {"element-6066-11e4-a52e-4f735466cecf":"4F000000-0000-0000-F104-000000000000","ELEMENT":"4F000000-0000-0000-F104-000000000000"} [HTTP] <-- POST /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/element 200 2816 ms - 137 [HTTP] [HTTP] --> POST /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/element/4F000000-0000-0000-F104-000000000000/click [HTTP] {"id":"4F000000-0000-0000-F104-000000000000"} [W3C (de6e3a7e)] Driver proxy active, passing request on via HTTP proxy [debug] [XCUITest] Executing command 'proxyReqRes' [debug] [WD Proxy] Matched '/wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/element/4F000000-0000-0000-F104-000000000000/click' to command name 'click' [debug] [WD Proxy] Proxying [POST /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/element/4F000000-0000-0000-F104-000000000000/click] to [POST http://localhost:53867/session/62E34148-E0E3-4683-98C2-E5232D1AAFB4/element/4F000000-0000-0000-F104-000000000000/click] with body: {"id":"4F000000-0000-0000-F104-000000000000"} [debug] [WD Proxy] Got response with status 200: {"value":null,"sessionId":"62E34148-E0E3-4683-98C2-E5232D1AAFB4"} [WD Proxy] Replacing sessionId 62E34148-E0E3-4683-98C2-E5232D1AAFB4 with de6e3a7e-a850-4456-a8f7-c888a616755e [HTTP] <-- POST /wd/hub/session/de6e3a7e-a850-4456-a8f7-c888a616755e/element/4F000000-0000-0000-F104-000000000000/click 200 594 ms - 65 [HTTP] And I click on sign in # LoginSteps.iClickOnSignIn() Iam logged in Then I am logged in # LoginSteps.iLoggedIn() [BaseDriver] Shutting down because we waited 60 seconds for a command [Appium] Closing session, cause was 'New Command Timeout of 60 seconds expired. Try customizing the timeout using the 'newCommandTimeout' desired capability' [Appium] Removing session de6e3a7e-a850-4456-a8f7-c888a616755e from our master session list [DevCon Factory] Releasing connections for device on any port number [DevCon Factory] Found cached connections to release: [":53867"] [DevCon Factory] Releasing the listener for ':53867' [debug] [DevCon Factory] Cached connections count: 0 [debug] [XCUITest] Started background XCTest logs cleanup: find -E /private/var/folders -regex '.*/Session-WebDriverAgentRunner.*\.log$|.*/StandardOutputAndStandardError\.txt$' -type f -exec sh -c 'echo "" > "{}"' \; [XCUITest] Cleaning test logs in '/Users/suhasini/Library/Developer/Xcode/DerivedData/WebDriverAgent-/Logs' folder [debug] [iOS] Clearing log files [debug] [iOS] Deleting '/Users/suhasini/Library/Developer/Xcode/DerivedData/WebDriverAgent-/Logs'. Freeing 2.2M. [debug] [iOS] Finished clearing log files > Building 83% > :runFragmentation

Debug mode points to wrong device while connecting multiple devices with appiumServerCapability has "UUID" and "deviceName" specified.

Note: Please attach 2 devices to the system where we are debugging with the application installed.

{
  "belongsTo": "XXX",
  "runsOn": "device",
  "appDir": "app",
  "nativeApp":true,
  "optimusDesiredCapabilities": {
    "appiumServerCapabilities": {
      "app": "UIRefresh.ipa",
      "platformName": "iOS",
      "automationName": "XCUITest",
      "udid":"b31c1ad0774e4b366ac5e4286357a1957df19ab3",
      "deviceName":"iPhone8Auto"
   } 

Add a breakpoint and start debugging.

Expected: As we already provided uuid and device name the debug should point to specific device.
Actual: App start in another device and not point to device details specified under server capability.

This is not something blocking but good to have a look .

Optimus 2.0 hangs after running tests on first Android

The latest version of the optimusTemplate with Optimus 2.0 used hangs on provided tests with both distribution and fragmentation execution approaches with 2 Android devices.

All tests are executed on one device, but then gradle script hangs with following message in debug mode:
17:55:36.574 [DEBUG] [org.mongodb.driver.cluster] Checking status of localhost:27017 17:55:36.575 [DEBUG] [org.mongodb.driver.cluster] Updating cluster description to {type=STANDALONE, servers=[{address=localhost:27017, type=STANDALONE, roundTripTime=0.7 ms, state=CONNECTED}]
gist of the strage behaviour's log:
https://gist.github.com/ochubey/a4d7e8d15c5c7554eff29f20f0e9dc5a

UPD: issue resolved by upgrading optimus cli:
npm uninstall -g optimus-cli
npm install -g optimus-cli

UPD2: but it only fixes an issue for few test executions.
UPD3: another way to temporary'fix' this issue is to clean builds and devices collections data of mongodb.

Issue: Android 8.0 SDK API 26 Failed to Execute - "Cannot read the Android OS version 8.0.0 , is the device valid?? "

image

0:17:53.952 [LIFECYCLE] [class org.gradle.internal.buildevents.TaskExecutionLogger] :fragmentationReport FAILED
10:17:53.952 [INFO] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] :fragmentationReport (Thread[Daemon worker Thread 9,5,main]) completed. Took 0.005 secs.
10:17:53.952 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationWorkerRegistry] Worker root.17 completed (0 in use)
10:17:53.952 [DEBUG] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] Task worker [Thread[Daemon worker Thread 9,5,main]] finished, busy: 0.413 secs, idle: 0.002 secs
10:17:53.953 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
10:17:53.953 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] FAILURE: Build completed with 2 failures.
10:17:53.953 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
10:17:53.953 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 1: Task failed with an exception.
10:17:53.953 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] -----------
10:17:53.953 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * What went wrong:
10:17:53.953 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Execution failed for task ':runFragmentation'.
10:17:53.953 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Cannot read the Android OS version 8.0.0 , is the device valid??
10:17:53.953 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
10:17:53.953 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Try:
10:17:53.953 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Run with --stacktrace option to get the stack trace.
10:17:53.953 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] ==============================================================================
10:17:53.953 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
10:17:53.953 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 2: Task failed with an exception.
10:17:53.953 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] -----------
10:17:53.953 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * What went wrong:
10:17:53.953 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Execution failed for task ':fragmentationReport'.
10:17:53.953 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > java.lang.NullPointerException (no error message)
10:17:53.953 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
10:17:53.953 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Try:
10:17:53.953 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Run with --stacktrace option to get the stack trace.
10:17:53.953 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] ==============================================================================
10:17:53.953 [LIFECYCLE] [org.gradle.internal.buildevents.BuildResultLogger]
10:17:53.953 [LIFECYCLE] [org.gradle.internal.buildevents.BuildResultLogger] BUILD FAILED
10:17:53.953 [LIFECYCLE] [org.gradle.internal.buildevents.BuildResultLogger]
10:17:53.953 [LIFECYCLE] [org.gradle.internal.buildevents.BuildResultLogger] Total time: 1.132 secs

IOS- processArguments with array of arguments is not accepted as capability

When I pass processArguments with an array of argument, the same is not accepted as capability. Even though there is no exception thrown, but the process arguments are not passed to the application.
Looking at the code ,seems like the only capabilities that are being set are either Boolean, String or Integer
Below is how I am passing the processArguments

"appiumServerCapabilities": {
"app": "OpalTravel.ipa",
"platformName": "iOS",
"platformVersion": "11.1.2",
"deviceName": "iPhone 6",
"noReset":true,
"bundleID":"au.com.opal.travel",
"autoDismissAlerts": true,
"fullReset": false,
"newCommandTimeout":60,
"processArguments": {
"args": [
"__OTA_VAR_ENVIRONMENT=TEST"
]
}
}

"optimus doctor" is not checking the Android path and tools , while Appium says not installed Optimus doctor says "Android platform tools is installed."

Asits-MacBook-Pro:Library asit$ optimus doctor
ℹ Verifying if MongoDB is installed
✔ MongoDB is installed
ℹ Verifying if android platform tools is installed
✔ Android platform tools is installed.
ℹ Verifying if java is installed
✔ Java is installed.
ℹ Verifying if xcode is installed
✔ Found xcode on this machine.
ℹ Checking if FBSimctl is installed
✔ FBSimctl is installed
ℹ Verifying if gradle is installed
✔ Gradle is installed.
ℹ Verifying if appium is installed
✔ Appium is installed.
Asits-MacBook-Pro:Library asit$ optimus setup

Asits-MacBook-Pro:~ asit$ appium-doctor
info AppiumDoctor Appium Doctor v.1.4.3
info AppiumDoctor ### Diagnostic starting ###
info AppiumDoctor ✔ The Node.js binary was found at: /usr/local/bin/node
info AppiumDoctor ✔ Node version is 8.6.0
info AppiumDoctor ✔ Xcode is installed at: /Applications/Xcode.app/Contents/Developer
info AppiumDoctor ✔ Xcode Command Line Tools are installed.
info AppiumDoctor ✔ DevToolsSecurity is enabled.
info AppiumDoctor ✔ The Authorization DB is set up properly.
info AppiumDoctor ✔ Carthage was found at: /usr/local/bin/carthage
info AppiumDoctor ✔ HOME is set to: /Users/asit
WARN AppiumDoctor ✖ ANDROID_HOME is set to '/Users/asit/Library/Android/sdk' but this is NOT a valid path!
info AppiumDoctor ✔ JAVA_HOME is set to: /Library/Java/JavaVirtualMachines/jdk1.8.0_141.jdk/Contents/Home
WARN AppiumDoctor ✖ adb could NOT be found at '/Users/asit/Library/Android/sdk/platform-tools/adb'!
WARN AppiumDoctor ✖ android could NOT be found at '/Users/asit/Library/Android/sdk/tools/android'!
WARN AppiumDoctor ✖ emulator could NOT be found at '/Users/asit/Library/Android/sdk/tools/emulator'!
info AppiumDoctor ✔ Bin directory of $JAVA_HOME is set

Getting error "Unable to start WebDriverAgent session because of xcodebuild failure:" if run scripts together in a suite.

Hello,

My scripts work fine if I run them individually but if I am running these in a suite using tags, it fails due to the issue with WebDriverException error.

I am running scripts with command line
./gradlew runFragmentation -DtestFeed=iOS-qa -Dtags=@run

ISSUE:
org.openqa.selenium.WebDriverException: It is impossible to create a new session because 'createSession' which takes HttpClient, InputStream and long was not found or it is not accessible
Build info: version: '3.12.0', revision: '7c6e0b3', time: '2018-05-08T14:04:26.12Z'
System info: host: 'nsur01mac028', ip: 'fe80:0:0:0:103d:f95b:dcb3:d71f%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.13.6', java.version: '1.8.0_181'
Driver info: driver.version: IOSDriver

Environment
Appium version (or git revision) that exhibits the issue: 1.9.1
Last Appium version that did not exhibit the issue (if applicable):
Desktop OS/version used to run Appium: 10.13.6
Node.js version (unless using Appium.app|exe):v10.10.0
Mobile platform/version under test: IPhone 8 plus (12.1)
Real device or emulator/simulator: Real
Appium CLI or Appium.app|exe: CLI and exe both

Is this an issue with how we are initiating the web driver agent? Kindly help!!

Incorrect version of the device is written into DB

Incorrect version of the devices is written into the DB.
What I get into the console:

Executing MongoMain
Getting started with mongo main
Running command ---- adb devices -l
command output -- List of devices attached
udid_of_first_device       device usb:337641472X product:zerofltexx model:SM_G920F device:zeroflte
udid_of_second_device       device usb:336592896X product:angler model:Nexus_6P device:angler
Running command ---- adb -s udid_of_first_device shell getprop ro.build.version.release
command output -- SM-G920F
5.1.1
Running command ---- adb -s udid_of_second_device shell getprop ro.build.version.release
command output -- Nexus 6P
6.0.1

MongoClient:1378389093

what is saved into the DB:

{
    "_id" : ObjectId("598dcbf502dd590a44692a24"),
    "platform" : "ANDROID",
    "deviceName" : "SM-G920F",
    "status" : "Available",
    "platformVersion" : "6.0.1", //but should be 5.1.1
    "runsOn" : "DEVICE",
    "udid" : "udid_of_first_device",
    "buildId" : ObjectId("598dcbf402dd590a44692a23"),
}
{
    "_id" : ObjectId("598dcbf502dd590a44692a25"),
    "platform" : "ANDROID",
    "deviceName" : "Nexus 6P",
    "status" : "Available",
    "platformVersion" : "6.0.1",
    "runsOn" : "DEVICE",
    "udid" : "udid_of_second_device",
    "buildId" : ObjectId("598dcbf402dd590a44692a23"),
}

Question: Running tests parallel on both the platforms at the same time

Hi Team,

Thank you for the framework which is currently running parallel on the iOS and Android independently.

My requirement is to run the tests parallel on both iOS and Android at the same tinme using a single testfeed.

Could you please let me know is this feature is available currently, and if available could you help me in achieving.

Building is failing

Hi,
First of all thanks for developing such a beautiful framework for mobile automation. Its always a challenge to put all sorts of technologies to make a stable mobile test automation solution. out of curiosity, i was trying this today and getting the following error. It will be great if you can suggest me the fix for this. Thanks. Sampad.
Here i am running this for android.
gradle runFragmentation -DtestFeed=HelloOptimusAndroid -Dtags=@helloOptimus

Task :compileTestJava
Note: /Users/sampadrout/AMA_New/src/test/java/pages/BasePage.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

Task :runFragmentation
Executing MongoMain

Task :fragmentationReport
MongoClient:1681325373

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.

  • What went wrong:
    Execution failed for task ':runFragmentation'.

Timed out after 30000 ms while waiting for a server that matches ReadPreferenceServerSelector{readPreference=primary}. Client view of cluster state is {type=UNKNOWN, servers=[{address=localhost:27017, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSocketOpenException: Exception opening socket}, caused by {java.net.ConnectException: Connection refused}}]

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
    ==============================================================================

2: Task failed with an exception.

  • What went wrong:
    Execution failed for task ':fragmentationReport'.

Timed out after 30000 ms while waiting for a server that matches ReadPreferenceServerSelector{readPreference=primary}. Client view of cluster state is {type=UNKNOWN, servers=[{address=localhost:27017, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSocketOpenException: Exception opening socket}, caused by {java.net.ConnectException: Connection refused}}]

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
    ==============================================================================

BUILD FAILED in 6m 24s
7 actionable tasks: 7 executed

The framework gets stuck and sits Idle

I have noticed that many times when something unexpectedly fails , the framework just sits idle and there is no-way to safely exit the execution and also since no report is generated I loose all the execution data prior to the failure.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.