r/programminghelp • u/RockisLife • Apr 27 '26
Project Related How to test timed software?
Hello Everyone, Im working on a side project that involves having to track service calls that all the activity is timed. Theres a page for the admins and a page for the workers. Im trying todo e2e testing and it just seems not the most reasonable to be able to have to wait 20 minutes for the standard time or a day or two for something else to happen.
I have been working on a time control system that would be able to fake out when testing the UI what the time is and where we are in the schedule but something about it feels off like its not the way todo it. I have some automated testing already but this is more manual interaction testing that I am validating that when time moves the system reacts as expected.
I just want to hear some experienced software developers thoughts on how todo this kind of testing.
View all comments
Show parent comment
1
u/RockisLife Apr 27 '26
OK, so kind of creating fake time? The approach I’m doing is I’m basically creating a universal variable that has buttons on the UI. Those buttons allow me to set the date and time or accelerated it by any number of minutes. So when I simulate one of the employees doing your job, from the employees point of view, I hit start, accelerate time by 20 minutes then I hit end. This is the approach, I’m doing right now.