Wednesday

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

No comments:

Post a Comment