stop a service

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
RHesse
Posts: 6
Joined: Tue May 31, 2022 8:20 am

stop a service

Post by RHesse » Wed Jul 13, 2022 9:56 am

Hi all,

I am using Windows 10 Pro Version 21H2 and Ranorex 10.1.7.
Is it possible to stop a running service? I have to stop some services as admin before starting the test.

Thanks!
Roland

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 7470
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: stop a service

Post by odklizec » Wed Aug 31, 2022 7:55 am

Hi,

There is no a Ranorex-specific action or method, to stop the windows service. But it should be doable via C# code. Give a try these samples:
http://www.tutorialspanel.com/how-to-st ... /index.htm
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration