-
Notifications
You must be signed in to change notification settings - Fork 1
VerifyTooltipWCM( FN, ExpVal )
Keyword verifies the tooltip of a GUI-Object.
In the keyword VerifyTooltipWCM( FN, ExpVal )
are
- wildcards (
?
,*
and#
) allowed - but no regular expressions
Parameter | Description |
---|---|
FN |
Functionalname of the GUI-Object |
ExpVal |
Expected value. Wildcards are possible. |
Keyword | Description |
---|---|
"" and ${IGNORE}
|
Don´t execute the keyword. Interesting for data-driven testing See List of OKW Constants... |
${EMPTY} |
The Expected value is empty or "" See List of OKW Constants... |
${_ENV_} |
Expected value is empty or "" |
${_MEMKEY_} |
OKW Parser substitutes with the Value memorized to Key "MEMKEY" |
Wildcard | Description |
---|---|
? |
Masks exact one character. |
* |
Masks 0-n character. |
# |
Masks exact one numeric character [0-9]. |
##Examples
-
EN.SelectWindow( "Login" )
- Set context to the WindowLogin
with the ChildObject you want to verify. -
EN.VerifyTooltip( "User", "WCM", "Zoltan" )
- then Verify the GUI-Object with theFN = "User"
matches exact to the given expected value.
EN.SelectWindow( "Login" )
- Set context to the Window Login
with the ChildObject you want to verify.
EN.VerifyTooltipWCM( "User", "?oltan" )
- True with a Tooltip: Zoltan
, ooltan
Fails with oltan
, oltan
and oltann
EN.VerifyTooltipWCM( "User", "*ltan" )
- True with a Tooltip: Zoltan
, ooltan
Fails with tan
, `oltann
-
EN.VerifyTooltipWCM( "User", "${EMPTY}" )
- Verifies that the Tooltiü ofFN=User
is empty (= "")
There are two ways to ignore a Keyword: Set the Parameter ExpVal = "${IGNORE}"
or simply ""
EN.SelectWindow( "Login" )
-
EN.VerifyTooltipWCM( "User", "" )
- Don´t Verify the GUI-ObjectFN = "User"
On Windowssystems the Enviromentvar ´USERNAMEreturns the name of the user who is currently logged on. OKW resolves the Enviroment var
${USERNAME}` to currently logged on username and uses this as expected value (ExpVal).
EN.SelectWindow( "Login" )
-
EN.VerifyTooltipWCM( "User", "${USERNAME}" )
- Don´t Verify the GUI-ObjectFN = "User"
Keyword | <-> | Called GUI-Adapter Method |
---|---|---|
EN.VerifyValueWCM( FN, ExpVal ) |
<-> | public ArrayList<String> VerifyValue( ) |
Footer Myfooter
Core
Examples
GUI-Adapter and Frames