Forum Discussion

Slomo's avatar
Slomo
Occasional Visitor
5 months ago
Solved

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 h...
  • troyyerJP's avatar
    5 months ago

    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.