Page tree
Skip to end of metadata
Go to start of metadata

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

  1. Configure your DigitalZoom reporting as described in this guide for Java

  2. 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)))
            ReportiumClient reportiumClient = new ReportiumClientFactory().createPerfectoReportiumClient(perfectoExecutionContext);