Smart triggers

Once you have a test suite with a few test cases you may want to run it every time you commit your code or deploy a new release. Frontend Robot can be easily integrated with most build systems or CI/CD platform thanks to smart triggers.

Why are they called smart you may ask? It’s because they area able to detect the platform that is invoking the trigger and automatically extract some extra information to run the suite or integrate with other platforms. Below is a list of officially supported integrations:

  • Netlify: triggers the test suite run after a deploy and shows the results on Github.

Generating the smart trigger

To get the smart trigger for a test suite, navigate to that suite and then go to the Settings tab:

Go to the suite's Settings
Go to the suite's Settings

Scroll down to the Smart Trigger section and click Generate Smart Trigger URL:

Generating a smart trigger
Generating a smart trigger

The URL that will appear is the smart trigger for the test suite. You can also click on the cRUL tab to get a cURL command you can copy/paste in your build script to trigger the test suite run at the end of your deployments.

The smart trigger is ready
The smart trigger is ready

Displaying your test results on Github

If your code is hosted on Github and the smart trigger receives information about the repository, then Frontend Robot can automatically display the results of an automatically triggered test run on Github, beside the commit or PR that triggered the build.

NOTE: Check each specific integration to see if the smart trigger can integrate with Github.

Test results on Github from a Netlify deployment
Test results on Github from a Netlify deployment

To enable this feature all we have to do is connecting a Github Organization to our account. Go to the organization’s settings on Frontend Robot and then click on the Integrations tab.

Connecting a Github Organization
Connecting a Github Organization

Click on Connect Organization and follow the instructions. For convenience we recommend to allowing access to all the repositories on the organization.

Questions?

We're always happy to help with test creation or other questions you might have! Search our documentation, contact support by email or on chat, or connect with our sales team.