How this template works
APIs Selection
The template uses API selection filters to specify the criteria for selecting the APIs to be tested. In this case, it filters the APIs based on the response code, ensuring that it falls within the range of 200 to 299. It also extracts the URL from the response and assigns it to the variable "urlVar".
Execute request
The template uses the "execute" section to define the type of request to be executed. In this case, it is a single request. The request is modified by replacing the URL with the value of the "urlVar" variable.
Validation
The template uses the "validate" section to define the validation criteria for the response. It checks that the response code falls within the range of 200 to 299 and also validates the response headers. Specifically, it checks if the "Server" header exists and its value matches the specified regex pattern, which captures the server software version number.