Cucumber | RestAssured assertions
Channel: QaOps
Date: 17/02/2021

In this video, we will be doing RestAssured assertions. Although RestAssured uses hamcrest to do assertions, it is possible to do them straight from the http response along with Groovy collections, which is a very powerful combination.

Subscribe: http://videos.qa-ops.com/subscribe

============TABLE OF CONTENTS===========
- 0:00 Introduction
- 1:03  What we are trying to fix in our tests
- 3:01 Creating a method that returns the request's response
- 4:03 Using the response in the step defintion
- 4:50 Asserting the response's size using groovy collections
- 6:40 Using groovy collection to find elements by status
- 8:45 Asserting the array size dynamically

============DOCUMENTATION===========
- docs: http://videos.qa-ops.com/docs

============GITHUB===========
- Github: https://repos.qa-ops.com/github
- Repository: https://github.com/qa-ops/bdd-automation-api
- Branch: 14-using-restassured-assertions

============MENTIONED VIDEOS===========
- BDD Intro API TestsI: https://youtu.be/Eq_N_eYc3rY
- BDD What is it: https://youtu.be/4UuzwUUUIec
- BDD the pros and cons: https://youtu.be/UMpEpo6zuh8
- BDD Specification by Example: https://youtu.be/6RnK-Sa0dJw
- BDD What is Gherkin: https://youtu.be/NP7rHtkMbGg
- BDD Automation Architecture: https://youtu.be/8z6-nusWuJs
- BDD Project and Dependencies: https://youtu.be/0i72N1Fz_y0
- BDD First Scenario: https://youtu.be/A3uiR4quZr4
- Cucumber Implementing the first scenario: https://youtu.be/uFoq-XtbBa0
- Cucumber Should I use docstring?: https://youtu.be/M-S55a6ei1M
- Cucumber Rest Assured config: https://youtu.be/3jHMpmZfylY
- Cucumber Hands on Specification by Example: https://youtu.be/wkePKVTevYM
- Cucumber Runner Class: https://youtu.be/oqElg0mpfwY
- Cucumber Mapping the API: https://youtu.be/-_B2fFxfFdY
- Cucumber Creating hooks: https://youtu.be/Kg611Jv_ib8
- Cucumber Cleaning the data: https://youtu.be/IkH6gk2gNNQ
- Cucumber More complex jsons: https://youtu.be/YLuGI-j61MY
- Cucumber Deserialization: https://youtu.be/1QUjfMs74bA
- Cucumber RestAssured Old Syntax: https://youtu.be/1QUjfMs74bA

============PLAYLISTS===========
- Java RestAssured API: https://videos.qa-ops.com/java-restassured-automation
- Unix Command Line: https://videos.qa-ops.com/unix-command-line
- 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
- https://www.youtube.com/channel/UCu9V0aROh3RABqHdXLan5GA