examples/src/test/resources/features/api/Github.feature
2026-08-14 16:47:31 +03:00

31 lines
1.4 KiB
Gherkin
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#language:ru
@test
Функционал: Selenide github test
- Выполнение запроса в репозиторий selenide
- Проверка что статус-код = 200
- Извлечение данных из тела ответа по jsonpath
- Проверка извлеченных данных
Сценарий: Выполнение GET запроса в репозиторий selenide
* создать запрос
| method | url |
| GET | https://api.github.com/orgs/selenide/repos |
* добавить header
| Accept | application/vnd.github.v3+json |
* отправить запрос
* статус код 200
* извлечь данные
| name | $[?(@.full_name=='selenide/selenide')].name |
| id | $[?(@.full_name=='selenide/selenide')].id |
| language | $[?(@.full_name=='selenide/selenide')].language |
| homepage | $[?(@.full_name=='selenide/selenide')].homepage |
| size | $[?(@.full_name=='selenide/selenide')].size |
* сравнить значения
| ${name} | == | selenide |
| ${id} | != | null |
| ${language} | == | Java |
| ${homepage} | == | http://selenide.org |
| ${size} | > | 0 |