|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsota.SotaATM
public class SotaATM
Provides a test instance for coverage tests. Includes the non-GUI-functionality of SOTA:
Constructor Summary | |
---|---|
SotaATM(ProjectConfiguration sotaConfiguration)
Instantiates a test instance from a project configuration. |
|
SotaATM(java.lang.String file)
Instantiates a test instance from a project file. |
Method Summary | |
---|---|
boolean |
compile()
Compiles the project if an ant buildscript and a path to Apache Ant are available. |
boolean |
createReport(java.util.Set<java.lang.String> testSet,
java.lang.String fileName)
Creates a report for a specific set of test logs. |
boolean |
createReport(java.util.Set<java.lang.String> testSet,
java.lang.String fileName,
int fontSize,
boolean overwriteReport,
boolean useColors,
boolean showTests,
boolean showFunctions,
boolean showClasses,
boolean showInnerClasses)
Creates a report for a specific set of test logs and allows various configuration of the test format. |
boolean |
createReport(java.lang.String fileName)
Creates a report from all imported testfiles. |
boolean |
createReport(java.lang.String fileName,
int fontSize,
boolean overwriteReport,
boolean useColors,
boolean showTests,
boolean showFunctions,
boolean showClasses,
boolean showInnerClasses)
Creates a report from all imported testfiles. and allows various configuration of the test format. |
ProjectConfiguration |
getConfiguration()
Returns the current project configuration. |
Metrics |
getMetrics()
Returns the a container with the computed metrics. |
boolean |
instrument(int level)
Instruments the project according to the provided instrumentation level after backing up the original source files. |
boolean |
instrument(IScheme ischeme)
Instruments the project according to the provided IScheme after backing up the original source files. |
boolean |
instrument(java.lang.String ischemeName)
Instruments the project according to an IScheme after backing up the original source files. |
boolean |
openProject(java.lang.String file)
Opens a project file and reinitialises the test instance. |
boolean |
readLogs(java.util.TreeSet<java.lang.String> testSet)
Imports and processes a set of test log files. |
boolean |
reinit(ProjectConfiguration sotaConfiguration)
Reinitialises the test instances with a project configuration. |
void |
restore()
Restores the original source files. |
boolean |
run()
Executes the run script, if in project configuration. |
boolean |
run(java.lang.String scriptName)
Executes the provides run script. |
boolean |
saveProject()
Saves the project configuration in <name>.project ab. |
boolean |
startTest(java.lang.String testName,
java.lang.String testDesc,
IScheme ischeme,
boolean compileAndRun)
Starts a program test: backup of original source code instrumentation of the source code creation of test information compilation of test project via ant buildfile (optional) start of test project via run script(optional |
boolean |
startTest(java.lang.String testName,
java.lang.String testDesc,
java.lang.String ischemeName,
boolean compileAndRun)
Starts a program test: backup of original source code instrumentation of the source code creation of test information compilation of test project via ant buildfile (optional) start of test project via run script(optional |
boolean |
stopTest(java.util.TreeSet<java.lang.String> testSet,
boolean compile)
Stops a program test: restoration of source files import and processing of a set of test logs recompilation of the project (optional) |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SotaATM(ProjectConfiguration sotaConfiguration)
sotaConfiguration
- the project configurationpublic SotaATM(java.lang.String file)
file
- the project fileMethod Detail |
---|
public boolean compile()
public boolean createReport(java.util.Set<java.lang.String> testSet, java.lang.String fileName)
testSet
- the set of test logs to use for the reportfileName
- the name of the report file
public boolean createReport(java.util.Set<java.lang.String> testSet, java.lang.String fileName, int fontSize, boolean overwriteReport, boolean useColors, boolean showTests, boolean showFunctions, boolean showClasses, boolean showInnerClasses)
testSet
- the set of test logs to use for the reportfileName
- the name of the report filefontSize
- the font sizeoverwriteReport
- whether existing report files should be overwrittenuseColors
- whether to use colorsshowTests
- whether to list testsshowFunctions
- whether to list functionsshowClasses
- whether to list classesshowInnerClasses
- whether to list inner classes
public boolean createReport(java.lang.String fileName)
fileName
- the name of the report file
public boolean createReport(java.lang.String fileName, int fontSize, boolean overwriteReport, boolean useColors, boolean showTests, boolean showFunctions, boolean showClasses, boolean showInnerClasses)
fileName
- the name of the report filefontSize
- the font sizeoverwriteReport
- whether existing report files should be overwrittenuseColors
- whether to use colorsshowTests
- whether to list testsshowFunctions
- whether to list functionsshowClasses
- whether to list classesshowInnerClasses
- whether to list inner classes
public ProjectConfiguration getConfiguration()
public Metrics getMetrics()
public boolean instrument(int level)
level
- the instrumentation level (1-3)
public boolean instrument(IScheme ischeme)
ischeme
- the IScheme
public boolean instrument(java.lang.String ischemeName)
ischemeName
- the name of the IScheme
public boolean openProject(java.lang.String file)
file
- the project file
public boolean readLogs(java.util.TreeSet<java.lang.String> testSet)
testSet
- the set of test logs
public boolean reinit(ProjectConfiguration sotaConfiguration)
sotaConfiguration
- the project configuration
public void restore()
public boolean run()
public boolean run(java.lang.String scriptName)
scriptName
- the run script
public boolean saveProject()
public boolean startTest(java.lang.String testName, java.lang.String testDesc, IScheme ischeme, boolean compileAndRun)
testName
- the name of the testtestDesc
- the description of the testischeme
- the ISchemecompileAndRun
- whether the project should be compiled and started
public boolean startTest(java.lang.String testName, java.lang.String testDesc, java.lang.String ischemeName, boolean compileAndRun)
testName
- the name of the testtestDesc
- the description of the testischemeName
- the name of an ISchemecompileAndRun
- whether the project should be compiled and started
public boolean stopTest(java.util.TreeSet<java.lang.String> testSet, boolean compile)
testSet
- the set of test namescompile
- whether the source code should be compiled
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |