I cannot print a variable of type INT in the test.log () of the extents report and I need this information.
@Test
public void CT02_ContandoCategorias() {
Response response = given().contentType("application/json").get(urlBase);
test.log(LogStatus.INFO, "Chamando a Api", urlBase);
List<String> QuantidadeCategorias = response.jsonPath().getList("$");
test.log(LogStatus.PASS, "Retorno", response.jsonPath().getString("$").length());
}
I want you to print the number of items in the Report, but you are printing the name of the items.