Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Copy link
Copy link
Open
@AhmdZanoon

Description

@AhmdZanoon
Issue body actions

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

Metadata

Metadata

Assignees

Labels

theme:testngTestNG related issueTestNG related issuetype:bugSomething isn't workingSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.