
co.poynt.postman.runner.PostmanRunResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of postman-runner Show documentation
Show all versions of postman-runner Show documentation
A module to run a POSTMAN collections.
The newest version!
package co.poynt.postman.runner;
import java.util.ArrayList;
import java.util.List;
public class PostmanRunResult {
public int totalRequest = 0;
public int failedRequest = 0;
public int totalTest = 0;
public int failedTest = 0;
public List failedRequestName = new ArrayList();
public List failedTestName = new ArrayList();
@Override
public String toString() {
String s = "\n*************************************\n";
s += "Total Requests = " + totalRequest + "\n";
s += "Failed Requests = " + failedRequest + "\n";
s += "Total Tests = " + totalTest + "\n";
s += "Failed Tests = " + failedTest + "\n";
s += "Failed Request Names: " + failedRequestName + "\n";
s += "Failed Test Names: " + failedTestName + "\n";
s += "*************************************\n";
return s;
}
public boolean isSuccessful() {
return failedRequest == 0 && failedTest == 0;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy