My Account Log in

1 option

Learn API testing : norms, practices, and guidelines for building effective test automation / Jagdeep Jain.

O'Reilly Online Learning: Academic/Public Library Edition Available online

View online
Format:
Book
Author/Creator:
Jain, Jagdeep, author.
Language:
English
Subjects (All):
Application program interfaces (Computer software)--Testing--Automation.
Application program interfaces (Computer software).
Computer software--Testing--Automation.
Computer software.
Physical Description:
1 online resource (xxii, 223 pages) : illustrations
Place of Publication:
New York, NY : Apress, [2022]
Summary:
Explore software web application architecture, API testing, coding practices, and the standards for better API test automation development and management. This book focuses on aspiring software testing engineers currently working in API testing, and those starting their journey in the field of software testing.
Contents:
Intro
Table of Contents
About the Author
About the Technical Reviewers
Acknowledgments
Introduction
Chapter 1: Introduction to API Testing
What Is API Testing?
Need
Types of API Testing
Advantages
Summary
Chapter 2: Web Application Architecture
Web Applications Defined
Monolithic vs. Microservices Architecture
Designing Test Strategies
RESTful Architecture
HTTP
Headers
Requests
Request Methods
Resource Addresses
Request Headers
Request Body
Response
Status Line
Response Header
Response Body
Response Codes
Chapter 3: Authentication
HTTP Authentication
Basic Authentication
Session-Based Authentication
Token/JWT-Based Authentication
OAuth2-Based Authentication
Authorization
RBAC
ABAC
Authentication and Authorization Services
Chapter 4: Tools, Frameworks, and Libraries
API Testing Tools
cURL
Authentication
POST
GET
PUT
DELETE
Postman
Workspace
Globals/Environments
Collection
Parameters
Assertions
HTTP Methods
Variables
Console
RestAssured
Frameworks/Libraries
TestNG
Log4j
Jackson-Databind
HashMap
Assertj
Java Spring
Chapter 5: Test Pyramid
Black Box Testing
Grey Box Testing
White Box Testing
Test Pyramid
Chapter 6: Testing the API
Workflows/Use Cases/Test Script
Schema Validation
Test Coverage
Header Testing
Request Header
Correct Header
Missing Header
Incorrect Header
Unsupported Type
Supported Type
Format Unsupported
Special Characters
Very Long Strings
Invalid Method
Invalid Value
Incorrect Data Type
Empty Data/Object.
Required Fields
Null
Redundant Fields
DELETE Already Deleted Entity
Duplicate Check
Actual Data vs. Expected Data
Limit/Size/Pagination/Sorting
API Version Testing
Internal vs. External APIs
Consumer-Driven Contract Testing
Importance of Negative Testing
Chapter 7: A Good Test Script
Components of a Test Script
setup()
test()
teardown()
Guidelines
Single-Attempt Test
Document Test Objective
Keep It Small
Use assertj for Assertions
Use log4j
Order of Tests
No Interventions Between Test Steps
Avoid Hard Sleeps
Always Use Assertions
Do Not Overtest
Do Not Import a Test into Another Test
Test Boundaries
API Test Coverage
Provide Short Commands
Do not try{} catch{}
Chapter 8: Coding Guidelines
Coding Best Practices
Class Naming Conventions
Method Naming Conventions
Variable Naming Conventions
Constant Naming Conventions
Provide User Actions
Simplicity
Indentation
Test Assertions
Test Class Naming Conventions
Test Method Naming Conventions
Test Package Naming Conventions
Documentation
Chapter 9: Organize a Test Framework
Framework Requirements
Request
Exception
Configuration
User Authentication
Processor
Model
Test Framework
Logger
Util
Test Execution
Debug Config
Test Driver
Setting Up a Maven Project
Dependencies and Plugins
Spring Framework
Maven Compiler Plugin
Surefire Plugin
Java Code Formatting Plugin
Exceptions
Properties File
Spring
Application Configuration
Application Context
Application Config
Complete URL For the Test Script
Test Data.
JSON File
Payload for POST and PUT HTTP Methods
Chapter 10: First Test Script
Developing Your First Test
Base Test
Request Processor
Response Processor
First Test
Test Suite
TestNG XML
Executing a Test
Execute a Test Suite
Execute an Individual Test
Execution Results
TestNG Report
Logging
log().all()
Response Time
Debug
Chapter 11: API Documentation
Swagger
Chapter 12: Case Study: Shopping Cart APIs
Feature List
QA Responsibility Matrix
Sprint #
Goal Setting
Sprint One
Sprint Guidelines
Definition of Done
Story Pointing
Backlog Grooming
Story Grooming
QA Tasks
Test Environment
Setting Up the Application
QA Tools
Continuous Integration/Continuous Deployment
Targeted Features
API Endpoints
Unit Testing
Test Plan Development
Test Data Preparation
Manual Test Scripts
Test Automation
Parallel Test Execution
Front-End Team
Sprint Nth
Sprint Demo Feedback Testing
Hardening Sprint
Release Testing
Appendix A: Workstation Setup
Java
MacOS
Ubuntu
Linux
Windows
Maven
Maven Project
IDE
Tomcat
MacOS/Ubuntu/Linux
Appendix B: Contact Management Application
Appendix C: Shopping Cart Application
Index.
Notes:
Description based on print version record.
Other Format:
Print version: Jain, Jagdeep Learn API Testing
ISBN:
9781484281420
148428142X
OCLC:
1336986462

The Penn Libraries is committed to describing library materials using current, accurate, and responsible language. If you discover outdated or inaccurate language, please fill out this feedback form to report it and suggest alternative language.

Find

Home Release notes

My Account

Shelf Request an item Bookmarks Fines and fees Settings

Guides

Using the Find catalog Using Articles+ Using your account