|
|||||||||||||||||||
| Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
| ITestResultsExporter.java | - | - | - | - |
|
||||||||||||||
| 1 | /** | |
| 2 | * JTRunner is free software; you can redistribute it and/or modify it under the | |
| 3 | * terms of the GNU General Public License as published by the Free Software | |
| 4 | * Foundation; either version 2, or (at your option) any later version. | |
| 5 | */ | |
| 6 | ||
| 7 | package jtr.test.results.exporters; | |
| 8 | ||
| 9 | import java.io.File; | |
| 10 | import jtr.assigner.IFactory; | |
| 11 | import jtr.remote.test.NodeInfo; | |
| 12 | import jtr.test.TestOutcomeTable; | |
| 13 | ||
| 14 | /** | |
| 15 | * This interface defines the behaviour of JTR components in charge of exporting | |
| 16 | * a JTR test result to an external format. | |
| 17 | * | |
| 18 | * @author frusso | |
| 19 | * @version 4.0 | |
| 20 | * @since 4.0 | |
| 21 | */ | |
| 22 | public interface ITestResultsExporter extends IFactory { | |
| 23 | ||
| 24 | /** | |
| 25 | * Export the test results produced by the specified JTR node. | |
| 26 | * | |
| 27 | * @param node The JTR node that produced the given <code>results</code> | |
| 28 | * @param results The results produced by the given <code>node</code> | |
| 29 | */ | |
| 30 | public void export(NodeInfo node, TestOutcomeTable results); | |
| 31 | ||
| 32 | /** | |
| 33 | * If required by the choosen output format, flushes to the specified output file. | |
| 34 | * | |
| 35 | * @param file The output file | |
| 36 | */ | |
| 37 | public void flush(File file); | |
| 38 | } |
|
||||||||||