SUBSCRIBE HERE TO GET POST UPDATES VIA EMAIL :

Delivered by FeedBurner

"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.

5 comments:

  1. Hey, nice site you have here! Keep up the excellent work!

    Selenium


    ReplyDelete
  2. thanks alot, it is really helpful specially for beginner like me

    ReplyDelete
  3. I every time emailed this web site post page to all
    my associates, for the reason that if like to read it then my contacts will
    too.

    my blog :: Software Store

    ReplyDelete
  4. 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!

    ReplyDelete