In our recent QA automation efforts we had the requirement to stop some Windows services before performing a task in our scripts. The scripts need to pause until these services return to a started state. The approach we took to this was to write some batch files that would stop, start or restart the services using Microsofts SysInternal tools, specifically psservice. PSService is a component of SysInternals that allows a user (typically an administrative user) to start, stop or restart a service from a remote location. Very handy for automation testing. Once the loop ended (service finished starting), the cmd line would write out a “Finished.txt” file that the script watched for and cleaned up before moving on. Continue reading
Categories
- Automation (4)
- Silk Performer (1)
- Test Complete (2)
- Code Sample (12)
- Installshield (1)
- Interview Questions (2)
- LinkMyPosts (1)
- Tag Group Plug-in (7)
- Team Foundation Server (1)
- Uncategorized (3)
- Virtualization (1)
- VMWare (1)
- Visual Build Professional (1)
- Wordpress (9)
- Automation (4)
Blogroll
Archives
Donate
Meta