dbur
15 years agoNew Contributor
Trying to access assertion name from script
Hi.
I have a script assertion and in that script I'm trying to access the name of the assertion. I can't seem to find a way from the context variable to access the current assertion object (I can see how to get to the current test step but not the assertion). Is it possible to get the assertion's name from the assertion's script?
Cheers
David
I have a script assertion and in that script I'm trying to access the name of the assertion. I can't seem to find a way from the context variable to access the current assertion object (I can see how to get to the current test step but not the assertion). Is it possible to get the assertion's name from the assertion's script?
Cheers
David