hudson.plugins.PerfPublisher.matrixBuild.PerfPublisherMatrixBuild Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of perfpublisher Show documentation
Show all versions of perfpublisher Show documentation
The PerfPublisher plug-in scans for xml tests reports defined in the administration panel and generates trend graphs, computes stats and underline regressions and modifications. The xml files must be generated by your own testing tool.
package hudson.plugins.PerfPublisher.matrixBuild;
import hudson.plugins.PerfPublisher.Report.ReportContainer;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
/**
* This class encapsulates all the sub-builds results in it.
*
* @author gbossert
*
*/
public class PerfPublisherMatrixBuild {
/**
* Number of the matrix build
*/
private int nbBuild;
/**
* A list of all the sub-builds
*/
private List children;
/**
* Create a new matrix build based on its build number
* @param nbBuild number of the build
*/
public PerfPublisherMatrixBuild(int nbBuild) {
this.nbBuild = nbBuild;
children = new ArrayList();
}
/**
* Getter for the list of sub-builds
* @return the list of sub-builds
*/
public List getSubBuilds() {
return this.children;
}
/**
* Add a sub-build to this matrix
* @param child the sub-build to add
*/
public void addSubBuild(PerfPublisherMatrixSubBuild child) {
children.add(child);
}
/**
* Return the appropriate report for a list of combination
* @param combination List of combination
* @return the tests report
*/
public ReportContainer getReportForCombination(Map combination) {
ReportContainer result = null;
for (int i=0; i getAxis() {
List result = new ArrayList();
for (int i=0; i getAxisValues(String axe) {
List result = new ArrayList();
for (int i=0; i