Versions Compared

Key

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

Testing tools can be accessed using GET service.

Include Page
REST V1 Authentication
REST V1 Authentication

Table of Contents
maxLevel1

Each function returns a JSON testing tool object. The testing tool object is an object that has these attributes.

...

2

GET

GET (using Query Parameters)

This service returns all testing tools that match the query parameters. If no query parameters are given all testing tools will be returned. The information about available Testing Tools can be accessed through this method. It returns the name, id, and information about the properties of all available Testing Tools.

Info
titleQueryParams

http://host:port/flexdeploy/rest/v1/administration/testautomation/testingtool?

Append the following character sequences to the above URL to specify Query parameters.
Use '&' between successive query parameters: 

testingtoolnametestingToolName={name}

Examples:
To search by testing tool name only:

http://host:port/flexdeploy/rest/v1/administration/testautomation/testingtool?testingtoolnametestingToolName={name}

GET 

This service returns all testing tools that match the query parameters. If no query parameters are given all testing tools will be returned.

Info
titleBase URL for Testing Tool REST API

http://host:port/flexdeploy/rest/administration/testautomation/testingtool

The information about available Testing Tools can be accessed through this method. It returns the name, id, and information about the properties of all available Testing Tools.

...

Request

NameTypeRequiredDescription
testingToolNameStringNoname of testing tool, contains ignore case

Response

NameTypeDescription
testingToolIdLongid of testing tool
testingToolNameStringname of testing tool
propertiesList<PropertyDefintion>properties of testing tool

Each JSON testing tool object contains a list of property definition with following attributes.

AttributesTypeDescription
nameStringThis is the name of the property.

displayName

String This is the display name of the property.
dataTypeStringThis is the data type of the property.
descriptionString

This is the description of the property.

isRequiredBooleanThis is the boolean which represents whether or not the property is required.
isEncryptedBooleanThis is the boolean which represents whether or not the property is encrypted.
isActiveBooleanThis is the boolean which represents whether or not the property is active.

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

Code Block
languagejs
themeEclipse
titleTesting tools
[
      {
      "nametestingToolName": "Apache JMeter",
      "properties":       [
                  {
            "name": "FDJM_JMETER_HOME_DIR",
            "displayName": "JMeter Home Directory",
            "description": "Apache JMeter Home directory. Make sure you have bin directory under this.",
            "dataType": "String",
            "isRequired": true,
            "isActive": true,
            "isEncrypted": false
         },
                  {
            "name": "FDJM_JMETER_PROPERTIES_FILE",
            "displayName": "Apache JMeter Properties File.",
            "description": "Apache JMeter Properties file.",
            "dataType": "String",
            "isRequired": true,
            "isActive": true,
            "isEncrypted": false
         }
      ],
      "idtestingToolId": 10001
   },
      {
      "nametestingToolName": "HP Unified Functional Testing (UFT)",
      "properties": [],
      "idtestingToolId": 10002
   },
      {
      "nametestingToolName": "JUnit",
      "properties": [],
      "idtestingToolId": 10003
   },
      {
      "nametestingToolName": "Oracle Application Test Suite (OATS)",
      "properties": [      {
         "name": "FDOAT_RUN_SCRIPT",
         "displayName": null,
         "description": "Oracle Application Test Suite run script file name (.sh or .bat) with full Path.",
         "dataType": "String",
         "isRequired": false,
         "isActive": true,
         "isEncrypted": false
      }],
      "idtestingToolId": 10004
   },
      {
      "nametestingToolName": "SoapUI",
      "properties": [      {
         "name": "FDSUI_SOAPUI_PATH_TO_TESTRUNNER_FILE",
         "displayName": "SoapUI Test Runner Path",
         "description": "Absolute path to the Testrunner script for SoapUI testing.",
         "dataType": "String",
         "isRequired": true,
         "isActive": true,
         "isEncrypted": false
      }],
      "idtestingToolId": 10005
   },
      {
      "nametestingToolName": "TestNG",
      "properties": [],
      "idtestingToolId": 10006
   },
      {
      "nametestingToolName": "utPLSQL",
      "properties": [],
      "idtestingToolId": 10007
   },
      {
      "nametestingToolName": "Postman",
      "properties":       [
                  {
            "name": "FDPMN_POSTMAN_PATH_TO_NEWMAN_UTILITY",
            "displayName": "Newman Executable Path",
            "description": "Absolute path to the newman command line utility for Postman testing.",
            "dataType": "String",
            "isRequired": false,
            "isActive": true,
            "isEncrypted": false
         },
                  {
            "name": "FDPMN_POSTMAN_PATH_TO_NODEJS",
            "displayName": "Node Executable Path",
            "description": "Absolute path to the Node executable.",
            "dataType": "String",
            "isRequired": false,
            "isActive": true,
            "isEncrypted": false
         }
      ],
      "idtestingToolId": 10008
   }
]