Hi,

you can use Ant's Tstamp http://ant.apache.org/manual/CoreTasks/tstamp.html
to fill a property with the current date/time.
Depending on the time synchronization of your server and the computer
running the tests, you should perhaps not be to strict in your test and
perhaps use a custom step to compute if the displayed date has not more than
x seconds difference with the current datetime.

Marc.


Xiaomei Li wrote:
> 
> Hi,
> I have a script to verify the search result with
> verifyText but it failed all the time - 
> <verifyText
> description="verify last curation date is displayed -
> 1" 
> text="2007-09-06 15:09" />
> 
> The html is like this
> <tr class="tblHighlightOff">
>       <td class="summarytd" align="center">
>                /isdmc/segmentDetails.do?segment=118566 
>                       A79851
>                                                        
>       </td>                           <td class="summarytd" align="center">   
>                  images/IP.gif 
>                                               </td>                           
>         <td class="summarytd" align="center">   
>                                       F3
>                                               </td>                           
>                 
>       <td class="summarytd" align="center">           <td
> class="summarytd" align="center">     
> 
>       2007-09-06 15:09
>                                               </td>                           
>                 
>       </tr>
> 
> any ideas?
> 
> thanks,
> Karen
> 
> 
>        
> ____________________________________________________________________________________
> Yahoo! oneSearch: Finally, mobile search 
> that gives answers, not web links. 
> http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC
> _______________________________________________
> WebTest mailing list
> [email protected]
> http://lists.canoo.com/mailman/listinfo/webtest
> 
> 

-- 
View this message in context: 
http://www.nabble.com/VerifyText-problem-tf4401984.html#a12591438
Sent from the WebTest mailing list archive at Nabble.com.

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

Reply via email to