Forum Discussion
You can set the keyword test's "On error" value in the execution plan to be "Stop Current Item"
That way any keyword operation that fails will fail the test. It won't matter about groups
Or are you wanting something different?
tphillips Thanks for your response. I have already know this approach. But my requirement is different, have described below..
I want to define more than one group in the keyword test and want to capture the errors against these groups to easily identify which group has failed. for instance
Group 1 - Login
- Operation 1
- Operation 2
Group 2 - Navigate to particular screen
- Operation 1
- Operation 2
If operation 2 fails in group 1, then stop the current test and capture the error against the particular group i.e. Login process has failed. Hope this makes sense.
Thanks!
- tphillips4 years agoFrequent Contributor
Oh, I see what you mean.
Probably best to use Append Log Folder and Pop Log Folder for your groups, so in the logs you can see which section of the test it was in.
For test scripting I would use their script counterparts, or maybe aqTestCase.Begin() and aqTestCase.End()
Related Content
- 31 days agoSahall0308
- 8 months agonastester
- 6 months agonastester