Validator

Add RegEx Matcher to Every Action Allows Negative Testing

Adding a RegEx Matcher to every Action would allow us to override the default behavior (if desired) of an action so we could evaluate the result message (eg thrown exception) to determine the pass/fail status of that action rather than assuming that all errors are "failed tests". This essentially would allow every action to also function as a true assert, instead of just adopting the default interpretation of the developer to decide if an error results in a pass or fail of the given action.

 

 

Also, "error" is NOT always the same as "pass" and "fail".

 

Example:

Test that in Active Directory, the attempt to create a User without SSL enabled should fail to create a user (exception is actually thrown today and it fails the test) and still results in a "passed" test.

Tags

Voting

2 votes
Idea No. 19