Wednesday, September 24, 2008

storing values

You can use the store command to save a value to an variable - it doesn't even need to be from the application under test. You can store arbitrary values just as easily. As an example, this will store the value 'SignIn' from the top left of this forum in the variable 'storedValue':


storeText
link=SignIn
storedValue

To access this value, you need to enclose your variable in curly braces and prefix it with a $:

verifyText
link=SignIn
${storedValue}

No comments: