org.jzonic.webtester.commands
Class CheckTableCellCommand
java.lang.Object
|
+--org.jzonic.webtester.commands.CheckTableCellCommand
- All Implemented Interfaces:
- WebTestNode
- public class CheckTableCellCommand
- extends java.lang.Object
- implements WebTestNode
This command will check if cell of a table contains
the required text. The x and y position are zero based.
If the x or y position is out of bounds for the table
then the test will fail.
The test will fail if no table was selected before.
The required text can also contain variables
parameter: (xpos,ypos) = text
example:
check_tablecell | (1,1) = Hello world
check_tablecell | (2,5) = ${username}
|
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.
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
COMMAND_NAME
public static final java.lang.String COMMAND_NAME
CheckTableCellCommand
public CheckTableCellCommand()
execute
public WebTestNodeResult execute(WebTestContext context)
- Description copied from interface:
WebTestNode
- 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.
- Specified by:
execute in interface WebTestNode
- Following copied from interface:
org.jzonic.webtester.commands.WebTestNode
- Parameters:
context - the WebTestContext- Returns:
- WebTestNodeResult containing the current result of this WebTestNode
setParameter
public void setParameter(java.lang.String value)
- Description copied from interface:
WebTestNode
- 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.
- Specified by:
setParameter in interface WebTestNode
- Following copied from interface:
org.jzonic.webtester.commands.WebTestNode
- Parameters:
value - the String containing all parameters
getName
public java.lang.String getName()
- Description copied from interface:
WebTestNode
- Returns the name of the concrete command
- Specified by:
getName in interface WebTestNode
- Following copied from interface:
org.jzonic.webtester.commands.WebTestNode
- Returns:
- the name of the command
Copyright © 2004 Andreas Mecky. All Rights Reserved.