I am automating web based application using QTP 9.0, after certain actions date and time displayed on the web page of the application (which is on client machine) and this time is Server time\Date not client time\Date.
Now, I have to verify this time(on the web page) with the Time displayed on the Server machine.
Please, can anyone guide me - how can I retrieve the server time and Date while automating the application from the client machine.
This is not application relative problem.
Verify just ones by looking at the time on tester's PC and compare with time, displayed on application (from Server).
If there is difference - suggest synchronize the Server time. There are a lot of tools for time synchronization. Normally, IT administrator should know how to do that. He\she is responsible for synchronizing NetWork and personal PC's for the company.
I will try your the code available in the link u provided to me and let you know the Result.
I need not do any synchronization at the server Time or Date. Only I need to verify completed time which is displayed on the Page after completion of Data sumssion from the application with Server Time. For this I need to retrive the server time.
Anyway i will try with the link provided by "maxj".
I have tried with the code available in the above given link and result was nagative. Same code is perfectly workfing for Host machine (client machine) when I mention the Name of the host. But , when i provided server machine name in the code i am getting error in the line where GetObject function is used.
If you any further guidlines , kindly provide me.