API Testing...API Testing What is API testing? (and some relevant questions) - Search in Google -...

23
API TESTING Apr 21, 2019

Transcript of API Testing...API Testing What is API testing? (and some relevant questions) - Search in Google -...

API TESTINGApr 21, 2019

What is CRUD in database/SQL? Please think about the meaning and examples. And/or write them down

■C -

■R -

■U -

■D -

2

Status Update

■What did you do (regarding QA) since last

class?

■What will we do today?

■ Is there any roadblock?

3

What is CRUD in database? Please think about the meaning and examples. And/or write them down

■C - Create

■R - Retrieve

■U - Update

■D - Delete

4

CRUD – How do you do?

■C - Create

■R - Retrieve

■U - Update

■D - Delete

5

CRUD – How do you do?

1.How do you create an entry to a DB table?

Insert Into

2.How do you retrieve? Select a table and

the column and the condition.

3.How do you update? You use the Primary

Key/unique identifier of a table if needed.

4.How do you delete? Use Delete command

6

W3Schools

For additional SQL practices, please visit

https://www.w3schools.com/ or other

resources.

7

API Testing

What is API testing? (and some relevant

questions)

- Search in Google

- Compare 3 or more answers

- Write in your own language

- Be prepared to answer in next class

8

Student Record

srudentID FirstName LastName City State

00234 Wasim Malik Lilburn GA

00235 Mohamed Akram Lilburn GA

00237 Salim Malik Norcross GA

9

Student Record

srudentID FirstName LastName City State

00234 Wasim Malik Lilburn GA

00235 Mohamed Akram Lilburn GA

00237 Salim Malik Norcross GA

What information do I need to create

another record in this table?10

Student Record

srudentID FirstName LastName City State

00234 Wasim Malik Lilburn GA

00235 Mohamed Akram Lilburn GA

00237 Salim Malik Norcross GA

What information do I need to retrieve a

record from this table?11

Student Record

srudentID FirstName LastName City State

00234 Wasim Malik Lilburn GA

00235 Mohamed Akram Lilburn GA

00237 Salim Malik Norcross GA

What information do I need to edit a

record in this table?12

Student Record

srudentID FirstName LastName City State

00234 Wasim Malik Lilburn GA

00235 Mohamed Akram Lilburn GA

00237 Salim Malik Norcross GA

What information do I need to delete a

record from this table?13

POSTMAN

14

Endpoints and others

15

- Endpoints

- Authorization (Basic Auth, Oauth etc.)

- Data format (JSON, XML etc.)

- Response Code

Student Record

srudentID FirstName LastName City State

00234 Wasim Malik Lilburn GA

00235 Mohamed Akram Lilburn GA

00237 Salim Malik Norcross GA

What information do I need to create

another record in this table?16

POST

17

Student Record

srudentID FirstName LastName City State

00234 Wasim Malik Lilburn GA

00235 Mohamed Akram Lilburn GA

00237 Salim Malik Norcross GA

What information do I need to retrieve a

record from this table?18

GET

19

Student Record

srudentID FirstName LastName City State

00234 Wasim Malik Lilburn GA

00235 Mohamed Akram Lilburn GA

00237 Salim Malik Norcross GA

What information do I need to edit a

record in this table?20

Student Record

srudentID FirstName LastName City State

00234 Wasim Malik Lilburn GA

00235 Mohamed Akram Lilburn GA

00237 Salim Malik Norcross GA

What information do I need to delete a

record from this table?21

DELETE

22

HW■ Install POSTMAN – desktop application in your laptop

■ What is API testing?

■ What are the CRUD operations in API?

■ https://www.restapitutorial.com/httpstatuscodes.html

23