Hi Krishna,

        Here you are one little example:

<project name="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>


... and you can use it in your test[test.MyTest_With_Unique_Key.xml]:
.
.
.

<setInputField name="project_name" value="Smoke Test project
"${unique_key}/>
.
.
.

HTH,
Roman.

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of krishnam
Sent: Monday, June 08, 2009 3:16 PM
To: [email protected]
Subject: [Webtest] Dynamically channging the input values


Hi,

I have to change the value of the project name dynamically. I have to
run
the test case more than once so each time i had to change the name
manually
because our application do not support duplications.

I have an idea to give project name value as system time each time i
run,
project value changes with respect to time so there is no need to change
each time manually.

Can any one of you help me on this or suggest me any other option to
change
the value dynamically

XML code is

<clickLink label="Create Project"/>
        <setInputField name="project_name" value="Smoke Test project "/>
        <setInputField name="project_intro" value="Smoke test of the
application
using Webtest scripts"/>
        <setInputField name="description" value="To run high level cases
to ensure
the build"/>

Regards.
Krishna.

-- 
View this message in context:
http://www.nabble.com/Dynamically-channging-the-input-values-tp23923885p
23923885.html
Sent from the WebTest mailing list archive at Nabble.com.

_______________________________________________
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