Hello,
I use a file variable whose CSV source is generated with https://mockaroo.com. I also make a BAT file that download the CSV in the NeoLoad project, right on the variable location. When I need a new dataset, I just launch the BAT file and the variable is refreshed.
My goal is to automate this operation. I tried setting a command prompt action in the user path initialization that use my variable. This way, the variable will be refreshed on each scenario start-up.
The problem with this method is that the file cannot be modified because it's used by NeoLoad process. Is there another way to accomplish this task ?
Thank in advance for your help.
You need to update your variable before NeoLoad is started and not when you start your test.
You can run your NeoLoad through command line right after refreshing your variable file.
You can have more information about command line options from the NeoLoad documentation here
I hoped there was a solution that doesn't require a restart of NeoLoad, but if this is the only option, that's fine.
Thank you @Nouredine