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

Results in jUnit XML format are being flagged upon import #612

Open
GregNYT opened this issue Apr 23, 2019 · 9 comments
Open

Results in jUnit XML format are being flagged upon import #612

GregNYT opened this issue Apr 23, 2019 · 9 comments
Labels
Check: BackEnd Issue that should be investigated by Back End team Feature: Import

Comments

@GregNYT
Copy link

GregNYT commented Apr 23, 2019

The tests are run with Mocha and the results are output by mocha-junit-reporter. The XML is valid but after compressing it and importing via the web UI the following message appears:

Error while importing the file. 'Test item status is ambiguous. There is no status provided from request and there are no descendants to check statistics for test item id '5cbf310c49195200011a2fe6''

Is there anything missing from the attached result file?

test-results.xml.zip

@DzmitryHumianiuk DzmitryHumianiuk added the help wanted Issue contains request for team help label Apr 23, 2019
@DzmitryHumianiuk
Copy link
Member

@evjlobanova can you please attached example of junit import?

@evjlobanova
Copy link
Contributor

Launch C.zip

@GregNYT
Copy link
Author

GregNYT commented Apr 24, 2019

The problem may not be the XML format but how the zip file is compressed. I uploaded your file @evjlobanova and it worked fine. Then I unzipped it, recompressed in MacOS Finder and when I uploaded it there was an error.

How are you compressing your results?

@GregNYT
Copy link
Author

GregNYT commented Apr 26, 2019

So I figured out that there are two issues. The first issue is that zipping the results via the Compress option in MacOS Finder is creating a zip file with some character padding that Report Portal does not like. The solution is to zip the results from the command line using the "zip" command.

The second problem is that Report Portal doesn't seem to process nested elements. When I leave only one element with the enclosed test case then it works.

@evjlobanova
Copy link
Contributor

@Yumfriez could you please check this issues on ver 4 and 5?

@evjlobanova evjlobanova added Feature: Import and removed help wanted Issue contains request for team help labels Mar 30, 2020
@vishallanke
Copy link

We face similar issue in our project
@GregNYT
Please check https://github.com/vishallanke/ReportPortalCypressJUnitAgent

@evjlobanova
Copy link
Contributor

Our main feature is real-time reporting.
Import is a minor feature, and we support it with minor priority.
@VolhaKarenko please re-check

@evjlobanova evjlobanova added the Check: Test Issue that should be reproduced on our envs label Oct 8, 2020
@VolhaKarenko
Copy link

The issue with recompressing in MacOS Finder probably won't be fixed. Besides compressing via terminal, another solution is to import XML file via API page. (Launch controller - Import junit xml report).
@GregNYT could you please tell more about the problem with nested elements, specifying the import example and expected result?

@VolhaKarenko VolhaKarenko added Waiting Info From Requestor and removed Check: Test Issue that should be reproduced on our envs labels Oct 9, 2020
@viswagb
Copy link

viswagb commented Oct 8, 2021

zip file contain mocha (mocha-junit-reporter) Junit xml has multiple in side
ex:

testcase
testcase
testcase

these are having issues while import to reportPortal via API.

is this addressed? any solution??

@evjlobanova evjlobanova reopened this Nov 16, 2021
@DzmitryHumianiuk DzmitryHumianiuk added Check: BackEnd Issue that should be investigated by Back End team and removed Waiting Info From Requestor labels Nov 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Check: BackEnd Issue that should be investigated by Back End team Feature: Import
Projects
None yet
Development

No branches or pull requests

6 participants