Reputation: 385
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
Reputation: 12873
Look into OS Process Sampler.
For command like sc SERVER_NAME stop SERVICE_NAME
it will be configured like:
Upvotes: 2