Skip to content

馃悶: Before Suite and AfterSuite steps not appearing in allure report anymore after version 2.21#953

Description

@AhmdZanoon

What happened?

after suite method not shown in allure report since version 2.22
for example below code

package allure;

import org.testng.annotations.AfterMethod;
import org.testng.annotations.AfterSuite;
import org.testng.annotations.Test;

import io.qameta.allure.Attachment;
import io.qameta.allure.Step;

public class TestClass {

       @BeforeSuite
	public void beforeSuite() {
		stepHasNestedSteps();
	}
	
	@BeforeMethod
	public void beforeMethod() {
		stepHasNestedSteps();
	}
	
	@Step("step has nested steps")
	public void stepHasNestedSteps() {
		callAttachment();
		callAttachment2();
	}
	
	@Attachment("attachment - nested ")
	public void callAttachment() {
		System.out.println("attachment");
	}
	
	@Step("another nested step")
	public void callAttachment2() {
		callAttachment();
	}
	

	
	@Test(description="description")
	public void test() {
	stepHasNestedSteps();
		
	}
	
	
	@AfterMethod(description ="after test")
	public void after(){
		stepHasNestedSteps();
	}
	
	
	@AfterSuite(description ="after Suit")
	public void afterSuit() {
		stepHasNestedSteps();
	}
	

}

latest version
image

version 2.21
image

What Allure Integration are you using?

allure-testng

What version of Allure Integration you are using?

2.24.0

What version of Allure Report you are using?

2.24.0

Code of Conduct

  • I agree to follow this project's Code of Conduct

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions