Why readyAPI does not let me have multiple file content to create a file as an output?
Hello all,
After running my test steps, I want to create a file (adding another test step) with the previous test steps request and results as an output, but in the file content it does not let me have more than one data source from my test steps using 'get data'. It automatically rewrites the previous data if I want to add an additional data source to create the file as an output.
But if I copy the data sources individually and paste it on a word document, and then copy the whole thing and paste it there( in the file content) ; then it keeps the sources but after running the test it keeps on giving me an error saying ' (The file name, directory name, or volume label syntax is incorrect)
Appreciating your assistance in advance.
you can do multiple however the ReadyAPI UI doesnt let you do it quite nicely as whenever you want to use the "Get Data", it overwrites the existing value. So I would suggest a 2 step process. Keep a separate text editor open after before needing to use Get Data, copy the existing value from the field out to the text editor, use the Get Data feature, and then repaste back in the prior text value
TestStep Request:
${Request Step#RawRequest}TestStep Response:
${Request Step#Response}i create a sample one on my ReadyAPI instance and the above was working for getting the data out
for the file name, you should end it with a valid file format like
.txt
i believe the Test Step would not have that mentioned
also ensure that the file folder is present.