Forum Discussion

averheyen's avatar
averheyen
New Member
2 months ago

Update Property of all Test Cases in a Test Cycle Using jUnit Automation Execution

I have a CI/CD process that is running a suite of dotnet Selenium tests where we output the results to a junit.xml file that is uploaded to our JIRA integration using the https://api.zephyrscale.smartbear.com/v2/automations/executions/junit API endpoint.

Is it possible to update the Environment field on Test Cases within the Test Cycle using either the API call or by creating an XML transform to add the environment property and value? 

Here is an example of an output .XML file

<testsuites>
  <testsuite name="Testing.dll" tests="1" skipped="0" failures="0" errors="0" time="117.85" timestamp="2024-03-25T15:03:41" hostname="fv-az1045-531" id="0" package="Testing.dll">
    <properties>
        <property name="Environment Run" value="Dev" />
    </properties>
    <testcase classname="KBArticleFixture(&quot;Chrome&quot;)" name="QUAL_T217_ShouldBeAbleToViewKBArticles(&quot;example@example.com&quot;)" time="117.8500000">
    </testcase>
  </testsuite>
</testsuites>

No RepliesBe the first to reply