Skip to content

Instantly share code, notes, and snippets.

@firmanrosid
Created March 15, 2024 02:16
Show Gist options
  • Save firmanrosid/23abcc906f7c1d521cfbaac69beed692 to your computer and use it in GitHub Desktop.
Save firmanrosid/23abcc906f7c1d521cfbaac69beed692 to your computer and use it in GitHub Desktop.
log wdio
~/Repositories/firmansyahrosid/sample-project master* ❯ npm run test 09:27:28 PM
> test
> wdio run ./wdio.conf.ts
Execution of 2 workers started at 2024-03-14T14:27:35.364Z
2024-03-14T14:27:35.412Z DEBUG @wdio/utils:initializeServices: initialize service "appium" as NPM package
2024-03-14T14:27:35.435Z INFO @wdio/cli:launcher: Run onPrepare hook
2024-03-14T14:27:35.437Z INFO @wdio/appium-service: Will spawn Appium process: appium --base-path / --address 192.168.0.5 --port 4723 --use-plugins device-farm,appium-dashboard --allow-cors
2024-03-14T14:27:41.932Z ERROR @wdio/appium-service: [HTTP] Could not start REST http interface listener. The requested port may already be in use. Please make sure there is no other instance of this server running already.
2024-03-14T14:27:41.933Z ERROR @wdio/cli:utils: A service failed in the 'onPrepare' hook
Error: [HTTP] Could not start REST http interface listener. The requested port may already be in use. Please make sure there is no other instance of this server running already.
at Socket.<anonymous> (file:///Users/firmansyah/Repositories/firmansyahrosid/sample-project/node_modules/@wdio/appium-service/build/launcher.js:172:28)
at Object.onceWrapper (node:events:633:26)
at Socket.emit (node:events:518:28)
at Socket.emit (node:domain:488:12)
at addChunk (node:internal/streams/readable:559:12)
at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)
at Socket.Readable.push (node:internal/streams/readable:390:5)
at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)
Continue...
2024-03-14T14:27:41.934Z DEBUG @wdio/cli:utils: Finished to run "onPrepare" hook in 6499ms
2024-03-14T14:27:41.935Z INFO @wdio/cli:launcher: Run onWorkerStart hook
2024-03-14T14:27:41.935Z INFO @wdio/cli:launcher: Run onWorkerStart hook
2024-03-14T14:27:41.935Z DEBUG @wdio/cli:utils: Finished to run "onWorkerStart" hook in 0ms
2024-03-14T14:27:41.936Z DEBUG @wdio/cli:utils: Finished to run "onWorkerStart" hook in 1ms
2024-03-14T14:27:41.936Z INFO @wdio/local-runner: Start worker 0-0 with arg: run,./wdio.conf.ts
2024-03-14T14:27:41.938Z DEBUG @wdio/local-runner: Send command run to worker with cid "0-0"
2024-03-14T14:27:41.939Z INFO @wdio/local-runner: Start worker 0-1 with arg: run,./wdio.conf.ts
2024-03-14T14:27:41.939Z DEBUG @wdio/local-runner: Send command run to worker with cid "0-1"
2024-03-14T14:27:41.944Z ERROR @wdio/appium-service: Appium exited before timeout (exit code: 1)
[HTTP] Could not start REST http interface listener. The requested port may already be in use. Please make sure there is no other instance of this server running already.
[0-1] 2024-03-14T14:27:42.625Z INFO @wdio/local-runner: Run worker command: run
[0-0] 2024-03-14T14:27:42.625Z INFO @wdio/local-runner: Run worker command: run
[0-1] 2024-03-14T14:27:42.669Z DEBUG @wdio/runner: init remote session
[0-0] 2024-03-14T14:27:42.670Z DEBUG @wdio/runner: init remote session
[0-1] 2024-03-14T14:27:42.671Z DEBUG @wdio/utils:initializeServices: initialize service "appium" as NPM package
[0-0] 2024-03-14T14:27:42.671Z DEBUG @wdio/utils:initializeServices: initialize service "appium" as NPM package
[0-0] RUNNING in iOS - file:///src/features/test1.feature
[0-0] 2024-03-14T14:27:43.032Z DEBUG @wdio/runner: init remote session
[0-1] RUNNING in iOS - file:///src/features/test2.feature
[0-1] 2024-03-14T14:27:43.032Z DEBUG @wdio/runner: init remote session
[0-0] 2024-03-14T14:27:43.032Z INFO webdriver: Initiate new session using the WebDriver protocol
[0-0] 2024-03-14T14:27:43.032Z INFO @wdio/utils: Connecting to existing driver at http://127.0.0.1:4723/
[0-1] 2024-03-14T14:27:43.032Z INFO webdriver: Initiate new session using the WebDriver protocol
[0-1] 2024-03-14T14:27:43.032Z INFO @wdio/utils: Connecting to existing driver at http://127.0.0.1:4723/
[0-1] 2024-03-14T14:27:43.036Z INFO webdriver: [POST] http://127.0.0.1:4723/session
[0-0] 2024-03-14T14:27:43.036Z INFO webdriver: [POST] http://127.0.0.1:4723/session
[0-1] 2024-03-14T14:27:43.036Z INFO webdriver: DATA {
[0-1] capabilities: {
[0-1] alwaysMatch: {
[0-1] platformName: 'iOS',
[0-1] 'appium:automationName': 'XCUITest',
[0-1] 'appium:bundleId': 'com.apple.mobilesafari',
[0-1] 'appium:autoAcceptAlerts': true,
[0-1] 'appium:usePrebuiltWDA': true,
[0-1] 'appium:screenshotQuality': 2,
[0-1] 'appium:autoLaunch': false,
[0-1] 'appium:deviceName': 'iPhone 15 Pro',
[0-1] 'appium:platformVersion': '17.2',
[0-1] 'appium:noReset': true,
[0-1] 'appium:fullReset': false,
[0-1] 'appium:newCommandTimeout': 120,
[0-1] 'appium:locale': 'id_ID',
[0-1] 'appium:iPhoneOnly': true,
[0-1] 'appium:udids': 'FD156DDB-7C0B-43FF-989A-00EDDC072DA0,2FC39954-3BAC-45A8-8B10-2BE8718DC1F5'
[0-1] },
[0-1] firstMatch: [ {} ]
[0-1] },
[0-1] desiredCapabilities: {
[0-1] platformName: 'iOS',
[0-1] 'appium:automationName': 'XCUITest',
[0-1] 'appium:bundleId': 'com.apple.mobilesafari',
[0-1] 'appium:autoAcceptAlerts': true,
[0-1] 'appium:usePrebuiltWDA': true,
[0-1] 'appium:screenshotQuality': 2,
[0-1] 'appium:autoLaunch': false,
[0-1] 'appium:deviceName': 'iPhone 15 Pro',
[0-1] 'appium:platformVersion': '17.2',
[0-1] 'appium:noReset': true,
[0-1] 'appium:fullReset': false,
[0-1] 'appium:newCommandTimeout': 120,
[0-1] 'appium:locale': 'id_ID',
[0-1] 'appium:iPhoneOnly': true,
[0-1] 'appium:udids': 'FD156DDB-7C0B-43FF-989A-00EDDC072DA0,2FC39954-3BAC-45A8-8B10-2BE8718DC1F5'
[0-1] }
[0-1] }
[0-0] 2024-03-14T14:27:43.036Z INFO webdriver: DATA {
[0-0] capabilities: {
[0-0] alwaysMatch: {
[0-0] platformName: 'iOS',
[0-0] 'appium:automationName': 'XCUITest',
[0-0] 'appium:bundleId': 'com.apple.mobilesafari',
[0-0] 'appium:autoAcceptAlerts': true,
[0-0] 'appium:usePrebuiltWDA': true,
[0-0] 'appium:screenshotQuality': 2,
[0-0] 'appium:autoLaunch': false,
[0-0] 'appium:deviceName': 'iPhone 15 Pro',
[0-0] 'appium:platformVersion': '17.2',
[0-0] 'appium:noReset': true,
[0-0] 'appium:fullReset': false,
[0-0] 'appium:newCommandTimeout': 120,
[0-0] 'appium:locale': 'id_ID',
[0-0] 'appium:iPhoneOnly': true,
[0-0] 'appium:udids': 'FD156DDB-7C0B-43FF-989A-00EDDC072DA0,2FC39954-3BAC-45A8-8B10-2BE8718DC1F5'
[0-0] },
[0-0] firstMatch: [ {} ]
[0-0] },
[0-0] desiredCapabilities: {
[0-0] platformName: 'iOS',
[0-0] 'appium:automationName': 'XCUITest',
[0-0] 'appium:bundleId': 'com.apple.mobilesafari',
[0-0] 'appium:autoAcceptAlerts': true,
[0-0] 'appium:usePrebuiltWDA': true,
[0-0] 'appium:screenshotQuality': 2,
[0-0] 'appium:autoLaunch': false,
[0-0] 'appium:deviceName': 'iPhone 15 Pro',
[0-0] 'appium:platformVersion': '17.2',
[0-0] 'appium:noReset': true,
[0-0] 'appium:fullReset': false,
[0-0] 'appium:newCommandTimeout': 120,
[0-0] 'appium:locale': 'id_ID',
[0-0] 'appium:iPhoneOnly': true,
[0-0] 'appium:udids': 'FD156DDB-7C0B-43FF-989A-00EDDC072DA0,2FC39954-3BAC-45A8-8B10-2BE8718DC1F5'
[0-0] }
[0-0] }
[0-1] 2024-03-14T14:27:43.147Z ERROR webdriver: RequestError: connect ECONNREFUSED 127.0.0.1:4723
[0-1] at ClientRequest.<anonymous> (file:///Users/firmansyah/Repositories/firmansyahrosid/sample-project/node_modules/got/dist/source/core/index.js:790:107)
[0-1] at Object.onceWrapper (node:events:633:26)
[0-1] at ClientRequest.emit (node:events:530:35)
[0-1] at ClientRequest.emit (node:domain:488:12)
[0-1] at Socket.socketErrorListener (node:_http_client:495:9)
[0-1] at Socket.emit (node:events:518:28)
[0-1] at Socket.emit (node:domain:488:12)
[0-1] at emitErrorNT (node:internal/streams/destroy:169:8)
[0-1] at emitErrorCloseNT (node:internal/streams/destroy:128:3)
[0-1] at processTicksAndRejections (node:internal/process/task_queues:82:21)
[0-1] at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1595:16)
[0-1] 2024-03-14T14:27:43.148Z ERROR @wdio/runner: Error: Failed to create session.
[0-1] Unable to connect to "http://127.0.0.1:4723/", make sure browser driver is running on that address.
[0-1] It seems like the service failed to start or is rejecting any connections.
[0-1] at startWebDriverSession (file:///Users/firmansyah/Repositories/firmansyahrosid/sample-project/node_modules/webdriver/build/utils.js:69:15)
[0-1] at processTicksAndRejections (node:internal/process/task_queues:95:5)
[0-1] at async Function.newSession (file:///Users/firmansyah/Repositories/firmansyahrosid/sample-project/node_modules/webdriver/build/index.js:20:45)
[0-1] at async remote (file:///Users/firmansyah/Repositories/firmansyahrosid/sample-project/node_modules/webdriverio/build/index.js:45:22)
[0-1] at async Runner._startSession (file:///Users/firmansyah/Repositories/firmansyahrosid/sample-project/node_modules/@wdio/runner/build/index.js:241:29)
[0-1] at async Runner._initSession (file:///Users/firmansyah/Repositories/firmansyahrosid/sample-project/node_modules/@wdio/runner/build/index.js:207:25)
[0-1] at async Runner.run (file:///Users/firmansyah/Repositories/firmansyahrosid/sample-project/node_modules/@wdio/runner/build/index.js:88:19)
[0-1] 2024-03-14T14:27:43.149Z DEBUG @wdio/utils:shim: Finished to run "after" hook in 0ms
[0-0] 2024-03-14T14:27:43.149Z ERROR webdriver: RequestError: connect ECONNREFUSED 127.0.0.1:4723
[0-0] at ClientRequest.<anonymous> (file:///Users/firmansyah/Repositories/firmansyahrosid/sample-project/node_modules/got/dist/source/core/index.js:790:107)
[0-0] at Object.onceWrapper (node:events:633:26)
[0-0] at ClientRequest.emit (node:events:530:35)
[0-0] at ClientRequest.emit (node:domain:488:12)
[0-0] at Socket.socketErrorListener (node:_http_client:495:9)
[0-0] at Socket.emit (node:events:518:28)
[0-0] at Socket.emit (node:domain:488:12)
[0-0] at emitErrorNT (node:internal/streams/destroy:169:8)
[0-0] at emitErrorCloseNT (node:internal/streams/destroy:128:3)
[0-0] at processTicksAndRejections (node:internal/process/task_queues:82:21)
[0-0] at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1595:16)
[0-0] 2024-03-14T14:27:43.149Z ERROR @wdio/runner: Error: Failed to create session.
[0-0] Unable to connect to "http://127.0.0.1:4723/", make sure browser driver is running on that address.
[0-0] It seems like the service failed to start or is rejecting any connections.
[0-0] at startWebDriverSession (file:///Users/firmansyah/Repositories/firmansyahrosid/sample-project/node_modules/webdriver/build/utils.js:69:15)
[0-0] at processTicksAndRejections (node:internal/process/task_queues:95:5)
[0-0] at async Function.newSession (file:///Users/firmansyah/Repositories/firmansyahrosid/sample-project/node_modules/webdriver/build/index.js:20:45)
[0-0] at async remote (file:///Users/firmansyah/Repositories/firmansyahrosid/sample-project/node_modules/webdriverio/build/index.js:45:22)
[0-0] at async Runner._startSession (file:///Users/firmansyah/Repositories/firmansyahrosid/sample-project/node_modules/@wdio/runner/build/index.js:241:29)
[0-0] at async Runner._initSession (file:///Users/firmansyah/Repositories/firmansyahrosid/sample-project/node_modules/@wdio/runner/build/index.js:207:25)
[0-0] at async Runner.run (file:///Users/firmansyah/Repositories/firmansyahrosid/sample-project/node_modules/@wdio/runner/build/index.js:88:19)
[0-0] 2024-03-14T14:27:43.150Z DEBUG @wdio/utils:shim: Finished to run "after" hook in 0ms
2024-03-14T14:27:43.258Z DEBUG @wdio/local-runner: Runner 0-1 finished with exit code 1
[0-1] FAILED in iOS - file:///src/features/test2.feature
2024-03-14T14:27:43.258Z INFO @wdio/cli:launcher: Run onWorkerEnd hook
2024-03-14T14:27:43.258Z DEBUG @wdio/cli:utils: Finished to run "onWorkerEnd" hook in 0ms
2024-03-14T14:27:43.259Z DEBUG @wdio/local-runner: Runner 0-0 finished with exit code 1
[0-0] FAILED in iOS - file:///src/features/test1.feature
2024-03-14T14:27:43.259Z INFO @wdio/cli:launcher: Run onWorkerEnd hook
2024-03-14T14:27:43.259Z DEBUG @wdio/cli:utils: Finished to run "onWorkerEnd" hook in 0ms
2024-03-14T14:27:43.259Z INFO @wdio/cli:launcher: Run onComplete hook
2024-03-14T14:27:43.259Z DEBUG @wdio/cli:utils: Finished to run "onComplete" hook in 0ms
Spec Files: 0 passed, 2 failed, 2 total (100% completed) in 00:00:07
2024-03-14T14:27:43.260Z INFO @wdio/local-runner: Shutting down spawned worker
2024-03-14T14:27:43.511Z INFO @wdio/local-runner: Waiting for 0 to shut down gracefully
2024-03-14T14:27:43.512Z INFO @wdio/local-runner: shutting down
~/Repositories/firmansyahrosid/sample-project master* 11s ❯ 09:27:43 PM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment