reportportal icon indicating copy to clipboard operation
reportportal copied to clipboard

[v5] Lost logs and attachments in retried cases after merge launches

Open winni0713 opened this issue 3 years ago • 5 comments

Describe the bug If cases is retried and launches are deep merged, the logs and attachments in past retries may be lost.

To Reproduce

  • Implement the retry logic, we are using the extended-cucumber-runner plugin (http://mkolisnyk.github.io/cucumber-reports/extended-cucumber-runner).

  • aggregate the rerun cases, we have added override the original method in AbstractReporter by setting rp.rerun = true in line 40. Screenshot 2021-08-17 at 2 45 14 PM

  • run cases with retry passed / failed record, then deep merge two launches.

  • check the last retried tab, all logs and images are found. Screenshot 2021-08-17 at 3 07 46 PM

  • check the retried tab except the last one, only logs in the failed steps are found. Screenshot 2021-08-17 at 3 07 52 PM

Expected behavior All logs and attachments retained after retried and merged

Desktop (please complete the following information):

  • OS: Mac
  • Browser: chrome

Note:

  • No issue in not merged cases
  • Similar to https://github.com/reportportal/reportportal/issues/1242

winni0713 avatar Aug 17 '21 07:08 winni0713

@VolhaKarenko Could you please recheck the issue?

evjlobanova avatar Aug 19 '21 07:08 evjlobanova

Hi @winni0713, could you specify which RP version are you using?

VolhaKarenko avatar Aug 26 '21 14:08 VolhaKarenko

Current version:API Service: 5.3.5;Index Service: 5.0.10;Authorization Service: 5.3.5;Service UI: 5.3.5; Dependency Used: agent-java-cucumber: 5.0.1 logger-java-logback: 4.0.4

winni0713 avatar Aug 27 '21 01:08 winni0713

reproducible, issue is added to backlog

VolhaKarenko avatar Aug 27 '21 13:08 VolhaKarenko

We are planning to rework Merge functionality in version 5.8 We will include this fix to the refactoring scope

evjlobanova avatar Oct 25 '21 23:10 evjlobanova