Replies: 1 comment 1 reply
-
Which |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When I try to run a trial test, I have an error - ERROR webdriver: RequestError: connect ECONNREFUSED 127.0.0.1:51238.The port is different all the time
#wdio.conf:
wdioConf.txt
Execution of 1 workers started at 2024-04-08T12:45:47.534Z
#full log with error:
2024-04-08T12:45:47.554Z INFO @wdio/cli:launcher: Run onPrepare hook
2024-04-08T12:45:47.564Z INFO @wdio/appium-service: Will spawn Appium process: cmd /c node C:\Repo\workSpace\node_modules\appium\index.js --base-path /
2024-04-08T12:45:48.926Z 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-04-08T12:45:48.927Z 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.
Continue...
2024-04-08T12:45:48.930Z INFO @wdio/cli:launcher: Run onWorkerStart hook
2024-04-08T12:45:48.932Z INFO @wdio/local-runner: Start worker 0-0 with arg:
2024-04-08T12:45:48.954Z 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-0] 2024-04-08T12:45:50.188Z INFO @wdio/local-runner: Run worker command: run
[0-0] RUNNING in Android - file:///C:/Repo/workSpace/specs/sample.js
[0-0] 2024-04-08T12:45:50.369Z INFO webdriver: Initiate new session using the WebDriver protocol
[0-0] 2024-04-08T12:45:50.369Z INFO @wdio/utils: Connecting to existing driver at http://127.0.0.1:52883/
[0-0] 2024-04-08T12:45:50.485Z INFO webdriver: [POST] http://127.0.0.1:52883/session
[0-0] 2024-04-08T12:45:50.485Z INFO webdriver: DATA {
[0-0] capabilities: {
[0-0] alwaysMatch: {
[0-0] platformName: 'Android',
[0-0] deviceName: 'Pixel_3',
[0-0] platformVersion: '14.0',
[0-0] automationName: 'UiAutomator2',
[0-0] app: 'C:\Repo\workSpace\appandroidApiDemos-debug.apk'
[0-0] },
[0-0] firstMatch: [ {} ]
[0-0] },
[0-0] desiredCapabilities: {
[0-0] platformName: 'Android',
[0-0] deviceName: 'Pixel_3',
[0-0] platformVersion: '14.0',
[0-0] automationName: 'UiAutomator2',
[0-0] app: 'C:\Repo\workSpace\appandroidApiDemos-debug.apk'
[0-0] }
[0-0] }
[0-0] 2024-04-08T12:45:50.830Z ERROR webdriver: RequestError: connect ECONNREFUSED 127.0.0.1:52883
[0-0] at ClientRequest. (file:///C:/Repo/workSpace/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:500: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:1605:16)
[0-0] 2024-04-08T12:45:50.830Z ERROR @wdio/runner: Error: Failed to create session.
[0-0] Unable to connect to "http://127.0.0.1:52883/", 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:///C:/Repo/workSpace/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:///C:/Repo/workSpace/node_modules/webdriver/build/index.js:20:45)
[0-0] at async remote (file:///C:/Repo/workSpace/node_modules/webdriverio/build/index.js:45:22)
[0-0] at async Runner._startSession (file:///C:/Repo/workSpace/node_modules/@wdio/runner/build/index.js:241:29)
[0-0] at async Runner._initSession (file:///C:/Repo/workSpace/node_modules/@wdio/runner/build/index.js:207:25)
[0-0] at async Runner.run (file:///C:/Repo/workSpace/node_modules/@wdio/runner/build/index.js:88:19)
[0-0] FAILED in Android - file:///C:/Repo/workSpace/specs/sample.js
2024-04-08T12:45:50.957Z INFO @wdio/cli:launcher: Run onWorkerEnd hook
2024-04-08T12:45:50.957Z INFO @wdio/cli:launcher: Run onComplete hook
Spec Files: 0 passed, 1 failed, 1 total (100% completed) in 00:00:03
2024-04-08T12:45:50.958Z INFO @wdio/local-runner: Shutting down spawned worker
2024-04-08T12:45:51.220Z INFO @wdio/local-runner: Waiting for 0 to shut down gracefully
2024-04-08T12:45:51.221Z INFO @wdio/local-runner: shutting down
Beta Was this translation helpful? Give feedback.
All reactions