Menu

FormatJavaCucumberandReport.js

Overview

This 'Pulse Rule' sample takes raw CucumberforJava.json surefire reports and configures them into a format that the auto-test logs endpoint will understand. At the end of this Action, the Rules that use the Action "UpdateQTestAndScenarioWithFormattedReults" will be called.

Note: Anything that uses constants.X will need your own constants value.

Pulse Rules v9.0

Pulse Rules v9.1-Coming Soon!

FormatJavaCucumberandReport.js

Set up 'Rules' for your own 'Trigger' (webhook) and use the sample 'Actions' provided below.

Setup Pulse Rule

  1. Review the Pulse Quick Start Guide for your version of Pulse for complete instructions on how to add Pulse Triggers, Actions, and Rules.
  2. Enter the sample Program Code in the Pulse Actions. 
    Note: For the most up to date sample program code, view the QASymphony/PulseRules repository linked above.

Constants

  • constants.ManagerURL
  • constants.Scenario_Account_ID
  • constants.Scenario_Project_ID

Variables

Fields with a $ and all caps that look like a variable must be updated.

Example: In FormatJavaCucumberandReport.js, please replace:

$YOUR_NAME_FOR_UpdateQTestAndScenarioWithFormattedResultsEvent'

UpdateQTestAndScenarioWithFormattedResults.js

Set up 'Rules' for your own 'Trigger' (webhook) and use the sample 'Actions' provided below.

Setup Pulse Rule

  1. Review the Pulse Quick Start Guide for your version of Pulse for complete instructions on how to add Pulse Triggers, Actions, and Rules.

  2. Enter the sample Program Code in the Pulse Actions. 
    Note: For the most up to date sample program code, view the QASymphony/PulseRules repository linked above.

Constants

Anything that uses constants.X will need your own constants value.

  • constants.qTestAPIToken
  • constants.ManagerURL

Variables

Fields with a $ and all caps that look like a variable must be updated.

Example: In UpdateQTestAndScenarioWithFormattedResults.js, please replace $YOUR_SLACK_EVENT_NAME

 

Powered by Zendesk