API Testing Without Code: Create, Check and Chain Real Requests
API testing without code: send a real request, click what must be right, reuse a value in the next call, upload a file, and run it all at every build.
API testing without code means sending a real request to a server, clicking the values that must be right in its answer, and saving both as a test step. No script is written, and the whole team can read it.
You may know this bug. The screen looks fine, the release goes out, and two days later someone finds orders saved with the wrong total. The API was wrong from the start, and nobody had checked it: API tests were something only developers could write.
What is API testing?
Definition
API testing is sending requests to an application's API and checking its answers.
- An API (application programming interface) is how one program asks another for something.
- A shop's website, its phone app and its warehouse may all use the same API to create an order.
- The test asks for that order the way they do, then checks the answer.
It tests the rules and the data behind the screen.
The test asks
POST /api/orders
{
"item": "Desk lamp",
"quantity": 2
}The server answers
201 Created · 182 ms
{
"id": 1042,
"item": "Desk lamp",
"quantity": 2,
"status": "open"
}- The statusDid the server accept it?
- The valuesIs the answer right?
- The timeWas it fast enough?
Many web APIs are REST APIs: each thing, such as an order, has an address, and the method says what to do with it.GET reads, POST creates, PUT and PATCH change, DELETE removes.The web's own standard, RFC 9110, defines most of these methods and the meaning of each status.
Does API testing require coding?
API testing does not require coding. It requires someone who knows the product and can say what a right answer is. Turning that into code is only one way to write it down.
| What needs doing | In a test script | In GUI Test Studio |
|---|---|---|
| Build the request | Code for the address, the headers and the body. | Rows you fill in, or a curl command you import. |
| Check a value of the answer | A line of code, with the value's path. | A click on the value, then Check This Value. |
| Use a value in the next call | Code that reads it, keeps it and passes it on. | Save as Variable, then its name in the next request. |
| Know why a call failed | Logging someone thought of adding. | The answer, with each check that did not hold. |
| Read the test later | Whoever reads that language. | The whole team, on a visual timeline. |
The tests developers keep beside their code still have their place. What changes is who else can take part: a QA tester, a product owner or an AI agent works on the same visual test. People decide what must be true, and the engine sends the requests and checks the answers the same way at every run.
End-to-end API testing, with an example: one order, created to deleted
One call rarely proves much. An answer that says created does not prove that the order was saved. End-to-end API testing follows one thing through its whole life, with each call checking the one before it.
| Call | Expected status | What it checks |
|---|---|---|
POST /orders | 201 | The answer holds an id, and status equals open.The id is saved as orderId. |
GET /orders/{{orderId}} | 200 | item equals Desk lamp and quantity equals 2.The order was really saved. |
DELETE /orders/{{orderId}} | 204 | The server agreed to delete it. Some APIs answer 200 here: check yours. |
GET /orders/{{orderId}} | 404 | The order is gone. Here, the refusal is the result the test wants. |
Four short steps test creating, saving, deleting and refusing.The last call also proves that the test left nothing behind.Add your app's screens, and you have end-to-end testing of the whole product.
How to test a REST API: your first request, step by step
Here is the first call of the example, the one that creates the order.
- 1
Add a Call API step
Open a test in GUI Test Studio, or start from an empty one.In the Events palette, drag Call API from the Test Flow group onto the timeline.
- 2
Open the request
Click Edit Request... in the step's Properties.A line at the top of the window always says the one next thing to do.
- 3
Describe the request and press Send
Choose the method, such as
POST, type the address, and write the body under Body.Press Send: the server's real answer appears on the right. - 4
Click what must be right
Click a value of the answer, then Check This Value, and the check is written for you.For a value the next calls need, such as the
id, click Save as Variable. - 5
Apply, then run the test
Every check says at once whether it holds on the answer shown.Click Apply when the step is right, then run the test.
How to test an API with curl, and keep the result
curl is a command that sends a request and prints the answer. It is often how a developer shows you that a call works.
curl -X POST https://shop.example.com/api/orders \
-H "Content-Type: application/json" \
-d '{"item": "Desk lamp", "quantity": 2}'It is a good way to try a call once, but a person still has to read the answer.The manual of curl says that, by default, curl does not consider HTTP response codes to indicate failure.Put in a build, that command alone looks fine even when the server answered with an error.
To keep it, click Import cURL... in the request editor and paste the command, such as the one your browser's developer tools copy.The step is filled in, and you click the values to check.Copy as cURL gives the command back, for a colleague or a bug report.
How to test API endpoints: what to check in each answer
An endpoint is one address of the API with one method, such as the one that creates an order. For each one, choose the checks that would catch a real mistake.
| What to check | Example | The mistake it catches |
|---|---|---|
| The status | It is 201. | A refused request taken for a success. |
| A value | total equals 120. | The right status with the wrong amount. |
| A list | items.length equals 2. | A line lost when the order was saved. |
| A header | Content-Type contains json. | An error page sent in place of data. |
| The whole answer | It does not contain password. | A value that should never leave the server. |
| The response time | It is less than 2000 milliseconds. | A call that became slow without anyone noticing. |
Then test the refusals: no token, a missing field, an unknown order.When the server refuses, the editor offers the status it gave, such as Expect 401, and the step then passes because of the refusal.API test cases with examples has ready-to-use tables for each kind of request.
What is API chaining?
API chaining means using a value from one call's answer in the next call. Nobody knows an order's id before the order exists, so a fixed id typed into a test is wrong the day that order is deleted.
- 1POST /ordersCreates the order and saves its id.201
- 2GET /orders/{{orderId}}Reads that order back.200
- 3DELETE /orders/{{orderId}}Deletes that order.204
- 4GET /orders/{{orderId}}Proves that it is gone.404
In GUI Test Studio, the saved value has a name, and every later step can use that name between double braces, such as {{orderId}}.A value is saved only when its call passed, so a failed call hands nothing to the next one.The cookies a server gives are kept too, and sent back by the later Call API steps of the same run.
A first Call API sends a user name and a password, and saves token as apiToken.Every later call sends {{apiToken}} as its Bearer token.While you edit a later call, Run the Steps Before This One runs the sign-in first, so Send works at once.
A chain starts from nothing, makes its own data and proves each step with the next one.
How to test a file upload API
An upload is a form that holds a file beside its texts.In the request editor, choose Form with files as the body and name the field.Then press File on its row and choose the file.
A file kept in the test's folder is remembered by its place there, so the test can move to another computer with its files. The report shows the file's name, type and size, never its content.
| Test case | What to expect |
|---|---|
| A normal photo | A success, often 201. Then read its record back, and check the name and the size. |
| A file over the size limit | A refusal with a clear reason.The standard's status is 413 Content Too Large. |
| A type that is not accepted | A refusal, such as 415 Unsupported Media Type.Many APIs answer 400 or 422, so check yours. |
| An empty file, or no file at all | A refusal that names the missing field, and no new record on the server. |
| A name with spaces and accents | The same success as the normal photo, with a name that still reads right. |
API testing in CI/CD: the same test at every build
A test that someone has to run by hand is soon forgotten.gtr-cli runs the same test on your build machine.Its exit code is 0 when the tests passed and 1 when one failed, so your pipeline stops on a wrong answer.
gtr-cli run tests --variables staging.env --junit junit.xml --artifacts resultsbaseUrl = https://staging.example.com/apiA secret stays out of that file.Make it a secret parameter of your pipeline, as an environment variable named GTS_VAR_ followed by the variable's name, such as GTS_VAR_apiToken.A value with such a name reads (hidden) in every result.
When a call fails, nobody has to run it again to see why:
| Where you look | What it tells you |
|---|---|
| The build's console and its JUnit file | Which check did not hold, and how the server's answer began. |
| The Confidence Report | The request, each check with what was found, and the whole answer as a list, as text and with its headers. |
| api_calls.txt, in the artifacts folder | Every request of the test with its answer, ready to send to a developer. |
The set-up for each CI/CD tool is in Run tests in CI/CD, and Run UI tests in TeamCity with gtr-cli follows one pipeline from start to finish.
Ask an AI assistant to add the API steps
Claude, ChatGPT with Codex, VS Code, or a local AI model we provide or you bring can add these steps through our connector. The assistant can send the request first to read the real answer, then add the step with its checks and saved values. You read the result on the timeline and decide whether it checks what matters.
- With GUI Test Studio, change my Checkout test: at its start, create an order through our API and save its id.
- With GUI Test Studio, change my Checkout test: after the payment, ask the API for the order and check that its status is paid.
The assistant is refused when it tries to write a key or a password into a test.See Create a test from a prompt.
Tokens, several servers, GraphQL and your app's screens
The same step does more, and each subject has its own article.
| Subject | In short | Read more |
|---|---|---|
| Authorization | A Bearer token, a user name and password, an API key, or an OAuth 2.0 sign-in made once per run. | OAuth 2.0 API testing |
| Several servers | One test for your computer, the test server and staging, with the address as a variable. | Environment variables in API testing |
| GraphQL | A query and its variables. The step fails when the answer reports an error. | GraphQL testing |
| Your app's screens | The same test makes its data through the API and checks what a user sees. | API testing vs UI testing |
What to know before you start
| Good to know | What it means |
|---|---|
| It is not a load test | The step checks an answer, and how long that one call took. It does not send thousands of requests at once. |
| No sign-in page for a person | A sign-in that opens a web page is recorded like any other part of your app. |
| Not covered | Client certificates and GraphQL subscriptions. |
| Typing into the app | What a Type Text step types is not filled in from a variable. |
| A test checks what it was told to check | A wrong value that nobody asked about passes. Choose the values that matter to your users. |
Key takeaways
- 1An API test is a conversation: a request, then checks on the status, the values and the time of the answer.
- 2It needs no code: send the real request, click what must be right, and the checks are written for you.
- 3Prove a change with a second call: created means little until the order has been read back.
- 4Chain the calls: save the id from the first answer, so each run works on data of its own.
- 5Run it at every build: the result says which check did not hold and what the server answered.
Questions
What is API testing, with an example?
API testing is sending a request to an application's API and checking the answer. For example, a test asks a shop's API to create an order, then checks that the status is 201, that the answer holds an order number, and that reading the order back gives the right item and quantity.
Does API testing require coding?
No. In GUI Test Studio, a Call API step holds the request and its checks as rows you fill in. You send the real request, click the values that must be right in the real answer, and the checks are written for you.
How do I test a REST API?
Send a request to one of its addresses, then check the status, the values and the time of the answer. For anything the request changed, read it back with a second request. An answer that says created is a promise, and the second request proves it.
How do I test an API with curl?
Run a curl command with the method, the headers and the body, and read the answer it prints. To keep it as a test, import the command into a Call API step: it fills the request, and you add the checks with a click.
What is API chaining?
API chaining is using a value from one call's answer in the next call. A first call creates an order and its id is saved, then the next calls read, change and delete that very order. Signing in and sending the token with the later calls is the same idea.
How do I test a file upload API?
Send a form that holds a real file, check the status, then read the file's record back. Repeat it with a file that is too large, a file of a type that is not accepted, and no file at all, and check that each one is refused with a clear reason.
Can API tests run in a CI/CD pipeline?
Yes. One command, gtr-cli, runs the same test on your build machine and answers with an exit code, so a failed check fails the build. The console and the JUnit file say which check did not hold and how the server's answer began.
Can one test check both the API and the app?
Yes. A Call API step stands on the same timeline as the clicks and the checks of the screen. One test can create its data through the API, use the app as a user does, then ask the server what it really saved.


