Forum Discussion

bogdaz's avatar
New Member
2 years ago

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

1 Reply

  • TNeuschwanger's avatar
    Champion Level 2

    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.