|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.aludratest.service.gui.component.impl.AbstractGUIComponent
org.aludratest.service.gui.component.impl.AbstractElement<FileField>
org.aludratest.service.gui.component.impl.FileFieldImpl
public class FileFieldImpl
Default implementation of the FileField interface.
| Field Summary |
|---|
| Fields inherited from class org.aludratest.service.gui.component.impl.AbstractElement |
|---|
taskCompletionTimeout |
| Fields inherited from class org.aludratest.service.gui.component.impl.AbstractGUIComponent |
|---|
aludraGui, elementName, elementType, locator |
| Constructor Summary | |
|---|---|
FileFieldImpl()
|
|
| Method Summary | |
|---|---|
void |
assertTextContains(String expectedText)
Verifies that this component's text contains the expected text. |
void |
assertTextContainsIgnoreCaseTrimmed(String expectedText)
Verifies that this component's text contains the expected text. |
void |
assertTextEquals(String expectedText)
Verifies that this component has the expected text. |
void |
assertTextEqualsIgnoreCaseTrimmed(String expectedText)
Verifies that this component's text equals the expected text. |
void |
assertTextMatches(org.databene.commons.Validator<String> validator)
Asserts that this component's text matches the provided Validator. |
void |
assertTextNotEquals(String expectedText)
Verifies that this component does not have the expected text. |
void |
assertValueGreaterThan(String value)
Verifies that this component's text (interpreted as numeric value) is greater than the specified value (which will be interpreted as numeric value as well). |
void |
assertValueLessThan(String value)
Verifies that this component's text (interpreted as numeric value) is lower than the specified value (which will be interpreted as numeric value as well). |
String |
getText()
Reads the value of this component and returns it as a String without conversion/manipulation. |
void |
setResourceNameAndContent(String fileName,
InputStream in)
Saves the InputStream's content in a new file with the given name. |
| Methods inherited from class org.aludratest.service.gui.component.impl.AbstractElement |
|---|
assertEnabled, assertFocus, assertNotEnabled, assertNotPresent, assertPresent, assertVisible, click, click, doubleClick, focus, getLocator, isEnabled, isEnabled, isNotPresent, isNotPresent, isPresent, isPresent, isPresentAndInForeground, isVisible, isVisible, waitingUntilTaskCompletion, waitingUntilTaskCompletion |
| Methods inherited from class org.aludratest.service.gui.component.impl.AbstractGUIComponent |
|---|
check, configure, perform, verify |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.aludratest.service.gui.component.Element |
|---|
assertEnabled, assertFocus, assertNotEnabled, assertNotPresent, assertPresent, assertVisible, click, click, doubleClick, focus, getLocator, isEnabled, isEnabled, isNotPresent, isNotPresent, isPresent, isPresent, isPresentAndInForeground, isVisible, isVisible, waitingUntilTaskCompletion, waitingUntilTaskCompletion |
| Constructor Detail |
|---|
public FileFieldImpl()
| Method Detail |
|---|
public void setResourceNameAndContent(String fileName,
InputStream in)
InputStream's content in a new file with the given name.
setResourceNameAndContent in interface FileFieldfileName - the name by which to save the filein - the provider of the file content to savepublic String getText()
ValueComponent
getText in interface ValueComponentpublic void assertTextEquals(String expectedText)
ValueComponentnull or marked as
null, the operation will not be executed. If the text parameter is marked as empty, it will be replaced with
"" before verification.
assertTextEquals in interface ValueComponentexpectedText - Text to compare this component's text against.public void assertTextNotEquals(String expectedText)
ValueComponentnull or marked
as null, the operation will not be executed. If the text parameter is marked as empty, it will be replaced
with "" before verification.
assertTextNotEquals in interface ValueComponentexpectedText - Text to compare this component's text against.public void assertTextContains(String expectedText)
ValueComponentnull or marked as
null, the operation will not be executed. before verification.
assertTextContains in interface ValueComponentexpectedText - Text to search in this component's text.public void assertTextContainsIgnoreCaseTrimmed(String expectedText)
ValueComponentnull or marked as null, the operation will not be executed.
assertTextContainsIgnoreCaseTrimmed in interface ValueComponentexpectedText - Text to search in this component's text.public void assertTextEqualsIgnoreCaseTrimmed(String expectedText)
ValueComponentnull or marked as null, the operation will not be executed.
assertTextEqualsIgnoreCaseTrimmed in interface ValueComponentexpectedText - Text to compare this component's text against.public void assertTextMatches(org.databene.commons.Validator<String> validator)
ValueComponentValidator.
assertTextMatches in interface ValueComponentvalidator - the validator to apply for text verification.public void assertValueGreaterThan(String value)
ValueComponentnull or marked as null, the operation
will not be executed.
assertValueGreaterThan in interface ValueComponentvalue - Value to interpret as numeric value and to compare the component's text (as numeric value) against.public void assertValueLessThan(String value)
ValueComponentnull or marked as null, the operation
will not be executed.
assertValueLessThan in interface ValueComponentvalue - Value to interpret as numeric value and to compare the component's text (as numeric value) against.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||