Skip to main content

๐Ÿ•’ 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โ€‹

  1. Log in to the application as an administrator.
  2. Navigate to Admin Panel โ†’ Settings โ†’ Time Management
  3. 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โ€‹

  1. Log in to the application as an administrator.
  2. Navigate to Admin Panel โ†’ Settings โ†’ Time Management
  3. 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.