io.qase.commons.models.report.RunStats Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of qase-java-commons Show documentation
Show all versions of qase-java-commons Show documentation
Qase TMS Reporter's common classes
The newest version!
package io.qase.commons.models.report;
public class RunStats {
public int passed;
public int failed;
public int skipped;
public int broken;
public int muted;
public int total;
public RunStats() {
this.passed = 0;
this.failed = 0;
this.skipped = 0;
this.broken = 0;
this.muted = 0;
this.total = 0;
}
public void track(ShortReportResult result, boolean muted) {
switch (result.status) {
case "passed":
this.passed++;
break;
case "failed":
this.failed++;
break;
case "skipped":
this.skipped++;
break;
}
this.total++;
if (muted) {
this.muted++;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy