October 2018
Intermediate to advanced
192 pages
5h 12m
English
During the test execution, reporting for each step is possible using a user-defined class, which can have all the fillo methods, such as insertRecord and updateRecord. insertRecord will insert a new record into the report file and updateRecord will update an existing record.
The following class provides the code for our class called FilloReports.java:
public class FilloReports { private Formatter x; public void createFile() { String timestamp1 = new SimpleDateFormat("yyyyMMMddHHmmss") .format(new java.util.Date()); try { x = new Formatter("Results.xls" + timestamp1); } catch (FileNotFoundException e) { throw new FileNotFoundException(); } } public void insertRecord(String testcaseID, String result) { String query ...Read now
Unlock full access