Sunday, 20 January 2013

"store" and "echo" command in selenium IDE


 "store" command


"store" command is useful to store value or string into variable. When you want to use some value at some other command, you can store that value.

Bellow is the example of "store" command. It will store string "Hello" into variable "i". I can use that string in
any next commands.

New Test
CommandTargetValue
openhttp://software-testing-tutorials-automation.blogspot.in
storeHelloi

"echo" command

 "echo" command is useful to know stored value of any variable. We can use it for debugging purpose.


New Test
CommandTargetValue
openhttp://software-testing-tutorials-automation.blogspot.in
storeHelloi
echo${i}

In above example when "echo" command will be executed, it will display current store value of variable "i" into Log area of selenium IDE window. In this case it will show log like "[info] echo: Hello ".

No comments:

Post a Comment