Forum Discussion
nmrao
9 years agoCommunity Hero
There are no separate assertion steps available for groovy script test step and that is by design.
It is because, you can do the assertions in groovy script by using "assert" statement.
For example:
def val = 10
assert 9 == val, "Val is not 9"
Just have a groovy script with above two statements and you would see it failed, which is shown in red colored.
So far you might not have experienced this because, no assertions are present in the script.
Hope this helps.
It is because, you can do the assertions in groovy script by using "assert" statement.
For example:
def val = 10
assert 9 == val, "Val is not 9"
Just have a groovy script with above two statements and you would see it failed, which is shown in red colored.
So far you might not have experienced this because, no assertions are present in the script.
Hope this helps.