Skip to content

HAR mock server provides the ability to mock API requests using HAR files. This can be useful for testing or reproduction of reported bugs where a HAR file has been captured in the browser.

License

Notifications You must be signed in to change notification settings

mcm-ham/har-mock-server

Repository files navigation

HAR Mock Server

HAR mock server provides the ability to mock API requests using HAR files. This can be useful for testing or reproduction of reported bugs where a HAR file has been captured in the browser.

https://developers.google.com/web/tools/chrome-devtools/network/reference#save-as-har

Installation

dotnet tool install -g mcmham.harmockserver

Usage

Update your client app to use HarMockServer as the server app by updating URL to be http://localhost:5000 (you can change this by specifying --urls http://localhost:8000). Then run the following command in the directory where the HAR files live (or by specifying folder via --har-folder path/to/files) specifying the real server app url.

harmockserver --api-url https://api.server.com

About

HAR mock server provides the ability to mock API requests using HAR files. This can be useful for testing or reproduction of reported bugs where a HAR file has been captured in the browser.

Resources

License

Stars

Watchers

Forks

Languages