
🌐 Machine-translated from Russian. Show original
ad-testlab is a test bench in the AD Tools series: a real domain controller (Samba AD, domain LAB.TEST) in Docker, pre-filled with plausible organization, and integration tests that run real LDAP code from all 15 services in the series against this controller. Before the stand, services were tested only on mocks and demo data — this was the main risk of the series.
🔒 Since 17.11.2026, the source code of the AD Tools series is provided upon request: leave a request. The showcase of the series is github.com/WorkTime-kz/ad-tools.
| Link |
|---|
| 🧪 | ad-testlab — stand, data, and tests |
| 🧩 | Common core of the series — ad-tools-core |
| 📦 | Installation of the entire series — ad-tools-suite |
In this part:
What's inside
Read moreLooking for:тестировщики с Dockerзнатоки Samba ADсверка с Windows Server ADконтрибьюторы

🌐 Machine-translated from Russian. Show original
Different roles are hidden under "analyst" in vacancies. Clarify in advance what it means:
| Role | Main Points in the Work | What is checked in interviews |
|---|
| Business analyst | business processes and needs | identifying requirements, modeling processes, communication, |
| System Analyst | as requirements become a system | specifications, integrations, APIs, data models, SQL, |
| Data Analyst | answers business questions about | SQL data, statistics, metrics, visualization, Python, |
Designations: J — junior, M — middle, S — senior.
In this part:
Business and systems analyst
J. How do functional requirements differ from non-functional ones?
Functional — what the system does: "the user can export the report to Excel." Non-functional — with what quality: performance ("the report takes no longer than 10 seconds"), security, availability, convenience, data storage requirements. A typical mistake is forgetting non-functional ones, only to find out the system "works, but not like that."
J. How to write a good user story?
Template: "As a , I want so that " — plus acceptance criteria. For example:
As an accountant, I want to upload the bank statement from the file so I don't have to enter payments manually.
Criteria: our bank statement format is supported; duplicates are not reloaded; unrecognized payments are shown as a list for manual processing.
Acceptance criteria are conveniently written in the format Given / When / Then — they can then be easily turned into tests.
Read more
🌐 Machine-translated from Russian. Show original
In this part:
Which scenarios to automate
Only key user paths that cost money to break are: registration and login, order placement, payment, creation of the main document. The rest is done via API and unit tests.
First test
npm init playwright@latest
import { test, expect } from "@playwright/test";
test("пользователь оформляет заказ", async ({ page }) => {
await page.goto("/");
await page.getByRole("link", { name: "Каталог" }).click();
await page.getByRole("button", { name: "В корзину" }).first().click();
await page.getByRole("link", { name: "Корзина" }).click();
await page.getByRole("button", { name: "Оформить заказ" }).click();
await expect(page.getByText("Заказ оформлен")).toBeVisible();
});
Locators
- Search for elements as a user: by role and text (
getByRole, getByLabel, getByText).
- For complex areas, negotiate stable attributes with the
data-testid.
- Don't use long CSS/XPath chains from layout — they break every time the design changes.
Flaky tests
Causes and solutions:
| Reason | Decision |
|---|
Fixed pauses sleep | Playwright and expect(...).toBeVisible() |
| Dependence on data from other tests | your data in each test |
| Animations and slow mesh | waiting for states rather than timing |
| External services | mocks for payments and SMS |
An unstable test is worse than an absent: the team stops trusting the red status. Fix or delete.
Tests in CI
Read more
🌐 Machine-translated from Russian. Show original
In this part:
Testing pyramid
| Level | How much | Speed | What checks |
|---|
| Unit tests | many | milliseconds | individual functions |
| Integration and API | average | seconds | components working together, contracts, |
| E2E through the | | interface | key user scenarios |
A common mistake is the "inverted pyramid": hundreds of slow and fragile UI tests and almost no quick ones. API tests provide the best balance of benefit and stability.
What to check in the API
- Response status : 200, 201, 400, 401, 403, 404.
- Answer scheme : fields, types, mandatory.
- Business logic: correct amount, status, balance.
- Rights: someone else's token does not receive someone else's data (403/404).
- Validation: incorrect data gives a clear error of 400, not 500.
- Idempotency: a repeated request does not create a duplicate order.
Example on Playwright (API tests)
import { test, expect } from "@playwright/test";
test("создание заказа и запрет чужого доступа", async ({ request }) => {
const res = await request.post("/api/orders", {
headers: { Authorization: `Bearer ${process.env.TOKEN_USER_A}` },
data: { productId: "p-1", qty: 2 },
});
expect(res.status()).toBe(201);
const order = await res.json();
expect(order.qty).toBe(2);
const foreign = await request.get(`/api/orders/${order.id}`, {
headers: { Authorization: `Bearer ${process.env.TOKEN_USER_B}` },
});
expect([403, 404]).toContain(foreign.status());
});
Read more
🌐 Machine-translated from Russian. Show original
In this part:
Why test design
It is impossible to check "all options." Test design is a way to select a minimal set of checks that finds the maximum number of errors.
Equivalence classes
The input data is divided into groups, within which the system behaves the same. One value from each group is sufficient.
Example: field "Quantity of goods", allowed 1–99.
| Class | Example value | Waiting |
|---|
| Permissible | 10 | accepted |
| Less than minimum | 0 | error |
| Above the maximum | 150 | error |
| Not the number | "abc" | error |
| Empty | — | error or default value |
Boundary values
Errors like boundaries: < instead of <=. For the range 1–99, check 0, 1, 2 , and 98, 99, 100.
Decision tables
When the result depends on a combination of conditions:
| New client | Amount > 50,000 ₸ | Promo code | Discount |
|---|
| yes | no | no | 5% |
| yes | yes | no | 10% |
| no | to | to | promo code + 5% |
| no | no | no | 0% |
Each row is a test. The table also identifies combinations not described in the requirements.
Checklists and test cases
- Checklist — checklist without detailed steps. Fast, flexible, good for an experienced team.
- Test case — steps, data, expected result. Needed for complex scenarios, regression, and transfer to others.
Read more