[Webtest] Help with using today's date + 10 days
Bill Milbratz
webtest@lists.canoo.com
Wed, 14 Jan 2004 10:28:55 -0600
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------=_NextPartTM-000-3777cc69-a7dc-4886-94cc-e44babfaaea4
Content-Type: multipart/alternative;
boundary="----_=_NextPart_001_01C3DABB.80EBEA70"
------_=_NextPart_001_01C3DABB.80EBEA70
Content-Type: text/plain;
charset="iso-8859-1"
You could write a "setdateproperty" Ant custom task to generate this
information (i.e. if such a task doesn't exist).
i.e. so you would use it like this:
<!-- this next line is a custom task.--!>
<setdateproperty name="startDate" daysahead="10" />
<setinputfield stepid="set start date"
name="sivo.effectiveDate"
value="${startDate}" />
If you haven't done it before, it's pretty straightforward....check the ant
documentation. Or I could email you an example of a custom task..
bill milbratz
-----Original Message-----
From: Tim Heath [mailto:wgheath@fedex.com]
Sent: January 14, 2004 10:11 AM
To: webtest@gate2.canoo.com
Subject: [Webtest] Help with using today's date + 10 days
I am using webtest and I really like it! I researched a number of other
web testing tools and the only one I found that was even close to
webtest was perl mechanize but that is not java.
My code is as follows:
<setinputfield stepid="set start date"
name="sivo.effectiveDate"
value="${startDate}" />
I want ${startDate} to be todays date + 10 days. Can I do this with
webtest? If so how?
Thanks,
Tim Heath
_______________________________________________
WebTest mailing list
WebTest@lists.canoo.com
http://lists.canoo.com/mailman/listinfo/webtest
------_=_NextPart_001_01C3DABB.80EBEA70
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2653.12">
<TITLE>RE: [Webtest] Help with using today's date + 10 days</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=3D2>You could write a "setdateproperty" Ant =
custom task to generate this information (i.e. if such a task doesn't =
exist).</FONT>
</P>
<P><FONT SIZE=3D2>i.e. so you would use it like this:</FONT>
</P>
<P><FONT SIZE=3D2> <!-- this next line is a custom =
task.--!></FONT>
<BR><FONT SIZE=3D2> <setdateproperty =
name=3D"startDate" daysahead=3D"10" /> </FONT>
<BR><FONT SIZE=3D2> <setinputfield stepid=3D"set start =
date"</FONT>
<BR><FONT =
SIZE=3D2> &nb=
sp; name=3D"sivo.effectiveDate"</FONT>
<BR><FONT =
SIZE=3D2> &nb=
sp; value=3D"${startDate}" /></FONT>
</P>
<BR>
<P><FONT SIZE=3D2>If you haven't done it before, it's pretty =
straightforward....check the ant documentation. Or I could email you an =
example of a custom task..</FONT></P>
<BR>
<P><FONT SIZE=3D2>bill milbratz</FONT>
</P>
<BR>
<BR>
<P><FONT SIZE=3D2>-----Original Message-----</FONT>
<BR><FONT SIZE=3D2>From: Tim Heath [<A =
HREF=3D"mailto:wgheath@fedex.com">mailto:wgheath@fedex.com</A>]</FONT>
<BR><FONT SIZE=3D2>Sent: January 14, 2004 10:11 AM</FONT>
<BR><FONT SIZE=3D2>To: webtest@gate2.canoo.com</FONT>
<BR><FONT SIZE=3D2>Subject: [Webtest] Help with using today's date + 10 =
days</FONT>
</P>
<BR>
<P><FONT SIZE=3D2>I am using webtest and I really like it! I =
researched a number of other </FONT>
<BR><FONT SIZE=3D2>web testing tools and the only one I found that was =
even close to </FONT>
<BR><FONT SIZE=3D2>webtest was perl mechanize but that is not java. =
</FONT>
</P>
<P><FONT SIZE=3D2>My code is as follows:</FONT>
</P>
<P><FONT SIZE=3D2> <setinputfield stepid=3D"set start =
date"</FONT>
<BR><FONT =
SIZE=3D2> &nb=
sp; name=3D"sivo.effectiveDate"</FONT>
<BR><FONT =
SIZE=3D2> &nb=
sp; value=3D"${startDate}" /></FONT>
</P>
<P><FONT SIZE=3D2>I want ${startDate} to be todays date + 10 =
days. Can I do this with </FONT>
<BR><FONT SIZE=3D2>webtest? If so how?</FONT>
</P>
<P><FONT SIZE=3D2>Thanks,</FONT>
</P>
<P><FONT SIZE=3D2>Tim Heath</FONT>
</P>
<P><FONT =
SIZE=3D2>_______________________________________________</FONT>
<BR><FONT SIZE=3D2>WebTest mailing list</FONT>
<BR><FONT SIZE=3D2>WebTest@lists.canoo.com</FONT>
<BR><FONT SIZE=3D2><A =
HREF=3D"http://lists.canoo.com/mailman/listinfo/webtest" =
TARGET=3D"_blank">http://lists.canoo.com/mailman/listinfo/webtest</A></F=
ONT>
</P>
</BODY>
</HTML>
------_=_NextPart_001_01C3DABB.80EBEA70--
------=_NextPartTM-000-3777cc69-a7dc-4886-94cc-e44babfaaea4--