Conversation
| .baseUri(BASE_URL) | ||
| .header("Content-type", "application/json") | ||
| .body(courier) | ||
| .post("/api/v1/courier"); |
There was a problem hiding this comment.
| @@ -0,0 +1,17 @@ | |||
| package model; | |||
|
|
|||
| public class Courier { | |||
There was a problem hiding this comment.
| .statusCode(201) | ||
| .body("ok", equalTo(true)); | ||
|
|
||
| courierId = courierSteps.getCourierId(courier); |
There was a problem hiding this comment.
⛔️Нужно исправить. Получать токен нужно до выполнения проверок тест
| Response response = courierSteps.createCourier(courier); | ||
|
|
||
| response.then() | ||
| .statusCode(409) |
There was a problem hiding this comment.
|
|
||
| response.then() | ||
| .statusCode(400) | ||
| .body("message", equalTo("Недостаточно данных для создания учетной записи")); |
There was a problem hiding this comment.
⛔️Нужно исправить. Нужно проверить создание курьера без пароля
| this.color = color; | ||
| } | ||
|
|
||
| @Parameterized.Parameters |
There was a problem hiding this comment.
|
|
||
| @Test | ||
| public void createOrderTest() { | ||
| Order order = TestData.generateOrder(List.of("BLACK")); |
There was a problem hiding this comment.
⛔️Нужно исправить. Здесь нужно использовать ТД
| response.then() | ||
| .statusCode(201) | ||
| .body("track", notNullValue()); | ||
| } |
There was a problem hiding this comment.
⛔️Нужно исправить. Созданный заказ нужно отменить после выполнения теста
| </annotationProcessorPaths> | ||
| </configuration> | ||
| </plugin> | ||
|
|
There was a problem hiding this comment.
⛔️Нужно исправить. Нужно приложить папку allure-results
No description provided.