Monday, September 10, 2012

How to create web scripts with different recording option without recording

Problem Statement: In certain cases during recording of a web application we notice that certain actions (or request) are not captured by LR script. Then we are advised to try out in different recording mode and see if we are able to capture the request. 

Is there a way to recreate the script with different recording options without re-recording the business flow again?

Solution: The answer is Yes, it is possible to do so. There is feature in VUGen known as "re generate script" which can be leveraged to get the desired script.

Note: This action will reset all customization done on the saved script (like custom formatting, checks, transaction naming etc)

In this solution which i tried out, i had recorded the application (AUT) in web click and script in a multi-protocol mode. Following the below steps, i had converted the "web click and script" to normal web HTML script.
Once the script is generated, you need to save the script locally and then click on Tools Menu on Vugen and select Regenerate script:



Once you click that option, you will notice a small window with warning message, click on the options button:



After clicking the options menu, you will get the recording option window; select the appropriate recording mode / options you want the script to be generated with and click on OK:


Click on OK on the previous window after the recording option window closes and you can see the VUGen code being re-generated:

Save the script once the code generation is complete.

1 comment:

  1. Your information about loadrunner tool is really interesting. Also I want to know the latest new techniques which are implemented in loadrunner. Can you update it in your website?
    LoadRunner training in Chennai

    ReplyDelete