LoadRunner technique-manual Association and pre-Association

Source: Internet
Author: User
Tags list of attributes

 

The previous section describes the association principle and automatic association. In addition to automatic association, there are two other association methods: manual Association and pre-Association.

 

 

Manual Association

If the script is too long, it is not easy to find out which parts of the script need to be associated. In this case, we can use the script comparison method to find the content to be associated.

1Record the first script and save it as "JoinA".

2, Recording the Second Script (the operation steps are consistent with those for the first time), callLoadRunnerBuilt-inWindiff

(Tools --> campare with users), Select "associateA"

Use windiffComparing scripts, we can easily determine the content to be associated.

 

3. UseWeb_reg_save_paramFunction creation Association script

 Web_reg_save_param (  " Paramname = correlationparameter_1  "  ,  "  Lb = usersession value =  "  ,  "  RB =>  "  ,  "  Ordinal = 1  "  ,  "  Relframeid = 1.2.1 "  ,  "  Scope = body  "  , Last ); 

 

Int web_reg_save_param (const char * paramname, <list of attributes>, last );

The first part (Const char * paramname): Parameter names, enclosed in double quotation marks, separated by commas (,)

Part 2 (<List of attributes>): IncludesLB,RB,Relfameid,ORD,Search,Saveoffiset,Savelen.

Part 3 (Last): End mark.

By pressingF1Key to open the help document, search for this function, and view the specific usage.

 

4. lr11Another manual association method is provided.

SelectTreeView Mode, clickHTTP ViewViewResponse bodyIn the left-side Navigation Pane, right-click the content to be associated, and select"Create COorelation"

 

 

 

Pre-Association

 

Pre-association can also be called "Recording and joining ". Why does the system get some automatic association functions when recording a video? This means that the system provides automatic association settings by default. If we know the content to be associated in advance. You can set the content to be associated in advance, so that the content to be associated is automatically associated during script recording.

Enable the script during recordingREcording options setting window

(This document uses LoadRunnerBuilt-inWebtoursFor example)

1. Click 1.New ApplicationButton to createWebtoursApplication

2. Select this rule and clickNew ruleButton.

3. perform the following settings:

 

 

Association function web_reg_save_param_ex

The preceding example uses the web_reg_save_param Association function. web_reg_save_param_ex may also be a commonly used Association function. When we encounter a function, we are timid. I don't know how to use it.

Menu BarInsert --- New StepOpenAdd step Window

 

Search for the web_reg_save_param_ex function, select the function, and clickOK, The function setting window is displayed:

 

Prameter name:This setting stores the parameter name.

Left Boundary:Set the left border here, which is used to fill in the left Matching content rules associated with data processing.

Match case:By default, the border is checked.Match case,That is, check the case sensitivity.

Binary data:If the content to be associated is notASCIICharacter, You need to select this option

Regular Expression: InLr11The regular expression function is provided,Lr11 patch3To cancel the web_reg_save_param_ex function settings for this function.

Reight Boundary:Set the right border here.

DfES:In recording options and playback, we provideDfEIs also supported here.DfE. (DfEExplain it later, or you can check the information yourself)

Ordinal:This keyword is used in many functions. You can enter any integer orAll. If you enter a number, it indicates that the values in the corresponding sequence are retrieved from the returned record, andAllAll content will be returned.

Save offset:Sets the offset of the associated content to start the association operation from the nth digit.

Save Length:The length of the associated content.

Warm if text was not found (default is error):Does not exist for the associated object.

Filters:The following options help to limit the returned results. These settings can further reduce the returned range.

 

----------------------------------------------------

I will not be very clear about the introduction of every option of the correlated function. You can find more details.

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.