Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Marketing update handler signature Sep 4, 2018
AllRules.json Added new create and link test case rules Feb 28, 2019
CreateTestCase.js
ExampleFormattedResults.json Adding parsers for postman and python, fixed naming convention, added… Mar 5, 2018
FormatJavaCucumber.js Fixing all rules files to include new rules for 91 Oct 3, 2018
FormatPostmanJson.js KIT-1182 move constants & triggers to event payload Aug 31, 2018
FormatPythonPyTestJUnit.js KIT-1182 move constants & triggers to event payload Aug 31, 2018
LinkRequirement.js Added new create and link test case rules Feb 28, 2019
LinkScenarioRequirements.js edit Scenario URL and add more logging Nov 14, 2018
README.md
SlackAction.js
UpdateQTestWithFormattedResults.js edit Scenario URL and add more logging Nov 14, 2018
cucumberJenkinsExecuteShell.sh Adding basic, initial rules Feb 5, 2018
scenarioColors.js fix logs and param Apr 23, 2019
triggerJenkins.js KIT-1182 move constants & triggers to event payload Aug 31, 2018

README.md

Pulse Rules

Default/Sample Pulse rules for your enjoyment

Quick Setup Instructions

Import all of these sample rules directly into Pulse by using the "Import" feature within Pulse and the AllRules.json file included. All constants will need to be filled out for rules that you would like to use.

Instructions

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

Example: In cucumberJenkinsExecuteShell.sh, please replace $YOUR_PULSE_RULE_EVENT_URL, $YOUR_TEST_CYCLE_ID, $YOUR_PROJECT_ID, etc

Set up rules with your own event and with these actions. Note, anything that uses constants.X will need your own constants value.

Finally, these are only samples. Some of the actions are not 100% robust in case of failure.

Formatters

Each formatter will format raw test results into something the UpdateQTestWithFormattedResults action will understand. And example of what these formatted results look like can be found in the ExampleFormattedResults.json file. Attachments may be included within the formatted results as an array of attachment objects.

    attachmentObject = {
                        name: step.name + " Attachment " + attCount,
                        "content_type": att.mime_type,
                        data: att.data
                       };

FormatJavaCucumber.js

This takes raw Cucumber for Java .json surefire reports and formats them into a format that the auto-test-logs endpoint will understand. At the end of this action, the rule that uses the action "UpdateQTestWithFormattedResults" will be called

FormatPostmanJson.js

This takes raw Postman .json and formats them into a format that the auto-test-logs endpoint will understand. At the end of this action, the rule that uses the action "UpdateQTestWithFormattedResults" will be called

FormatPythonPyTestJUnit.js

This takes raw Python PyTest .xml (JUnit style) results and formats them into a format that the auto-test-logs endpoint will understand. At the end of this action, the rule that uses the action "UpdateQTestWithFormattedResults" will be called

cucumberJenkinsExecuteShell.sh

Jenkins Execution Post Shell Action Configuration for Cucumber for Java with .json output

triggerJenkins.js

Triggers a Jenkins Job using the API of Jenkins. Note that your jenkins instance needs to be configured to allow a remove trigger. Verify with CURL before using this action from Pulse.

SlackAction.js

Sends a message to slack. A webhook must be set up in slack so you can send info to a channel or person.

UpdateQTestWithFormattedResults.js

This uses the auto-test-logs endpoint to bulk upload test cases, test runs, and test logs to qTest Manager. It also attempts to tie requirements to test case if the names match.

scenarioColors.js

This sets the color coding in scenario for pass/fail at the start of the script.

CreateTestCase.js

This is action code to create a test case in qTest in the default API Creation qTest Test Design Module called 'Created via API'. The expected payload is the standard Jira webhook payload. This rule is used in conjunction with LinkRequirement.js and is intended to be used when a Jira Issue is created or modified to meet certain criteria (such as a status called Ready To Develop or something triggering wanting a default test case).

LinkRequirement.js

This is action code to link an existing qTest Test Case object, by object id, to a Jira requirement by Jira Issue Key. This assumes the Jira & qTest integration is already set up and that Jira Issue already exists in qTest as a requirement. CreateTestCase.js uses this action/rule, but it could be used independetly. The payload expected is a json object outlining the test case objectid and the Jira requirement Issue Key.

Sample Slack Rule Setup

createslackrule

You can’t perform that action at this time.