HTTP URL Tests
An HTTP URL test requests a web address and checks the status code and response time. Use an HTTP URL test to confirm that a web application is available to your users, not only that its server is reachable.
You set the following fields on the Definition and Pass Criteria tabs of a test profile. For how the tabs work, see Definition tab and Pass Criteria tab.
Definition fields
-
HTTP Method: The request method. GET is the only supported method.
-
Target URL (required): The full address to request. The address must start with
http://orhttps://, for examplehttps://portal.office.com. -
Timeout (s): How long the endpoint waits for a complete response before the run fails. The default is 30 seconds.
Pass criteria
-
Expected Status Code: The status code a passing run must return. Choose one of the following options:
-
Is: The response must return exactly the code you enter, for example 200.
-
Is Not: The response can return any code except the one you enter, for example any code except 503.
-
Range: The response must return a code between the two values you enter. The default range is 200 to 299, which covers all success codes.
-
-
Max Response Time (ms): The longest time a passing run can take to receive the response.
For the failure codes an HTTP URL test can return, see HTTP URL failure codes.