Forum Discussion
nmrao
9 years agoCommunity Hero
If the assertion is applied and assertion fails, step is failed automatically.
What type of test step is that? Do you have any assertions associated to that particular step?
What type of test step is that? Do you have any assertions associated to that particular step?
- anusha219 years agoOccasional Contributor
hi
i am using groovy test step, but i am using class so when assertion fails then my main groovy test step is failing, but i want to mark child script too
as i explained in my above message i am using class script
thanks
Anusha
- groovyguy9 years agoCommunity Hero
The only way I know to make a groovy script test step fail is to put a fail condition in it. IE, "assert 1 == 2", or even simpler: "assert false;"
That would, when triggered, make the groovy script show as a failed step. Is that what you are looking for?
- nmrao9 years agoCommunity Hero@amisja21,
Could not go thru long description, parent & child - what are you referring to?
Can you tell the step names you are referring to? - nmrao9 years agoCommunity HeroAlso it would be good if you can post the formatted code in the reply.