How to Parameterize the values in Ajax TruClient scripts using LoadRunner? | Tableau online
3 pages
English

How to Parameterize the values in Ajax TruClient scripts using LoadRunner? | Tableau online

-

Le téléchargement nécessite un accès à la bibliothèque YouScribe
Tout savoir sur nos offres
3 pages
English
Le téléchargement nécessite un accès à la bibliothèque YouScribe
Tout savoir sur nos offres

Description

Parameterization: Parameterization are script variables. It is the method to pass different data values in the VuGen script or to emulate real user data. For more details: http://goo.gl/enFv7r

Informations

Publié par
Publié le 18 août 2016
Nombre de lectures 0
Langue English

Extrait

How to Parameterize the values in Ajax TruClient scripts using LoadRunner?
Parameterization: Parameterization are script variables. It is the method to pass different data values in the VuGen script or to emulate real user data entering action which is sent to the server each time the script is ran. InTruClient scriptsthe parameterization is defined in the step argument part of the step. As mentioned before, the step arguments accepts JavaScript code as values, follow the below mentioned steps for parameterization:
1.Method 1 : Using LoadRunner functionality1.In this method parameterization can be done like the way it is done in other protocols. 2.Click onOpen/Close the step editorbutton of the step where parameterization needs to be done. 3.Click onArguments. 4.Select the value displayed corresponding to the field *Value à Right Click à SelectCreate Newparameter from selection.
5.Enter parameter details inEnter Parameter Namedialog box and click on ok.
6.Parameters can be created and referenced with step argument or Eval Javascript step. 7.Syntax to define parameter:LR.getParam(“ParamName”);8.Syntax to update the value of already defined parameter: LR.setParam(“ParamName”,“OtherValue”);2.Method 2: Using JS code 1. For e.g. the server name of the application needs to beparametrized and also the testingneeds to be done on various servers. Followingsteps can be implemented in such kind of scenarios. 2. Write the JS code in JSfunctions.js script of the VuGen script. 3.The followingexample code is written to create different launch url’swhere the server names will be variable.
4. Note that thegetURL(); function will return the actual complete URL. Open the script in developmode and write the function name in the Arguments value.
5. Save the script.
  • Univers Univers
  • Ebooks Ebooks
  • Livres audio Livres audio
  • Presse Presse
  • Podcasts Podcasts
  • BD BD
  • Documents Documents