Share this page

# Test results XML sample

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

For details on setting up this tool, see Receive automated test run results.

For details on the structure to use for this XML, use the API to retrieve the XSD schema of the payload using a GET operation:

Copy code

    GET .../api/shared_spaces/<shared_space_id>/workspaces/<workspace_id>/test-results/xsd

For details, see Automated test results API reference.

### Sample XML:

Copy code

    <?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_run

### See also

- Receive automated test run results
- Analyze automated test run results

https://admhelp.microfocus.com Software Delivery Management 8942
Tips to improve your search results... OpenText™ Software Delivery Management Help Center OpenText™ Software Delivery Management Help 26.3 All View Local Help Center View Online Help Center Version: