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

XUnit parsed report does not process the TIME field from original xml #36

Open
hernandik opened this issue Aug 8, 2022 · 1 comment

Comments

@hernandik
Copy link

hernandik commented Aug 8, 2022

I got a JUnit result for golang run.
It contained test cases and each testcase contained only a time field for each test case, giving the elapsed time for a test.
Example bellow.

Them I parse it with Oxygen, but the output start/finish date do not take into account the elapsed time for the test.

I understand that my junit does not contain initial/finish time for tests, but at least it contain the time that each test took to run.

But this information is lost, and the final xunit does not contain such time information for individual tests.

I would like that at least, this report start/end time could take into account the time field form the origin file to take into account.

Files below are just a snip of the original and final files.
I change the test names and suite names.

Original file

<testsuites>
<testsuite tests="24" failures="0" time="316.525" name="test1">
<properties>
<property name="go.version" value="go1.16.15"/>
</properties>
<testcase classname="test1" name="test_suite1" time="19.330"/>

Parsed file by oxygen

<robot generator="Robot 4.1.2 (Python 3.9.13 on linux)" generated="20220808 11:06:06.878" rpa="false" schemaversion="2">
<suite id="s1" name="JUnit Execution">
<suite id="s1-s1" name="test_suite1">
<test id="s1-s1-t1" name="teste1">
<kw name="Pass Execution" library="BuiltIn">
<arg>Test passed :D</arg>
<doc>Skips rest of the current test, setup, or teardown with PASS status.</doc>
<msg timestamp="20220808 11:06:06.910" level="INFO">Execution passed with message: Test passed :D</msg>
<status status="PASS" starttime="20220808 11:06:06.910" endtime="20220808 11:06:06.911"/>
</kw>
<status status="PASS" starttime="20220808 11:06:06.909" endtime="20220808 11:06:06.911">Test passed :D</status>
</test>
@Tattoo
Copy link
Contributor

Tattoo commented Oct 18, 2023

Hi! Sorry it took time to get back to you 😅

Just wanted to say that this issue is in the command line usage of Oxygen. Looking into things, it is a bit difficult to fix due to the fact that we would have to, after creating the corresponding RF output.xml, go back and fix the elapsed time manually.

Due to the trickyness described above, this unfortunately does not make to the next release in the following days. However, I will look into this and try to get another release out fixing this soon

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