TestField Data Type

Represents a testable field on a page.

The following methods are available on instances of the TestField data type.

Method name Description
Lookup() Provides a lookup window for a text box on a test page.
AssistEdit() Provides assist-edit functionality to a field on a test page.
Drilldown() Applies drill-down capability for a field on a test page.
AssertEquals(Any) Asserts that the value in a field on a test page equals a specified value.
SetValue(Any) Sets a value for a field on a test page.
Invoke() Invokes the default action on the field.
Activate() Activates a field on a test page.
AsInteger() Converts the value of the field on a test page to an Integer data type.
AsBoolean() Converts the value in a field on a test page to a Boolean data type.
AsDecimal() Converts the value in a field on a test page to a Date data type.
AsDate() Converts the value in a field on a test page to a Date data type.
AsTime() Converts the value in a field on a test page to a Time data type.
AsDateTime() Converts the value in a field on a test page to a DateTime data type.
Value([String]) Gets or sets the value of this field.
ValidationErrorCount() Gets the number of validation errors that occurred on the test page.
GetValidationError([Integer]) Gets the validation error that occurred on a test page.
Visible() Gets the visible state for the field.
Enabled() Gets the enabled state for the field.
Editable() Gets the editable state for the field.
HideValue() Gets the hide value state for the field.
Caption() Gets the current caption of the field as a String.
OptionCount() Gets the number of options in a field on a test page.
GetOption([Integer]) Gets the options for a field on a test page.
ShowMandatory() Gets the ShowMandatory state for the field.

See Also

Getting Started with AL
Developing Extensions