1、reportNg效果展示
注:截图功能,必须在@aftermethod中引用,才能生成,示例如下
@AfterMethod public void f8(ITestResult result ){ try { ReportNGUtils reportNGUtils = new ReportNGUtils(); reportNGUtils.shotScreen(result); } catch (Exception e) { } }
1、reportNg效果展示
注:截图功能,必须在@aftermethod中引用,才能生成,示例如下
@AfterMethod public void f8(ITestResult result ){ try { ReportNGUtils reportNGUtils = new ReportNGUtils(); reportNGUtils.shotScreen(result); } catch (Exception e) { } }