How to create a TestCaseStep via WS API
Document ID :
Last Modified Date :
Show Technical Document Details
CA Agile Central
CA Agile Central On-Premises
AGILE CENTRAL SAAS:ACSAAS
AGILE CENTRAL ON PREMISES:ACPREM
This article shows how to create a TestCaseStep using a browser REST client
WS API request examples using curl and browser REST client?
? for details on authentication and scoping of WS API requests.
Here is a screenshot from Chrome's Advanced REST Client:
If the testcase reference
is invalid, not accessible to the user who authenticates the request, or the request is scoped incorrectly this error will be returned: "Could not read: Could not read referenced object null"
Note that the max length of ExpectedResult is shown in
To illustrate the limit, a random text of 2048 characters is generated:
and the text is used to set ExpectedResult value in the payload. Since this is the second Steps of the same TestCase,
value is also incremented:
Here is a screenshot of the response in the REST client:
We confirm in the UI that both steps were successfully created:
Next, the text length is increased by a single character to demonstrate the error:
0:? "Validation error: TestCase.steps.expectedResult length is greater than the maximum length of 2048"
Was this information helpful?