VerifyObject
You use the VerifyObject keyword to verify the presence of an object or UI name in applications.
Signature
The VerifyObject keyword supports the following signature:
VerifyObject(AppletRN|FieldRN/MenuItemRN,UN name/data-caption of MenuItem/Inner
Text or Title for field items/NULL; TRUE/FALSE)
Note the following in the VerifyObject keyword signature:
-
Use NULL as the input to verify the existence of an object
-
Use the object label (for example, the name of a button) as the input to verify the object name.
-
Use the menu item label as the input to verify the menu item name.
-
Use the field label as the input to verify the field name or title.
-
True or False input is mandatory.
-
If the True parameter is set and if the expected object does not match the actual object in the UI, then the test step fails.
-
If the True parameter is set and if the expected object matches the actual object in the UI, then the test step passes.
-
If the False parameter is set and if the expected object does not match the actual object in the UI, then the test step passes.
-
If the False parameter is set and if the expected object matches the actual object in the UI, then test the step fails.
Desktop Examples
The following table describes how to use the VerifyObject keyword to verify the presence of an object or UI name in desktop applications.
Target Object | Inputs | Closing Action | Comments |
---|---|---|---|
SIS Account List Applet|NULL |
NULL;TRUE |
N/A |
Verifies the existence of an applet. |
NULL|SUI_OPEN_TOOLBAR |
NULL;TRUE |
N/A |
Verifies that the toolbar is open. |
NULL|SUI_CLOSED_TOOLBAR |
NULL;TRUE |
N/A |
Verifies that the toolbar is open. |
SIS Account List Applet|SiebVisList |
All Accounts Across Organizations;TRUE |
N/A |
Verifies that the item exists in the Visibility list in the list applet. |
SIS Account List Applet|DeleteRecord |
NULL;TRUE |
N/A |
Verifies that the Delete button exists in the list applet. |
SIS Account List Applet|DeleteRecord |
Delete;TRUE |
N/A |
Verifies that the Delete button UI name exists in the list applet. |
SIS Account Entry Applet|DeleteRecord |
NULL;TRUE |
N/A |
Verifies that the Delete button exists in the form applet. |
SIS Account List Applet|NewQuery |
NULL;TRUE |
N/A |
Checks that the NewQuery button exists in the list applet. |
SIS Account List Applet|Type |
Account Type;TRUE |
N/A |
Checks that the Column Account Type exists in the list applet. |
SIS Account List Applet|QueryComboBox |
NULL;TRUE |
N/A |
Verifies that the QueryComboBox drop-down list exists in the list applet. |
SIS Account List Applet|About Record (SWE) |
About Record [Ctrl+Alt+K];TRUE |
N/A |
Verifies that the menu item About Record (SWE) exists in the list applet. |
SIS Account List Applet|Account Type Code|1 |
Customer;TRUE |
N/A |
Checks the title of the Account Type Code field with the row number in the list applet. |
Menu-File|File - Create Bookmark |
Create Bookmark…;TRUE |
N/A |
Verifies that the application menu item Create Bookmark exists in the file menu. |
NULL|SWE Export Applet.rdbRowsToExport |
All Rows In Current Query;TRUE |
N/A |
Verifies that the Radio button exists in the pop-up. |
NULL|Account List View|L2 |
Accounts List;TRUE |
N/A |
Verifies that the application links exist. |
SIS Account List Applet|DeleteRecord |
Delete;FALSE |
N/A |
Verifies the absence of the Delete button UI name in the list applet (negative scenario). |
Mobile Examples
The following table describes how to use the VerifyObject keyword to verify the presence of an object or UI name in mobile applications (on mobile devices).
Target Object | Inputs | Closing Action | Comments |
---|---|---|---|
AppletRN|FieldRN |
FieldUN;TRUE/FALSE |
N/A |
Verifies the UI name of the field. |
SHCE Sales Account List Applet - Mobile|NewQuery |
Query;TRUE |
N/A |
Verifies that the Query button exists in the list applet. |
SHCE Sales Account List Applet - Mobile|QuerySrchSpec |
Accounts;TRUE |
N/A |
Verifies that items exist in the QuerySearch text box in the list applet. |
SHCE Sales Account List Applet - Mobile|DeleteRecord |
Delete;TRUE |
N/A |
Verifies that the Delete button UI name exists in the list applet. |
SHCE Sales Account List Applet - Mobile|QueryComboBox |
NULL;TRUE |
N/A |
Verifies that the QueryComboBox drop-down list exists in the list applet. |
SHCE Sales Account List Applet - Mobile|Type|1 |
Customer;TRUE |
N/A |
Checks the title of the Account Type Code field with the row number in the list applet. |
NULL|Account List View |
Accounts List;TRUE |
N/A |
Verifies that the application links exist. |