HomeSUPPORT QUESTIONS

Need help with StresStimulus? Start here.

Validate script Messages in this topic - RSS

Unregistered User
Unregistered User
Posts: 509


6/1/2020
Unregistered User
Unregistered User
Posts: 509
How to do “Test Automation” validations within Stresstimulus script execution?
For example: Creating a task activity and check if the status column is set to “created”?
I would record the SaveAndClose Activity and records also a Query of the newly task record created. Next, I would create an extraction rules on that column status.
In case the extraction rule doesn’t find the value, how do I generate an error in the execution, so it could be recorded as an iteration in error ?
0 link
George @StresStimulus
George @StresStimulus
Administrator
Posts: 555


6/2/2020
George @StresStimulus
George @StresStimulus
Administrator
Posts: 555
This requirement can be implemented with response validator described here http://support.stresstimulus.com/display/doc51/Response+Validators
You do not need an extractor for that. Create a response validator with the following properties:
• Set Text to search to a pattern for searching “Created” in the status column. For example, <td id=”col_status”>Created</td>
• Set Fail If to Not Found
• Set Action if failed to Abort or Continue
• Set Description to Activity is not Created





An error will be generated if the status is not "Created”. The error “Activity is not Created” will be in the report in the error section.
0 link






Copyright © 2024 Stimulus Technology