if you are using Now(), you will need to remove the occurrences of : /
'space'

userName = "User" & Now
userName = Replace(userName," ","")
userName = Replace(userName,":","")
userName = Replace(userName,"/","")

On Wed, Jun 2, 2010 at 10:47 AM, Roman Zilber <[email protected]> wrote:

> yes, userName = "User" & Now()
>
>
> On Tue, Jun 1, 2010 at 5:07 PM, Arihan <[email protected]>wrote:
>
>> Create the username with current year , month , day and time ..
>> Concatenate that.. It would be unique always
>>
>> Regards
>> Arihan
>> Sent from my iPhone
>>
>>
>> On 1 Jun 2010, at 22:22, sbqtp <[email protected]> wrote:
>>
>>  Hi,
>>>
>>> I am trying to automate the following test case: "Create new account
>>> in a web based application (With username/password fields)", but we
>>> should give a unique username each time the script runs. Can someone
>>> please let me know how to do that?
>>>
>>> Thanks!
>>>
>>> --
>>> 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]<mercuryqtp%[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
>> "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]<mercuryqtp%[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
> "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]<mercuryqtp%[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
"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

Reply via email to