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

jUnit import testsuite/testsuites properties #196

Open
janholusa opened this issue Jan 8, 2024 · 2 comments
Open

jUnit import testsuite/testsuites properties #196

janholusa opened this issue Jan 8, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@janholusa
Copy link

janholusa commented Jan 8, 2024

TestRail CLI Version

1.6.1

CLI Environment

debian

TestRail Version

8.0.3 Default (3063)Built on

TestRail Instance Type

Enterprise Cloud

Current behavior

Currently each testsuite property is displayed in testrun description. Also properties under for testsuites attribute are ignored:
image

imported file

<testsuites name="Autotest test" time="1882.579">
 <properties>
    <property name="prop-top" value="val-top"/>
 </properties>

 <testsuite name="9 Setup: Setup Device Context" time="13.934" tests="5" failures="0" errors="0" skipped="0" file="SetupDeviceContext.php">
    <properties>
      <property name="prop1" value="val1"/>
    </properties>
    <testcase name="53" classname="a" time="10.358" file="tests/tests/Unifi/SetupDeviceContext.php" line="27">
      <properties>
        <property name="testrail_result_field" value="status_id:1"/>
      </properties>
    </testcase>
  </testsuite>
  
  <testsuite name="10 Setup: Setup Device Context" time="13.934" tests="5" failures="0" errors="0" skipped="0" file="SetupDeviceContext.php">
   <properties>
      <property name="setting2" value="value2"/>
    </properties>
    <testcase name="58" classname="e" time="0.102" file="SetupDeviceContext.php" line="76">
      <properties>
        <property name="testrail_result_field" value="status_id:1"/>
      </properties>
    </testcase>

  </testsuite>
</testsuites>

Btw it works as documented here: https://support.testrail.com/hc/en-us/articles/12989737200276-JUnit-to-TestRail-mapping#h_01H9QJ39FJ76KWJFEBDPMD3XC2

Desired behavior

I would expect that "parameters" under testsuite section will be displayed under group name

And parameters in testsuites section will be displayed in TR description (where are currently displayed all parameters from testsuite sections in whole testrun)

More Details

No response

@janholusa janholusa added the bug Something isn't working label Jan 8, 2024
@bitcoder
Copy link
Collaborator

Hi, so from my understanding, currently it works as documented right? You wanted it to behave differently from the current documented behaviour, correct?

@janholusa
Copy link
Author

@bitcoder well, yes.
In this meaning, it might be considered as improvement - not a bug.

I mean - there is missing option to make suite description from junit file (talking about creating testcases automatically).

@bitcoder bitcoder added enhancement New feature or request and removed bug Something isn't working labels Jan 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants