com.exoftware.exactor.command.web
Class SetWorkingForm

java.lang.Object
  extended byjunit.framework.Assert
      extended bycom.exoftware.exactor.Command
          extended bycom.exoftware.exactor.command.web.WebCommand
              extended bycom.exoftware.exactor.command.web.SetWorkingForm

public class SetWorkingForm
extends WebCommand

Command wrapping jwebunit WebTester.setWorkingForm( String }.

Usage example;

  
      SetWorkingForm nameOrId
  
 

Author:
Brian Swan

Constructor Summary
SetWorkingForm()
           
 
Method Summary
 void execute()
          Execute the command.
 
Methods inherited from class com.exoftware.exactor.command.web.WebCommand
getWebTester
 
Methods inherited from class com.exoftware.exactor.Command
addParameter, countParameters, getLineNumber, getName, getParameter, getParameter, getParameters, getScript, hasParameters, parametersAsString, resolveFileRelativeToScriptFile, setLineNumber, setName, setScript, substituteParameters
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SetWorkingForm

public SetWorkingForm()
Method Detail

execute

public void execute()
             throws java.lang.Exception
Execute the command. Begin interaction with a specified form. If form interaction methods are called without explicitly calling this method first, jWebUnit will attempt to determine itself which form is being manipulated.

It is not necessary to call this method if their is only one form on the current page. One parameter is expected, nameOrId.

Overrides:
execute in class Command
Throws:
java.lang.Exception - is an error occurs.
See Also:
AssertionFailedError