mirror of
https://github.com/usebruno/bruno.git
synced 2024-12-13 02:01:01 +01:00
753a576c3c
Safe Mode Sandbox using QuickJS Co-authored-by: Anoop M D <anoop.md1421@gmail.com> Co-authored-by: lohit <lohit.jiddimani@gmail.com>
40 lines
475 B
Plaintext
40 lines
475 B
Plaintext
meta {
|
|
name: getResponseTime
|
|
type: http
|
|
seq: 5
|
|
}
|
|
|
|
post {
|
|
url: {{host}}/api/echo/json
|
|
body: json
|
|
auth: none
|
|
}
|
|
|
|
auth:basic {
|
|
username: asd
|
|
password: j
|
|
}
|
|
|
|
auth:bearer {
|
|
token:
|
|
}
|
|
|
|
body:json {
|
|
{
|
|
"hello": "bruno"
|
|
}
|
|
}
|
|
|
|
assert {
|
|
res.status: eq 200
|
|
}
|
|
|
|
tests {
|
|
test("res.getResponseTime()", function() {
|
|
const responseTime = res.getResponseTime();
|
|
expect(typeof responseTime).to.eql("number");
|
|
expect(responseTime > 0).to.be.true;
|
|
});
|
|
|
|
}
|