vlatko606
vlatko606

Reputation: 1149

Jmeter - Execute .bash script using OS Process Sampler on Windows os

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

what I tried is: enter image description here

What I get is: enter image description here

Any help is appreciated

Upvotes: 0

Views: 471

Answers (2)

vlatko606
vlatko606

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

Dmitri T
Dmitri T

Reputation: 168002

If you're trying to run a Bash script you need to provide the bash to Bash interpreter

Something like:

enter image description here

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

Related Questions