Testing Siebel Business Applications > Keywords Reference > Keywords Description >
VerifyFocus
You use the VerifyFocus keyword to verify the focus location in an application. Focus can be on one of the following in an application: list, form, view, field, or rows in an applet. Signature
The VerifyFocus keyword supports the following signature: VerifyFocus(AppletRN(or)ViewRN|FieldRN,TRUE/FALSE)
Note the following about the VerifyFocus keyword signature:
- The True and False input covers the following scenarios:
- Use False to check that focus is not on a particular applet, field, or row.
- Use True to check that focus is on a particular applet, field, row, application-level menu, or application-level menu item.
Desktop Examples
The following table describes how to use the VerifyFocus keyword to verify the focus location in desktop applications.
|
|
|
|
SIS Account List Applet|NULL |
TRUE |
|
Verifies that focus is on the specified list applet. |
SIS Account List Applet|NULL |
FALSE |
|
Verifies that focus is not on the specified list applet. |
SIS Account List Applet|Row Status|2 |
TRUE |
|
Verifies that focus is on the specified field in the list applet. |
SIS Account Entry Applet|Name |
TRUE |
|
Verifies that focus is on the specified field in the form applet. |
SIS Account Entry Applet|Name |
FALSE |
|
Verifies that focus is not on the specified field in the form applet. |
SIS Account List Applet|2 |
TRUE |
|
Verifies that focus is on the specified row number in the list applet. |
SIS Account List Applet|2 |
FALSE |
|
Verifies that focus is not on the specified row number in the list applet. |
SIS Account List Applet|2,3 |
TRUE |
|
Verifies that focus is on the specified row numbers in the list applet. |
Search Admin|NULL |
TRUE |
|
Verifies that focus is on the specified view. |
Menu-File|Null |
TRUE |
|
Verifies that focus is on the application-level menu. |
Menu-File|Null |
FALSE |
|
Verifies that focus on the application-level menu. |
Menu-File|File - Custom Print |
TRUE |
|
Verifies that focus is on the application-level menu item. |
Menu-File|File - Custom Print |
FALSE |
|
Verifies that focus is on the application-level menu item. |
Mobile Examples
The following table describes how to use the VerifyFocus keyword to verify the focus location in mobile applications (on mobile devices).
|
|
|
|
SHCE Account Entry Applet - Mobile|Name |
TRUE |
|
Verifies that focus is on the specified field in the form applet. |
SHCE Sales Account List Applet - Mobile|NULL |
TRUE |
|
Verifies that focus is on the specified list applet. |
SHCE Sales Account List Applet - Mobile|Name|1 |
TRUE |
|
Verifies that focus is on the specified field in the list applet. |
SHCE Sales Account List Applet - Mobile|1 |
TRUE |
|
Verifies that focus is on the specified row number in the list applet. |
|