Set-ASTestState

AdminStudio 2021 | 21.0 | AdminStudio REST APIs

Edition:REST APIs are enabled with AdminStudio Enterprise Edition.

When you send this request, it will set a given test to either run or not run.

Set-ASTestStateAPI Information

Request Type

Description

API

http://localhost:8086/testcenter/tests/{InternalTestID}/state/{State}

Method

PUT

Parameters

List all parameters in the following format:

InternalTestID = Use to specify the ID number of the test whose test state you want to set
State = Use to specify the test state either True or False.

Connection Info

Provides the connection information of the package as mentioned in Setting Up Connection to Run REST APIs 

Response

Example: http://localhost:8086/testcenter/tests/1002/state/false

<response>

<HasFault>false</HasFault><headers><httpHeaders><Host>localhost:8086</Host><Connection>keep-alive</Connection><Accept>*/*</Accept><User-Agent>PostmanRuntime/7.26.10</User-Agent><Accept-Encoding>gzip, deflate, br</Accept-Encoding><Postman-Token>6839882d-d21e-4934-90f9-ca33a8489447</Postman-Token><Content-Length>0</Content-Length></httpHeaders><request></request></headers><summary /><data>true</data>

</response>