Specifying the expected response code

You can verify whether a test request returned an expected response code.

When you enable response code verification points for a page request, a Response Code Verification Point folder is added to the Test Contents hierarchy. As shown in the figure, when you click this folder, the Test Element Details display the response code editing fields:

With the test selected, the Enable Response Code VPs menu selection adds this item to every request in all test pages and checks the box beside Enable verification point. With a specific page selected, the menu selection adds the item to every request in the selected page and checks the box. With a specific page request selected, the menu selection adds the item to the selected request and checks the box. For any request that contains the Response Code Verification Point item, you can selectively enable or disable response code verification by going to that request and clicking the check box.

The response code is the number following the colon in the Response folder name: 200 in the figure. This is the value in the Status field that is returned by every request. If you choose the Relaxed matching method, response codes that are in the same category (for example, 200, 201, 203, 209) are considered equivalent: with Enable verification point checked, an error is reported unless one of the category is returned. With Exact matching selected, an error is reported unless the specific code is returned.

Parent topic: Adding verification points to a test

Terms of use | Feedback
(C) Copyright IBM Corporation 2005. All Rights Reserved.