Schedules
Last updated
Last updated
When you've already prepared automated tests, you should run them on a regular basis to monitor if your web app works properly.
Fortunately, you don't need to log in to BugBug and click "Run" every week . BugBug can run the tests in the cloud automatically and notify you about failed tests with email notifications.
To use schedule and cloud runs you need to have a paid subscription - see pricing
Creating an hourly schedule is not the only option you can choose. You can also select and create from other available schedules, such as: Every 5 minutes / Hourly / Daily / Weekly / Monthly.
Scheduling cloud monitoring with automated tests doesn't require any engineering knowledge or additional infrastructure. Here's how to do it:
Make sure your selected test suite passes when you run them in the cloud
Go to "Schedules"
Click on the "New schedule" button
Select "Hourly" and fill out all of the required fields
Select "All suites" or any other specific suite
Make sure "Schedule enabled" is turned on
Click on the "Create schedule" button
That's it! Based on this example, BugBug will now run your tests every hour. You will receive email notifications when all tests have been completed.
You will receive notifications with scheduled test results directly in your inbox. You can configure who gets notifications in project settings.
Important! By default all suites use the auto-retry failed tests setting to avoid sending you false-alarm notifications from unstable, flaky tests.
Tip! Add a filter in your email to avoid inbox clutter. Or disable notifications for passed runs.
The email contains details about the results and direct links to the tests that failed. After clicking the link you will see a read-only report of this run from the run history.
Did you know? You can also integrate BugBug notifications with your Slack
If you work on a large project, you may want to have more than one schedule. For example, you can run production tests every hour but monitor your test environment just once a day at night.
Create more schedules to have control over which suites are run and when.
Important! Only suites can be scheduled - you can't schedule running individual tests.
Create separate test suites
Go to "Schedules"
Click the "New schedule" button
Fill out the name field
In the "Time" section, select the type of run from Every 5 minutes/Hourly/Daily/Weekly/Monthly (for this example, we'll select Daily).
Select the suites you want to run and set the scheduled time range
Make sure "Enabled" is turned on
Click on the "Create schedule" button
Emails notifying about failed schedules are marked with a symbol.