The Result Publisher Rest API plugin is built on top of the Squash TM Rest API. It allows to configure the result publication in TM of automated test executions.

Automated Execution Type

Get automated execution type

A GET to /projects/{id}/automated-execution-type returns the configured automated execution type.

HTTP request

GET /api/rest/latest/projects/1/automated-execution-type HTTP/1.1
Accept: application/json
Host: localhost:8080

Path parameters

Table 1. /api/rest/latest/projects/{id}/automated-execution-type
Parameter Description

id

the ID of the project to get the configuration from

Example response

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 214

{
  "_type" : "automated-execution-type",
  "automated_execution_type" : "LIGHT",
  "_links" : {
    "self" : {
      "href" : "http://localhost:8080/api/rest/latest/projects/1/automated-execution-type"
    }
  }
}

Response fields

Path Type Description

_type

String

the type of the entity

automated_execution_type

String

execution type ('LIGHT' or 'COMPLETE')

_links

Object

related links

Relation Description

self

link to the automated execution type

Set automated execution type

A POST to /projects/{id}/automated-execution-type set the automated execution type.

HTTP request

POST /api/rest/latest/projects/1/automated-execution-type HTTP/1.1
Content-Type: application/json
Accept: application/json
Content-Length: 85
Host: localhost:8080

{
  "_type" : "automated-execution-type",
  "automated_execution_type" : "COMPLETE"
}

Path parameters

Table 1. /api/rest/latest/projects/{id}/automated-execution-type
Parameter Description

id

the ID of the project to configure

Request fields

Path Type Description

_type

String

the type of the entity

automated_execution_type

String

execution type ('LIGHT' or 'COMPLETE')

Example response

HTTP/1.1 204 No Content