Share Calculation – example of mathematical calculation in LoadRunner

Example script showing mathematical calculations. This script converts text values into decimal values so that they can be used in calculations. The script performs a calculation using a decimal number [484.05253284] where it has not been possible to capture that number as a single value. In this case 484 and 05253284 are captured by another function (web_reg_save_param) The decimal point was the delimiter allowing the two values to be captured. This function was used in an HSDL script to calculate the number of shares that could be purchased with a certain amount of money.

In the script attached to this post, the number of shares worth 484.05253284p that can be purchased with a fund of £1380 is returned.

 

2016-10-06-16_11_59-start

TiddlyWiki

As I’m sure you’re aware, a Wiki is a site which you can edit “as you go”.

This is a good example of a web page (HTML file) that you can put on your desktop and use as a notepad/scratchpad containing hyperlinks etc. It’s pretty good and could be used for making notes during test runs and could easily be saved off to a project folder or shared with colleagues.

You can download it from http://www.tiddlywiki.com/.

Test Data Creation – random dates of birth

I needed to generate dates of birth for some testing recently and found that this was an easy way to do it. Excel ensures that you don’t get any invalid dates (such as 31st of February, or Leap Year problems).

In this spreadsheet you enter the ages that you’d like your test data to represent, e.g 18-75, 30-40 and the spreadsheet does the rest.

Click here to download the spreadsheet.

2016-10-06-12_00_28-random-dates-xlsx-excel