I am wondering if others have brought up this question as I could not find anything in my brief searches.
What is the recommended way to exit a test run, at the onset, if something in the config fails, such as authentication, reference to an external file, or missing or invalid value for an expected, passed, parameter, such as karate.env (devv versus dev)?
Current Options tried with no success so far but not a lot of time put into them, to be honest:
- try/catch blocks
- return null rather than a config
- break