Stepper icon indicating copy to clipboard operation
Stepper copied to clipboard

Conditional Steps

Open CrazyKidJack opened this issue 3 years ago • 1 comments

Description:

  • Part A: As a user, I want to be able to having branching macros so that a single macro can handle multiple execution paths based on some conditions). For example, in a sequence meant to log in a user and get a session cookie... I would like to

    1. Be able to make the first step of the macro check if the user is already logged in. If not (based on user defined condition using regex for example), do some step that logs the user in... if yes, do something else
    2. Be able to handle error conditions. For example: if while logging in the application times out, or returns some other kind of error... try again.
    3. Be able to have an arbitrary number of conditions, that I can determine the execution order of, that can be mapped to an arbitrary number of "possible next steps"
    4. Be able to add this conditional processing at any stage of the macro
    5. Be able to use this conditional processing with an arbitrary amount of nesting
  • Part B.1: As a user, I want to be able to define conditions based on regex in responses to use for "Part A". For example: if the defined regex x matches something in the response, do step y next... if regex m matches, do step n next... etc etc... if no regex matches, do step default next

  • Part B.2: As a user I want to be able to detect timeout conditions (which may require me to define for the plugin what constitutes a timeout) so that I can make conditions based on timeouts for use with Part A

  • Part C.1: As a user, I want to be able to define the regex for post-execution variables conditionally

  • Part C.2: As a user, I want to be able to define the value for post-execution variables conditionally

    • This would imply also being able to define the value of post-execution variables directly without using regex

There's a lot in this. I tried to make it clear. It's a single idea which is why I put it in one issue, but if I were putting it on a kanban board it'd definitely be several user stories.

CrazyKidJack avatar Jul 18 '22 18:07 CrazyKidJack

It would also be nice if I could conditionally pop up an error box notifying me if a particular condition was met (for example if I define a fail condition on login, it would be nice to get a pop up ideally with a custom error message)

CrazyKidJack avatar Jul 18 '22 18:07 CrazyKidJack