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

extend iterate-all support to template context #3818

Closed
tarunKoyalwar opened this issue Jun 12, 2023 · 1 comment · Fixed by #4015
Closed

extend iterate-all support to template context #3818

tarunKoyalwar opened this issue Jun 12, 2023 · 1 comment · Fixed by #4015
Assignees
Labels
Type: Enhancement Most issues will probably ask for additions or changes.

Comments

@tarunKoyalwar
Copy link
Member

Please describe your feature request:

iterate-all option which is only supported in http protocol allows dynamically extracted values (more than 1) to be iterated
which resolves issue related to handling of array and more

link to how it is implemented in http protocol

skip, gotErr = executeFunc(inputData, payloads, dynamicValues)
}
if gotErr != nil && requestErr == nil {

Implementation

  • to implement iterate-all to template context/level we need to add new internal method that must be implemented by all protocols
  func (r Request) executeFunc(data string,payloads ,dynamicValues map[string]interface{}) {
} 

similar to

executeFunc := func(data string, payloads, dynamicValue map[string]interface{}) (bool, error) {

  • this executeFunc will be used in ExecuteWithResults and will contain all logic except input/target
func (r *Request) ExecuteWithResults(....) {
 .... 
    r.executeFunc(...) 
...

for more details regarding implementation refer here

Describe the use case of this feature:

@tarunKoyalwar tarunKoyalwar added the Type: Enhancement Most issues will probably ask for additions or changes. label Jun 12, 2023
@tarunKoyalwar tarunKoyalwar linked a pull request Aug 14, 2023 that will close this issue
4 tasks
@tarunKoyalwar tarunKoyalwar self-assigned this Aug 14, 2023
@tarunKoyalwar
Copy link
Member Author

Note: This will not be worked on since this can be achieved easily with more features using flow option . and also because iterate-all is scheduler to be deprecated soon

@ehsandeep ehsandeep closed this as not planned Won't fix, can't repro, duplicate, stale Aug 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Most issues will probably ask for additions or changes.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants