Allure-framework не показывает шаги
Использую связку TestNG + maven + Allure-framework. В отчете не показывается шаги(@Steps) pom:
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.example</groupId>
<artifactId>infotecs</artifactId>
<version>1.0-SNAPSHOT</version>
<build>
<plugins>
<plugin>
<groupId>io.qameta.allure</groupId>
<artifactId>allure-maven</artifactId>
<version>2.10.0</version>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>io.rest-assured</groupId>
<artifactId>rest-assured</artifactId>
<version>3.0.7</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>7.3.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.googlecode.json-simple</groupId>
<artifactId>json-simple</artifactId>
<version>1.1.1</version>
</dependency>
<dependency>
<groupId>io.qameta.allure</groupId>
<artifactId>allure-testng</artifactId>
<version>2.13.3</version>
</dependency>
</dependencies>
</project>
Пример теста и шага:
@Feature("Тест на создание/изменения/удаления пользователя")
public class TestAPI {
@Test
@Owner(value = "----")
public void testCRUDUser() {
Long userID = createUser();
JSONArray users = getAllUsers();
checkContainsUser(userID, users);
Assert.assertTrue(checkContainsUser(userID, users));
Response responseForUpdate = updateUser(userID);
Assert.assertEquals(responseForUpdate.getStatusCode(), OK);
Assert.assertEquals(getParamJSON("job", responseForUpdate.asString(), null),
getParamJSON(
Const.JOB_FOR_UPDATE,
null,
JSON_TEST_DATA_PATH));
Response responseForDelete = deleteUser(userID);
Assert.assertEquals(responseForDelete.getStatusCode(), DELETED);
}
@Step("Проверка создания нового пользователя")
public boolean checkContainsUser(Long userID, JSONArray users){
int createdUsers = 0;
for(Object o : users){
JSONObject object = (JSONObject) o;
if(object.get("id") == userID)
createdUsers ++;
}
return true;
}
}