BSiLabs / HttpTracer

MIT License
172 stars 13 forks source link

Save request/response and replay #38

Closed pug-pelle-p closed 5 years ago

pug-pelle-p commented 5 years ago

Hi! I really like this project, could this be used for testing? Is there any planned feature for saving requests and responses to disk? And then used that saved data to replay the request, for testing purpose?

dylanberry commented 5 years ago

Hi, I'm happy you're finding HttpTracer useful!

Yes, HttpTracer could certainly be used for testing. There is a sample of saving requests to persistent storage in the sample: https://github.com/BSiLabs/HttpTracer/blob/390cd93ebd2b9b5d48ce84f9dccbdf88fd290ee6/src/HttpTracer.TestApp/ViewModels/MainPageViewModel.cs#L71

There are no plans to replay the saved requests with HttpTracer, but you can use a tool like Rest Client to replay the requests: https://marketplace.visualstudio.com/items?itemName=humao.rest-client

The requests are formatted for Rest Client so this is an ideal option.