Skip to content

qa-ops/bdd-automation-api

Repository files navigation

Selecione sua Língua | Select your Language

Português English

Automação de Testes de API usando BDD

Repositório

Branches

  • Master (contém o código do último vídeo) - main
  • Vídeo 1 - 01-basic-gradle-project
  • Vídeo 2 - 02-first-feature
  • Vídeo 3 - 03-first-implementation
  • Vídeo 4 - 04-docstring
  • Vídeo 5 - 05-rest-assured-setup
  • Vídeo 6 - 06-specification-by-example-scenario
  • Vídeo 7 - 07-cucumber-runner
  • Vídeo 8 - 08-creating-clients
  • Vídeo 9 - 09-cucumber-hooks
  • Vídeo 10 - 10-deleting-user-with-hooks
  • Vídeo 11 - 11-mapping-more-complex-jsons
  • Vídeo 12 - 12-deserialization
  • Vídeo 13 - 13-understanding-restassured-syntax
  • Vídeo 14 - 14-using-restassured-assertions
  • Vídeo 15 - 15-prepping-the-scenario
  • Vídeo 16 - 16-scenario-outline
  • Vídeo 17 - 17-asserting-with-groovy-collection
  • Vídeo 18 - 18-creating-builder-from-scratch
  • Vídeo 19 - 19-last-scenario
  • Vídeo 20 - 20-deleting-pets-created

Requisitos:

  • Java 14
  • Gradle 6.7
  • Docker

Executar os Testes Localmente

  • Subir a loja Swagger Pet Store - docker run --name petstore -d -p 12345:8080 swaggerapi/petstore3:unstable
  • Rodar os testes - ./gradlew test
  • Relatório do Cucumber - app/build/reports/feature.html

Vídeo

  1. Criação do Projeto e suas dependências
  2. Criando Primerio Cenário
  3. Codando o Primeiro Cenário
  4. Devo usar DocString?
  5. Rest Assured config
  6. Especificação por exemplo na prática
  7. criando o Executável
  8. Mapeando a API
  9. Criando Ganchos
  10. Limpando os Dados
  11. Json mais complexos
  12. Desserialização
  13. Sintaxe antiga do RestAssured
  14. Assertivas no RestAssured
  15. Preparando o cenário
  16. Esquema de Cenário
  17. Assertivas com Coleções Groovy
  18. Criando builders do zero
  19. Último cenário Parte 1
  20. Último cenário Parte 2

API Test Automation using BDD

Repository

Branches

  • Master (has the code from the last video) - main
  • Video 1 - 01-basic-gradle-project
  • Video 2 - 02-first-feature
  • Video 3 - 03-first-implementation
  • Video 4 - 04-docstring
  • Video 5 - 05-rest-assured-setup
  • Video 6 - 06-specification-by-example-scenario
  • Video 7 - 07-cucumber-runner
  • Video 8 - 08-creating-clients
  • Video 9 - 09-cucumber-hooks
  • Video 10 - 10-deleting-user-with-hooks
  • Video 11 - 11-mapping-more-complex-jsons
  • Video 12 - 12-deserialization
  • Video 13 - 13-understanding-restassured-syntax
  • Video 14 - 14-using-restassured-assertions
  • Video 15 - 15-prepping-the-scenario
  • Video 16 - 16-scenario-outline
  • Video 17 - 17-asserting-with-groovy-collection
  • Video 18 - 18-creating-builder-from-scratch
  • Video 19 - 19-last-scenario
  • Video 20 - 20-deleting-pets-created

Requirements:

  • Java 14
  • Gradle 6.7
  • Docker

Executing the tests locally

  • Start Swagger Pet Store - docker run --name petstore -d -p 12345:8080 swaggerapi/petstore3:unstable
  • Run the tests - ./gradlew test
  • Cucumber Report - app/build/reports/feature.html

Video

  1. Creating the Project and its dependencies
  2. Creating the First Scenario
  3. Implementing the First Scenario
  4. Should I use DocString?
  5. Rest Assured Config
  6. Hands on Specification by Example
  7. Runner Class
  8. Mapping the API
  9. Creating Hooks
  10. Cleaning the Data
  11. More complex jsons
  12. Deserialization
  13. RestAssured Old Syntax
  14. RestAssured assertions
  15. Preparing the scenario
  16. Scenario Outline
  17. Assertions with Groovy Collections
  18. Creating builder from scratch
  19. Last scenario Part 1
  20. Last scenario Part 2

About

Project to show how to use Cucumber on an API product

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages