Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conditional Steps #59

Open
CrazyKidJack opened this issue Jul 18, 2022 · 1 comment
Open

Conditional Steps #59

CrazyKidJack opened this issue Jul 18, 2022 · 1 comment

Comments

@CrazyKidJack
Copy link

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
Copy link
Author

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant