Forum Discussion
- tphillipsFrequent Contributor
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?
- KanwarOccasional Contributor
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!
- tphillipsFrequent 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()
- AlexKarasChampion Level 3
Hi Kanwar,
What about creation of the required sequence in the Execution Plan and setting required value for the On Error option (https://support.smartbear.com/testcomplete/docs/working-with/managing-projects/execution-plan.html) ?
Does it help?
- sonya_mSmartBear Alumni (Retired)
Related Content
Recent Discussions
- 17 hours ago
- 3 days ago