LoadRunner syntax highlighting with GeSHi

Last week I can across this article by Stuart Moncrieff who looks after the myloadtest.com website.
http://www.myloadtest.com/loadrunner-syntax-highlighter/

In this article Stuart describes how he wrote a php file for GeSHi (Generic Syntax Highlighter) which highlights LoadRunner C code using the same colours as vuser generator. This has been something that I’ve wanted for ages. Whenever I do documentation describing a script, I often want to paste it into my Word document, PDF or website using the same colours as LoadRunner.

Once Stuart wrote the syntax file, I decided to give it a go. I installed it on my site and modified the sample GesHi page so that LoadRunner was the default language type. It took no time at all thanks to the good documentation provided by Stuart and the developers of GeSHi.

 

The finished results can be seen here – http://bish.co.uk/geshi/example.php
Simply paste your LoadRunner code into the empty text box and click “submit”, GeSHi does the rest for you.
If you wanted to, you could choose a different language from the drop-down list to format the code in colours relevant to a different programming language such as COBOL, delphi, java, html, php or the other languages supported by GeSHi.

Sample output:
GeSHi screenshot

Setting timezone on PCs using a batch file

 

For some testing recently I had to reset all our test PCs to use UTC (GMT) instead of BST.
This meant that our LoadRunner log files and test results would tie-in with the log files on the UNIX systems which we were testing.
It’s worth noting that W3C log files (web server loig files) all use UTC time as well, so this is useful if you want to synchronise your times with the rest of the “non-Windows” world.
Use this command to set your timezone to UTC…. (tested on Windows XP and Windows 2003 server).
[code]RunDLL32.exe shell32.dll,Control_RunDLL timedate.cpl,,/Z (GMT) Coordinated Universal Time[/code]

For some testing recently I had to reset all our test PCs to use UTC (GMT) instead of BST.

This meant that our LoadRunner log files and test results would tie-in with the log files on the UNIX systems which we were testing. It’s worth noting that W3C log files (web server loig files) all use UTC time as well, so this is useful if you want to synchronise your times with the rest of the “non-Windows” world.

 

Use this command to set your timezone to UTC…. (tested on Windows XP and Windows 2003 server).

RunDLL32.exe shell32.dll,Control_RunDLL timedate.cpl,,/Z (GMT) Coordinated Universal Time

 

Problems with RDP clipboard – solved

I regularly use RDP sessions to connect to systems which I am testing.

I’ve noticed lots of problems with the clipboard on my PC when I do this. This seems to be more of a problem when I connect to older operating systems (such as XP) from a new OS (like Vista or Windows 7).

After a while it becomes impossible to use the clipboard and copy and paste between RDP sessions. In addition it becomes impossible to paste on the local machine as well. This is a complete pain in the ~@*% and until now the only way that I’ve been able to “clear” the problem is to reboot my PC and re-establish the connections to the remote systems.

The problem is caused by the rdpclip process on the remote PC taking control of the clipboard on the local PC and not releasing it. It is possible to kill and restart the process which causes this problem. This fixes the problem without having to restart RDP sessions or reboot your PC.

These are the commands.
taskkill /f /im rdpclip.exe
rdpclip.exe

The first line kills the rdpclip process and the second line restarts it.
These commands should be run on the remote system.