Hi,
my JSON collections are checked into a folder structure on Git so that the tests can run automatically on Jenkins. The folder structure is different from my local folder structure.
I would like to upload a file in a POST request. In the body (form-data) I specify key โfileโ as text, because the selection with โfileโ does nothing for me, as the execution on the Jenkins would not recognise this (in comparison to a local execution)!
I am looking for a way to determine the path to the collection at runtime. My upload file is in the same folder as the collection file.
I would like to determine the path to the files in the pre-request script and pass it as the path to the upload file in the body (form-data) as a value. So it wouldnโt matter where my files are - the upload file should always be found?
Many thanks and greetings.