Forum Discussion
Hello Cleo-Juniper
Your question seems to be getting pretty deep for handling the response of a Script Assertion. I don't know your intent on setting this, but I will assume you are new to SoapUI and are trying too hard to make work for yourself. 🙂
The result of the outcome of one line of code will set the status of a script assertion... You do not have to code the plumbing to get a status (unless you want to).
Use the 'assert' statement:
assert evalEndDate > nowDate, "Expected EndDate to be greater than now";
If the result of executing the assert statement is true, then the result of the Script Assertion will be "PASSED" or similar.
If the result of executing the assert statement is false, then the result of the Script Assertion will be "FAILED" or similar.
Sorry if I deviated from your intent (which i had to make an assumption), but this is an answer to your title question.
Regards,
Todd
Related Content
- 8 years ago
- 6 years ago
- 7 years ago
- 5 years ago
Recent Discussions
- 3 days ago