Files
bruno/packages/bruno-tests/collection/scripting/api/bru/getVar.bru
2024-08-12 12:28:41 +05:30

19 lines
270 B
Plaintext

meta {
name: getVar
type: http
seq: 5
}
get {
url: {{host}}/ping
body: none
auth: none
}
tests {
test("should get var in scripts", function() {
const testSetVar = bru.getVar("testSetVar");
expect(testSetVar).to.equal("bruno-test-87267");
});
}