|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.cornell.cs.sam.ui.TestScript
public class TestScript
This class holds an execution script to test multiple sam files and report the results.
Nested Class Summary | |
---|---|
static class |
TestScript.Test
Represents one single test |
static class |
TestScript.TestScriptException
|
static class |
TestScript.TestThread
|
Field Summary | |
---|---|
protected Memory |
mem
|
protected Processor |
proc
|
protected java.io.File |
sourceFile
|
protected Sys |
sys
|
protected java.util.List<TestScript.Test> |
tests
|
Constructor Summary | |
---|---|
TestScript()
Creates a new TestScript |
Method Summary | |
---|---|
protected static void |
addIO(org.w3c.dom.Document xmlDoc,
org.w3c.dom.Element testElem,
java.lang.String classParam,
java.lang.Object o)
|
protected static void |
addIOType(org.w3c.dom.Document xmlDoc,
org.w3c.dom.Element testElem,
java.lang.String classParam,
java.util.Collection<?> coll)
|
void |
clearTests()
Remove all tests from this script |
void |
deleteTests()
Deletes all of the tests that have been marked |
java.io.File |
getSourceFile()
Returns the file this TestScript is using |
java.util.List<TestScript.Test> |
getTests()
Return the vector of the tests |
void |
load(java.io.InputStream toParse)
Loads the provided input stream |
protected TestScript.Test |
processTest(org.w3c.dom.Element e)
Processes an individual test element |
void |
save(java.io.File toSave)
Saves the test script to a file |
void |
setSourceFile(java.io.File file)
Sets the file this testscript will load |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Sys sys
protected Processor proc
protected Memory mem
protected java.util.List<TestScript.Test> tests
protected java.io.File sourceFile
Constructor Detail |
---|
public TestScript()
Method Detail |
---|
public java.io.File getSourceFile()
public void setSourceFile(java.io.File file)
file
- the file to loadpublic void load(java.io.InputStream toParse) throws TestScript.TestScriptException
toParse
- The stream on which the XML file can be read
TestScript.TestScriptException
- if there is a problem parsing the XML fileprotected TestScript.Test processTest(org.w3c.dom.Element e) throws TestScript.TestScriptException
TestScript.TestScriptException
public void save(java.io.File toSave) throws TestScript.TestScriptException
toSave
- the file to save the XML test script to
TestScript.TestScriptException
- if there is an error writing the fileprotected static void addIOType(org.w3c.dom.Document xmlDoc, org.w3c.dom.Element testElem, java.lang.String classParam, java.util.Collection<?> coll)
protected static void addIO(org.w3c.dom.Document xmlDoc, org.w3c.dom.Element testElem, java.lang.String classParam, java.lang.Object o)
public java.util.List<TestScript.Test> getTests()
public void clearTests()
public void deleteTests()
TestScript.Test.delete()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |