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?

> Use get-time to get the PC system time in seconds since 01/01/1970 > Subtract 86400 (no seconds in a day) from it > Use time_str to convert the result into a date format > If format of returned date is not correct use string manipulations to get the format you require > Insert the date into your application Alternatively we could try the following : > In an Excel datasheet create a column with an appropriate name, and in the first cell of the column use the excel formula. > Format the cell to give us the required date format. > Use the ddt : functions to read the date from the excel datasheet. > Insert the reteived date into our application .

By:UMANG
Date:2029-01-09 00:00:00

Post Your Answers


User Email:

User Name:
Answers:

Related TESTING Subjective Links

TESTING Subjective interview questions and answers for experienced and fresher