Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More than one qase id on one endpoint, its possible? #635

Open
arirarira opened this issue Jul 12, 2024 · 3 comments
Open

More than one qase id on one endpoint, its possible? #635

arirarira opened this issue Jul 12, 2024 · 3 comments

Comments

@arirarira
Copy link

Example :
// qase: 18230
pm.test(Validasi Total QTY IN Calculated = ${totalInCalculated} dengan QTY IN per kendaraan = ${qtyIn}., function () {
pm.expect(totalInCalculated).to.eql(qtyOut);
});

// qase: 18231
pm.test(Validasi Total QTY OUT Calculated = ${totalOutCalculated} dengan QTY OUT per Kendaraan = ${qtyOut}., function () {
pm.expect(totalOutCalculated).to.eql(qtyOut);
});

@NickVolynkin
Copy link
Contributor

@arirarira it should be possible. What test framework do you use?

@arirarira
Copy link
Author

arirarira commented Jul 12, 2024

@arirarira it should be possible. What test framework do you use?

oh sounds good, i'm using newman-qase-reporter

with this script :
// qase: 18230
pm.test(Validasi Total QTY IN Calculated = ${totalInCalculated} dengan QTY IN per kendaraan = ${qtyIn}., function () {
pm.expect(totalInCalculated).to.eql(qtyOut);
});

// qase: 18231
pm.test(Validasi Total QTY OUT Calculated = ${totalOutCalculated} dengan QTY OUT per Kendaraan = ${qtyOut}., function () {
pm.expect(totalOutCalculated).to.eql(qtyOut);
});

qase id "// qase: 18231" will get pm.test from "// qase: 18230"

@arirarira arirarira changed the title More than qase id on one endpoint, its possible? More than one qase id on one endpoint, its possible? Jul 12, 2024
@NickVolynkin
Copy link
Contributor

With Newman, you can list case IDs in the comment

// qase: 18230 18231
pm.test(Validasi Total QTY IN Calculated = ${totalInCalculated} dengan QTY IN per kendaraan = ${qtyIn}., function () {
pm.expect(totalInCalculated).to.eql(qtyOut);
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants