Skip to content

software-testing-bootcamp/S2E4-API-Test-Karate-Gatling

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

S2E4 - API Automation, Performance and Security Tests with Karate

In this video, we will do 3 API Testing examples with Open Source technologies:

  • Functional API Testing with Karate (HERE MAPS API)
  • API Performance Testing with Gatling using Karate Scenarios (TESTRELIC.COM)
  • Web API Security Testing with Owasp ZAP using Local Proxy

Before starting, You can check this webinar doc on https://testingbootcamp.com

  • "API Testing and Test Automation with Rest Assured"

image

Youtube Webinar Video https://www.youtube.com/watch?v=wCpu70VYq7Q


Requirements:

  • Java JDK 8 or later
  • IntelliJ IDEA
  • IntelliJ Plugin - Gherkin
  • IntelliJ Plugin - Cucumber for Java
  • IntelliJ Plugin - Scala
  • Here Maps Developer Account with API Key

image

Functional API Testing with Karate

  • Run "src/test/java/karateFunctional/HereMapsAPITest.feature" file on IntelliJ.
  • Open "target/karate-reports/karate-summary.html" file.

image

API Performance Testing with Gatling using Karate Scenarios

  • Check "src/test/java/karateGatling/TestSimulation.scala" file on IntelliJ to review your performance test scenarios.
  • Open Terminal or Command Prompt and go to your project's pom.xml root folder.
  • Run This Command "mvn clean test-compile gatling:test"
  • Open "target/gatling/testsimulation-xxxxxxxx/index.html"

image

Web API Security Testing with Owasp ZAP using Local Proxy

  • Un-comment 2 lines on your "src/test/java/karate-config.js" file. (ssl & proxy)
  • Open Owasp ZAP and Run your Functional Tests on IntelliJ.
  • Check your requests are on the Owasp ZAP screen and you are able to start active scanning using Owasp Zap

image

image

Resources:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published