A simple wrapper to call Zephyr and Jira cloud based APIs
npm install zfjcloud-client
npm i zfjcloud-client
`
2. Require the package:
`
const ZfjCloud = require('zfjcloud-client');
`
3. Setup the settings, it requires Jira and Zephyr credential:
`
const settings = {
jira: {
url: 'https://yourCompany.atlassian.net'
auth: '==yourAuthentication=='
},
zephyr: {
accessKey: 'yourZephyrAccessKey',
secretKey: 'yourZephyrSecreKey',
user: 'yourZephyrUserName'
},
projectName: 'jiraProjectName'
}
`
4. Create ZfjCloud object:
`
const cloud = new ZfjCloud(settings);
`
5. Update test result by passing the version name and test name and test result (passed is 1 and failed is 2):
`
cloud.updateExecutionResult('1.0.0', 'MZ-1234', 1);
``