Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Presentation

Learn API Testing_Norms, Practices, and Guidelines for Building Effective Test Automation

Rating
-
Sold
-
Pages
200
Uploaded on
18-07-2024
Written in
2018/2019

"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. You’ll begin with an introduction to API testing and software web applications involving APIs. The book then moves on to the authentication standards used in the software industry, and the tools, the frameworks, and the libraries used in API testing. As the book progresses, you’ll learn about the test pyramid, how to test an API, what makes a good test script, and various coding guidelines. Finally, you get to write your own API test script. Learn API Testing is your pathway to understanding a typical software web application, its requests and responses, and the properties of a good test script. What You’ll learn Examine practices, standards, and guidelines for effective test automation Work with different tools like RestAssured, Curl, and Postman Understand API testing paradigm (internal/external APIs, CDCT) Review a case study on the industrial software API testing process Organize a test framework"

Show more Read less
Institution
Course

Content preview

,Table of Contents
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
Summary
Chapter 3: Authentication
HTTP Authentication
Basic Authentication
Session-Based Authentication
Token/JWT-Based Authentication
OAuth2-Based Authentication
Authorization
RBAC
ABAC
Authentication and Authorization Services
Summary
Chapter 4: Tools, Frameworks, and Libraries
API Testing Tools
cURL
Postman
RestAssured
Frameworks/Libraries
TestNG
Log4j
Jackson-Databind
HashMap

,Assertj
Java Spring
Summary
Chapter 5: Test Pyramid
Black Box Testing
Grey Box Testing
White Box Testing
Test Pyramid
Summary
Chapter 6: Testing the API
Workflows/Use Cases/Test Script
Schema Validation
Test Coverage
Header Testing
Request Header
Response Header
Request Body
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
Response Body
Actual Data vs. Expected Data
Limit/Size/Pagination/Sorting
API Version Testing
Internal vs. External APIs
Consumer-Driven Contract Testing
Importance of Negative Testing
Summary
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{}
Summary
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
Summary
Chapter 9: Organize a Test Framework
Framework Requirements
Request
Response
Exception
Configuration
User Authentication
Processor
Model
Test Framework
Test Assertions
Logger
Util
Test Execution
Debug Config
Test Driver
Setting Up a Maven Project
Dependencies and Plugins

Written for

Course

Document information

Uploaded on
July 18, 2024
Number of pages
200
Written in
2018/2019
Type
PRESENTATION
Person
Unknown

Subjects

$4.99
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
RobertCuong

Get to know the seller

Seller avatar
RobertCuong Telecommunication
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
3 year
Number of followers
0
Documents
225
Last sold
-
GPON and WiFi

+ SDH solution based on Fujitsu/Alcatel/Huawei devices in deployment and troubleshoot + Switching and Routing network fundamental and advance + GPON solution with deep knowledge of PLOAM/OMCI, activation procedure. Analysis of Private/Public OMCI + WiFi solution with WiFi Management/Control/Data. WiFi bandsteering, WiFi mesh, and WiFi 6, 6E, 7, ...

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions