Configure the webhook in Sauce Labs

Configure webhook endpoints so that Sauce Labs can use the endpoint to communicate with Incident Response.

Role required: Responder, Manager, or Administrator.

Note: While this integration with a third-party product is supported, the documentation here is based upon information provided by that third-party. More current information about the operation of that third-party’s system may be available from them directly.

Automated and manual testing

  1. Log in to your Sauce Labs account.
  2. Navigate to the Accounts Integration page.
  3. Click Enable in the webhooks tile.
  4. In the WEBHOOK URL field, enter the webhook URL copied from Incident Response.

    Enter webhook URL.

  5. Select the events for which you want Incident Response to handle alerts.
    • Virtual Devices: Receive test result events for jobs run on Sauce Labs desktop browsers and mobile emulators and simulators.
    • Real Devices: Receive test result events for Appium jobs run on Sauce Labs real devices.
  6. For each selected event type, choose whether you wish to receive data for all completed tests or only tests that failed.
  7. Click  Save to complete your configuration. Your webhook appears under the  Saved configurations  section .

API testing

  1. Log in to your Sauce Labs account.
  2. Navigate to API Testing.
  3. Select your project.
  4. Navigate to Settings > Connector and click Create Connector.

    Create a connector.

  5. In the Create Connector form, fill in the fields:
    Field Description
    Choose Connector Type Select WebHook from the list.
    Url Paste the webhook URL copied from Incident Response.
    Content-Type Pre-populated with application/json.
    Template Pre-populated with the JSON payload indicating what data will be sent from API Testing.
    On_success
    • True: Turn the toggle to True to receive data on all events, including successes. Use this option when the service needs to log everything or alter a state.
    • False: Turn the toggle to False to receive notifications for test failures only. Use this option for stateless services.

    Create Connector form.

  6. Click Save Changes.

Mobile beta testing

  1. Log in to your Sauce Labs account.
  2. From Sauce Labs dashboard, clickMobile Beta Testing.
  3. Navigate to Accounts > TestFairy Settings.
  4. Select Integrations and click Add Integration for the webhook tile.
  5. In the Webhook form, fill in the fields:
    Field Description
    Name Name for the webhook.
    URL Paste webhook URL copied from Incident Response.
    Active Select the check box.
  6. Select the events for which you want to trigger the webhook.

    Webhook form for mobile beta testing.

  7. Click Add webhook.

Closing Sauce Labs alerts

Sauce Labs does not provide closing payload for Automated/Manual Testing and Mobile Beta Testing alerts. To close these alerts, follow the steps given in Close an alert.