I have been tasked with developing code that will calculate the complexity of a test based on 2 items: Total Number of Steps and Number of Expected Results with a value. I have written the code and it calculates the values for existing scripts when I have the function call in the Test_MoveTo.

My 2 issues are getting the code to execute when I have added a new test and have only entered the first step and also when I delete a step. I have to click refresh to get the new values to calculate.

I currently have the function call in:

I have tried to add a msgbox to determine the action that is called when clicking OK when completing the first step add and also confirming the delete but nothing appears.

Loadrunner 11 Enterprise Edition