Инструменты API-тестирования
Инструменты
Bruno
# Запуск коллекции в CI
npx @usebruno/cli run collection/ --env staging --reporter junitPlaywright API Testing
import { test, expect } from '@playwright/test';
test('create and verify user via API', async ({ request }) => {
// Создать пользователя
const response = await request.post('/api/users', {
data: { name: 'Alice', email: 'alice@example.com' }
});
expect(response).toBeOK();
const user = await response.json();
expect(user.name).toBe('Alice');
// Проверить что пользователь доступен
const getResponse = await request.get(`/api/users/${user.id}`);
expect(getResponse).toBeOK();
});REST Assured
Postman / Newman
Hoppscotch
Сравнительная таблица
Критерий
Bruno
Playwright API
REST Assured
Postman
Hoppscotch
Когда что выбирать
Источники
Дополнительные материалы
Last updated