Allure Framework: using @Step and @Attachment annotations with TestNG and Maven
问题 I am working on a project that uses Allure framework with Java, TestNG and Maven. But I'm unable to generate correct XML files while using Allure @Step and @Attachment annotations in my Java program. Any sample code demonstrating usage of the above annotations is appreciated. I am using Allure 1.4.0.RC8. 回答1: These annotations are used in the same way with any Java-based test framework. To create a step: Create method with any visibility modifier (public, private, protected) with step logic