Skip to content

ExtentReports _ Spark Reporter _ HyperLinks on Bug Page Not redirect to failed tests in latest version 5.1.1 #411

@AhmdZanoon

Description

@AhmdZanoon

in latest version 5.1.1 hyper links on bug pages in generated report not redirect to failed tests

sample code

import org.testng.annotations.Test;

import com.aventstack.extentreports.ExtentReports;
import com.aventstack.extentreports.ExtentTest;
import com.aventstack.extentreports.Status;
import com.aventstack.extentreports.reporter.ExtentSparkReporter;

public class TestExtent {
	
	
	@Test(description="test description")
	public void testFail(Method method) {
		ExtentReports extent = new ExtentReports();
		ExtentSparkReporter spark = new ExtentSparkReporter("target/");
		extent.attachReporter(spark);
		ExtentTest test;
	    test = extent.createTest("Test Name here");
		test.fail(new IllegalStateException("Fail message"));
		extent.flush();
	}
}

image

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions