Test results XML sample

DevOps admin permissions are required.

This sample XML shows the required format to use to send automated test results to ALM Octane with the Test Result Collection tool.

For details on setting up this tool, see Send automated test run results to ALM Octane.

For details on the structure to use for this XML, use the ALM Octane API to retrieve the XSD schema of the payload using a GET operation: GET .../api/shared_spaces/<shared_space_id>/workspaces/<workspace_id>/test-results/xsd

For details, see test-results.

Sample XML:

<?xml version="1.0" encoding="UTF-8"?>
<test_result>
    <build build_id="31" job_id="Test-REST" server_id="12345678"/>
    <test_runs>
        <test_run started="STARTED_TS" status="Skipped" duration="14" name="bandTestA" class="BandTest" package="com.mycomp.devops.demoapp" module="webapp"/>
        <test_run started="STARTED_TS" status="Passed" duration="0" name="bandTestB" class="BandTest" package="com.mycomp.devops.demoapp" module="webapp"/>
        <test_run started="STARTED_TS" status="Passed" duration="1" name="bandTestC" class="BandTest" package="com.mycomp.devops.demoapp" module="webapp"/>
        <test_run started="STARTED_TS" status="Passed" duration="1" name="bandTestD" class="BandTest" package="com.mycomp.devops.demoapp" module="webapp"/>
        <test_run started="STARTED_TS" status="Passed" duration="0" name="bandTestE" class="BandTest" package="com.mycomp.devops.demoapp" module="webapp"/>
        <test_run started="STARTED_TS" status="Passed" duration="1" name="always_true_A" class="CalcsTest" package="com.mycomp.devops.demoapp" module="webapp"/>
        <test_run started="STARTED_TS" status="Passed" duration="1" name="always_true_B" class="CalcsTest" package="com.mycomp.devops.demoapp" module="webapp"/>
        <test_run started="STARTED_TS" status="Passed" duration="1" name="always_true_C" class="CalcsTest" package="com.mycomp.devops.demoapp" module="webapp"/>
    </test_runs>
</test_result>

Back to top