Forum Discussion

david_taylor's avatar
david_taylor
New Contributor
11 years ago

Options to store the actual date before the system date is set to another date

Hi I am using TestComplete 10 with a DeskTop module.  I have some scripts that use aqDateTime to change the system date. I want the tests to set the system date back to the actual date at the en...
  • AlexKaras's avatar
    11 years ago
    Hi David,



    You may implement the code that gets the current date/time and stores it into the temporary project variable in the OnStartTest event handler. This will guarantee that you will not need to execute some separate test code to have the variable to be populated with the value.