Add sequence args #79
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi @CoreyD97,
this PR would add the ability to pass arguments into sequences.
With the syntax
X-Stepper-Execute-Before: sequence: var1=value1; var2=value2or a dedicated argument headerX-Stepper-Argument: var=valuethis allows passing values into the sequence. The argument overrides the global variable of the sequence.With this addition, some more complex and different request sequences can be tested with Stepper. For example, I sometimes had the following behavior: One request creates some object based on the request's data. But the response does not include the created object. Another request only returns the previously created object.
Testing this behaviour is usually very annoying but with these changes this can be easily tested with Stepper.
I also added a short explaination of these changes to the About Tab.
Could you kindly review these changes and merge them if everything checks out.
This feature could be very nice.