|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.jelly.TagSupport net.sf.jameleon.LocationAwareTagSupport net.sf.jameleon.JameleonTagSupport net.sf.jameleon.function.FunctionTag net.sf.jameleon.plugin.jagacy.JagacyFunctionTag
public abstract class JagacyFunctionTag
Field Summary | |
---|---|
protected com.jagacy.Session3270 |
session
|
protected JagacySessionTag |
sessionTag
|
Fields inherited from class net.sf.jameleon.function.FunctionTag |
---|
addt, breakPoint, expectException, expectFailure, fResults, functionDelay, functionId, lastFileWritten, log, NO_DELAY, params, postcondition, precondition, st, state, tct, vpt |
Fields inherited from class net.sf.jameleon.JameleonTagSupport |
---|
attributes, broker, contextVars, fp, unsupportedAttributes |
Fields inherited from class net.sf.jameleon.LocationAwareTagSupport |
---|
columnNumber, elementTagName, lineNumber, scriptFileName |
Fields inherited from class org.apache.commons.jelly.TagSupport |
---|
body, context, hasTrimmed, parent, shouldTrim |
Constructor Summary | |
---|---|
JagacyFunctionTag()
|
Method Summary | |
---|---|
void |
assertTextNotPresent(String text)
Checks that the provided text doesn't exist in the current screen |
void |
assertTextNotPresent(String text,
int assertLevel)
Checks that the provided text doesn't exist in the current screen |
void |
assertTextNotPresent(String msg,
String text)
Checks that the provided text exists in the current screen |
void |
assertTextNotPresent(String msg,
String text,
int assertLevel)
Checks that the provided text doesn't exist in the current screen |
void |
assertTextPresent(String text)
Checks that the provided text exists in the current screen |
void |
assertTextPresent(String text,
int assertLevel)
Checks that the provided text exists in the current screen |
void |
assertTextPresent(String message,
String text)
Checks that the provided text exists in the current screen |
void |
assertTextPresent(String message,
String text,
int assertLevel)
Checks that the provided text exists in the current screen |
String |
getScreen()
|
void |
pluginTearDown()
|
String |
readField(int field,
int offset)
Reads the value in the given field. |
String |
readPosition(int row,
int column,
int length)
Reads the value at the current position. |
String[] |
readScreen()
Reads the current screen. |
void |
setupEnvironment()
Gets the references of the session and the test results from the parent TestCase This method gets called once all attributes are set from the macro language. |
void |
store(String fName,
int event)
|
boolean |
waitForChange(int timeInMillis)
Waits for timeInMillis for the screen to change state. |
boolean |
waitForField(int field,
int offset,
String value,
int timeInMillis)
Waits (in 100 millisecond intervals) for the value to appear at the given field and offset. |
boolean |
waitForPosition(int row,
int column,
String value,
int timeInMillis)
Waits (in 100 millisecond intervals) for the value to appear at the given coordinates. |
boolean |
waitForUnlock(int timeInMillis)
Waits for timeInMillis for the keyboard to unlock. |
void |
writeAfterLabel(String label,
String value)
Finds a label and attempts to enter the given text in the field directly after the label |
void |
writeCursor(int row,
int column)
Writes the cursor at the given coordinates |
void |
writeField(int field,
int offset,
String value)
Writes the given text to the nth field |
void |
writeKey(com.jagacy.Key key)
Writes the given Key to the screen. |
void |
writePosition(int row,
int column,
String value)
Writes a string at the given coordinates |
void |
writeString(String value)
Writes the given String to the current cursor position |
Methods inherited from class net.sf.jameleon.JameleonTagSupport |
---|
cleanVariablesInContext, createAttributes, describeAttributes, getAttributeBroker, getAttributes, getAttributeType, getClassAttributes, getFunctionalPoint, getUnsupportedAttributes, loadFunctionalPoint, resetFunctionalPoint, setAttribute, setVariableInContext, testForUnsupportedAttributesCaught |
Methods inherited from class net.sf.jameleon.LocationAwareTagSupport |
---|
getColumnNumber, getElementName, getFileName, getLineNumber, setColumnNumber, setElementName, setFileName, setLineNumber |
Methods inherited from class org.apache.commons.jelly.TagSupport |
---|
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isEscapeText, isTrim, setBody, setContext, setEscapeText, setParent, setTrim, trimBody |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.commons.jelly.Tag |
---|
getBody, getContext, getParent, invokeBody, setBody, setContext, setParent |
Field Detail |
---|
protected JagacySessionTag sessionTag
protected com.jagacy.Session3270 session
Constructor Detail |
---|
public JagacyFunctionTag()
Method Detail |
---|
public void setupEnvironment()
setupEnvironment
in class FunctionTag
public void pluginTearDown()
pluginTearDown
in class FunctionTag
public void store(String fName, int event) throws IOException
store
in interface Storable
store
in class FunctionTag
IOException
public String getScreen()
public String readField(int field, int offset)
field
- - The field number, indexed from 1offset
- - Offset in the field, indexed from 1
public String readPosition(int row, int column, int length)
row
- - The row number, indexed from 0column
- - The column number, indexed from 0length
- - The length of string to read
public String[] readScreen()
public boolean waitForChange(int timeInMillis)
timeInMillis
for the screen to change state.
timeInMillis
- - the time in milliseconds to wait until the screen changes.
public boolean waitForField(int field, int offset, String value, int timeInMillis)
field
- - The field number, indexed from 1offset
- - Offset in the field, indexed from 1value
- - The expected value of the fieldtimeInMillis
- - the time in milliseconds to wait until the screen changes.
public boolean waitForPosition(int row, int column, String value, int timeInMillis)
row
- - The row number, indexed from 0column
- - The column number, indexed from 0value
- - The expected value at this positiontimeInMillis
- - the time in milliseconds to wait until the screen changes.
public boolean waitForUnlock(int timeInMillis)
timeInMillis
for the keyboard to unlock.
timeInMillis
- - the time in milliseconds to wait until the screen changes.
public void writeAfterLabel(String label, String value)
label
- - the text to the left of the fieldvalue
- - the value to set the field to.public void writeCursor(int row, int column)
row
- - the row the set the cursor on. Indexed from 0.column
- - the column to set the cursor on. Indexed from 0.public void writeField(int field, int offset, String value)
field
- - The field number, indexed from 1offset
- - Offset in the field, indexed from 1value
- - The value to set the field topublic void writeKey(com.jagacy.Key key)
key
- - the key to write to the screenpublic void writePosition(int row, int column, String value)
row
- - the row the field exists at. Indexed from 0.column
- - the column the field exists at. Indexed from 0.value
- - the value to set the field to.public void writeString(String value)
value
- - the value to write to the current cursor position.public void assertTextPresent(String text)
text
- - the text that should be contained in the current screenpublic void assertTextPresent(String text, int assertLevel)
text
- - the text that should be contained in the current screenassertLevel
- - only run this test under the assertLevel as described in AssertLevel
public void assertTextPresent(String message, String text)
message
- - the message to provide if an error occurstext
- - the text that should be contained in the current screenpublic void assertTextPresent(String message, String text, int assertLevel)
message
- - the message to provide if an error occurstext
- - the text that should be contained in the current screenassertLevel
- - only run this test under the assertLevel as described in AssertLevel
public void assertTextNotPresent(String text)
text
- - the text that should not be contained in the current screenpublic void assertTextNotPresent(String text, int assertLevel)
text
- - the text that should not be contained in the current screenassertLevel
- - only run this test under the assertLevel as described in AssertLevel
public void assertTextNotPresent(String msg, String text)
msg
- - the message to provide if an error occurstext
- - the text that should not be contained in the current screenpublic void assertTextNotPresent(String msg, String text, int assertLevel)
msg
- - the message to provide if an error occurstext
- - the text that should not be contained in the current screenassertLevel
- - only run this test under the assertLevel as described in AssertLevel
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |