🔌 LESSON 10 — API Testing
🔌 LESSON 10 — API Testing
👨💻 Individual Online English Lesson
Level: A2–B1 (IT Tester)
Grammar: Past Simple (Irregular Verbs)
Topic: API Testing Basics
🎯 LESSON OBJECTIVES
By the end of this lesson, you will be able to:
✅ understand basic API testing terminology
✅ describe requests and responses
✅ discuss testing results using Past Simple
✅ use irregular verbs naturally
✅ explain API testing to another person
🔥 WARM-UP
Answer the questions:
💬 Have you ever tested an API?
💬 What is easier: UI testing or API testing?
💬 Have you ever received an error code?
💬 What happens when an API stops working?
💬 Why is API testing important?
💬 Have you used Postman or Swagger?
💬 What information can an API return?
📚 VOCABULARY
| Word | 🇺🇦 Translation | Example Sentence | |
|---|---|---|---|
| API | API | The API connects the frontend and backend. | |
| request | запит | I sent a request to the server. | |
| response | відповідь | The response contained user data. | |
| endpoint | кінцева точка API | We tested several endpoints. | |
| status code | код статусу | The API returned status code 404. | |
| JSON | формат JSON | The response was in JSON format. | |
| authorization | авторизація | Authorization failed. | |
| header | заголовок запиту | The header contained a token. | |
| payload | корисне навантаження | The payload included customer information. | |
| token | токен доступу | The token expired yesterday. |
🧠 VOCABULARY CHECK
Complete the sentences:
I sent a __________ to the server.
The server returned a __________.
The API returned status __________ 500.
The user data appeared in __________ format.
The security __________ expired.
The tester checked the request __________.
🧠 GRAMMAR — PAST SIMPLE (IRREGULAR VERBS)
Today we will revise these common irregular verbs:
| Base | Past | Participle |
|---|---|---|
| send | sent | sent - відправити |
| give | gave | given - дати |
| get | got | got - отримати |
| find | found | found - знайти |
| see | saw | seen - бачити |
| go | went | gone - піти |
| make | made | made - створити |
| come | came | come - прийти |
| know | knew | known - знати |
| take | took | taken - взяти |
Examples
✅ I sent a request yesterday.
✅ The API gave an error.
✅ We found a bug.
✅ The tester saw an incorrect response.
✅ The application went offline.
✅ The developer made a fix.
📝 PRACTICE
Put the verbs into Past Simple:
I ______ (send) a request.
The server ______ (give) status code 500.
We ______ (find) a bug.
The tester ______ (see) incorrect data.
The API ______ (go) offline.
The developer ______ (make) a fix.
The client ______ (come) with a new requirement.
We ______ (take) screenshots.
📖 READING
🔍 The Mysterious API Error
Yesterday, our QA team tested a new API endpoint.
First, I sent a request using Postman. The request looked correct, and the authorization token was valid.
However, the response surprised me. Instead of returning customer information, the API gave status code 500.
I immediately checked the JSON response and found several unexpected fields.
Then I saw that one of the headers contained incorrect data.
The developers investigated the issue and discovered a problem in the backend service.
They made a correction and deployed a new version.
After that, I sent another request and received status code 200.
The response was correct, and all tests passed successfully.
📖 COMPREHENSION QUESTIONS
What did the tester send?
What status code did the API return first?
What did the tester find?
What was wrong with the header?
Who investigated the issue?
What happened after the fix?
Did the tests pass in the end?
🧠 API TESTER CHALLENGE
Choose the correct answer:
Which status code usually means "success"?
a) 404
b) 500
c) 200
Which item contains security credentials?
a) token
b) endpoint
c) payload
What is usually returned by the server?
a) request
b) response
c) endpoint
What format is often used in APIs?
a) PDF
b) JSON
c) Word
🗣️ SPEAKING PRACTICE
Answer:
💬 What API testing tools have you used?
💬 Have you ever received status code 500?
💬 What information can a JSON response contain?
💬 What did you test last week?
💬 What bug did you find recently?
💬 Why is authorization important?
🚨 BUG REPORT TASK
Create a short bug report.
Include:
✅ endpoint
✅ request
✅ response
✅ status code
Example
Title: Customer API returns 500
Steps:
Sent GET request.
Added authorization token.
Received status code 500.
Expected Result:
Status code 200.
Actual Result:
Status code 500.
🔄 IRREGULAR VERB REVISION
✍️ WRITING TASK
My API Testing Session
Write 10–12 sentences.
Include:
✅ API
✅ endpoint
✅ request
✅ response
✅ JSON
✅ token
✅ status code
✅ at least 5 irregular verbs
Example Start
Yesterday I tested a customer API. First, I sent a request to an endpoint. The API gave status code 500...
🎤 FINAL SPEAKING TASK
Explain API Testing Basics
Speak for 2–3 minutes.
Answer:
What is an API?
What is a request?
What is a response?
What is a status code?
What happened during your last API test?
Try to use:
✅ sent
✅ found
✅ saw
✅ made
✅ took
✅ gave
🌟 LESSON SUMMARY
Vocabulary
🔌 API
📨 request
📩 response
🎯 endpoint
🔢 status code
📄 JSON
🔐 authorization
📋 header
📦 payload
🪪 token
Grammar
✅ Past Simple (Irregular Verbs)
Useful Sentences
✅ The API returned status code 500.
✅ I sent a request.
✅ The response was incorrect.
✅ We found a bug.
✅ The developer made a fix.
🏆 Mission Complete: You can now discuss API testing results, explain request/response behavior, and use common irregular verbs when reporting bugs and test outcomes.


Коментарі
Дописати коментар