1.0.0

org.eclipse.soda.dk.testmanager
Class TestScript

java.lang.Object
  extended by org.eclipse.soda.dk.testmanager.TestScript
All Implemented Interfaces:
java.lang.Runnable, ActionContainer, TestScriptService

public class TestScript
extends java.lang.Object
implements TestScriptService, ActionContainer, java.lang.Runnable

Version:
1.0.0

Field Summary
 
Fields inherited from interface org.eclipse.soda.dk.testmanager.service.TestScriptService
ATTR_DESCRIPTION, ATTR_TITLE, ATTR_URL, ATTR_VENDOR, ATTR_VERSION, STATS_CONFIGURATION_COUNT, STATS_CONFIGURATION_ERROR_COUNT, STATS_SCRIPT_ERROR_COUNT, STATS_TEST_CASE_COUNT, STATS_TEST_CASE_ERROR_COUNT, STATS_TEST_CASE_FAILED_COUNT, STATS_TEST_COUNT, STATS_TEST_ERROR_COUNT
 
Constructor Summary
TestScript()
           
 
Method Summary
 void add(Action action)
          Add with the specified action parameter.
 java.util.Map getAttributes()
          Gets the attributes (Map) value.
 ScriptRunListenerService getScriptListener()
           
 TestSessionService getTestSession()
           
 java.util.Map getTestStatistics()
           
 void incrementStatistic(java.lang.String statsKey)
          Increment statistic with the specified stats key parameter.
 void run()
           
 void run(TestSessionService testSession, ScriptRunListenerService scriptListener, boolean asynchronous)
          Run with the specified test session, script listener and asynchronous parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestScript

public TestScript()
Method Detail

getAttributes

public java.util.Map getAttributes()
Description copied from interface: TestScriptService
Gets the attributes (Map) value.

Specified by:
getAttributes in interface TestScriptService
Returns:
The attributes (Map) value.

run

public void run(TestSessionService testSession,
                ScriptRunListenerService scriptListener,
                boolean asynchronous)
         throws java.lang.InterruptedException
Description copied from interface: TestScriptService
Run with the specified test session, script listener and asynchronous parameters.

Specified by:
run in interface TestScriptService
Parameters:
testSession - The test session (TestSessionService) parameter.
scriptListener - The script listener (ScriptRunListenerService) parameter.
asynchronous - The asynchronous (boolean) parameter.
Throws:
java.lang.InterruptedException - Interrupted Exception.

getTestSession

public TestSessionService getTestSession()
Specified by:
getTestSession in interface TestScriptService
Returns:
the testSession

getScriptListener

public ScriptRunListenerService getScriptListener()
Specified by:
getScriptListener in interface TestScriptService
Returns:
the scriptListener

incrementStatistic

public void incrementStatistic(java.lang.String statsKey)
Description copied from interface: TestScriptService
Increment statistic with the specified stats key parameter.

Specified by:
incrementStatistic in interface TestScriptService
Parameters:
statsKey - The stats key (String) parameter.

getTestStatistics

public java.util.Map getTestStatistics()
Specified by:
getTestStatistics in interface TestScriptService
Returns:
the testStatistics

add

public void add(Action action)
Description copied from interface: ActionContainer
Add with the specified action parameter.

Specified by:
add in interface ActionContainer
Parameters:
action - The action (Action) parameter.

run

public void run()
Specified by:
run in interface java.lang.Runnable

1.0.0

Copyright (c) 2007 IBM