Skip to content

TesterTech/WireMock-stateful-api-testing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WireMock-stateful-api-testing

WireMock and Rest-Assured for stateful API testing

WireMock standalone

This script makes use of wiremock standalone jar

  • To record start WireMock standalone the following way
java -jar wiremock-jre8-standalone-<version>.jar --port <7777> \
  --proxy-all="http://<proxy address>:<port>" \
  --record-mappings \ 
  --verbose 

Mappings

  • Make the mapping by putting your request/responsemappings in the mappings.json file in the mappings dir
  • Remember to restart once new mappings have been added.
  • The mappings used in the video can be found here

State

  • State can be setup in the mappings, can be called using __admin/scenarios

Rest Client (desktop)

  • Using insomnia rest client as a rest client
  • This is mainly used to setup and play around with the Backend JAVA API

Application

References

About

Code for the YT video https://youtu.be/lXNJUzCTpEo WireMock and Rest-Assured for statefull API testing

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages