Api Testing with RestAssured and Karate

4 Days

restjava
testingautomation

Intermediate

developertester

In this program, participants learn RestAssured & Karate and their use cases. Assuming little knowledge on participants-side, program starts with basics of Http and Api. It covers lot of ground for Junit as well. RestAssured & Karate are a free and open source rest api client library for java. With extensive configuration, auth support, serilaization, and first-class features, they allow to rapidly create and execute automated rest api testing when combined with Junit, very capable unit testing library. Participants learn how to use RestAssured & Karate to deal with rest api requests and responses for various usecases including authentition. Program allows participants to use RestAssured & Karate with Junit to test any rest api with data driven testing. Program includes demos and hands-on.

Audience

Program is primarily for participants who must be software savvy testers and developers who aspire to use RestAssured & Karate with Junit to efficiently conduct java api testing.

Prerequisites

Participant must be able to code in core java with standard library.

Topics
Web
  • History
  • Installation
  • Capabalities
  • Inteface surface
  • Testing Fundamentals
  • Types of test
  • How to find Test Cases?
  • Good Tests
  • Bad Tests
  • Role of Rest Assured
  • Role of Karate
  • HTTP
    • Request
    • Response
    • Status
    • Methods
    • Headers
    • Cookies
  • HTTP Clients
    • HTML, CSS and JS
    • Headless: Json, Xml
  • Text & RegEx
  • XML & Xpath
  • Json & JsonPath
Fundamentals
  • SOA and Micro-Services
  • MACH Architecture
    • Microservices
    • API first
    • Cloud native
    • Headless
  • REST
    • Methods
    • URL, URN, URI
    • Parameters
  • WADL
  • SOAP
  • WSDL
  • OpenApi and Swagger
  • JUnit
    • History
    • AAAC
    • Annotations
    • Initialization
    • Cleanup
    • Exceptions
    • Assertions
    • Fluent systax using Hamcrest
    • Data driven testing
    • Extension
RestAssured
  • Installation
  • Simple usage
  • Various assertions
    • Status
    • Header
    • Body
  • Handling
    • Url
    • Code and Body
    • Query parameters
    • Path parameters
    • Data
    • Headers
    • Cookies
    • Form Data
    • Files
    • Xml
    • Json
  • Specification
    • Request
    • Response
  • Mesauring time
  • Authentication
    • Basic
    • Form based
    • OAuth
    • CSRF
  • Serialization
  • Object mapping
  • Logging
  • Filtering
  • SSL
  • Cofiguration
  • Example of Live Api
Karate
  • Installation
  • Simple usage
  • Running Tests
  • Reports
  • Types
    • JSON
    • XML
  • Gherkin like DSL Syntax
    • Variables
    • Actions
    • Http
    • Request
    • Response
    • Assert
  • Reuse
  • Polling
  • Conditional Logic
  • Hooks
  • Transforms
  • Loops
  • Authentication
  • Mocking
  • Compare with Rest Assured
Exclusions

SDLC, Scrum, Load & Performance testing, Advanced Protocol Details
Anything not mentioned in Topics1

Software Requirements

Latest Eclipse for Java
Or any other IDE/editor participants are comfortable with

Internet Requirements

Good internet connection is required.

Hardware Requirements

Laptop capable to run MS Office

Classroom Requirements

Projector with HDMI, White Board, Markers with Eraser

Online Requirements

Appropriate meeting software e.g. Zoom, MS Teams
Please make sure that camera, speaker and mic are working

Footnotes

  1. If you have any query, please drop us a line.