🏠 | 💻 IT | QA | Contents |

API Testing Lesson 1

GET

First Lesson - test the following API.

Base URL: 'http://www.answerit.ru' Resource: /api/get Method: GET Response: 200 OK

All you need to do is to check if GET request returns 200.

There are multiple ways of doing it: with browser, with Postman , with Python etc.

In our first lessons we will concentrate on SOAP UI tool because it will allow to keep all requests in a single logically organized project. Which is important for future, more comlicated APIs.

Further reading about SOAP UI can be done in the article «SOAP UI basics»

Empty Soap UI looks similar to the image below

API testing example image from www.aredel.com

Create new REST Project

API testing example image from www.aredel.com

Enter url answerit.ru

API testing example image from www.aredel.com

GET request will be created by default - no need to change anything

API testing example image from www.aredel.com

Add /api/;get to the Resource field

We are using this Resource because it is exactly what is mentioned in the spec to this API - doublecheck

API testing example image from www.aredel.com

Click on green triangle and wait for 200 to come.

Additional exercise is to click all the tabs: XML - JSON - HTML - Raw and check how the same 200 responce looks there.

API testing example image from www.aredel.com

If you do not receive 200 double check that you are doing everything as it is in the article. May be the site is down

Please do not send to many requests, I am not sure what kind of load my site can tolerate.

We will discuss load testing in one of the upcoming lessons.

Share in social media: