1.0.0

org.eclipse.soda.dk.testagent
Class TestAgent

java.lang.Object
  extended by ConfigurableObject
      extended by org.eclipse.soda.dk.testagent.TestAgent
All Implemented Interfaces:
TestAgentService
Direct Known Subclasses:
TestAgentTest

public class TestAgent
extends ConfigurableObject
implements TestAgentService

Version:
1.0.0

Field Summary
static java.util.ResourceBundle DefaultResourceBundle
          Define the default resource bundle (ResourceBundle) field.
static int FAILED_TO_INVOLE_SUITE
          Define the failed to invole suite (int) constant.
static int FAILED_TO_RUN_TEST
          Define the failed to run test (int) constant.
static int INVALID_REPLY
          Define the invalid reply (int) constant.
static int METHODE_SUITE_MUST_BE_STATIC
          Define the methode suite must be static (int) constant.
static int MISSING_CONFIGURATION
          Define the missing configuration (int) constant.
static int MISSING_SYNCHRONIZATION
          Define the missing synchronization (int) constant.
static int NO_CHAR
          Define the no char (int) constant.
static int NOTIFICATION_SEVICE_NOT_AVAILABLE
          Define the notification sevice not available (int) constant.
static int OK_CANCEL_PROMPT
          Define the ok cancel prompt (int) constant.
static int PROMPT
          Define the prompt (int) constant.
static int USAGE
          Define the usage (int) constant.
static int YES_CHAR
          Define the yes char (int) constant.
 
Fields inherited from interface org.eclipse.soda.dk.testagent.service.TestAgentService
SERVICE_NAME
 
Constructor Summary
TestAgent()
          Constructs an instance of this class.
 
Method Summary
 java.lang.String getDescription()
          Gets the description (String) value.
 java.lang.String getId()
          Gets the id (String) value.
 NotificationService getNotificationService()
          Gets the notification service value.
 java.lang.Class getTestClass()
          Gets the test class (Class) value.
static TestContext getTestContext()
          Gets the test context value.
protected  java.lang.Class loadTestClass()
          Load test class and return the Class result.
static void main(java.lang.String[] args)
          Main with the specified args parameter.
 TestResult runTest(TestSynchronizationService syncService, java.util.Dictionary properties)
          Run test with the specified sync service and properties parameters and return the TestResult result.
 void runTest(TestSynchronizationService syncService, java.util.Dictionary properties, TestResult result)
          Run test with the specified sync service, properties and result parameters.
 void setNotificationService(NotificationService notificationService)
          Sets the notification service value.
 void setTestClass(java.lang.Class testClass)
          Sets the test class value.
static void setTestContext(TestContext context)
          Sets the test context value.
protected  void setUp()
          Sets up before testing, for example by acquiring a device.
protected  void tearDown()
          Tears down after testing, for example by releasing a device.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.soda.dk.testagent.service.TestAgentService
setConfigurationInformation
 

Field Detail

NOTIFICATION_SEVICE_NOT_AVAILABLE

public static final int NOTIFICATION_SEVICE_NOT_AVAILABLE
Define the notification sevice not available (int) constant.

See Also:
Constant Field Values

MISSING_CONFIGURATION

public static final int MISSING_CONFIGURATION
Define the missing configuration (int) constant.

See Also:
Constant Field Values

MISSING_SYNCHRONIZATION

public static final int MISSING_SYNCHRONIZATION
Define the missing synchronization (int) constant.

See Also:
Constant Field Values

METHODE_SUITE_MUST_BE_STATIC

public static final int METHODE_SUITE_MUST_BE_STATIC
Define the methode suite must be static (int) constant.

See Also:
Constant Field Values

FAILED_TO_INVOLE_SUITE

public static final int FAILED_TO_INVOLE_SUITE
Define the failed to invole suite (int) constant.

See Also:
Constant Field Values

FAILED_TO_RUN_TEST

public static final int FAILED_TO_RUN_TEST
Define the failed to run test (int) constant.

See Also:
Constant Field Values

USAGE

public static final int USAGE
Define the usage (int) constant.

See Also:
Constant Field Values

OK_CANCEL_PROMPT

public static final int OK_CANCEL_PROMPT
Define the ok cancel prompt (int) constant.

See Also:
Constant Field Values

PROMPT

public static final int PROMPT
Define the prompt (int) constant.

See Also:
Constant Field Values

YES_CHAR

public static final int YES_CHAR
Define the yes char (int) constant.

See Also:
Constant Field Values

NO_CHAR

public static final int NO_CHAR
Define the no char (int) constant.

See Also:
Constant Field Values

INVALID_REPLY

public static final int INVALID_REPLY
Define the invalid reply (int) constant.

See Also:
Constant Field Values

DefaultResourceBundle

public static java.util.ResourceBundle DefaultResourceBundle
Define the default resource bundle (ResourceBundle) field.

Constructor Detail

TestAgent

public TestAgent()
Constructs an instance of this class.

Method Detail

getTestContext

public static TestContext getTestContext()
Gets the test context value.

Returns:
The test context (TestContext) value.
See Also:
setTestContext(TestContext)

main

public static void main(java.lang.String[] args)
Main with the specified args parameter.

Parameters:
args - The args (String[]) parameter.

setTestContext

public static void setTestContext(TestContext context)
Sets the test context value.

Parameters:
context - The context (TestContext) parameter.
See Also:
getTestContext()

getDescription

public java.lang.String getDescription()
Gets the description (String) value.

Specified by:
getDescription in interface TestAgentService
Returns:
The description (String) value.

getId

public java.lang.String getId()
Gets the id (String) value.

Specified by:
getId in interface TestAgentService
Returns:
The id (String) value.

getNotificationService

public NotificationService getNotificationService()
Gets the notification service value.

Returns:
The notification service (NotificationService) value.
See Also:
setNotificationService(NotificationService)

getTestClass

public java.lang.Class getTestClass()
Gets the test class (Class) value.

Returns:
The test class (Class) value.
See Also:
loadTestClass(), setTestClass(Class)

loadTestClass

protected java.lang.Class loadTestClass()
Load test class and return the Class result.

Returns:
Results of the load test class (Class) value.
See Also:
getTestClass(), setTestClass(Class)

runTest

public void runTest(TestSynchronizationService syncService,
                    java.util.Dictionary properties,
                    TestResult result)
Run test with the specified sync service, properties and result parameters.

Specified by:
runTest in interface TestAgentService
Parameters:
syncService - The sync service (TestSynchronizationService) parameter.
properties - The properties (Dictionary) parameter.
result - The result (TestResult) parameter.
See Also:
runTest(TestSynchronizationService,Dictionary)

runTest

public TestResult runTest(TestSynchronizationService syncService,
                          java.util.Dictionary properties)
Run test with the specified sync service and properties parameters and return the TestResult result.

Specified by:
runTest in interface TestAgentService
Parameters:
syncService - The sync service (TestSynchronizationService) parameter.
properties - The properties (Dictionary) parameter.
Returns:
Results of the run test (TestResult) value.
See Also:
runTest(TestSynchronizationService,Dictionary,TestResult)

setNotificationService

public void setNotificationService(NotificationService notificationService)
Sets the notification service value.

Specified by:
setNotificationService in interface TestAgentService
Parameters:
notificationService - The notification service (NotificationService) parameter.
See Also:
getNotificationService()

setTestClass

public void setTestClass(java.lang.Class testClass)
Sets the test class value.

Parameters:
testClass - The test class (Class) parameter.
See Also:
getTestClass(), loadTestClass()

setUp

protected void setUp()
              throws java.lang.Exception
Sets up before testing, for example by acquiring a device. This method is called before the test is executed.

Throws:
Exception.
java.lang.Exception

tearDown

protected void tearDown()
                 throws java.lang.Exception
Tears down after testing, for example by releasing a device. This method is called after the test is executed.

Throws:
Exception.
java.lang.Exception

1.0.0

Copyright (c) 2007 IBM