mirror of
https://github.com/usebruno/bruno.git
synced 2026-07-08 14:35:03 +00:00
Resolved issue: https://github.com/usebruno/bruno/issues/4672 (#5900)
- 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 ---
This commit is contained in:
committed by
GitHub
parent
c5325c732f
commit
be7f92d77f
@@ -0,0 +1,25 @@
|
||||
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}}"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user