SilkTest Question 65: How to start/stop/pause Windows service with SilkTest?

It is feasible to control the services in a Windows environment with SilkTest applications as long as QA Engineer has the correct security permissions. This can be done by using the 'net' command through 4test code to stop/start/pause the Services. For example: SYS_Execute ("Net Start Price"). In this case SilkTest starts a service with display name Price. The same command will also work with 'Stop' and 'Pause' directives, but of course will only pause Services, which have this option available.

No comments:

SilkTest interview questions for QA Testers