org.mactor.framework.extensioninterface
Interface ValueCommand

All Known Implementing Classes:
CurrentTimeExtractor, RandomIntExtractor, XPathIgnoreNsValueExtractor

public interface ValueCommand

The interface that must be implemented by value commands

From a testspec: <value name="MyValue" command="java:class that implements the ValueCommand interface"/>

Author:
Lars Ivar Almli

Method Summary
 java.lang.String extractValue(TestContext context, java.util.List<java.lang.String> params)
          The method invoked by the testrunner to perform the action node.
 

Method Detail

extractValue

java.lang.String extractValue(TestContext context,
                              java.util.List<java.lang.String> params)
                              throws MactorException
The method invoked by the testrunner to perform the action node.

Parameters:
context - contains information about the context of the test that might be useful (such as all messages sent/received so far in the test)
params - the list of parameteres specifed for the given node in the test-spec xml (after the ##{...} substitution has been performed)
Throws:
MactorException - if some problem occured (this will case the test to fail)


Copyright © 2008. All Rights Reserved.