use of de.dagere.kopeme.generated.TestcaseType.Datacollector in project peass by DaGeRe.
the class TestResultOrganizer method testXMLFileIsCorrect.
private void testXMLFileIsCorrect() throws JAXBException {
File kopemefile = new File(getVersionMeasurementFolder(), searchedTest.getMethod() + "_0_" + VERSION_NAME + ".xml");
Kopemedata data = XMLDataLoader.loadData(kopemefile);
final Datacollector datacollector = data.getTestcases().getTestcase().get(0).getDatacollector().get(0);
final Fulldata fulldata = datacollector.getResult().get(0).getFulldata();
Assert.assertNotNull(fulldata.getFileName());
File fulldataFile = new File(getVersionMeasurementFolder(), fulldata.getFileName());
Assert.assertTrue(fulldataFile.exists());
}
use of de.dagere.kopeme.generated.TestcaseType.Datacollector in project peass by DaGeRe.
the class TestResultOrganizerParallel method testXMLFileIsCorrect.
private void testXMLFileIsCorrect() throws JAXBException {
File kopemefile = new File(getVersionMeasurementFolder(TestResultOrganizer.VERSION_NAME, PARALLEL_VERSION), TestResultOrganizer.searchedTest.getMethod() + "_0_" + PARALLEL_VERSION + ".xml");
Kopemedata data = XMLDataLoader.loadData(kopemefile);
final Datacollector datacollector = data.getTestcases().getTestcase().get(0).getDatacollector().get(0);
final Fulldata fulldata = datacollector.getResult().get(0).getFulldata();
Assert.assertNotNull(fulldata.getFileName());
File fulldataFile = new File(getVersionMeasurementFolder(TestResultOrganizer.VERSION_NAME, PARALLEL_VERSION), fulldata.getFileName());
Assert.assertTrue(fulldataFile.exists());
}
use of de.dagere.kopeme.generated.TestcaseType.Datacollector in project peass by DaGeRe.
the class TestDependencyTester method checkResult.
public static void checkResult(final PeassFolders folders) throws JAXBException {
final File expectedSummaryResultFile = folders.getSummaryFile(EXAMPLE_TESTCASE);
Assert.assertTrue(expectedSummaryResultFile.exists());
final Kopemedata data = XMLDataLoader.loadData(expectedSummaryResultFile);
final Datacollector collector = data.getTestcases().getTestcase().get(0).getDatacollector().get(0);
final Chunk chunk = collector.getChunk().get(0);
Assert.assertEquals(105, chunk.getResult().get(0).getValue(), 0.1);
Assert.assertEquals(5, chunk.getResult().get(0).getRepetitions());
Assert.assertEquals(11, chunk.getResult().get(0).getIterations());
Assert.assertEquals(10, chunk.getResult().get(0).getWarmup());
}
use of de.dagere.kopeme.generated.TestcaseType.Datacollector in project peass by DaGeRe.
the class MeasurementFileFinder method getDataCollector.
public static Datacollector getDataCollector(final String method, final List<TestcaseType> testcaseList) {
Datacollector datacollector = null;
for (final TestcaseType testcase : testcaseList) {
if (testcase.getName().equals(method)) {
datacollector = testcase.getDatacollector().get(0);
}
}
if (datacollector == null) {
final TestcaseType testcase = new TestcaseType();
testcaseList.add(testcase);
testcase.setName(method);
datacollector = new Datacollector();
testcase.getDatacollector().add(datacollector);
}
return datacollector;
}
use of de.dagere.kopeme.generated.TestcaseType.Datacollector in project peass by DaGeRe.
the class MultipleVMTestUtil method getStatistics.
public static DescriptiveStatistics getStatistics(final File resultFile) throws JAXBException {
final XMLDataLoader fullDataLoader = new XMLDataLoader(resultFile);
final Kopemedata fullResultData = fullDataLoader.getFullData();
final Datacollector oneRunDatacollector = getTimeDataCollector(fullResultData);
final DescriptiveStatistics st = new DescriptiveStatistics();
for (final Result r : oneRunDatacollector.getResult()) {
st.addValue(r.getValue());
}
return st;
}
Aggregations