public AWSDeviceFarmTestResult()

in src/main/java/org/jenkinsci/plugins/awsdevicefarm/AWSDeviceFarmTestResult.java [68:92]


    public AWSDeviceFarmTestResult(AbstractBuild<?, ?> build, Run run) {
        this.build = build;

        if (run != null) {
            this.id = AWSDeviceFarmUtils.getRunIdFromArn(run.getArn());
            this.status = run.getStatus();
            this.result = ExecutionResult.fromValue(run.getResult());
            this.passCount = run.getCounters().getPassed();
            this.warnCount = run.getCounters().getWarned();
            this.failCount = run.getCounters().getFailed();
            this.totalCount = run.getCounters().getTotal();
            this.errorCount = run.getCounters().getErrored();
            this.skipCount = run.getCounters().getSkipped();

            //this.duration =

            try {
                this.stopCount = run.getCounters().getStopped();
            } catch (NullPointerException e) {
                // Ignore this until the stopped bug is fixed.
            }

            this.url = AWSDeviceFarmUtils.getRunUrlFromArn(run.getArn());
        }
    }