Showing posts with label store command. Show all posts
Showing posts with label store command. Show all posts

We already learnt about random number generation and concatenation of random number with other string like email id in Selenium IDE - Generating random number using javascript with example post. Now let me give you few examples for generating random alpha numeric string, generating only random numeric

Selenium "storeEval" command
"storeEval" command is generally used with scripts in selenium IDE software testing tool. It is useful to store result of the script in to specified variable and latter on we can use that variable's value whenever required.

'storedVars' - JavaScript associative array
'storedVars' is JavaScript associative array having string indexes and is useful to manipulate or access a variable value within a JavaScript snippet.

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