mirror of
https://github.com/usebruno/bruno.git
synced 2026-06-15 03:41:28 +00:00
- Added interpolation to setVar method's value field. - Added playwright test to test the fix. - Added jest test to test out the fix. --- Playwright - PASS Jest - PASS ---
26 lines
299 B
Plaintext
26 lines
299 B
Plaintext
meta {
|
|
name: set-var-dynamic-variable
|
|
type: http
|
|
seq: 1
|
|
}
|
|
|
|
post {
|
|
url: https://echo.usebruno.com
|
|
body: json
|
|
auth: none
|
|
}
|
|
|
|
headers {
|
|
Content-Type: application/json
|
|
}
|
|
|
|
script:pre-request {
|
|
bru.setVar("title", "{{$randomFirstName}}");
|
|
}
|
|
|
|
body:json {
|
|
{
|
|
"title": "{{title}}"
|
|
}
|
|
}
|