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'm working on a script to automate the generation of a JS script from HAR, the data injection and the JS script execution.
I want my JS script to contain a main function and a setup function such as:
exportfunctionsetup(){letvars={};// read a csv file that contains my dataset// update vars with datareturnvars;}exportdefaultfunctionmain(vars){constrandomIndex= ...;// computed from vars and the strategyconstusername=vars[randomIndex].username;group(...)}
My current approach is to edit the JS file with another script that adds manually the wanted lines.
Is there a way to update the HAR in order to get this structure by running har-to-k6 ?
(If it's not implemented yet, just give me the recipe, I'll try a fork and submit a PR if the result is interesting)
The text was updated successfully, but these errors were encountered:
Hello
I'm working on a script to automate the generation of a JS script from HAR, the data injection and the JS script execution.
I want my JS script to contain a main function and a setup function such as:
My current approach is to edit the JS file with another script that adds manually the wanted lines.
Is there a way to update the HAR in order to get this structure by running har-to-k6 ?
(If it's not implemented yet, just give me the recipe, I'll try a fork and submit a PR if the result is interesting)
The text was updated successfully, but these errors were encountered: