I recently saw a question in a discussion forum for LoadRunner and after replying with a potential solution for a friend of mine, I thought that I’d share my solution here as well. My friend was testing using a Citrix client and when the script failed, the Citrix client was left running. This meant that subsequent test iterations would all fail as well.
Testers using other thick clients such as SAPGUI, RDP, TruClient (using Firefox or Chrome), QTP or UFT may also face this issue.
One way to resolve the problem of orphaned process such as this would be to use a command line function to kill the offending process when an error is detected. In the example below, the script kills any instance of the “calc.exe” (calculator) process. You should replace “calc.exe” with the name of the executable / rogue process.
N.B. You need to be extremely careful with this code (for obvious reasons).
I’ve been working for a client over recent months and part of my resposibility has been to look after a number of servers used for performance testing. Occasionally drives fill up on the server farm causing outages and obvious interruptions to testing.
It would be a near full-time job to manage all these servers, so to reduce the chance of temporary files from filling up drives and causing problems, I looked into creating a scheduled task to delete old temporary files. Since my server estate is varied, I didnt want to use PowerShell so I opted for an old “DOS” command, FORFILES.
This seems to have done the trick for me:
forfiles /s /m *.* /d -7 /c "cmd /c del @path"
(This command deletes all files that are more than 7 days old from the folder in which it runs.)
Update – To remove folders as well:
forfiles /S /D -7 /C "cmd /c IF @isdir == TRUE RMDIR @path /S /Q"
(This command deletes all folders that are more than 7 days old from the folder in which it runs. – Run it after deleting the files with the command above.)
Posilan is the hosting company that Pixel8 use for the Trust IV blog and website.
They have a handy (and ad-free) IP checker on their website:
The first one is for conventional browsers.
The second one is useful in case you don’t have a complex browser.
For example in UNIX you could type:
this downloads a small file to your machine containing your IP address.
V. Handy 🙂