mercredi 28 août 2019

Need to incorporate Start time and end time against each steps in my Automated script

I want to incorporate start time and end time against each steps in my automated scripts. I am using selenium with java & test NG

strCurrentDate = new SimpleDateFormat(driverProperties.getProperty("logFolderDateFormat")).format(date);
extent = new ExtentReports("./"+driverProperties.getProperty("BatchFileName")+strCurrentDate+".html", false);
extent.loadConfig(new File("./extent-config.xml"));
extent.addSystemInfo("Cockpit Build No.", driverProperties.get("BuildNumber").toString());

Aucun commentaire:

Enregistrer un commentaire