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.