Get Test Results

You can get a brief overview of all your test jobs in the web interface. If you need a more detailed report, you can get it via the TestEngine API by using a test job's ID, or you can download the report directly from the web interface.

Overview of the running test jobs

TestEngine’s web interface contains brief information about all the running test jobs you sent. To open it, go to the home page of TestEngine:

http://<testengine-host>:<port>/

For example, if TestEngine is installed on your local machine and you run it on the default port, use the following link:

http://localhost:8080/

The Overview page of the TestEngine web interface contains a list of the recently finished, running, and queued test jobs:

TestEngine tutorial: Overivew page

The Run History page contains the list of finished test jobs:

TestEngine tutorial: Run History page

Tip

You can filter the test jobs by their name, status and users who sent the jobs. You can also search for a particular test job

Both pages contain brief information on test jobs.

Test job report

Summary report

You can view a short summary report of finished test jobs. Click the test job to see what test suites and test cases were executed, the used environment, and the status of the assertions:

TestEngine Web Reports

Full downloadable report

TestEngine provides full test job reports in several formats:

  • JSON

  • JUnit XML

  • Excel sheet

  • PDF

To get the report:

  • In the web interface, click Download job report next to the needed test job and select the desired report format.

-- or --

  • Send a GET request to the /api/v1/testjobs/<testjobId>/report resource:

    http://<testengine-host>:<testengine-port>/api/v1/testjobs/<testjobId>/report

    Here, testjobId is the ID of the test job. You got it from the TestEngine response to your request when you ran your test. Also, you can get testjob IDs by sending a GET response to the /api/v1/testjobs resource, or by clicking Test job ID in the Web UI.

    Add the Accept header to specify in which format TestEngine should send the report. For example, when you send a request with the Accept: application/junit+xml header, TestEngine responses with a report of the JUnit XML format. If you do not specify a header, TestEngine responses with a report in the JSON format.

Here's an example of a test job report:

Important

While the test job is running, you can get only a JSON report.

Any report type contains the test job’s status:

The status element shows the current state of the test. If it is FINISHED, then there are no failed test steps. If the status is FAILED, the test has one or more failed test steps.

To learn more about the test job reports, see Get Results.

Transaction reports

TestEngine logs request test steps, such as SOAP Request, REST Request and so on. For each request, it stores the transaction details in the JSON format.

To get the transaction report, send a GET request to the /api/v1/testjobs/<testjobId>/transactions/<transactionId> resource:

http://<testengine-host>:<testengine-port>/api/v1/testjobs/<testjobId>/transactions/<transactionId>

Here, testjobId is the ID of the test job and transactionId is the ID of a particular transaction you want to get. You got the transactionId from the JSON report:

This is a sample transaction report:

You can use this report, to analyze:

Element

Description

log

The root element of the report.

entries

An array of transactions.

request

Detailed info on the sent request.

method

The method used in the request.

headers

An array of request headers.

queryString

An array of query parameters and their values.

postData

An object containing the request’s payload.

text

Payload of the request.

response

Contains detailed information on the received response.

status

The response’s status code.

headers

An array of the response’s headers.

content

The content of the response.

text

The response body.

To learn more about transaction reports, see Get Results.

Prev Next

See Also

Publication date: