Automated Tests

This chapter focuses on services for the automated tests.

Get automated test

A GET to /automated-tests/{id} returns the automated test with the given id.

Path parameters

Table 1. /api/rest/latest/automated-tests/{id}
Parameter Description

id

the id of the automated test

HTTP request

GET /api/rest/latest/automated-tests/123 HTTP/1.1
Accept: application/json
Host: localhost:8080

Request parameters

Parameter Description

fields

which fields of the elements should be returned (optional)

HTTP response

HTTP/1.1 200 OK
Content-Length: 348
Content-Type: application/json;charset=UTF-8

{
  "_type" : "automated-test",
  "id" : 123,
  "name" : "auto test/class A",
  "test_automation_project" : {
    "_type" : "test-automation-project",
    "id" : "569",
    "remote_name" : "job 1",
    "local_name" : "wan wan"
  },
  "_links" : {
    "self" : {
      "href" : "http://localhost:8080/api/rest/latest/automated-tests/123"
    }
  }
}

Response fields

Path Type Description

id

Number

the id of the automated test

_type

String

the type of the entity

name

String

the name of the automated test

test_automation_project

Object

the TA project associated to this automated test

_links

Object

related links

Relation Description

self

link to this automated test