Help Center> CloudTest> User Guide> Test Case> Advanced Configurations of API Automation> Built-in Functions> Obtaining an Array via Reverse Index
Updated on 2023-03-14 GMT+08:00
Obtaining an Array via Reverse Index
- StringA: array or list element path of the response body or response header.
- intB: subscript of the array in reverse order. 0 indicates the last array, and 2 indicates the last but one array.
Obtains an array from a response body or header based on the reverse index.
The built-in function for obtaining arrays during response extraction based on the reverse index can be used for API automation.
As shown in the following figure, the property value of the response body parameter item is the function for obtaining arrays via reverse Index. Parameter A in the function is the response body property result, and parameter B is 0.
Was this page helpful?Provide feedback
Thank you very much for your feedback. We will continue working to improve the documentation.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.Chatbot