Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to implement correlation in JMeter

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

We have been using the phpwind system as a demonstration system, if there are no well-configured students, please quickly configure and then move on.

When posting phpwind, verifycode changes dynamically with the change of login users, so association is needed.

The correlation function of LoadRunner is reg_save_param, while the association of Jmeter is accomplished by post processor.

Add a post processor after the request that needs to be found:

Template: regular expression can set multiple templates for matching. Here you can only specify which template to use. The template is automatically numbered. $1$ represents the first template, and so on. $0$ refers to full-text matching.

Matching number: when matching, multiple values are often matched. If the matching number is 0, the matching value is randomly selected. Different templates may match a set of values, so you can match numbers to determine which of this set of values. Negative numbers take all values and can be used with For Each Controller to traverse.

Regular expression verification can be written correctly with matchtracer, and the green cracked version can be downloaded through http://www.cr173.com/soft/5443.html. The following is the user interface:

If the regular expression matches correctly, you can start to quote it.

Run the script, view the result tree, or check from the page to see if the post is successful.

Ola, it is successful to add an association through the post processor.

Finishing: Qianfeng software testing

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report