com.metamatrix.core.commandshell
Class ScriptCommandTarget

java.lang.Object
  extended by com.metamatrix.core.commandshell.CommandTarget
      extended by com.metamatrix.core.commandshell.ScriptCommandTarget
All Implemented Interfaces:
StringUtil.Constants
Direct Known Subclasses:
QueryCommandTarget

public class ScriptCommandTarget
extends CommandTarget
implements StringUtil.Constants

Base command target class with scripting support.


Field Summary
protected static java.lang.String SETUP_SCRIPT
           
protected static java.lang.String TEST_PREFIX
           
protected  int testCount
           
protected  int testFailureCount
           
protected  java.lang.StringBuffer testFailureMessage
           
 
Fields inherited from class com.metamatrix.core.commandshell.CommandTarget
shell
 
Fields inherited from interface com.metamatrix.core.util.StringUtil.Constants
CARRIAGE_RETURN, CARRIAGE_RETURN_CHAR, DBL_SPACE, DOT, DOT_CHAR, EMPTY_STRING, EMPTY_STRING_ARRAY, LINE_FEED, LINE_FEED_CHAR, NEW_LINE, NEW_LINE_CHAR, PATTERN_BACK_SLASH, PATTERN_QUESTION, PATTERN_STAR, SPACE, SPACE_CHAR, TAB, TAB_CHAR
 
Constructor Summary
ScriptCommandTarget()
           
 
Method Summary
protected  java.lang.Object clone()
           
protected  java.lang.String getTestSummary()
           
protected  boolean hasSetupScript(java.lang.String fileName)
           
protected  void resetTestStatistics()
           
 java.lang.String run(java.lang.String scriptName)
           
 java.lang.String runAll()
           
protected  void runningScript(java.lang.String fileName)
           
 void runRep(int repCount, java.lang.String scriptName)
           
 java.lang.String runScript(java.lang.String fileName, java.lang.String scriptName)
           
 void setScriptFile(java.lang.String scriptFileName)
           
 void setSilent(boolean silent)
           
 
Methods inherited from class com.metamatrix.core.commandshell.CommandTarget
exit, getMethodsToIgnore, getShell, help, quit, setShell
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TEST_PREFIX

protected static final java.lang.String TEST_PREFIX
See Also:
Constant Field Values

testFailureCount

protected int testFailureCount

testCount

protected int testCount

SETUP_SCRIPT

protected static final java.lang.String SETUP_SCRIPT
See Also:
Constant Field Values

testFailureMessage

protected java.lang.StringBuffer testFailureMessage
Constructor Detail

ScriptCommandTarget

public ScriptCommandTarget()
Method Detail

setScriptFile

public void setScriptFile(java.lang.String scriptFileName)

hasSetupScript

protected boolean hasSetupScript(java.lang.String fileName)

runningScript

protected void runningScript(java.lang.String fileName)
Overrides:
runningScript in class CommandTarget

run

public java.lang.String run(java.lang.String scriptName)

runScript

public java.lang.String runScript(java.lang.String fileName,
                                  java.lang.String scriptName)

resetTestStatistics

protected void resetTestStatistics()

runAll

public java.lang.String runAll()

getTestSummary

protected java.lang.String getTestSummary()

runRep

public void runRep(int repCount,
                   java.lang.String scriptName)

setSilent

public void setSilent(boolean silent)

clone

protected java.lang.Object clone()
                          throws java.lang.CloneNotSupportedException
Overrides:
clone in class java.lang.Object
Throws:
java.lang.CloneNotSupportedException


Copyright © 2009. All Rights Reserved.