Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@davidbouckaert/zephyr-scale-cloud-reporter
Advanced tools
Readme
ZH Cloud, or zephyr helpers is a Node JS framework that implements test suites with Zephyr scale for Jira.
It uses a soft-assert function to absorb failing assertions and translate them to a true/false value.
Install ZH Cloud for Mac, Linux, or Windows
npm install @davidbouckaert/zephyr-scale-cloud-reporter --save-dev
This project is licensed under the terms of the MIT license.
Include the module into your test suite.
const zh = require('@davidbouckaert/zephyr-scale-cloud-reporter')
The first thing you'll want to do is to call the function init()
It populates the framework with critical information.
One option is to do this inside of the before
block.
before(async function () {
// FIRST: setting variables for zephyrHelpers (without the project ID)
await zephyrHelpers.init({
zephyrURL: 'https://<url.to.your.jira.env>',
jiraURL: 'https://<url.to.smartbear>',
zephyrApiToken: ,
jiraApiToken: ,
zephyrProjectKey: 'TEST01',
zephyrFolderName: 'My_test_cases',
environment: 'TEST4',
jiraDisplayName: 'My Name'
defaultJiraId: 'JIRAUSER123',
});
});
Note: don't store clear text passwords in your repository.
Explenation:
There are 2 variables defined to store the result of the GET call: payloadResult
& responseCodeResult
.
A varable testName
is created that holds the exact name of the test case in Zephyr Scale.
Another variable testrunId
is being created, it's value is set by calling the function createNewTestrun
, 2 parameters are passed (as an object):
Then the REST call is executed, and afterwards (.then) the value of payloadResult
& responseCodeResult
are being set.
Using the softAssert
method:
responseCodeResult
softAssert.equals()
is comparing if two parameters are an exact match and returns true
or false
.payloadResult
softAssert.includes()
is checking if the value of parameter 'B' is included in parameter 'A' and returns true
or false
.Next up: calling the updateTestResult()
function. This sends the result over to Zephyr Scale, making it visible in the test case (tab executions).
Finally: calling the softAssert.assertAll()
function. This function checks if any error were absorbed during the soft-asserts. If there are, the errors are logged in the console, and the test runner will mark the test as failed.
Note: your CI system will also mark the job/run as failed
it('Call /users without authorisation header', async function () {
let payloadResult, responseCodeResult;
const testName = 'GET /users without authorisation header (Sad flow)';
await request(baseURL)
.get(
`/users?id=${getUser.id}&userIdentification=${getUser.userIdentification}&username=${getUser.username}`
)
.then((res) => {
responseCodeResult = zephyrHelpers.softAssert.equals(res.statusCode, 401);
payloadResult = zephyrHelpers.softAssert.includes(
res.body.error,
'Unauthorized'
);
});
zephyrHelpers.createNewTestExecution(
status,
env,
folderName,
testName,
testCycleName
);
await zephyrHelpers.softAssert.assertAll();
});
FAQs
ZH Cloud, or zephyr helpers is a Node JS framework that implements test suites with Zephyr scale for Jira. It uses a soft-assert function to absorb failing assertions and translate them to a true/false value.
The npm package @davidbouckaert/zephyr-scale-cloud-reporter receives a total of 675 weekly downloads. As such, @davidbouckaert/zephyr-scale-cloud-reporter popularity was classified as not popular.
We found that @davidbouckaert/zephyr-scale-cloud-reporter demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.