REST Assured Basics - Lab 4
1. Deleting a simulation
Steps
- In the
SimulationsTest
class, create a test method namedshouldDeleteExistingSimulation()
- Add a precondition (
given()
) and set the CPF to delete using thepathParam()
method - Add the action using the
delete()
method to/simulations/{cpf}
- Add the assertion (
then()
) in thestatusCode
as204 no content
- Run the test
Expected results
- Green test execution where the following verifications will be performed successfully
- status code