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 OpenText Core Software Delivery Platform 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 Test results.

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

Back to top

See also: