FormatJavaCucumberandReport.js

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.

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

Pulse Rules v9.0

Pulse Rules v9.1

FormatJavaCucumberandReport.js

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

Setup Pulse Rule

  1. Review the qTest 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.

    For the most up-to-date sample program code, view the QASymphony/PulseRules repository linked above.

Constants

Pulse Rules v9.0

  • constants.ManagerURL

  • constants.Scenario_Account_ID

  • constants.Scenario_Project_ID

Pulse Rules v9.1

None

Variables

Pulse Rules v9.0

emitEvent=Update the values with a $ and all caps.

Example: In UpdateqTestAndScenarioWithFormattedResults.js, please replace $YOUR_SLACK_EVENT_NAME

Pulse Rules v9.1

Variables do not need to be updated for Pulse 9.1 by the user.

UpdateqTestAndScenarioWithFormattedResults.js

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

Setup Pulse Rule

  1. Review the qTest 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. 

    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.

Pulse Rules v9.0

  • constants.qTestAPIToken

  • constants.ManagerURL

Pulse Rules v9.1

  • constants.qTest_TOKEN

  • constants.ManagerURL

Variables

Pulse Rules v9.0

emitEvent=Update the values with a $ and all caps.

Example: In UpdateqTestAndScenarioWithFormattedResults.js, please replace $YOUR_SLACK_EVENT_NAME

Pulse Rules v9.1

Variables do not need to be updated for Pulse 9.1 by the user.