Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to change the name of a given variable when jmeter is called

Shulou Source: shulou.com Published: 2022-06-03 04:56:33 11月03日 Update

When the jmeter file is called, there is a problem. The name of the variable in the called file (called basic file) is code. When calling the basic file, you should first find code in the database, and then enter it as a parameter. After the database query, the variable will be called using ${code_1}, which is different from the name defined in basic. How to solve this problem?

The following examples are given:

Basic file:

Call the basic file:

To put it simply, this situation applies to situations where basic files cannot be changed. For example, basic has been called by many other files, and changing the name will cause other files to go wrong. If you can change the basic file, just change the parameter name to code_1.

Tags: File name variable parameter situation data database problem different time query Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker NVidia vpn Shulou Information Redmi