Skip to content

Instantly share code, notes, and snippets.

@Phoenix124
Created November 26, 2018 09:45
Show Gist options
  • Save Phoenix124/a7666f78218dd9f27396e3ae6b5eded3 to your computer and use it in GitHub Desktop.
Save Phoenix124/a7666f78218dd9f27396e3ae6b5eded3 to your computer and use it in GitHub Desktop.
[HTTP] <-- POST /wd/hub/session/083ca92c-902e-41bb-adae-19802017f73c/appium/device/terminate_app 200 1075 ms - 14
[HTTP]
[HTTP] --> POST /wd/hub/session/083ca92c-902e-41bb-adae-19802017f73c/execute/sync
[HTTP] {"script":"mobile: activateApp","args":[{"bundleId":"com."}]}
[debug] [W3C] Calling AppiumDriver.execute() with args: ["mobile: activateApp",[{"bundleId":"com."}],"083ca92c-902e-41bb-adae-19802017f73c"]
[debug] [XCUITest] Executing command 'execute'
[debug] [JSONWP Proxy] Proxying [POST /wda/apps/activate] to [POST http://localhost:8100/session/8711B371-B9D8-4446-B241-81D97BF6E4ED/wda/apps/activate] with body: {"bundleId":"com."}
[debug] [RemoteDebugger] Notified that new application 'PID:4412' has connected
[debug] [RemoteDebugger] Found app id key 'PID:4412' for bundle 'com.'
[debug] [RemoteDebugger] Page changed: {}
[debug] [iOS] Remote debugger notified us of a new page listing: {"appIdKey":"4412","pageArray":[]}
[debug] [iOS] No key id found. Choosing first id from page array
[debug] [iOS] Page change not referring to currently selected app, ignoring.
[debug] [RemoteDebugger] Notified that application 'PID:4412' has been updated.
[debug] [JSONWP Proxy] Got response with status 200: {"value":{},"sessionId":"8711B371-B9D8-4446-B241-81D97BF6E4ED","status":0}
[debug] [W3C] Responding to client with driver.execute() result: {}
[HTTP] <-- POST /wd/hub/session/083ca92c-902e-41bb-adae-19802017f73c/execute/sync 200 8830 ms - 12
[HTTP]
[debug] [RemoteDebugger] Notified that new application 'PID:4415' has connected
[debug] [RemoteDebugger] Received page change notice for app 'PID:4415' but listening for 'PID:4412'. Ignoring.
[debug] [RemoteDebugger] Notified that application 'PID:4415' has been updated.
[debug] [RemoteDebugger] Page changed: {"1":{"WIRPageIdentifierKey":1,"WIRTitleKey":"JSContext","WIRTypeKey":"WIRTypeJavaScript"}}
[debug] [iOS] Remote debugger notified us of a new page listing: {"appIdKey":"4412","pageArray":[]}
[debug] [iOS] No key id found. Choosing first id from page array
[debug] [iOS] Page change not referring to currently selected app, ignoring.
[debug] [RemoteDebugger] Received page change notice for app 'PID:4415' but listening for 'PID:4412'. Ignoring.
[debug] [RemoteDebugger] Page changed: {}
[debug] [iOS] Remote debugger notified us of a new page listing: {"appIdKey":"4412","pageArray":[]}
[debug] [iOS] No key id found. Choosing first id from page array
[debug] [iOS] Page change not referring to currently selected app, ignoring.
[debug] [RemoteDebugger] Page changed: {"2":{"WIRPageIdentifierKey":2,"WIRTitleKey":"JSContext","WIRTypeKey":"WIRTypeJavaScript"}}
[debug] [iOS] Remote debugger notified us of a new page listing: {"appIdKey":"4412","pageArray":[]}
[debug] [iOS] No key id found. Choosing first id from page array
[debug] [iOS] Page change not referring to currently selected app, ignoring.
[debug] [RemoteDebugger] Page changed: {}
[debug] [iOS] Remote debugger notified us of a new page listing: {"appIdKey":"4412","pageArray":[]}
[debug] [iOS] No key id found. Choosing first id from page array
[debug] [iOS] Page change not referring to currently selected app, ignoring.
[debug] [RemoteDebugger] Page changed: {"3":{"WIRPageIdentifierKey":3,"WIRTitleKey":"JSContext","WIRTypeKey":"WIRTypeJavaScript"}}
[debug] [iOS] Remote debugger notified us of a new page listing: {"appIdKey":"4412","pageArray":[]}
[debug] [iOS] No key id found. Choosing first id from page array
[debug] [iOS] Page change not referring to currently selected app, ignoring.
[debug] [RemoteDebugger] Received page change notice for app 'PID:4415' but listening for 'PID:4412'. Ignoring.
[debug] [RemoteDebugger] Page changed: {}
[debug] [iOS] Remote debugger notified us of a new page listing: {"appIdKey":"4412","pageArray":[]}
[debug] [iOS] No key id found. Choosing first id from page array
[debug] [iOS] Page change not referring to currently selected app, ignoring.
[debug] [RemoteDebugger] Page changed: {"4":{"WIRPageIdentifierKey":4,"WIRTitleKey":"JSContext","WIRTypeKey":"WIRTypeJavaScript"}}
[debug] [iOS] Remote debugger notified us of a new page listing: {"appIdKey":"4412","pageArray":[]}
[debug] [iOS] No key id found. Choosing first id from page array
[debug] [iOS] Page change not referring to currently selected app, ignoring.
[debug] [RemoteDebugger] Page changed: {}
[debug] [iOS] Remote debugger notified us of a new page listing: {"appIdKey":"4412","pageArray":[]}
[debug] [iOS] No key id found. Choosing first id from page array
[debug] [iOS] Page change not referring to currently selected app, ignoring.
[BaseDriver] Shutting down because we waited 90 seconds for a command
[Appium] Closing session, cause was 'New Command Timeout of 90 seconds expired. Try customizing the timeout using the 'newCommandTimeout' desired capability'
[Appium] Removing session 083ca92c-902e-41bb-adae-19802017f73c from our master session list
[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/maksim/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs' folder
[debug] [iOS] Clearing log files
[debug] [iOS] Deleting '/Users/maksim/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs'. Freeing 240K.
[debug] [iOS] Finished clearing log files
[debug] [XCUITest] In a web session. Removing remote debugger
[debug] [RemoteDebugger] Disconnecting from remote debugger
[debug] [RemoteDebugger] Cleaning up listeners
[debug] [iOSLog] Stopping iOS log capture
[HTTP] --> GET /wd/hub/session/083ca92c-902e-41bb-adae-19802017f73c
[HTTP] {}
[debug] [W3C] Encountered internal error running command: NoSuchDriverError: A session is either terminated or not started
[debug] [W3C] at asyncHandler$ (/usr/local/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/protocol.js:260:15)
[debug] [W3C] at tryCatch (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
[debug] [W3C] at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
[debug] [W3C] at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
[debug] [W3C] at invoke (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
[debug] [W3C] at enqueueResult (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:185:17)
[debug] [W3C] at new Promise (<anonymous>)
[debug] [W3C] at new F (/usr/local/lib/node_modules/appium/node_modules/core-js/library/modules/$.export.js:30:36)
[debug] [W3C] at AsyncIterator.enqueue (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:184:12)
[debug] [W3C] at AsyncIterator.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
[debug] [W3C] at Object.runtime.async (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:209:12)
[debug] [W3C] at asyncHandler (/usr/local/lib/node_modules/appium/node_modules/appium-base-driver/build/lib/protocol/protocol.js:380:32)
[debug] [W3C] at /usr/local/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/protocol.js:446:15
[debug] [W3C] at Layer.handle [as handle_request] (/usr/local/lib/node_modules/appium/node_modules/express/lib/router/layer.js:95:5)
[debug] [W3C] at next (/usr/local/lib/node_modules/appium/node_modules/express/lib/router/route.js:137:13)
[debug] [W3C] at Route.dispatch (/usr/local/lib/node_modules/appium/node_modules/express/lib/router/route.js:112:3)
[debug] [W3C] at Layer.handle [as handle_request] (/usr/local/lib/node_modules/appium/node_modules/express/lib/router/layer.js:95:5)
[debug] [W3C] at /usr/local/lib/node_modules/appium/node_modules/express/lib/router/index.js:281:22
[debug] [W3C] at param (/usr/local/lib/node_modules/appium/node_modules/express/lib/router/index.js:354:14)
[debug] [W3C] at param (/usr/local/lib/node_modules/appium/node_modules/express/lib/router/index.js:365:14)
[debug] [W3C] at Function.process_params (/usr/local/lib/node_modules/appium/node_modules/express/lib/router/index.js:410:3)
[debug] [W3C] at next (/usr/local/lib/node_modules/appium/node_modules/express/lib/router/index.js:275:10)
[debug] [W3C] at logger (/usr/local/lib/node_modules/appium/node_modules/morgan/index.js:144:5)
[debug] [W3C] at Layer.handle [as handle_request] (/usr/local/lib/node_modules/appium/node_modules/express/lib/router/layer.js:95:5)
[debug] [W3C] at trim_prefix (/usr/local/lib/node_modules/appium/node_modules/express/lib/router/index.js:317:13)
[debug] [W3C] at /usr/local/lib/node_modules/appium/node_modules/express/lib/router/index.js:284:7
[debug] [W3C] at Function.process_params (/usr/local/lib/node_modules/appium/node_modules/express/lib/router/index.js:335:12)
[debug] [W3C] at next (/usr/local/lib/node_modules/appium/node_modules/express/lib/router/index.js:275:10)
[debug] [W3C] at jsonParser (/usr/local/lib/node_modules/appium/node_modules/body-parser/lib/types/json.js:110:7)
[debug] [W3C] at Layer.handle [as handle_request] (/usr/local/lib/node_modules/appium/node_modules/express/lib/router/layer.js:95:5)
[debug] [W3C] at trim_prefix (/usr/local/lib/node_modules/appium/node_modules/express/lib/router/index.js:317:13)
[debug] [W3C] at /usr/local/lib/node_modules/appium/node_modules/express/lib/router/index.js:284:7
[debug] [W3C] at Function.process_params (/usr/local/lib/node_modules/appium/node_modules/express/lib/router/index.js:335:12)
[debug] [W3C] at next (/usr/local/lib/node_modules/appium/node_modules/express/lib/router/index.js:275:10)
[debug] [W3C] at Layer.handle [as handle_request] (/usr/local/lib/node_modules/appium/node_modules/express/lib/router/layer.js:91:12)
[debug] [W3C] at trim_prefix (/usr/local/lib/node_modules/appium/node_modules/express/lib/router/index.js:317:13)
[debug] [W3C] at /usr/local/lib/node_modules/appium/node_modules/express/lib/router/index.js:284:7
[debug] [W3C] at Function.process_params (/usr/local/lib/node_modules/appium/node_modules/express/lib/router/index.js:335:12)
[debug] [W3C] at next (/usr/local/lib/node_modules/appium/node_modules/express/lib/router/index.js:275:10)
[debug] [W3C] at Layer.handle [as handle_request] (/usr/local/lib/node_modules/appium/node_modules/express/lib/router/layer.js:91:12)
[debug] [W3C] at trim_prefix (/usr/local/lib/node_modules/appium/node_modules/express/lib/router/index.js:317:13)
[debug] [W3C] at /usr/local/lib/node_modules/appium/node_modules/express/lib/router/index.js:284:7
[debug] [W3C] at Function.process_params (/usr/local/lib/node_modules/appium/node_modules/express/lib/router/index.js:335:12)
[debug] [W3C] at next (/usr/local/lib/node_modules/appium/node_modules/express/lib/router/index.js:275:10)
[debug] [W3C] at methodOverride (/usr/local/lib/node_modules/appium/node_modules/method-override/index.js:65:14)
[debug] [W3C] at Layer.handle [as handle_request] (/usr/local/lib/node_modules/appium/node_modules/express/lib/router/layer.js:95:5)
[debug] [W3C] at trim_prefix (/usr/local/lib/node_modules/appium/node_modules/express/lib/router/index.js:317:13)
[debug] [W3C] at /usr/local/lib/node_modules/appium/node_modules/express/lib/router/index.js:284:7
[debug] [W3C] at Function.process_params (/usr/local/lib/node_modules/appium/node_modules/express/lib/router/index.js:335:12)
[debug] [W3C] at next (/usr/local/lib/node_modules/appium/node_modules/express/lib/router/index.js:275:10)
[debug] [W3C] at urlencodedParser (/usr/local/lib/node_modules/appium/node_modules/body-parser/lib/types/urlencoded.js:91:7)
[debug] [W3C] at Layer.handle [as handle_request] (/usr/local/lib/node_modules/appium/node_modules/express/lib/router/layer.js:95:5)
[HTTP] <-- GET /wd/hub/session/083ca92c-902e-41bb-adae-19802017f73c 404 48 ms - 5898
[HTTP]
org.openqa.selenium.NoSuchSessionException: A session is either terminated or not started
Build info: version: '3.12.0', revision: '7c6e0b3', time: '2018-05-08T14:04:26.12Z'
System info: host: 'iMac-Maksim.local', ip: 'fe80:0:0:0:18ac:14fb:349f:a1c0%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.13.6', java.version: '1.8.0_192'
Driver info: io.appium.java_client.ios.IOSDriver
Capabilities {app: /Users/maksim/IdeaProjects/..., autoWebview: true, automationName: XCUITest, browserName: , clearSystemFiles: true, databaseEnabled: false, deviceName: iPhone XS Max, fullReset: false, javascriptEnabled: true, launchTimeout: 90, locationContextEnabled: false, networkConnectionEnabled: false, newCommandTimeout: 90, noReset: false, platform: MAC, platformName: iOS, platformVersion: 12.1, printPageSourceOnFindFailure: true, takesScreenshot: true, udid: B5810411-7BBD-4688-A211-982..., version: 12.1, webStorageEnabled: false, webviewConnectRetries: 20}
Session ID: 083ca92c-902e-41bb-adae-19802017f73c
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.createException(W3CHttpResponseCodec.java:187)
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:122)
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:49)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:158)
at io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:231)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:543)
at io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:46)
at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:1)
at io.appium.java_client.ios.IOSDriver.execute(IOSDriver.java:1)
at io.appium.java_client.HasSessionDetails.getSessionDetails(HasSessionDetails.java:39)
at io.appium.java_client.HasSessionDetails.getSessionDetail(HasSessionDetails.java:56)
at io.appium.java_client.HasSessionDetails.getPlatformName(HasSessionDetails.java:65)
at io.appium.java_client.pagefactory.AppiumFieldDecorator.<init>(AppiumFieldDecorator.java:96)
at io.appium.java_client.pagefactory.AppiumFieldDecorator.<init>(AppiumFieldDecorator.java:144)
at org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:149)
at io.qameta.allure.aspects.StepsAspects.step(StepsAspects.java:51)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:124)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:583)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:719)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:989)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)
at org.testng.TestRunner.privateRun(TestRunner.java:648)
at org.testng.TestRunner.run(TestRunner.java:505)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:455)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:450)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:415)
at org.testng.SuiteRunner.run(SuiteRunner.java:364)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:84)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1208)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1137)
at org.testng.TestNG.runSuites(TestNG.java:1049)
at org.testng.TestNG.run(TestNG.java:1017)
at org.testng.IDEARemoteTestNG.run(IDEARemoteTestNG.java:73)
at org.testng.RemoteTestNGStarter.main(RemoteTestNGStarter.java:123)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment