Wrapper for Xray's REST API

Installation
$ npm install --save straal
Examples
Create Xray Client
const XrayApi = XrayApi; var xray = 'http' host port user password '1.0';
Get Issue Information
xray
Save Test Run
const ZonedDateTime = ZonedDateTime;const ChronoUnit = ChronoUnit; { return ZonedDateTime;} var startDate = ; // perform test steps var finishDate = ; xray;
Import JUnit Test Results
xray;
Supported Actions
- Get Project Info (/rest/api/2/project)
- Get Issue Info (/rest/api/2/issue)
- Get Test Run Info (rest/raven/1.0/api/testrun)
- Create Xray Issues (/rest/api/2/issue)
- Test
- Test Set
- Test Plan
- Test Execution
- Save Test Run (/rest/raven/1.0/import/execution)
- Add Evidence to Test Run (/rest/raven/1.0/api/testrun/<TEST_RUN_ID>/attachment)
- Import Test Results to JIRA
- JSON Format (/rest/raven/1.0/import/execution)
- JUnit XML (/rest/raven/1.0/import/execution/junit)
- Export test results from JIRA (/rest/raven/1.0/testruns)
- Run JQL queries (/rest/api/2/search)
References
License
MIT License © João Galego