Campaign Test Plan Items

This chapter focuses on services for the campaign test plan items.

Get campaign test plan item

A GET to /campaign-test-plan-item/{id} returns the campaign test plan item with the given id.

Path parameters

Table 1. /api/rest/latest/campaign-test-plan-items/{id}
Parameter Description

id

the id of the campaign

HTTP request

GET /api/rest/latest/campaign-test-plan-items/89 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-Type: application/json;charset=UTF-8
Content-Length: 1304

{
  "_type" : "campaign-test-plan-item",
  "id" : 89,
  "referenced_test_case" : {
    "_type" : "test-case",
    "id" : 12,
    "name" : "referenced test case 12",
    "reference" : "",
    "_links" : {
      "self" : {
        "href" : "http://localhost:8080/api/rest/latest/test-cases/12"
      }
    }
  },
  "referenced_dataset" : {
    "_type" : "dataset",
    "id" : 9,
    "name" : "referenced dataset 9",
    "_links" : {
      "self" : {
        "href" : "http://localhost:8080/api/rest/latest/datasets/9"
      }
    }
  },
  "assigned_to" : "User-1",
  "campaign" : {
    "_type" : "campaign",
    "id" : 8,
    "name" : "sample campaign 8",
    "reference" : "SAMP_CAMP_8",
    "_links" : {
      "self" : {
        "href" : "http://localhost:8080/api/rest/latest/campaigns/8"
      }
    }
  },
  "_links" : {
    "self" : {
      "href" : "http://localhost:8080/api/rest/latest/campaign-test-plan-items/89"
    },
    "project" : {
      "href" : "http://localhost:8080/api/rest/latest/projects/7"
    },
    "test-case" : {
      "href" : "http://localhost:8080/api/rest/latest/test-cases/12"
    },
    "dataset" : {
      "href" : "http://localhost:8080/api/rest/latest/datasets/9"
    },
    "campaign" : {
      "href" : "http://localhost:8080/api/rest/latest/campaigns/8"
    }
  }
}

Response fields

Path Type Description

_type

String

the type of the entity

id

Number

the id of this campaign test plan item

referenced_test_case

Object

the test case associated with this campaign test plan item

referenced_dataset

Object

the dataset associated with this campaign test plan item

assigned_to

String

the user assigned to this campaign test plan item

campaign

Object

the campaign this campaign test plan item belongs to

_links

Object

related links

Relation Description

self

link to this campaign test plan item

project

link to the project of this item

test-case

link to the test case referenced by this item

dataset

link to the dataset referenced by this item

campaign

link to the campaign this item belongs to