Hi there,
I would like to add a random number to the input of a test case I am attempting to run.
I would like it so it outputs a random number from a selection. i.e. test88
Is there a simple way of doing this in the code?
Thanks
Simple Variable Random Code
Re: Simple Variable Random Code
Hello There,
If I were you I would look into the Random() class.
http://stackoverflow.com/questions/1353 ... rator-work
Please see example below that just creates a messagebox that has a Ran number in it. You can change this and implement however you would like.
If I were you I would look into the Random() class.
http://stackoverflow.com/questions/1353 ... rator-work
Please see example below that just creates a messagebox that has a Ran number in it. You can change this and implement however you would like.
You do not have the required permissions to view the files attached to this post.
Normal people... believe that if it ain't broke, don't fix it. Engineers believe that if it ain't broke, it doesn't have enough features yet.
-Scott Adams
-Scott Adams

-
- Posts: 15
- Joined: Fri Jan 23, 2015 12:31 pm
Re: Simple Variable Random Code
Hi there,
Thanks for that. After some playing I was able ot understand how to implement this weithin a test case step.
Kind regards
Thanks for that. After some playing I was able ot understand how to implement this weithin a test case step.
Kind regards