Cron job Testing
Posted: Fri Aug 10, 2007 9:27 am
Hi,
I have this script which processes customers orders everyday. The script is supposed to run everyday and process orders for customers whose date is same as current date (e.g 10 Aug). And then it also calculates the next date (e.g 10 Sep) and saves in the db. Also other db related manipulations are done.
On the next date (i.e 10 Sep), it again will process for same customers.
Now my client wants a real time testing scenario where I do not need to go to the db to manipulate date and run the cron script. He wants to modify the system date rather and want the cron script to run as normal. Is that possible.
Please give me some thoughts.
Abhishek
I have this script which processes customers orders everyday. The script is supposed to run everyday and process orders for customers whose date is same as current date (e.g 10 Aug). And then it also calculates the next date (e.g 10 Sep) and saves in the db. Also other db related manipulations are done.
On the next date (i.e 10 Sep), it again will process for same customers.
Now my client wants a real time testing scenario where I do not need to go to the db to manipulate date and run the cron script. He wants to modify the system date rather and want the cron script to run as normal. Is that possible.
Please give me some thoughts.
Abhishek