5
API Testing Magus Chen [email protected] http://magustest.com/blog

Api testing

Embed Size (px)

DESCRIPTION

 

Citation preview

Page 1: Api testing

API Testing

Magus [email protected]

http://magustest.com/blog

Page 2: Api testing

Categorization of Tests

Small

Medium

Large

Page 3: Api testing

Categorization of Automation

Unit Test

API Test

UI

Page 4: Api testing

● Common

○ Code level

○ May need to read the code under test (white box test)

● Unit test won't:

○ Query on Database

○ Communicate across network

○ Touch file system

○ Run several tests at the same time

Unit Test vs. API Test

Page 5: Api testing

● Return value based on input condition

● Does not return anything

● Trigger some other API/event/interrupt

● Modify certain resources

Test Cases for API Test