authorjapps / zerocode

A community-developed, free, opensource, automated testing framework for microservices APIs, Kafka(Data Streams) and Load testing. Zerocode Open Source enables you to create, change and maintain your automated test scenarios via simple JSON or YAML files. Visit documentation below:
https://zerocode-tdd.tddfy.com
Apache License 2.0
884 stars 384 forks source link

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

Open bfarrell-ibm opened 3 years ago

bfarrell-ibm commented 3 years ago

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.

sparrowV commented 3 years ago

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

bfarrell-ibm commented 3 years ago

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.

nirmalchandra commented 1 year ago

Thanks for the PR 👍

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