Help get this topic noticed by sharing it on Twitter, Facebook, or email.

Variables and Randomization.

I would like to create a username using a randomize function and assign that to a variable. That variable would then be used in the script wherever I need the username.
For a good example, look at what VB scripting can do with randomization.
Thanks!
1 person likes
this idea
+1
Reply
  • Hi Jamie,

    Our command library includes commands for entering random strings and random numbers into fields, text boxes, and text areas. You can find documentation on these commands here.

    You can have Tellurium generate values and numbers to be typed by using "a random string," "a random X character string," "a random number," or "a random X digit number" in your tests. Then, you can use commands to remember those values so you can reuse them later.

    Here's an example test showing how it works:

    For the url www.te52.com
    When the "login" field is a random string
    And the value in the "login" field is remembered as [A]
    Then tell all
    When the "password" field is [A]
    And the value in the "password" field is remembered as [B]
    Then tell all

    I hope this helps!
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. indifferent, undecided, unconcerned kidding, amused, unsure, silly sad, anxious, confused, frustrated happy, confident, thankful, excited

  • Is it possible to generate a random string then concatenate with another string?

    For example a random email address: 'a random string'@test.com

    Thanks,
    Dan
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. indifferent, undecided, unconcerned kidding, amused, unsure, silly sad, anxious, confused, frustrated happy, confident, thankful, excited