Script assertion result logged in a different step
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2023
01:12 AM
01-18-2023
01:12 AM
Script assertion result logged in a different step
i have a test Test Case with multiple test steps. If i want to add a script assertion on multiple test steps, the output can only be seen on the first script assertion from the first test step. is there any way to have each test step with his own script assertion ? and check the result in that test step and not in the first one? Thank you
Labels:
- Labels:
-
Scripting
1 REPLY 1
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2023
11:19 PM
01-22-2023
11:19 PM
Hello @bogdaz
have one groovy script test step at the end of the test steps that you have script assertion for... you already have groovy code in the script assertion(s), so just move it out of them into a single groovy script test step. There are many examples of how to read test step results from a groovy script.
Regards,
Todd
