reportportal / agent-js-cypress

Agent to integrate Cypress with ReportPortal.
https://www.npmjs.com/package/@reportportal/agent-js-cypress
Apache License 2.0
39 stars 40 forks source link

[v5] Unable to finish test launch even when results are uploaded #43

Open harvzkie opened 4 years ago

harvzkie commented 4 years ago

Describe the bug Using Cypress, when executing the spec will leave the automation running because it is waiting for the test launch to finish.

The installation method is using without docker.

There is no error reported from the logs.

Expected behavior Test launch should finish and automation should not leave hanging

Screenshots If you take a look on the screenshot, the test launch is not completed however the results are uploaded image

this is the grep logs image

Installed versions: API_VERSION="5.2.1" UAT_VERSION="5.2.1" ANALYZER_VERSION="5.0.0" MIGRATIONS_VERSION="5.2.0" UI_VERSION="5.2.0" SERVICE_INDEX_VERSION="5.0.8"

DzmitryHumianiuk commented 4 years ago

@harvzkie cypress integration version?

ElenaRomanchuk commented 4 years ago

@harvzkie The current released version of agent-js-cypress doesn't work with ReportPortal v5. The work for adjustment this agent to ReportPortal v5 is still in progress. This bug will be fixed in nearest release. You can try and check it by specifying whole path in package.json: "reportportal-client": "https://github.com/reportportal/agent-js-cypress.git#master" Please let us know if you try and something still goes wrong.

harvzkie commented 4 years ago

@ElenaRomanchuk thanks for the response. Initially I was using the agent-js-cypress and was not successful so I did use the reportportal-client to check if I can get through, below is my modified code

image

But still unable to work through. I will look forward for the adjustment.

@DzmitryHumianiuk the Cypress version used is 4.4.1

ElenaRomanchuk commented 4 years ago

@harvzkie Adjusted version of reportportal-client hasn't released yet too. Stay tuned! We will release them soon.

harvzkie commented 4 years ago

thanks @ElenaRomanchuk

ElenaRomanchuk commented 4 years ago

Hi @harvzkie , We released the new version of cypress reporter as a new package @reportportal/agent-js-cypress: https://www.npmjs.com/package/@reportportal/agent-js-cypress. It has a new possibility of runtime merge launches into single: https://github.com/reportportal/agent-js-cypress#automatically-merge-launches. You can try it now. Merge launches with 'isLaunchMergeRequired' option doesn't work now, but will be fixed in nearest future in 5.0.1 version. Hope this solves your issue.

harvzkie commented 4 years ago

hello @ElenaRomanchuk , Thank you for keeping me updated. I will check on this and will feedback to you later.

KurisuLim commented 4 years ago

@harvzkie and @ElenaRomanchuk Any update regarding this issue? My team still has similar issues. Tests are being launched and it's running infinitely, even though the test locally has been finished.

vishallanke commented 4 years ago

@KurisuLim Are you still facing this issue - "Tests are being launched and it's running infinitely, even though the test locally has been finished. " ?

0xIslamTaha commented 4 years ago

I can confirm that this bug has been fixed with the latest release but, it takes too long time to be updated in the portal