qansigliere-json-reporter-integration-with-xray-cloud
v2026.4.6
Published
The main idea of this library created in the JavaScript language is to provide a better way to synchronize json-reporter results with Xray Cloud.
Maintainers
Readme
WebdriverIO-JSON-Reporter-integration-with-Xray-Cloud
The main idea of this library created in the JavaScript language is to provide a better way to synchronize JSON-Reporter results with Xray Cloud.
Author
https://www.youtube.com/@QANSIGLIERE/
Support the project
https://buymeacoffee.com/qansigliere
Installation
Using npm npm i qansigliere-json-reporter-integration-with-xray-cloud
Requirements
To make the library works well, You need to complete the following steps:
- Each test case should have at least one test case ID inside of the description and follow to the pattern like JIRAKEY-XXXXXX, example:
it("ASQ-1418 - Change Item Coursing", async () => {
or
it("ASQ-1418, ASQ-1413, ASQ-1415 - Change Item Coursing", async () => {
- You should have Xray Cloud CLIENT_ID and CLIENT_SECRET keys for the API integration
- You need to know the project name and test run ID or test execution ID
How to use it
Example:
let { parseJSONReporterAndSyncResultsToXrayCloud, parseJSONReporterFolderAndGenerateCSVFile } = require('qansigliere-json-reporter-integration-with-xray-cloud');
(async function Integration() {
// Generates a CSV file with test results
parseJSONReporterFolderAndGenerateCSVFile('/../results/jsonReporter/');
// Sync results with existing Test Execution ticket
await parseJSONReporterAndSyncResultsToXrayCloud(
'/../results/jsonReporter/', // Path to the folder with results
'__XRAY_CLIENT_ID__',
'__XRAY_CLIENT_SECRET__',
'DEMO-10153', // Existing Test Execution
);
// Create a new Test Execution ticket and sync results
await parseJSONReporterAndSyncResultsToXrayCloud(
'/../results/jsonReporter/', // Path to the folder with results
'__XRAY_CLIENT_ID__',
'__XRAY_CLIENT_SECRET__',
'',
'ASQ', // Jira Project Name
"Execution of automated tests for release v1.3", // Summart
"DEMO-100", // testPlanKey
["iOS", "Android"] // testEnvironments
);
})();Related Videos
Improvements & Suggestions
https://forms.gle/GZbS9hw42tSYJxKL7
