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

Since:
1.0
Version:
1.2.0

Field Summary
 
Fields inherited from interface org.eclipse.soda.dk.testmanager.service.TestScriptService
ATTR_DESCRIPTION, ATTR_PROVIDER, ATTR_TITLE, ATTR_URL, ATTR_VENDOR, ATTR_VERSION
 
Constructor Summary
TestScript()
          Constructs an instance of this class.
 
Method Summary
 void add(Action action)
          Add with the specified action parameter.
 java.util.Map getAttributes()
          Gets the attributes (Map) value.
 DistributedTestSessionService getDistributedTestSession()
          Gets the distributed test session (DistributedTestSessionService) value.
 ScriptRunListenerService getScriptListener()
          Gets the script listener (ScriptRunListenerService) value.
 TestStatisticsService getTestStatistics()
          Gets the test statistics (TestStatisticsService) value.
 void run()
          Run.
 void run(DistributedTestSessionService distributedTestSession, ScriptRunListenerService scriptListener, boolean asynchronous)
          Run with the specified distributed 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()
Constructs an instance of this class.

Method Detail

add

public void add(Action action)
Add with the specified action parameter.

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

getAttributes

public java.util.Map getAttributes()
Gets the attributes (Map) value.

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

getDistributedTestSession

public DistributedTestSessionService getDistributedTestSession()
Gets the distributed test session (DistributedTestSessionService) value.

Specified by:
getDistributedTestSession in interface TestScriptService
Returns:
The distributed test session (DistributedTestSessionService) value.

getScriptListener

public ScriptRunListenerService getScriptListener()
Gets the script listener (ScriptRunListenerService) value.

Specified by:
getScriptListener in interface TestScriptService
Returns:
The script listener (ScriptRunListenerService) value.

getTestStatistics

public TestStatisticsService getTestStatistics()
Gets the test statistics (TestStatisticsService) value.

Specified by:
getTestStatistics in interface TestScriptService
Returns:
The test statistics (Map) value.

run

public void run(DistributedTestSessionService distributedTestSession,
                ScriptRunListenerService scriptListener,
                boolean asynchronous)
         throws java.lang.InterruptedException,
                java.io.IOException
Run with the specified distributed test session, script listener and asynchronous parameters.

Specified by:
run in interface TestScriptService
Parameters:
distributedTestSession - The distributed test session (DistributedTestSessionService) parameter.
scriptListener - The script listener (ScriptRunListenerService) parameter.
asynchronous - The asynchronous (boolean) parameter.
Throws:
java.lang.InterruptedException - Interrupted Exception.
java.io.IOException - IOException.
See Also:
run()

run

public void run()
Run.

Specified by:
run in interface java.lang.Runnable
See Also:
run(DistributedTestSessionService,ScriptRunListenerService,boolean)

1.0.0

Copyright (c) 2007, 2009 IBM