Forum Discussion
I think you could use this example for what you are trying to do. Check for the current name to be equal to that of your parent test case.
yes, i saw that example but the OnStopTestCase event handler does not get triggered when the item i have marked as a test case in my execution plan (SignInOut) is complete. I have put the OnStopTest event handler back in and i am using the following IF statement in it which does work since CloseNuPoint is the last test item/keyword script inside the SignInOut test case
if (Project.TestItems.Current.Parent.Name == "SignInOut" && Project.TestItems.Current.Name == "CloseNuPoint" )
I would still prefer to figure out how to resolve the issue that would allow the OnStopTestCase event handler to get triggered since it has the whole list of StopTestCaseParams getting passed into it and OnStopTest does not. I just think there has to be something about the execution plan checkbox that isn't really causing that to be literally considered a test case. maybe a project option or something? i have no idea.
Thanks. I'll utilize my work around but might refrain from clicking the accept as option button to see if anyone has any more ideas about triggering the OnStopTestCase event handler and the execution plan test case checkbox.