Last updated: Dec 05, 2018 09:35
Adding your tests as part of a job in the DigitalZoom CI Dashboard when running the tests locally without using a CI server
Step-by-step guide
- Configure your DigitalZoom reporting as described in this guide for Java
Use the following code to create a job with build number based on the current timestamp in YYYYMMdd format:
DateFormat df = new SimpleDateFormat("YYYYMMdd"); Date today = Calendar.getInstance().getTime(); String reportDate = df.format(today); PerfectoExecutionContext perfectoExecutionContext = new PerfectoExecutionContext.PerfectoExecutionContextBuilder() .withProject(new Project("Perfecto Project", "1.0")) .withJob(new Job("Perfecto Sample Job", Integer.parseInt(reportDate))) .withContextTags("Perfecto") .withWebDriver(driver) .build(); ReportiumClient reportiumClient = new ReportiumClientFactory().createPerfectoReportiumClient(perfectoExecutionContext);
Related articles