Forum Discussion

didacher's avatar
didacher
Occasional Contributor
11 years ago

Ending a keyword execution at any point.

A keyword is implemented with a VBS function.  That function calls other functions which creates a stack. I am wondering if it is possible to exit a keyword at any stack level without exiting function...
  • Andrey_M's avatar
    11 years ago
    Runner.Stop has parameter Stop Current Test Only.



    If you have your keyword tests orginized within project and you run them successively (F5 - Run Project in menu), certain keyword tests can be skipped using Runner.Stop(true) or Stop Execution keyword statement with parameter set to true.



    I don't know how to stop certain function (return to top caller?), but I think it's possible to use keyword tests as individual function wrappers and stop (skip) them instead.



    Sorry if this is not helpful for you either.