Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space DTPDEVEL and version 2024.2

In this section:

Table of Contents

Introduction

This tutorial describes using the Data Collector Error Email example, which enables you to send email notifications based on DTP Events. The following DTP REST API is used in this example:

  • Endpoint: http://<HOST>:<PORT>/grs/api/v1/staticAnalysisViolations/{{event.message.ids.0}}/prioritization/events
  • URL: /staticAnalysisViolations/{{event.message.ids.0}}/prioritization/events
  • Method: GET

Requirements

  1. DTP and Extension Designer must be configured correctly. See Server Settings.
  2. An SMTP email server must be configured. See SMTP Settings.
  3. DTP should have collected static analysis data from a Parasoft code analysis and test execution tool (C/C++test, dotTEST, or Jtest). This requirement is so that you have violations metadata to edit. 

Setup

  1. Create a new service in the DTP Workflow category (see Working with Services) and create new flow (see Working with Flows). You can also add a new flow to an existing service. 
  2. Choose Import from the Extension Designer menu.
  3. Click the Library tab and choose Examples > Data Collector Error Email.json.
  4. Click Import and drop the flow into the tab.

When the Data Collector Error Email flow is imported, it is labeled with the Send an Email when a Report Fails to Processes comment node. 

Configuration

The DTP DataCollector topic notifies subscribers about events created from Data Collector. The topic supports three different events:

...