hnishi / hello-locust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

hello-locust

Usage

$ locust -f locustfile.py

Open http://127.0.0.1:8089/ in a browser.

Enter the followings.

References

Locust

Requests


WireMock

docker pull rodolpheche/wiremock:2.28.1

Start the container of a mock server.

docker run -d --name rodolpheche-wiremock-container \
  -p 8080:8080 \
  -v $PWD/wiremock_config:/home/wiremock \
  -u $(id -u):$(id -g) \
  rodolpheche/wiremock \
    --verbose

You can check lists of mocked APIs.

With a browser, access the following URL.

http://localhost:8080/__admin/mappings

Send a get-reqest.

$ curl -X GET "http://localhost:8080/api/mytest" -w '\n%{http_code}\n'
More content

200

Delete the container.

docker rm -f rodolpheche-wiremock-container

About


Languages

Language:Shell 61.6%Language:Python 38.4%