Extracting variables from responses when building a test

Users can now extract a JSON value from a response in the test into a variable, and use it later in the test to perform the desired validation.


Extracting a variable when building a test


Using an extracted variable in the test for validation

The extraction is done by selecting custom > Extract variable for the desired JSON key. After a name is given to the variable, it can used anywhere in the test to enforce the desired behavior by using the syntax {{$variableName}}.


The variable extraction and use in validation are reflected in the generated test code.


The generated test code includes the extracted variable and its used as validation