当前位置:网站首页>How can JMeter parameterization be implemented?

How can JMeter parameterization be implemented?

2022-06-10 14:22:00 Field test record

Hello, everyone , I'm Daejeon .

Today, I'd like to share with you the common use JMeter When doing interface tests , frequently-used 3 A way to realize parameterization .

1) User defined variable elements

You can create... Within this thread group , Description only takes effect in this thread group ; It can also be created outside the thread group , Description can be referenced by other requests across thread groups .

Create location : After adding a thread group  ->  Right click to add  ->  Select the configuration component  ->  Select user-defined variables .

2) Function assistant

In the dialog box, you can select, for example, random strings 、 Random date 、 Random numbers as parameterization .

Create location :Tools -> Function Assistant dialog .

3)  CSV File as parameterization

By configuring  CSV Data Set Config ( CSV Data file settings ) Components can be set . It should be noted that , Use  CSV  When you file , You need to modify the current number of threads to import  CSV  Number of script data in the file .

Create location : Thread group right click to add  -> Select the configuration component -> choice CSV Data Set Config ( CSV Data file settings ). 

The above is what Daejeon shared today , If you find it useful, you can give Daejeon a compliment .

Recommended articles :

How to learn software testing ?

So busy every day , Whether to write test cases or not ?

Linux Installation and configuration of

2022.06.08, It's the first day of Datian day shift  123 / 365 God . Each article solves a specific problem , Official account , Backstage private message 「 e-book  」 Send you 1.5G Test data , Direct messages 「 Linux 」 Get a detailed explanation of the order for field consolidation .

原网站

版权声明
本文为[Field test record]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/161/202206101421170124.html