Open DLukov opened 1 year ago
Describe the bug Annotation @Param doesn't work with TestNG framework
To Reproduce
public class AllureParameterizedTest { @DataProvider public static Object[][] numbers() { return new Object[][] { {1, 1, 2}, {2, 2, 4} }; } @Test(dataProvider = "numbers") public void sumTest( @Param("First Number") Integer a, @Param("Second Number") Integer b, @Param(value = "Result", excluded = true) Integer r) { step(("Arrange"), () ->{ step(String.format("Take collection №[%s] of parameters", a)); }); step(("Act"), () -> { step(String.format("Add [%s]", a) + String.format("to [%s]", b)); }); step(("Assert"), () -> { step("Compare the sum"); assert a + b == r; }); } }
Actual behavior Params in allure report marked as arg0, arg1, etc.
Expected behavior Params marked with text from @Param annotation
Screenshots
Versions:
io.qameta.allure 2.21.0 testng 7.7.0
but in report has correct names of parameters
but i have flag exclude = true - and it's not working for me
Describe the bug Annotation @Param doesn't work with TestNG framework
To Reproduce
Actual behavior Params in allure report marked as arg0, arg1, etc.
Expected behavior Params marked with text from @Param annotation
Screenshots
Versions: