TestProject Forum

Feature Request - set parameter on failure of a test step

It would be very useful to be able to set a specific variable (either test or project parameter) with a specific value (f.eks. true/false or any text value) when a test fails.
This would enable branching to be much more useful.

For example a step that checks to see if an element is visible could then directly set a parameter that can be easily branched on later (with step conditions) that indicates the field was invisible. Right now this is not that easy to set up (AFAIK).

Another way to solve this could be to create a generic “dummy test” that
(once running a recovery test with specific input/output parameters becomes possible)

  1. accepts an input parameter
  2. sets the input parameters value to the output parameter (currently requires a plugin)
  3. returns the output parameter
    But this would likely be slower, and much less elegant…