bruno/packages/bruno-tests/collection/scripting/api/bru/getCollectionVar.bru
2024-12-05 15:45:36 +05:30

19 lines
303 B
Plaintext

meta {
name: getCollectionVar
type: http
seq: 9
}
get {
url: {{host}}/ping
body: none
auth: none
}
tests {
test("should get collection var in scripts", function() {
const testVar = bru.getCollectionVar("collection-var");
expect(testVar).to.equal("collection-var-value");
});
}