Happy Christmas from the Bishops

Annual “Round Robin” Christmas message……..

The money that we would otherwise spend on cards is being sent to the “Little Princess Trust”.
This is  a charity chosen by my daughter, which provides wigs for children suffering hair loss.
Every year or so, my daughter donates her long hair to this charity and has a shorter hairstyle for a while.

This was her donation this summer.
XMAS1

As most of you know I’ve had ankle surgery this year so we haven’t done much, but I haven’t let it hold me back:
XMAS2

With a combination of crutches and mountain bikes we even managed to get to our favourite beach this Summer. Hopefully next year we’ll be able to get about even more.
XMAS3

We’ve made an “Elf Yourself” video which you may have seen on FaceBook or Twitter, but here’s a link to click for those of you who aren’t on FaceBook.

http://www.elfyourself.com/?mId=63451119.3XMAS4

 

We hope that you all have a very Happy Christmas and would like to wish you all the best for 2015.

Lots of love,

sig

Adding JavaScript functions to LoadRunner

After reading Boris Kozorovitzky’s blog article, “How to use JavaScript in your HP LoadRunner scripts”, I’ve been inspired to experiment with LoadRunner 12.

Historically, most LoadRunner functions have been written in C but many performance testers (me included) aren’t particularly fond of C and prefer to use more up to date languages. I was already aware that there are some great JavaScript libraries out there which can extend the functionality of LoadRunner, but I hadn’t tried them until now.

Boris’ article describes how to integrate JavaScript code into your C-based scripts. Following his guidance I developed a script which uses the DateJS function for date calculations. I’m impressed with the flexibility of DateJS and the extra capabilities that it offers over the standard LoadRunner date/time functions.

To incorporate the DateJS functionality into my script I did the following:

  • Turned on the “Enable running JavaScript code” function.
    Run-Time Settings > Internet Protocol > Preferences > Set advanced options > Options
  • Added my date.js code into the script using Solution Explorer.
    Right-click “Extra Files”node in Solution Explorer
    then choosing the option to “Add files to script”
  • Adding JS functions to the script is then achieved by using the LoadRunner web_js_run function.

    e.g.

    JavaScript example in LoadRunner
    JavaScript example in LoadRunner

I added my sample script to my GitHub repository so that other people can see just how easy this is and potentially benefit from the new date/time functions in this sample LoadRunner script.

You can download the script here: https://github.com/richardbishop/LoadRunnerSamples/tree/master/DateJS