Hi Ian,

        Here you are one little example:

<project name="CRM_AllTest " basedir="." default="AllTest">
                <tstamp>
                <format property="UNIQUE_KEY"
pattern="yyMMddHHmmssSSS"/>
                </tstamp>                               
        

                <ant antfile="test.MyTest_With_Unique_Key.xml" dir=".">
                        <property name="unique_key"
value="${UNIQUE_KEY}"/>
                </ant>
</project>

Patterns:
 G                      era designator                  (Text)
AD
 y                      year                            (Number)
1996
 M                      month in year                   (Text & Number)
July & 07
 d                      day in month                    (Number)
10
 h                      hour in am/pm (1~12)            (Number)
12
 H                      hour in day (0~23)              (Number)
0
 m                      minute in hour                  (Number)
30
 s                      second in minute                (Number)
55
 S                      millisecond                     (Number)
978
 E                      day in week                     (Text)
Tuesday
 D                      day in year                     (Number)
189
 F                      day of week in month            (Number)
2 (2nd Wed in July)
 w                      week in year                    (Number)
27
 W                      week in month                   (Number)
2
 a                      am/pm marker                    (Text)
PM
 k                      hour in day (1~24)              (Number)
24
 K                      hour in am/pm (0~11)            (Number)
0
 z                      time zone                       (Text)
Pacific Standard Time
 '                      escape for text                         
 ''                     single quote                                    

But, also have a look at:

<storeRandom>, maybe random chars can be solution for you ...

Regards,
Roman

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ian Phillips
Sent: Monday, November 05, 2007 10:30 PM
To: [email protected]
Subject: [Webtest] Adding a time stamp to make unique data

Hi.

I have the following steps:

<setInputField name="email" value="[EMAIL PROTECTED]"/>
                <setInputField description="Set password field pass1:
hello"
name="pass1" value="hello"/>
                <setInputField description="Set password field pass2:
hello"
name="pass2" value="hello"/>
                <clickButton label="S u b m i t"/>

I need to have a unique email address each time.  Is there an easy way
to add a timestamp to it?

Thanks

Ian
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to