API Testing Lesson 2

In this second lesson our API gets one more endpoint /api/put.

Base URL: 'http://www.answerit.ru' 1. Resource: /api/testing/get Method: GET Response: 200 OK 2. Resource: /api/put Method: PUT Response: 200 OK

Now you need to check whether a PUT request returns a 200 response.

We keep working with SOAP UI and will update the project from the first lesson

Right-click answerit.ru and choose New Resource

API testing example image from website www.aredel.com

We enter the new Resource Path that we learned from the API documentation - reread the documentation

API testing example image from website www.aredel.com

We change the HTTP Method from GET to PUT.

API testing example image from website www.aredel.com

We execute the request (click the green triangle)

And examine the response

API testing example image from website www.aredel.com

In the previous lesson I advised to study the tabs XML - JSON - HTML - Raw

Right now you see the response in the Raw format. That is, in the most pristine form of those available.

If 200 did not arrive, my site is down. Write in the comments whether it worked or not.

A big request - do not send too many requests. I am not sure what load the site can handle on my plan.

A small tip for the future - rename Method 1 to something else, for example Method01.

Method 1 is given to everyone by default, and if identical requests get identical method names this can cause problems for SOAP UI.

API testing example image from website www.aredel.com

Article author: Andrei Olegovich