org.jzonic.webtester.commands
Interface WebTestNode

All Known Implementing Classes:
CheckOptionCommand, CheckTableCellCommand, CheckTextCommand, CheckTitleCommand, ClickLinkCommand, GetHtmlCommand, PrintHtmlCommand, ReadPropertiesCommand, SelectFormCommand, SelectTableCommand, SetCheckboxCommand, SetOptionCommand, SetParameterCommand, SetProxyCommand, SetTextFieldCommand, SubmitFormCommand

public interface WebTestNode

This interface defines all methods that a test command must implement.


Method Summary
 WebTestNodeResult execute(WebTestContext context)
          This method is called during the run of the testcase.
 java.lang.String getName()
          Returns the name of the concrete command
 void setParameter(java.lang.String value)
          This method is called from the WebTester to pass over the arguments.
 

Method Detail

setParameter

public void setParameter(java.lang.String value)
This method is called from the WebTester to pass over the arguments. The argument is taken from every line right after the | which marks the separator between the command and the parameter. Every command is responsible for extracting the parameters it needs out of this String.
Parameters:
value - the String containing all parameters

execute

public WebTestNodeResult execute(WebTestContext context)
This method is called during the run of the testcase. It will get the current WebTestContext passed over and must return a WebTestNodeResult. If this result is a failure then the entire test will stop and fail.
Parameters:
context - the WebTestContext
Returns:
WebTestNodeResult containing the current result of this WebTestNode

getName

public java.lang.String getName()
Returns the name of the concrete command
Returns:
the name of the command


Copyright © 2004 Andreas Mecky. All Rights Reserved.