Reputation: 1149
I want to execute .bash script using OS Process Sampler
via Jmeter 5.5
My requirements are:
1 Navigate to the specific path: C:\app\docs\release
2 execute as: ./no_longer_duplicate.bash dwtikz895261 6565
3 dwtikz895261 should be fetched as variable
Any help is appreciated
Upvotes: 0
Views: 471
Reputation: 1149
Thanks Dmitri T, but I wasn't able to get my results using OS Process Sampler
and bash script on Windows.
The only way that worked for me was using groovy sampler and processBuilder
Here could be found the solution that worked for me -> Jmeter - Execute bash script using 'JSR223 Sampler' and groovy, and output the result
Upvotes: 0
Reputation: 168002
If you're trying to run a Bash script you need to provide the bash to Bash interpreter
Something like:
But you seem to have Windows as OS, shouldn't you use Powershell or CMD instead? Or even consider JSR223 Sampler with Groovy, in that case it would be cross-platform
Upvotes: 1