- Subscribe to RSS Feed
- Bookmark
- Subscribe
- Email to a Friend
- Printer Friendly Page
- Report Inappropriate Content
|
This topic presents a variety of SOASTA CloudTest validation scripts. Scripts can be copied and pasted directly into the SOASTA CloudTest Script Editor using Central > Scripts. Longer scripts have an accompanying image that can be clicked to pop out the full example script. Shorter scripts are presented inline (in the right column). |
|
Validation Scripts
This example will throw an error if the specified text does not appear in the prior response. |
|
|
First, get the Message that precedes this Script. |
|
|
Then, get the response fromthe |
|
|
Then, specify the string to find. |
|
|
Check for the value in the response. If it doesn't exist, output an error. |
|
This example will throw an error if the specified text appears in the prior response. |
|
|
First, get the Message that precedes this Script. |
|
|
Then, get the response from the |
|
|
Then, specify the string to find. |
|
|
Check for the value in the response. If the value does exist in the response, output an error. |
|
The Throw an error if a specified value does not exist in the prior header script looks at the previous message’s response header to see if a particular string is present. If the string is present, the validation passes; if not, the validation fails. |



