LoadRunner web_reg_save_param relframeid attribute description.

Source: Internet
Author: User

Relframeid: (for my understanding) when using the association function, use this parameter to determine which page data is used for association.

The reason is related to the working principle of web_reg_save_param. Reg in the function indicates that it is a registration function. The registration function works in a different way than a common function. It registers and provides a service, which is downloaded on any webpage, so long as you have registered web_reg_save_param in the script, it triggers its parameter Association verification function and searches for data.

For example, we use web_url ("www.xxx.com", last) to access the resources of the website. In actual download, there may be more than one page to download, sometimes one or more IFRAME files may be downloaded, or pages with verification codes may be called. At this time, there will be more than one download page. So how does web_reg_save_param identify which page to use depends on this parameter.

The working principle of web_reg_save_param is that every time a page is loaded, it performs data search and update. In the above case, if no page is specified, the value of web_reg_save_param will always be the page that is finally downloaded.

The actual problem encountered today is that multiple pages are downloaded and web_reg_save_param is called multiple times. The Association value is incorrect.

Solution;

In the web_reg_save_param function, add the: relframeid attribute and set the value to 1. In this way, data on the first page will be searched and used. After the page is downloaded, the associated values are not changed. For other specific values, I tested that 1.1, 1.2, 2.1, and so on did not achieve the specific effect (the page I accessed is a login. aspx. An IMG element in login. aspx calls the act. aspx verification code page .). If you have encountered the same problem, let's talk about it.

Post (function Introduction)

When using LoadRunner for performance testing, you often encounter a situation where you need to modify the status of a transaction through the web page. Therefore, you must first read the status of the current transaction and then modify it. Then you can use web_reg_save_param. You can use it to read the transaction status and write it into a custom variable. The next action is determined based on the value of the variable.
 
Brief Description
 
Syntax:

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

Parameter description:
 
Paramname: name of the parameter that stores the dynamic content.
 
List of attributes: other attributes, including: notfound, LB, Rb, relframeid, search, ORD, saveoffset, convert, savelen. the property value is case-insensitive. notfound: What should I do if I cannot find the content in the returned information.
 
Notfound = Error: when the content to be found cannot be found in the returned information, an error message is sent. This is the default value.
 
Notfound = warning: when the content to be searched cannot be found in the returned information, only warnings are issued, and the script continues to be executed without interruption.
 
Lb (left boundary): The left boundary string of the returned information. This attribute must be available and case sensitive.
 
Rb (right boundary): the right boundary string of the returned information. This attribute must be available and case sensitive.
 
Relframeid: relative to the URL, the frame of the webpage to be searched. This property can be all or a number, and this property can be none.
 
Search: the search range of the returned information. It can be headers, body, noresource, all (default ). This genus is optional.
 
Ord: indicates the match of the nth left boundary substring. This attribute is optional. The default value is 1. If it is all, all the content found is saved.
 
Saveoffset: After a match is found, it is stored in the parameter starting from the nth character. This attribute cannot be a negative number. The default value is 0. savelen: After a match is found, several characters after the offset are stored in the parameter. The default value is-1, indicating that the entire string is stored in the parameter until the end.
 
Convert: There are two possible values:
 
Html_to_url: convert HTML-encoded data to URL-encoded data format
 
Html_to_text: convert HTML-encoded data to plain text data format
 

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.