Issue This article shows how to create a TestCaseStep using a browser REST client
Resolution Please see?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 /testcase/123 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 WS API document.
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, stepindex 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"