Creating random values on each run.

Class library usage, coding and language questions.
peterbonney
Posts: 10
Joined: Tue Jun 25, 2013 2:13 pm

Creating random values on each run.

Post by peterbonney » Mon Nov 17, 2014 12:18 pm

Hi, I have a script to test a part of our system which requires the user to enter a unique value as a reference ID but it is restricted to VARCHAR(10), so far i've been data driving this with the date and p1, p2, p3 suffixed. however, this is becoming a pain as i can only run up to p9 in one day before i have to reset the data in my DB.

What i'm after is a way to either data drive (Excel Preferred) or from within Ranorex that generates a random value on each execution for this step.

Any advice/help would be appreciated.
Thanks

peterbonney
Posts: 10
Joined: Tue Jun 25, 2013 2:13 pm

Re: Creating random values on each run.

Post by peterbonney » Mon Nov 17, 2014 12:43 pm

Sorted - used Excel with a RANDBETWEEN formula :)