Automating API tests in code
Në shqip: Automatizimi i testeve të API-ve me kod
ShpjegimiSQ
Testet e API-ve në kod ekzekutohen në CI me çdo ndryshim: REST Assured (Java), Supertest (Node), pytest + requests/httpx (Python), ose request API i Playwright-it — i njëjti mjet për UI dhe API.
EnglishEN
API tests in code run in CI on every change: REST Assured (Java), Supertest (Node), pytest + requests/httpx (Python), or Playwright's request API — the same tool for UI and API.
Si ta mendosh
Si një robot që telefonon çdo zyrë çdo mëngjes për të parë nëse përgjigjet.
Lexoje në anglisht
Like a robot ringing every office each morning to check it answers.
Shembull kodijavascript
test("API kthen termin", async ({ request }) => {
const r = await request.get("/api/terms/api");
expect(r.ok()).toBeTruthy();
});