๐ System Time Simulation for QA
Overviewโ
System Time Simulation for QA allows QA engineers to simulate the passage of time within the application without waiting in real time.
The Admin panel includes an option to shift system time forward (time travel / time offset), affecting all time-dependent processes in the system.
This feature is especially useful for testing:
โณ Subscription expiration
๐งพ Invoice generation
๐ Scheduled jobs
๐ Periodic reports
warning
This feature currently works only with SQLite databases.
๐ ๏ธ How to Use Time Simulationโ
- Log in to the application as an administrator.
- Navigate to Admin Panel โ Settings โ Time Management
- Set the desired simulated date and click Advance Time
After clicking Advance Time, a confirmation popup will appear asking you to confirm the system time change.
Once confirmed:
- The database snapshot will be created during the first time shift.
๐ Reset Timeโ
- Log in to the application as an administrator.
- Navigate to Admin Panel โ Settings โ Time Management
- Click Reset Time
After resetting:
- The application returns to real-time operation mode.
- The database is restored from the initial snapshot created before time simulation started.
๐จ Deployment Safety Ruleโ
Before any deployment:
- Reset the application time to real-time mode.
- Ensure the system is in normal operation state.
- Apply the deployment changes.
This prevents potential issues such as:
- Data inconsistency
- Snapshot conflicts
- Background job anomalies
danger
Use this feature only in development environments.