Use in-place variable inside prerequest or assign value from other variable
Answered
Hi,
I want to consolidate some scripts and need to populate some variables from other variables.
I wrote something like this :
### Put file somepdf
run include/import_file.http(@filetype={{typeFilePdf}}, @fileName='someFile.pdf')
### Put file someImage
run include/import_file.http(@filetype={{typeFileImage}}, @fileName='image.png')
In my example, the typeFilePdf
and typeFileImage
are set from another request.
The variable fileType
is never assigned with the value of the variable but with their name with braces.
I then try to access the in-place variable value in the pre-request of my script, but it seems that in-place variables are not stored in the client or request section?
Any clues?"
Please sign in to leave a comment.
Hello, N Guerinet. The problem you described seems to be a bug on our side. Could you please provide a sample project so I can try to reproduce it, too? You can share it via the JetBrains Uploads service and write here the ID you receive there.