- 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:
Chirag Chandrashekhar
2025-10-27 16:26:49 +05:30
committed by GitHub
parent c5325c732f
commit be7f92d77f
6 changed files with 100 additions and 1 deletions

View File

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