Chr(65 + Int(26 * Rnd())) & Chr(97 + Int(26 * Rnd())) & Chr(48 + Int(10 * 
Rnd()))

That's one upper case letter and one lower case letter and one digit. 

Here is a random length string that has 3 to 7 upper case letters.
For i = 1 To 3 + Int(5 * Rnd())
a = a & Chr(65 + Int(26 * Rnd()))
Next


On Sunday, November 17, 2013 7:41:53 AM UTC-10, george p wrote:
>
>
> Hi,
> i have web app that creates forms.
> I need to enter text in the form title, name and description fields and 
> save the form.
> Form title and name is unique and I was thinking to set random unique 
> string and/or integer.
> How can I do this in Descriptive programing, i am not using OR at all.
>
> I would like to do thi 4-5 times to create multiple forms.
>
> Browser("title:=.*").Page("title:=.*").webEdit(
> "name:=dataElementForm.title").Set "some title"
> Browser("title:=.*").Page("title:=.*").webEdit(
> "name:=dataElementForm.name").Set "some Name"
> Browser("title:=.*").Page("title:=.*").webEdit(
> "name:=dataElementForm.shortDescription").Set "descriptions"
>
>
>

-- 
-- 
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en

--- 
You received this message because you are subscribed to the Google Groups "QTP 
- HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to