- Subscribe to RSS Feed
- Bookmark
- Subscribe
- Email to a Friend
- Printer Friendly Page
- Report Inappropriate Content
Manual Redirectio n using a Property Set
|
CloudTest does not automatically follow HTTP 302 redirects because the recording itself already has the redirected URL captured in it. The only time redirects need to be handled in the test is when the page being redirected to will differ from test to test. Redirection occurs when an HTTP response specifies a location or canonical URL as well as in other cases. In order to follow HTTP redirection it is necessary to handle the URL(s) that come back in the HTTP response header for the given HTTP request. TIP: CloudTest provides automatic parameterization via Session Templates that will identify, extract to a custom property, and replace the dynamic value with a property placeholder. Refer to Session Templates for instructions to replace an individual value or Session Template Packages to replace one or more values in a clip. Parameterization for redirects can be performed manually so long as the following conditions are met.
|
|
Creating a Manual Redirection using a Property SetUse the following steps to meet the above requirements.
In the example on the right, this message is a POST message called index.php. |
![]() |
|
|
|
In the example on the right, the Location header is highlighted. Note: In the following steps we will specify leading and trailing text that surrounds the relevant URL portion. This is a good time to note this text. For example, “?” for leading text and “/#” for trailing text. |
|
|
|
|
|
| When you do so, the Property Sets form appears. | |
Note: You can select a longer string if a match is not produced by the selection above. |
|
|
|
|
|
|
|
|
|
|
The dynamic string is replaced by the property path for the selected custom clip property as shown below.
|
|












