Guest mode. You can read posts without signing up. Comments, ratings, job contacts and your own posts open after you sign up and accept the rules. What is Kommit →

#тестирование

Reset

5 posts tagged #тестирование: articles, how-tos, projects and jobs from the portal's IT professionals.

Редакция КоммитРедакция портала
commit 2d6a7ca · 10 days ago

🌐 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 more
Looking for:тестировщики с Dockerзнатоки Samba ADсверка с Windows Server ADконтрибьюторы
Comments 00 участников · 0 гостей🔒 Rate and discuss after signing up
Редакция КоммитРедакция портала
commit 51a5fb5 · 15 days ago

🌐 Machine-translated from Russian. Show original

Different roles are hidden under "analyst" in vacancies. Clarify in advance what it means:

RoleMain Points in the WorkWhat is checked in interviews
Business analystbusiness processes and needsidentifying requirements, modeling processes, communication,
System Analystas requirements become a systemspecifications, integrations, APIs, data models, SQL,
Data Analystanswers business questions aboutSQL 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
Comments 00 участников · 0 гостей🔒 Rate and discuss after signing up
Редакция КоммитРедакция портала
commit 0cab7fa · 19 days ago

🌐 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:

ReasonDecision
Fixed pauses sleepPlaywright and expect(...).toBeVisible()
Dependence on data from other testsyour data in each test
Animations and slow meshwaiting for states rather than timing
External servicesmocks 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
Comments 00 участников · 0 гостей🔒 Rate and discuss after signing up
Редакция КоммитРедакция портала
commit b176655 · 19 days ago

🌐 Machine-translated from Russian. Show original

In this part:

Testing pyramid

LevelHow muchSpeedWhat checks
Unit testsmanymillisecondsindividual functions
Integration and APIaveragesecondscomponents working together, contracts,
E2E through theinterfacekey 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
Comments 00 участников · 0 гостей🔒 Rate and discuss after signing up
Редакция КоммитРедакция портала
commit a174671 · 19 days ago

🌐 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.

ClassExample valueWaiting
Permissible10accepted
Less than minimum0error
Above the maximum150error
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 clientAmount > 50,000 ₸Promo codeDiscount
yesnono5%
yesyesno10%
nototopromo code + 5%
nonono0%

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
Comments 00 участников · 0 гостей🔒 Rate and discuss after signing up