Skip to content

Commit c650310

Browse files
authored
Add section for simulation-file creation to README.
1 parent 6885f9e commit c650310

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,18 @@ To run the image:
1010
docker run -it -p 8888:8888 -p 8500:8500 -v example:/var/hoverfly/ ghashange/hoverfly:latest
1111
```
1212

13+
## Create a simulation.json
14+
15+
The simplest and most efficient way to get a `simulation.json` covering your needs is to use hoverfly as proxy in capture-mode to extract afterwards your request-responses into a newly created awesome looking clean `simulation.json`[hoverfly-tutorial](https://hoverfly.readthedocs.io/en/latest/pages/tutorials/basic/exportingsimulations/exportingsimulations.html):
16+
17+
```shell
18+
hoverctl start
19+
hoverctl mode capture
20+
curl --proxy http://localhost:8500 http://time.jsontest.com
21+
hoverctl export simulation.json
22+
```
23+
24+
Your need to [install **hoverctl**](https://hoverfly.readthedocs.io/en/latest/pages/introduction/downloadinstallation.html) for this.
25+
1326
[docker]: https://www.docker.com
1427
[hoverfly]: https://hoverfly.readthedocs.io/en/latest/

0 commit comments

Comments
 (0)