“store” and “echo” command in selenium IDE

 “store” command

“store” command is useful to store value or string into variable in selenium IDE software testing tool. When you want to use some value at some other command, you can store that value.

Bellow is the example of “store” command in selenium IDE software testing tool. It will store string “Hello” into variable “i”. I can use that string in any next commands.

New Test
Command Target Value
open https://www.google.co.in/
store Hello i

“echo” command

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

New Test
Command Target Value
open https://www.google.co.in/
store Hello i
echo ${i}

In above example when “echo” command will be executed, it will display current storeed value of variable “i” into Log area of selenium IDE software testing tool’s window. In this case it will show log like “[info] echo: Hello
“. Don’t forget to View Complete list of selenium IDE commands with good working examples. Read this selenium IDE tutorials to be master in just 7 days.

4 thoughts on ““store” and “echo” command in selenium IDE

  1. What I am missing?

    [info] Executing: |open | /?gws_rd=cr,ssl&ei=kBIWVoDZPIbhywPp2LDgCA | |
    [info] Playing test case Untitled 3
    [info] Executing: |open | https://www.google.co.in/ | |
    [info] Executing: |store | Hello | i |
    [info] Executing: |echo | ${i} | |
    [info] echo: Hello
    [error] current test case not found
    [info] Test suite completed: 1 played, all passed!

Leave a Reply

Your email address will not be published. Required fields are marked *