-
-
Notifications
You must be signed in to change notification settings - Fork 400
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
Parameterized csvSource with body payload from reusable external JSON file #409
Comments
I would like to help but am totally new to this project. Can you please elaborate more on this? |
@pradeeppg89, thanks. |
@pradeeppg89, are you still looking into this? |
Hi @authorjapps
Now the Also I'm a little unclear on the reused son part. Can we please have a chat regarding this on Slack |
@Sauhardstark "parameterized": {
"csvSource":[
"octocat, The Octocat, San Francisco, 583231",
"siddhagalaxy, Sidd, UK, 33847730"
]
} What should be ideal is to source this from a CSV file e.g. "parameterized": {
"csvSource":"${CSV.FILE:my_data/params.csv}"
} where the
The 1st line is the header which can be ignored while reading. |
Hi @authorjapps |
Hello @authorjapps |
Hello @imprashant , Apologies for the delay as we were slightly busy in our day jobs. |
This would be a cool feature to have, really. |
Similar requirement has been requested in authorjapps/zerocode-hello-world#29 as well. |
PR merged. This feature is available in |
Example or Sample Below
See a sample test scenario here:
https://github.com/authorjapps/zerocode/blob/master/http-testing/src/test/resources/parameterized_csv/hello_world_test_parameterized_csv_source_files.json
Ticket Description:
From Slack:
@dorian
Hello,
is it possible to use csv data in a reused son?
Because the ${0} like variables in the file aren't getting swapped with the values from the csv.
This looks like anew feature request which needs to be implemented.
Please recheck the behavior before implementing it.
Current:
Inline CSV data in the
"parameterized"
block work fineDesired:
CSV data from external source should work in similar fashion.
AC Details
From the perspective of the changes, the following is a better way. e.g.
Currently, it works this way.
What should be ideal is to source this from a CSV file e.g.
where the
params.csv
content will be e.g.The 1st line is the header which can be ignored while reading.
The text was updated successfully, but these errors were encountered: