7. What LoadRunner did not tell you-how can we ensure that the parameterized data is sufficient and will not be repeated when LoadRunner is used for Continuous testing for a long time?

Source: Internet
Author: User

copyright : This article can be reproduced, but without my permission, it shall not be used for any commercial purposes or other purposes for profit. I reserve all rights to this article. If you need to reprint the content, Please retain this copyright statement and ensure the integrity of this article. You can also understand the hard work and respect the work of the author.

author: Chen Lei (jackei)

Email: jackeichan@gmail.com

Blog:Http://jackei.cnblogs.com

 

A friend started to complain, saying that I haven't written technology for a long time.Article. Shame and positive improvement. Today, our colleagues in the group encountered a problem about LR parameterization. In fact, this problem was also encountered before, so I sorted out my ideas by the way.

What we had to do at that time was to use a performance testing tool to simulate a large number of online on-demand movie services for a large number of users. After the first successful on-demand movie service, if the same user needs to demand the same movie again, the process of the system is different from that of the first Vod. In addition, we usually perform a test for several consecutive hours to obtain as much sample data as possible.

The problem is that, on the one hand, we cannot repeatedly read the same data in a test, and on the other hand, it is too heavy to prepare hundreds of thousands or even millions of data records, it also involves the preparation of relevant basic data. So, how can we use LoadRunner to execute the test continuously for a long time to ensure that the parameterized data is sufficient and will not be repeated?

In fact, the method is very simple. Both LR and jmeter provide the ability to store values of multiple parameters in the same file, or specify a file for each parameter. For the above example, we simply created two files and three parameters. The first and second parameters (user account and password) were stored in the first file, with 1000 records; the third parameter (movie Id) is stored in the second file, with 999 records. In the test tool, set the reading of the parameter values to sequential reading and read cyclically. This simple method combines a large amount of data.

The problem is solved.

Click here to learn about the creation progress of the entire series, view the article directory, or browse completed articles.

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.