Variables can also be extracted from Test Case's results and can be used in subsequent HTTP requests (test cases). To extract the variable's values from test case's results, please follow the steps below:
A test case result is a JSON object with the following keys:
Let us take an example, how we can extract a variable from test case result:
Suppose we have two test cases, first one creates a resource on server and second test case updates that resource on server. If the first test case fails then we want to prevent the execution of second test case.
Now extract the result of first test case into a variable say "tcResult" as shown below:
Now, use the extracted result of first test case as a condition of any subsequent test case.
Now, if we execute the test cases and if the first test case fails then second test case becomes not runnable and will not be executed.