Kir
Kir

Reputation: 385

running a windows service from jmeter

I am writing a jmeter script to perform DB functional testing. I have a Windows Service that runs every on X interval and it updates certain DB records when its done. I need to be able to run the windows service remotely and verify the DB changes.

Is it possible to run a windows service remotely say using sc \\machine stop <service> from jmeter?
If yes, how can I do this?

Appreciate any suggestions!

Upvotes: 1

Views: 2142

Answers (1)

Aliaksandr Belik
Aliaksandr Belik

Reputation: 12873

Look into OS Process Sampler.

For command like sc SERVER_NAME stop SERVICE_NAME it will be configured like:

enter image description here

Upvotes: 2

Related Questions