BPT - Check if a component has failed

As we all know in BPT a test case comprises of many components put together.

Now the best practice would be when a component fails we stop the entire BPT test rather than continue testing, so here is a simple code that will do just that:

Function ComponentFailHandler
     If Reporter.RunStatus = micFail Then ExitTest
End Function  

Can it get easier than this? :P


Popular posts from this blog

XPATH for IE / internet explorer

RPA - Blue Prism, OpenSpan, Automation Anywhere vs UIPath