Addition of a "template" body type #2713
Unanswered
SummersRemote
asked this question in
Ideas
Replies: 2 comments
-
Hi @SummersRemote, thanks for the proposal it reminds me of #1116, we surely can do something about it! |
Beta Was this translation helpful? Give feedback.
0 replies
-
Yes, this is the #1116 issue.
or
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Please forgive me if this is a feature that I have not yet found :)
I am using hurl to load fairly complex test data with lots of inter-data dependencies to a suite of services. The approach I've been using is to have a separate file for each xml file to be posted (about 150 files) and then use a .hurl file to orchestrate the requests. After each file is created, I capture some data from the response and use that to create additional data to POST (another additional 50-100 requests).
For example, inside the .hurl file I have a lot of statements like this
The problem I have is that to use any of the captured values, I must created the request body in the same hurl file.
What I would like is to allow template variables inside of a file-type body so that I could use the captured vars in constructing dynamic requests, but keep the xml in a separate file as these files can be generated by another tool.
I propose adding a new body type called
template
that behaves similarly tofile
, but processes template variables before submitting the request.Beta Was this translation helpful? Give feedback.
All reactions