only works on C:
an option should be available for it not to use C: drive for storage/temp.
manually setting $mainOSDrive doesn't help, script keeps referring to system drive here and there:```
The operation completed successfully. Mounting Windows image. This may take a while. ERROR: The system cannot find the file specified. C:\tiny11\sources\install.wim: The system cannot find the file specified.
because of
$env:SystemDrive being used later on instead of $mainOSDrive
Hi, same question for header and postman {{$randomUUID}}
@standej it should work if you use bru.setVar instead of bru.setEnvVar
Hi @KaniZ0r I tried to do with collection variables and it still dont work:
Here is my json body:
Here is what is created in database:
And here is value of my variable when i click to eye up:
And here is my pre request script how i generate random value:
bru.setVar("loginVar", Math.round(Math.random() * 100000));
Bruno version 0.25.0
Unfortunately still not working and do not interpolate value
It would be nice to provide a feature that allows to generate random values in the json payload directly to simplify the usage. It could be something similar to the templating feature in Mockoon.
https://mockoon.com/docs/latest/templating/overview/
I usually do something like this:
const { v4: uuidv4 } = require('uuid');
const inputName=uuidv4();
bru.setEnvVar("input_name", inputName);
Then in the json body:
If you have a collection of hundreds of requests, where lots of requests needs some dynamic value - e.g. idempotency header, correlation keys etc, then it is not practical having to add the same script to each request. Postman solution with {{$randomUUID}} and other dynamic variables is really useful for a lot of people and I see no negative impact on how Bruno works.