Recorder

Variables...

LoadTracer will extract the values from server response and assigns to variable, which can be used in parameterization. Usually variables are used for sessionid, viewstate, etc, mostly this types of values are stored in hidden form element.

Figure A

To add a variable, first select a file in script pane and goto Test -> Create Variable... or Press F9

Add: To add new variable, enter a variable name in Variable$ field and Name field will be depends on the type of funtion used which will be discussed later. Index default value will be 1 for example its possible in HTML there will be two text box with same name, if value has to be extract from second text box index value should be 2. The variable name must be unique in same file for example if a variable is created by the name 'TMP1' in file no 3 then its not possible to create TMP1 again in same file, but allowed in other files.

Update: To update existing variable.

Remove: To remove a variable, select a variable and click Remove button, but variable should not be in used i.e, it should not be used in parameterization otherwise it will not be deleted.

In the above figure, the right most pane 'All Modified Parameters' shows the parameters which are already parameterized. It shows FId - File Id, PId - Parameter Id, and parameter name. To update these parameters, select the parameter in the pane, edit and click SET button.

Note: To update parameterization SET button has to be clicked

FUNCTIONS

 @From_Form_Element - Using this function values can be extracted from html form element like text, hidden,

For Example

<input type="hidden" name="counter"  value="55" />
<input type="hidden" name="__VIEWSTATE" value="/wEPDwULLTExNjU4N=" />


Variable$ : vstate (user defined name)
Name : __VIEWSTATE (whose value to be extracted) - form element name.
Index : 1
At simulation time the value part of __VIEWSTATE will be assigns to vstate, which can be further used in parameterization.

 @From_Link - Values can be extracted from html link.

For Example

<a href='search.asxp?hl=eng&cnt=4445&idx=33'>Click Here</a>

To extract value of cnt from above link:
Variable$ : vcnt (user defined name)
Name : cnt (whose value to be extracted).
Index : 1
At simulation time the value '4445' will be assigns to vcnt, which can be further used in parameterization.

 @Random - Using this functions values can be extracted randomly any where from the html source.

For Example:

<h5><label for="searchInput">Search</label></h5>
<div id="searchBody" class="pBody">


To extract the value 'Search'

Varaible$: var1 (user defined name)
Name : searchInput (this is search string).
Index : 1
Fetch value between these two character: > <

LoadTracer will first search the string 'searchBody' after that it extract the value between these two characters > < and assigns to var1.

Encode: Extracted values should be encoded before using it. If the value is already encode uncheck the Encode button.

Trace Technologies Pvt. Ltd.,  Copyright © 2003 - 2008