![]() |
OpenKeyWord
Build_ID: 457, Datum: 01.02.2020 07:45:48
Dont repeat yourself. - Do it once and only once!
|
Keyword verifies the text-content of a GUI-Object
Parameter | Description |
---|---|
FN | Functionalname of the GUI-Object |
ExpVal | Expected value |
ExpVal
ValuesKeyword | 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_" |
EN.SelectWindow( "Login" )
- Set context to the Window Login
with the ChildObject you want to verify.EN.VerifyValue( "User", "Zoltan" )
** - then Verify the GUI-Object with the FN = "User"
EN.VerifyValue( "User", "${EMPTY}" )
** - Verifyies that User
is empty (= "")There are two ways to ignore a Keyword: Set the Parameter ExpVal
= "${IGNORE}"
or simply ""
EN.SelectWindow( "Login" )
EN.VerifyValue( "User", "" )
** - This ignores the execution of GUI-Object FN = "User"
EN.VerifyValue( "Passwd", "${IGNORE}" )
** - The other way to ignoreOn Windowssystems the Enviroment variable USERNAME
returns the name of the user who is currently logged on. OKW resolves the Enviroment variable ${USERNAME}
to the currently logged on username and uses this as expected value (ExpVal).
EN.SelectWindow( "Login" )
EN.VerifyValue( "User", "${USERNAME}" )
** - Matches the GUI-Object FN = "User"
with the current logged on username?Keyword | <-> | Called GUI-Adapter Method |
---|---|---|
EN.VerifyValue( FN, ExpVal ) | <-> | public ArrayList<String> VerifyValue( ) |