Skip to content

An example on how to setup a quick wiremock stub for performance testing. I will be using this as a test stub service for other git projects.

Notifications You must be signed in to change notification settings

husainkhambaty/wiremockstub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Wiremock Stub

An example on how to setup a quick wiremock stub for performance testing. I will be using this as a test stub service for other git projects.

This example uses the standalone jar file to quickly pick a configuration file that bring up the stub service on the designated port.

For more information please read Getting Started.

Pre-requisites

You can download the standalone jar here. Once downloaded, you should copy the jar in a safe location with the required permissions.

Start your engines

To start the wiremock

java -jar <wiremock-jar-full-path> --port <port> --root-dir <your-mappings-path>

Hint: It is quite convenient to copy the jar to a specific location to help with standardisation such as /opt/wiremock/bin and use environment variables.

Example:

export WIREMOCK_PATH="/opt/wiremock"
java -jar ${WIREMOCK_PATH}/bin/wiremock-standalone-2.27.2.jar --port 8999 --root-dir ${WIREMOCK_PATH}/config/test-service --container-threads 100

Also see

Gatling Simulation Template

About

An example on how to setup a quick wiremock stub for performance testing. I will be using this as a test stub service for other git projects.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published