Automated testing

Automate your unit and UI testing with Gearset

Schedule tests and integrate with your deployment pipeline to ensure you catch errors, track coverage, and deliver quality across your orgs.

Unit testing

Unit testing helps you catch failing code in production and track your code coverage. It can check whether individual components are working correctly — anything from triggers to classes, and it’s important to check that each one can function on its own without affecting the other units.

  • Schedule automated unit testing

    With Gearset, you can create customized automated tests for your orgs, schedule test runs, set desired code coverage thresholds, and specify the inclusion of tests from namespaces.

  • Daily summary of your automated unit tests

    You will receive a comprehensive daily summary detailing testing outcomes and code coverage fluctuations. Plus Gearset holds a record of all unit testing jobs, so you can analyze individual test results at a later date.

  • Debug test failures

    For enhanced debugging, you can access detailed insights into Apex class and code failures, Salesforce error messages and complete stack traces.

UI testing

User interface (UI) testing is important to test how elements of the application behave when the end user interacts with them. The UI elements that can be tested are all the things that the user can click — things like drop-downs, menus and icons.

There are a number of automation tools available to help with UI testing and ensure best practises are maintained.

  • UI testing integrations

    You can integrate popular testing solutions such as ACCELQ and Keysight Eggplant with Gearset.

    Save time, find bugs earlier, and reduce human error with frequent testing. Specify which tests you’d like to automatically run following a successful deployment job.

Automated testing, integrated with your release pipeline.

With Gearset you can integrate your unit and UI testing with your automated deployment pipeline, reducing the time and effort you face when running these tests separately. Try our complete Salesforce DevOps platform now.

Start free trial

Further resources

Testing FAQs

You’ll need an Automation Platform Starter, Automation Platform Teams, or Automation Platform Enterprise license to setup and use unit testing. More information on costs can be found on our pricing page.

You’ll need an Automation Platform Teams or Automation Platform Enterprise license to setup and use UI testing. More information on costs can be found on our pricing page. You will also need an account with ACCELQ or Keysight Eggplant.

You can easily connect your ACCELQ or Eggplant accounts through the ‘Source control and services page’ in Gearset.

For ACCELQ you will need your URL, username, project code, tenant code and API key.

For Eggplant you will need your realm ID, token URL, base URL, client ID, and client secret.

You can specify which ACCELQ job or Eggplant model to run after your CI deployment job by editing a job on your continuous integration dashboard or when you are creating a new CI job.

You can check your ACCELQ or Eggplant dashboards or notifications directly for your UI test results.

Gearset will work for any cloud on the core Salesforce.com platform, including Sales Cloud, Service Cloud, and Salesforce Industries.

While there are no direct disadvantages to unit testing, Salesforce is complex and continuously adding functionality – this complexity can cause issues with your testing along the way, even with automation.

Automation isn’t always the answer to testing, especially when it comes to UAT and QA – sometimes human interaction is necessary to check the changes that are more subjective, or spot defects not picked up by machine.

Ready to get started with Gearset?