In this video, we will be cleaning the data that was created by the test. Doing this is important, because a test should not leave 'dirt' for another test to clean up.
Subscribe: http://videos.qa-ops.com/subscribe
============TABLE OF CONTENTS===========
0:00 Introduction
1:24 Show which endpoint to delete the user
3:17 Creating after hook for deleting all users
4:30 Creating the method to delete all users in the UserApi
5:51 Using java for each
9:24 Using the deleteAllUsers method in the after hook
11:11 Removing RestAssured responseSpecification
============DOCUMENTATION===========
docs: http://videos.qa-ops.com/docs
============GITHUB===========
Github: https://repos.qa-ops.com/github
Repository: https://github.com/qa-ops/bdd-automat...
Branch: 10-deleting-user-with-hooks
============MENTIONED VIDEOS===========
BDD Intro API TestsI: • BDD | Intro API Tests
BDD What is it: • BDD | What is it
BDD the pros and cons: • BDD | the pros and cons
BDD Specification by Example: • BDD | Specification by Example
BDD What is Gherkin: • BDD | What is Gherkin
BDD Automation Architecture: • BDD | Automation Architecture
BDD Project and Dependencies: • BDD | Project and Dependencies
BDD First Scenario: • Cucumber | First Scenario
Cucumber Implementing the first scenario: • Cucumber | Implementing the first scenario
Cucumber Should I use docstring?: • Cucumber | Should I use docstring ?
Cucumber Rest Assured config: • Cucumber | Rest Assured config
Cucumber Hands on Specification by Example: • Cucumber | Hands on Specification by Example
Cucumber Runner Class: • Cucumber | Runner Class
Cucumber Mapping the API: • Cucumber | Mapping the API
Cucumber Creating hooks: • Cucumber | Creating hooks
============PLAYLISTS===========
Java RestAssured API: https://videos.qa-ops.com/java-restas...
Unix Command Line: https://videos.qa-ops.com/unix-comman...
Bash Script: https://videos.qa-ops.com/bash-script-en
============SOCIAL MEDIAS===========
Twitter: https://social.qa-ops.com/twitter
LinkedIn: https://social.qa-ops.com/linkedin
====MUSIC BY====
Author: Simone Geravini
Licensed by: Zimo Music
/ @zimomusiclibrary