Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Test types can be accessed using GET service.

Include Page
REST V1 Authentication
REST V1 Authentication

Table of Contents
maxLevel2
Each function returns a JSON test type object. The test type object is an object that has these attributes.

...

GET

GET (Using Query Parameters)

Info
titleBase API URL for Test Type REST API

http://host:port/flexdeploy/rest/v1/administration/testautomation/testtype

http://host:port/flexdeploy/rest/v1/administration/testautomation/testtype?testTypeName={name}

The information about available Test Types can be accessed through this method. It returns the name and id of all available Test Types. You can also search by name using query parameters to access a specific Test Type's information.

Request

AttributesTypeDescription
testTypeNameStringContains ignore case search

Response

AttributesTypeDescription
testTypeIdLongId of test type
testTypeNameStringName of test type

Response Codes

HTTP Code
Description
200Search successful and results returned
400Bad request
401Authentication failure
403Authorization failure (no access to resource)
500Unexpected internal server error

Example Output

Code Block
languagejs
themeEclipse
titleTest types
[
      {
      "testTypeName": "Test1Unit Test",
      "testTypeId": 10001
   },
      {
      "testTypeName": "Test2Functional Test",
      "testTypeId": 10002
   },
      {
      "testTypeName": "Test3Integration Test",
      "testTypeId": 10003
   }
]

...