Skip to content

Returning data from multiple files stored in the simulation #18

Description

@pautib

Recently, I added API Recorder as an option for a simulation a customer asked for some months ago. Now, they are asking whether the information stored in the *.rec files with the history of requests and responses could be retrieved as an API, specifying for instance the range of dates with the transactions to be displayed. They say that for test automation purposes it would be easier for them to get this information as an API rather than reading or parsing the files.

I searched the documentation and all the examples involving returning data from files only allow you to explicitly select one file, like here:
https://apisimulator.io/docs/1.7/standalone-api-simulator/response-http-codec.html#large-file-download-example

In the Scripting section, I don't see any example or comment saying that it is possible to retrieve the information from multiple files in a simulation folder and parse them on the response. Is it something possible to do currently? If not, are you considering the implementation?

Thank you in advance

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions