How To Have Winrunner Insert Yesterdays Date Into A Field In The Application

How To Have Winrunner Insert Yesterdays Date Into A Field In The Application


  • 20 Jan, 2012

    1) Use get-time to get the PC system time in seconds since 01/01/19702)Subtract 86400 (no seconds in a day) from it3)Use time_str to convert the result into a date format4)If format of returned date is not correct use string manipulations to get the format you require5) Insert the date into your applicationAlternatively you could try the following :1) In an Excel datasheet create a column with an appropriate name, and in the first cell of the column use the excel formula 'today() - 1'2) Format the cell to give you the required date format3) Use the ddt- functions to read the date from the excel datasheet4) insert the reteived date into your application

    Comments Received:
    Please give your suggestions and feedback:

2009-2016 downloadmela.com. All rights reserved.