Forum Discussion

omerj28's avatar
omerj28
Occasional Contributor
14 years ago

Problem Identifying objects/windows with time stamp

My application contains an Export button which upon clicking exports the data and the Exported Excel file contains the name of the file with updated time stamp each time the export icon is clicked. When TestComplete runs the test it probably looks for the same time stamp information as was recorded originally. Consequently, it fails to close the Excel window once the data has been exported.

How can I make it close the Excel file containing exported data regardless of the time stamp in the document title?



During the playback TestComplete encountered this file.... 

Export_Report_10_12_2010_7_20_42_AM(1)

while it was looking for the following file that was exported during the test recording session...

Export_Report_10_12_2010_7_10_22_AM(1)



how can this be avoided?

1 Reply


  • Hi,





    Replace timestamps in recognition parameters of your objects with wildcards (* stands for any number of any characters). You can do this either in scripts (if you don't use Name Mapping), or in your Name Mapping scheme.