zerocode icon indicating copy to clipboard operation
zerocode copied to clipboard

Is it possible to add YAML.FILE as a Value token?

Open bfarrell-ibm opened this issue 4 years ago • 3 comments

Hi,

The stepFile feature allows the user to reference a step written in json format.

 stepFile: "${JSON.FILE:reusable_content/get_authorisation.json}"

In our usage we are writing scenarion in yaml format - but it appears that the stepFile only supports json. Is there any plan to support a YAML file value token similar to JSON.FILE?

Support for ZIP would also be something that be useful for test cases we are currently attempting to implement.

bfarrell-ibm avatar May 21 '21 17:05 bfarrell-ibm

@bfarrell-ibm what's the usecase for zip file? In stepFile we are specifying json/yaml step.

sparrowV avatar May 23 '21 07:05 sparrowV

Just to clarify - the ZIP file support was not in relation to stepfiles.

A colleague has a scenario where and API call expects a zip as the payload. I don't have the exact details. He is investigating if using the HttpClient could be a suitable solution.

bfarrell-ibm avatar May 28 '21 10:05 bfarrell-ibm

Thanks for the PR 👍

PR merged. Pending a new version release and a Wiki page with an example.

nirmalchandra avatar Dec 07 '22 15:12 nirmalchandra