Skip to content

Instantly share code, notes, and snippets.

@infomaven
Last active May 26, 2024 03:27
Show Gist options
  • Select an option

  • Save infomaven/a01e38859cf2777e903b121ddca20b9d to your computer and use it in GitHub Desktop.

Select an option

Save infomaven/a01e38859cf2777e903b121ddca20b9d to your computer and use it in GitHub Desktop.
SoapUI OSS - Testing Fundamentals

API Test Heuristics

Functional Testing

API test heuristics refer to a set of guidelines or rules that can be used to identify and test the functionality of an API. These heuristics are often based on the characteristics of the API, such as its parameters, output, interop, security, errors, and data. Here are some common API test heuristics:

TODO: find a heuristic or checklist for testing SOAP services

VADER: developed by Stuart Ashman

https://qa-matters.com/2016/07/30/vader-a-rest-api-test-heuristic/

  • VADER stands for Verbs, Authorization, Data, Errors, and Responsiveness. This heuristic can be used to test the API’s verbs, authorization, data, errors, and responsiveness.
  • optimized for REST apis

Exploratory testing: developed by James Bach & Cem Kaner

https://en.wikipedia.org/wiki/Exploratory_testing Exploratory testing involves testing the API without a specific test plan or script. This heuristic can be used to identify unexpected issues or edge cases.

Black Box Testing

https://www.geeksforgeeks.org/software-engineering-black-box-testing/?ref=header_search

Code feedback:

Code feedback involves generating test cases based on the API’s code. This heuristic can be used to identify issues that may not be caught by traditional testing methods.

API Testing Pyramid

Security

Security testing starts with Exploratory Testing. Find anamalies or unexpected behavior; then probe deeper.

A good way to get a grasp of the concepts is to use an application you control or one where the owner has granted permission for you to use active scans.

Some good starting points: // explore-with-postman repo - all v2 Json collections can be imported to SoapUI

https://github.com/ambertests/explore-with-postman/tree/master

// OwASP Juice Shop

// OWASP Web Goat

// vMAPI

More Resources for testing APIs

[Ministry of Testing] (https://club.ministryoftesting.com)

[API Testing Blog] (https://www.testingxperts.com/category/api-testing/)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment