I am required to simulate a file transfer from a location on premise to a location on the cloud or let say any other location.
I have to transfer close to 11 K files at a rate of 3 file per second and if required increase the rate of file transfer to find at what rate the system breaks
This kind of loading and throttling is easy with Jmeter OS sampler but there are issues with the sampler in my case because I am first calling an exe which is kind of parametrized and prompts for a confirmation when executed.
With Jmeter OS sampler I am not able to handle the user input and I used the correct method tested with other command to suppress the prompt.
But I think because of the EXE I am not able to suppress the prompt with OS sampler
With OS sampler it was quite easy I just had to specify the command, parametrize the file name and generate the UUID on the go and just trigger the command.
I could also control the throughput with Jmeter and control the file transfer rate, but the approach with jmeter is out of question as it simply does not work and gets stuck waiting for user input!
Towards the end I decided an approach with PowerShell script which when executed works perfectly but I am not an expert and I have created a parametrized PowerShell script as below with some guidance
param(
[string]$fileName,
[string]$uuid
)
$myshell = New-Object -com "Wscript.Shell"
$myshell.sendKeys("y")
$myshell.sendKeys("{Enter}")
.\BlobFileUpload.exe .\$fileName "4f21-8c7e-45fe9b515a7f/$uuid" "routeid" "/$fileName" "inbox" <Azure Blob SAS url>
The way to execute this scrip is:- .\script-1.ps1 -uuid uuid1 -fileName file1 from the prompt
This code works perfectly but now I need help to pass the file name and UUID from a CSV file and a way to execute this code based on the loop count I specify and in multiple PowerShell window (for example 2 or 3 parallel execution but should pick unique file names and UUID from CSV)
Looking forward to suggestions or links to code snippets I can use to crack this one. Thanks



jmeter- what's the connection between the two? Why is it important to use jmeter to measure(?) your file upload task?