'In extent reports test tab ss null and in exception tab there is a failed exception
'public void logo(Method method, ITestContext context) throws IOException {//new ScreenShotUtil().elementScreenshot(driver,driver.findElement(By.xpath("//*[local-name()='svg']//parent::div[@class='ui__logo']")), "standardLogo");
context.getCurrentXmlTest().addParameter("image", "name");
test = extent.createTest(method.getName(), "Some Description");
test.info("Logo Comaparision");
driver.switchTo().frame("storybook-preview-iframe");
new ScreenShotUtil().pageScreenshot(driver,"Welcome");
boolean bol = new ScreenShotUtil().areImageEqual("Xlogo", "Welcome");
if(bol)
test.log(Status.PASS, "Images are matching");
else {
test.log(Status.FAIL, String.valueOf(test.addScreenCaptureFromPath(System.getProperty("user.dir")+"\\Images\\diffimages\\Xlogo.png")));
//test.log(Status.FAIL, "Images are not matching", test.addScreenCaptureFromPath(System.getProperty("user.dir")+"\\Images\\diffimages\\Xlogo.png"));
}
Assert.assertTrue(bol);
// Assert.assertTrue(new ScreenShotUtil().areImageEqual("Xlogo", "Welcome"));
}'
Above test is failing. In test tab of report am not seeing any test getting created. please refer the attched screenshot 
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
