You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to run load tests using httpyac's parallel mode, but it doesn't work when I use javascript blocks with exported variables.
Here is an example of code that works without parallel mode, but gives errors with this mode.
{{const{ faker }=require('@faker-js/faker');exports.sexType=faker.person.sexType()exports.password=faker.internet.password({length: 10})exports.firstName=faker.person.firstName(exports.sexType)exports.lastName=faker.person.lastName(exports.sexType)exports.email=faker.internet.email({firstName: exports.firstName,lastName: exports.lastName});exports.phone=faker.helpers.fromRegExp(/0[67][0-9]{8}/)exports.auth="Basic "+Buffer.from(exports.firstName+":"+exports.password).toString("base64")}}
GET https://httpbin.org/basic-auth/{{firstName}}/{{password}}
Authorization: {{auth}}{{exports.user=response.parsedBody.user;console.log('user',exports.user)}}
GET https://httpbin.org/uuid
Token: {{user}}{{exports.uuid=response.parsedBody.uuid;}}
POST https://httpbin.org/anything/{{user}}
Token: {{uuid}}
I want to run load tests using httpyac's parallel mode, but it doesn't work when I use javascript blocks with exported variables.
Here is an example of code that works without parallel mode, but gives errors with this mode.
It's ok without parallel
but Error with parallel mode
The text was updated successfully, but these errors were encountered: