Files
bruno/tests/interpolation/dynamic-variable/collection/set-var-dynamic-variable.bru
Chirag Chandrashekhar be7f92d77f 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
---
2025-10-27 16:26:49 +05:30

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}}"
}
}