It's not always feasible to be able to trigger a test to run when you need it. The scheduling option in k6 Cloud allows you to configure a test to execute at a particular time, and on a regular interval, if needed.
Some reasons include, but are not limited to:
- You need to test a production system and want to do it during hours with minimal usage
- You want to build a performance trend to monitor for regressions (but aren't ready to integrate it as a step in a CI Pipeline
You have the ability to schedule any tests that currently exists in your k6 Cloud account that has been executed on our cloud service (you can not schedule a locally run test through the web UI). You may also schedule tests that you create within the web UI after saving your configuration.
Schedules can be set up from two different places:
On this page you can quickly find and edit all test schedules that have been created in your organization.
You are also able to create a new schedule for any of your projects and cloud tests directly from this page.
Simply press Add schedule on the top right then follow the steps:
- Select a project and test.
- Set a start date and time
- Should the test repeat to run multiple times?
- When you are done with the configuration, save the schedule by clicking Save schedule.
If all went well, you should be seeing your newly created test schedule in the list of schedules.
⭐ Pro Tip trigger a cloud test from the CLI then set up a schedule from the cloud app to re-run the test on a regular interval.
In both cases, you are presented with the following options.
- Ability to run a test now or at a later date.
- Set the execution to repeat on an Hourly, Daily, Weekly, or Monthly interval.
- Control how many times the test will run for, a set number of occurrences, stop after a certain date. The granularity for controlling this is high, so do explore the options.