mirror of
https://github.com/usebruno/bruno.git
synced 2025-01-10 16:08:40 +01:00
23 lines
343 B
Plaintext
23 lines
343 B
Plaintext
meta {
|
|
name: getRequestVar
|
|
type: http
|
|
seq: 7
|
|
}
|
|
|
|
get {
|
|
url: {{host}}/ping
|
|
body: none
|
|
auth: none
|
|
}
|
|
|
|
vars:pre-request {
|
|
request-var: request-var-value
|
|
}
|
|
|
|
tests {
|
|
test("should get request var in scripts", function() {
|
|
const testVar = bru.getRequestVar("request-var");
|
|
expect(testVar).to.equal("request-var-value");
|
|
});
|
|
}
|