|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
scone.usertesttool.UserTestControl
public class UserTestControl
This class controls the test
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
protected static java.util.ResourceBundle |
labels
|
boolean |
outputDebugInfo
|
protected static PersistentProperties |
props
|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
UserTestControl()
|
Method Summary | |
---|---|
void |
buttonClick(UTButton button)
This method is involked when a button inside the TaskWindow is clicked |
void |
cancelTest()
cancelTest() is involked by TaskWindow when the user closed the task window |
TaskPanel |
createTestChooser(scone.usertesttool.PersistentTestStateStore ptss,
UserTestControl utc)
This method creates a TaskPanel that contains the test chooser and the chooser for unfinished Tests |
protected java.lang.Object |
getComponentByName(java.lang.String compName)
|
TaskWindow |
getTaskWindow()
|
protected boolean |
isInputComponent(java.lang.Object comp)
|
void |
pageCalled(java.lang.String pageName)
This method is called by UserTestToolMeg, everytime the Browser loads a page from host http://usertest.scone.de |
void |
pageLoading(Access access)
This method is called by EventObserver, everytime the Browser loads a new page. |
void |
pageUnloading(Access access)
|
org.w3c.dom.Document |
parseXmlFile(java.lang.String fileName)
|
void |
performActions(java.util.ArrayList actionList)
This method reads out the actions of a clicked button and performs them |
void |
prepareFirstTask(java.lang.String testPerson,
java.lang.String xmlFile,
int testNumber)
|
void |
restartTest(java.lang.String resultFile,
int taskNumber)
|
void |
run()
This method starts the thread and opens the gui. |
void |
startNextTask()
|
void |
textFieldReturn(UTTextField textField)
This method is involked when a TextEntryBox inside the TaskWindow is left with the return button |
java.lang.String |
unEscape(java.lang.String escaped)
This method returns the effect of the JavaScript escape() method. |
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static java.util.ResourceBundle labels
protected static PersistentProperties props
public boolean outputDebugInfo
Constructor Detail |
---|
public UserTestControl()
Method Detail |
---|
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public org.w3c.dom.Document parseXmlFile(java.lang.String fileName)
public void pageCalled(java.lang.String pageName)
pageName
- The name of the page calledpublic void pageLoading(Access access)
access
- The Access object, containing information about the loaded pagepublic java.lang.String unEscape(java.lang.String escaped)
escaped
- The escaped string
public void prepareFirstTask(java.lang.String testPerson, java.lang.String xmlFile, int testNumber)
public void startNextTask()
public void restartTest(java.lang.String resultFile, int taskNumber)
public void pageUnloading(Access access)
public void buttonClick(UTButton button)
public void textFieldReturn(UTTextField textField)
public void performActions(java.util.ArrayList actionList)
actionList
- The List of actions of the clicked buttonprotected boolean isInputComponent(java.lang.Object comp)
protected java.lang.Object getComponentByName(java.lang.String compName)
public void cancelTest()
public TaskPanel createTestChooser(scone.usertesttool.PersistentTestStateStore ptss, UserTestControl utc)
ptss
- PersistentTestStateStore object that contains the states of finished
unfinished tests and a list of valid test description xml
files.utc
- The UserTestControl object that receives the button clicks
of this Panel
public TaskWindow getTaskWindow()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |