Testery Docs
TesteryFeaturesPricingRelease Notes
  • Testery Documentation
  • Release Notes
  • Get Started
    • Getting Started Guide
      • Create a Testery Account
      • Configure Your Project
      • Run Your Tests
      • Configure Slack Alerts
      • Schedule Your Test Runs
      • Invite Your Team
      • Get More From Testery
  • Get to Know Testery
    • Dashboard
    • Test Runs
      • Test Selection Rules
    • Projects
    • Test Triggers
    • Environments
    • Alerts
    • Settings
    • Test Plans
    • Test Stacks
      • Python
      • Node.js 16 End of Life
      • Default Chrome Version Change
      • Python 3.8 End of Life
    • Deployments
    • System Variables
    • Tags
    • Screenshots
    • Uploading Test Artifacts to Testery
    • Setting Test Execution Priority
    • Setting the Number of Parallel Tests
  • Integrate with Testery
    • Built-In Integrations with Testery
      • Jira
      • Slack
    • CI/CD Integration Guides
      • Azure Devops Pipelines
      • Set Up CircleCI to Run Testery Tests
      • Jenkins
      • GitHub Actions
      • Octopus Deploy
      • TugboatQA
    • Testery CLI
    • Testery REST API
      • Testery REST API Resources
    • Microsoft Teams
  • Framework-specific Guidance
    • Supported Testing Frameworks
    • Cypress
      • Updating Cypress Tests to Output in JUnit XML Format
    • Playwright
      • Update Playwright Tests to Output in JUnit XML Format for Import Into Testery
    • PyTest
      • Update Pytest to Generate JUnit XML for Import into Testery
    • TestNG
      • Updating TestNG Tests to Output in JUnit XML Format
  • How-To
    • Enable or Disable Automatic Rerunning of Tests
    • Run Cypress Tests without Connecting Repository
    • How to Store Sensitive Data Like Username and Password For a Cypress Test
    • Connect to a Private npm Repository
    • Running Scripts Before the Tests
    • Upload Test Run for Analysis
  • MISC
    • Troubleshooting Steps
  • Fixing Tests
    • Fix Common Selenium Exceptions
      • Fix a ChromeDriver Version Exception
      • Fix a NoSuchElement Exception
      • Fix a TimeoutException
      • Fix an ElementNotVisibleException
      • Fix a StaleElementReferenceException
      • Fix a WebDriverException
      • Fix an InvalidArgumentException
      • Fix a NoSuchWindowException
      • Fix an UnhandledAlertException
      • Fix an InvalidSelectorException
Powered by GitBook
On this page

Was this helpful?

  1. Get to Know Testery

Test Triggers

PreviousProjectsNextEnvironments

Last updated 3 years ago

Was this helpful?

Testery gives you flexibility about when, where, and how you run your tests. With Test Triggers, you can configure your tests to run when

  • Run tests when another project is deployed (e.g. run your Selenium/Cypress tests when the API is deployed)

  • Run tests on a schedule (e.g. nightly, hourly)

  • Run tests when the tests are updated

  • Run different suites depending on what environment is deployed to

Scheduling automated tests to run on a regular schedule is a common task that companies implement to ensure automated tests are run regularly and consistently. Testery allows you to create and manage your scheduled test runs right within the platform!

Scheduling an Automated Test There are 2 ways to schedule a test run within Testery.

  1. Create a test run and make it recurring. While creating a new test run there is a Schedule field where you can select Run Now, Run on Interval or Run Deploy. Selecting Run Now will create your test run and run it one time. Selecting either of the other 2 options will create a scheduled test run.

  2. Create a new schedule on the Schedule tab. On the schedule tab, click the green +Add New Schedule button to add a scheduled test run.

The structure of the Cron Expression should look like the line below. There are five fields(*) specifying the time to execute the command.

* * * * *

Where the asterisks(*) represent the following time fields:

  • minute (0-59) (in UTC timezone)

  • hour (0-23) (in UTC timezone)

  • day of the month (1-31)

  • month of the year (1-12)

  • day of the week (0-6, Sunday to Saturday)

You can leave the asterisk which means you want all values for the time field. You can also specify a specific number or even multiple numbers (separate multiple numbers with a comma).

Here are some examples of how you might specify the cron expression in Testery:

  • Run a test daily at midnight ( 0 0 * * * )

  • Run a test each week on Wednesday at 5:00 AM ( 0 5 * * 3 )

  • Run a test each day of week at 6 AM and 11 AM (0 6,11 * * * )

  • Run a test every hour of every day ( * */1 * * * )

Now, just save the test run and voila!!! You now have scheduled your automated tests to run on a schedule.

Managing schedules From the Schedules tab in Testery is where you will manage your schedules. You can create new schedules, edit existing schedules, or delete a schedule. You also have the ability to enable and disable schedules.

Schedule Details On Deploy. Note: The On Deploy option will not show up until Testery has deploy info for at least one project. See for more information. When scheduling an automated test to run on a deploy you first select the project and environment you want your tests to run against. Next, select Run On Deploy from the Schedule dropdown. Once you do this a Deploy Project box will appear. Select the project you want to trigger your tests when it is deployed. Select the Branch, Commit and Build of the tests you are running. (If you want to select the latest Build when scheduling a test run, Testery has to have deployment info so it is deploy-aware. See for more information.) Then, add any filters and tags to ensure you are including only those tests you want to be scheduled.

On Interval. When scheduling an automated test to run on an interval you first select the project and environment you want your tests to run against. Next, select Run On Interval from the Schedule dropdown. Once you do this a Cron Expression box will appear. Enter the day/time you would like your test run to execute. Testery will validate the cron expression using the format. Select the Branch, Commit and Build of the tests you are running. (If you want to select the latest Build when scheduling a test run, Testery has to have deployment info so it is deploy-aware. See Testery Deployments for more information.) Then, add any filters and tags to ensure you are including only those tests you want to be scheduled.

crontab
Testery Deployments
Testery Deployments