Skip to main content
Skip table of contents

Managing Test Gatekeeper

Introduction to Gatekeeper

In the dynamic world of software development, efficiency and responsiveness are key. "Gatekeeper," a feature in our Testany platform, stands as a testament to this, offering users the ability to trigger specific groups of tests through webhooks.

Defining Gatekeeper and Its Key Components

Feature Overview

Gatekeeper empowers users to establish triggers for executing predefined pipeline groups when specific events occur, thereby enhancing ongoing product optimization and issue monitoring. This feature is not only beneficial for product teams aiming to improve release and deployment quality, but it is also invaluable for Operations teams. It allows for automatic testing of specific user journeys or features based on alert signals from monitoring platforms such as Splunk or Dynatrace. This capability significantly boosts troubleshooting efficiency during, and even before, the occurrence of incidents.

Understanding the Gatekeeper Key

Each Gatekeeper is assigned a unique identifier, the "Gatekeeper Key." This 10-character key, starting with 'G', represents the Gatekeeper and the corresponding workspace.

Webhook in Gatekeeper

Gatekeeper's functionality is enhanced by the integration of webhooks. These webhooks are essential for triggering the execution of test pipelines. Users can configure these webhooks to respond to various events, enabling the automated execution of tests in response to defined conditions. This integration is pivotal for maintaining an efficient and responsive testing environment, adapting quickly to changes and new data within the operational ecosystem.

Role of the Gatekeeper Owner

The Gatekeeper Owner plays a pivotal role, having authority to edit and manage Gatekeepers. They define the conditions under which tests are triggered and ensure the right team members are notified.

Setting Up a Gatekeeper

Creating a Gatekeeper involves a few straightforward steps:

  1. Creating a Gatekeeper:

    1. If you’re a member of a workspace, you may see a new tab in the left-side bar named “Gatekeeper”. Click it and you’ll be redirected to the Gatekeeper section.

      image-20240113-092126.png

    2. After you click the “Create Gatekeeper” button at the top-right corner, a create wizard will pop up:

      image-20240113-092434.png

    3. After you put a name for the Gatekeeper as well as the description (optional), click next. You’ve already created a new Gatekeeper.

      Configuring Webhooks and Test Pipelines:

    4. You can get into the Gatekeeper detail page to further edit the Gatekeeper.

      image-20240113-103653.png

    5. The Gatekeeper detail page is an inline edit page. If you have the permission to edit it, you may follow “click-to-edit, save-on-blur” method to edit all fields in the page except Gatekeeper key.
      Please note: Trigger Method, Trigger Name and Trigger Condition field in the Trigger Condition section is very important for you and other users to understand the Gatekeeper you setup, please fill it as precise as possible.

  2. Defining Trigger Conditions: The Gatekeeper Owner sets the criteria for test execution.

Managing Gatekeepers

Gatekeepers can be easily managed by:

  1. Editing and Updating Gatekeepers: Make changes to configurations as needed.

  2. Adding Users to the Watcher List: Ensure relevant team members are kept in the loop.

  3. Transfer ownership to other workspace members: to make sure the Gatekeeper is well maintained.

Best Practices for Using Gatekeepers

Example 1: Jenkins CI/CD Pipelines Integration

Integrating Gatekeeper with Jenkins CI/CD pipelines can automate test executions during various CI/CD steps. To set up a webhook in Jenkins, follow these steps:

  1. Configure Jenkins for GitHub. Jenkins Documentation

  2. Set up a GitHub Webhook. GitHub/Jenkins: Setting up Webhooks

  3. Configure webhook in Jenkins Pipeline. Adding a GitHub Webhook in Your Jenkins Pipeline

Example 2: Splunk Integration for Metric-Based Triggers

Setting up Gatekeeper with Splunk enables the triggering of automated tests when certain metrics reach predefined levels. For configuring a webhook in Splunk, consult the following resources:

  1. Creating a Search Query
    login into your Splunk, create your business query.

    image-20240114-125102.png
  2. Saving the Search as an Alert

    image-20240114-125201.png
  3. Configuring Alert Conditions
    Configure the conditions under which your alert should trigger. This involves setting thresholds, time ranges, and specifying the severity of the alert.

    image-20240114-125634.png
  4. Setting up the Webhook
    Click 'Add Actions' then Choose ‘Webhook'

    image-20240114-130138.png

    Paste your gatekeeper hook URL which get from Testany gatekeeper

    image-20240114-130851.png


    Testany Hook URL

    image-20240114-130617.png
  5. Saving and Enabling the Alert
    Click 'Save'

    image-20240114-131240.png


    Click 'View Alert'

    image-20240114-131420.png

Conclusion

Gatekeeper is a powerful tool in the Testany platform, offering streamlined and efficient test management. By understanding and utilizing its features effectively, teams can significantly enhance their testing processes and overall product quality.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.