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

Comments

Popular posts from this blog

Software Testing @ Microsoft

Trim / Remove spaces in Xpath?