Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Launches left IN_PROGRESS for failed Test only #64

Open
vishal14121996 opened this issue Aug 2, 2024 · 3 comments
Open

Launches left IN_PROGRESS for failed Test only #64

vishal14121996 opened this issue Aug 2, 2024 · 3 comments
Assignees

Comments

@vishal14121996
Copy link

Hi @AmsterGet,

I'm facing the same issue, when i'm executing the test, if the test getting failed, so for that test -launch will continuosly shows as in-progress..

Adding the debug logs & Screenshots for the same..

[0-0] Start launch with tempId sktwi10i7lzctpv6r {
[0-0] description: 'This is execution of CG Wdio Automation Test',
[0-0] attributes: [
[0-0] {
[0-0] key: 'agent',
[0-0] value: '@reportportal/agent-js-webdriverio|5.1.1',
[0-0] system: true
[0-0] }
[0-0] ],
[0-0] rerun: undefined,
[0-0] rerunOf: undefined,
[0-0] mode: 'DEFAULT',
[0-0] id: undefined
[0-0] }
[0-0] Success start launch with tempId sktwi10i7lzctpv6r { id: '48c13089-cfce-488a-99f2-629d453128b9', number: 51 }
[0-0] Start test item with tempId sktwi10i7lzctpv79 {
[0-0] startTime: 1722610337589,
[0-0] name: 'Suite to validate the login Page on qa',
[0-0] type: 'SUITE',
[0-0] codeRef: 'specs/customerSite/login_test.js/Suite to validate the login Page on qa',
[0-0] testCaseId: 'specs/customerSite/login_test.js/Suite to validate the login Page on qa',
[0-0] launchUuid: '48c13089-cfce-488a-99f2-629d453128b9'
[0-0] }
[0-0] Success start item with tempId sktwi10i7lzctpv79 {
[0-0] id: '459f2c21-7d62-4bb5-9f31-f905f0945a1d',
[0-0] uniqueId: 'auto:792742fe20bb9b9cc012693fbcfe3ce6'
[0-0] }
[0-0] Start test item with tempId sktwi10i7lzctpv7c {
[0-0] startTime: 1722610337591,
[0-0] name: 'Test Case to validate login screen when no credentials are entered',
[0-0] type: 'STEP',
[0-0] codeRef: 'specs/customerSite/login_test.js/Suite to validate the login Page on qa/Test Case to validate login screen when no credentials are entered',
[0-0] parameters: [ { key: 'browser', value: 'chrome.127_0_6533_89.mac' } ],
[0-0] testCaseId: 'specs/customerSite/login_test.js/Suite to validate the login Page on qa/Test Case to validate login screen when no credentials are entered[chrome.127_0_6533_89.mac]',
[0-0] launchUuid: '48c13089-cfce-488a-99f2-629d453128b9'
[0-0] }
[0-0] Success start item with tempId sktwi10i7lzctpv7c {
[0-0] id: 'd5f275c7-7c9d-462f-92a5-eb1dbd5e2be1',
[0-0] uniqueId: 'auto:419da67ec3279d23c195246fd40330de'
[0-0] }
[0-0] Finish all children for test item with tempId sktwi10i7lzctpv79
[0-0] 2024-08-02T14:54:35.157Z ERROR @wdio/runner: Error: Some reporters are still unsynced: Reporter
[0-0] at Timeout. (file:///Users/vishaltyagi/Documents/Project/automation-cg/wdio_e2e/node_modules/@wdio/runner/build/reporter.js:111:35)
[0-0] at listOnTimeout (node:internal/timers:573:17)
[0-0] at process.processTimers (node:internal/timers:514:7)
[0-0] FAILED in chrome - file:///specs/customerSite/login_test.js
Total Passed TCs --> 0
Test run complete. Attempting to merge launches.
Find launches with UUIDs to merge: 48c13089-cfce-488a-99f2-629d453128b9
Found launches: 182 [
{
owner: 'superadmin',
description: 'This is execution of CG Wdio Automation Test',
id: 182,
uuid: '48c13089-cfce-488a-99f2-629d453128b9',
name: 'cg_wdio_launch',
number: 51,
startTime: 1722610337570,
lastModified: 1722610338288,
status: 'IN_PROGRESS',
statistics: { executions: {}, defects: {} },
attributes: [],
mode: 'DEFAULT',
analysing: [],
approximateDuration: 105.6416,
hasRetries: false,
rerun: false
}
]
Merge launches with ids: 182 {
launches: [ 182 ],
mergeType: 'BASIC',
description: 'This is execution of CG Wdio Automation Test',
mode: 'DEFAULT',
name: 'cg_wdio_launch',
attributes: undefined,
endTime: 1722610475839,
extendSuitesDescription: true
}
Error merging launches with UUIDs: 48c13089-cfce-488a-99f2-629d453128b9 Error: Request failed with status code 406: {"errorCode":4063,"message":"Unable to perform operation for non-finished launch. Cannot merge launch '182' with status 'IN_PROGRESS'"}
URL: http://10.1.1.232:8080/api/v1/cg_wdio/launch/merge
method: POST
at /Users/vishaltyagi/Documents/Project/automation-cg/wdio_e2e/node_modules/@reportportal/client-javascript/lib/rest.js:43:15
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Object.onComplete (file:///Users/vishaltyagi/Documents/Project/automation-cg/wdio_e2e/wdio.conf.js:531:17)
at async file:///Users/vishaltyagi/Documents/Project/automation-cg/wdio_e2e/node_modules/@wdio/cli/build/utils.js:101:13
at async Promise.all (index 0)
at async Launcher.run (file:///Users/vishaltyagi/Documents/Project/automation-cg/wdio_e2e/node_modules/@wdio/cli/build/launcher.js:110:39)
Error: Request failed with status code 406: {"errorCode":4063,"message":"Unable to perform operation for non-finished launch. Cannot merge launch '182' with status 'IN_PROGRESS'"}
URL: http://10.1.1.232:8080/api/v1/cg_wdio/launch/merge
method: POST
at /Users/vishaltyagi/Documents/Project/automation-cg/wdio_e2e/node_modules/@reportportal/client-javascript/lib/rest.js:43:15
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Object.onComplete (file:///Users/vishaltyagi/Documents/Project/automation-cg/wdio_e2e/wdio.conf.js:531:17)
at async file:///Users/vishaltyagi/Documents/Project/automation-cg/wdio_e2e/node_modules/@wdio/cli/build/utils.js:101:13
at async Promise.all (index 0)
at async Launcher.run (file:///Users/vishaltyagi/Documents/Project/automation-cg/wdio_e2e/node_modules/@wdio/cli/build/launcher.js:110:39)
Screenshot 2024-08-02 at 11 01 55 AM

@AmsterGet
Copy link
Member

Hello @vishal14121996 !
It looks like wdio finished the reporter's process before it uploaded all the results to ReportPortal.
Try to increase the reporterSyncTimeout in your wdio configuration.

@AmsterGet AmsterGet self-assigned this Aug 5, 2024
@vishal14121996
Copy link
Author

vishal14121996 commented Aug 5, 2024

Hello @vishal14121996 ! It looks like wdio finished the reporter's process before it uploaded all the results to ReportPortal. Try to increase the reporterSyncTimeout in your wdio configuration.

Hi @AmsterGet
i set the reportersynctimeout: 100000, still gives the same problem. can you please suggest what should be the correct amount of time, i need to be added, if possible

Error Output on terminal:
[0-0] 2024-08-05T14:27:42.762Z INFO webdriver: RESULT []
[0-0] 2024-08-05T14:27:43.286Z INFO webdriver: COMMAND deleteSession()
[0-0] 2024-08-05T14:27:43.287Z INFO webdriver: [DELETE] http://0.0.0.0:57572/session/77a4890e3834e2c314fc8c09da343f5c
[0-0] 2024-08-05T14:27:43.398Z INFO webdriver: RESULT null
[0-0] 2024-08-05T14:27:43.398Z INFO webdriver: Kill driver process with PID 19404
[0-0] 2024-08-05T14:29:23.407Z ERROR @wdio/runner: Error: Some reporters are still unsynced: Reporter
[0-0] at Timeout. (file:///D:/dummyWdio/wdio_e2e/node_modules/@wdio/runner/build/reporter.js:111:35)
[0-0] at listOnTimeout (node:internal/timers:581:17)
[0-0] at process.processTimers (node:internal/timers:519:7)
[0-0] FAILED in chrome - file:///D:/dummyWdio/wdio_e2e/specs/customerSite/login_test.js
2024-08-05T14:29:23.447Z INFO @wdio/cli:launcher: Run onWorkerEnd hook
2024-08-05T14:29:23.449Z INFO @wdio/cli:launcher: Run onComplete hook

@AmsterGet
Copy link
Member

@vishal14121996 the value depends on the execution time of your tests and may also depend on network bandwidth.
Therefore, I would advise setting the value to the highest possible value. If the reporter finishes earlier than the timeout value, wdio will terminate the process because it is constantly checking the reporter synchronization based on reportersyncinterval.
Hope this helps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants