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 realize web recording by Jmeter BlazeMeter

2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

Editor to share with you how to achieve web recording Jmeter BlazeMeter, I believe that most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!

1. BlazeMeter installation and registration

BlazeMeter is a chrome plug-in compatible with Apache JMeter, which can easily record traffic and generate scripts with BlazeMeter. As a basis for writing interface test scripts, first record the required interface information, and then optimize based on the recorded scripts to improve the efficiency of interface automation. Record all browsing activity to create a JMeter script and automatically upload it to BlazeMeter.

1.1 install BlazeMeter

Google browser version: 89.0.4389.90 (official version) (64-bit)

BlazeMeter version: 4.9.5

Click the icon in the upper right corner of Google browser, select "more tools"-> "Extenders", drag the blazeMeter-4.9.5-Crx4Chrome.com.crx file directly into the blank space in figure 1-1, and the blazeMeter plug-in is installed automatically. The red box in figure 1-1 indicates that the plug-in is installed successfully.

Figure 1-1 install the BlazeMeter extension

A BlazeMeter icon appears in the upper-right corner of the browser, as shown in figure 1-2. Click the extension icon to open and attach the BlazeMeter program to the browser.

Figure 1-2 plug-in icon

1.2 plug-in introduction 1.2.1 login registration

Click the icon in the upper right corner, wait a few minutes to enter the registration interface, fill in the user name and email information according to the relevant prompts, and save to enter the BlazeMeter interface. At this point, the user has automatically logged in to the plug-in interface, as shown in figure 1-3.

Figure 1-3 user login

1.2.2 basic setup Project naming

Enter the name of the test task and export the script as the name after the recording is complete.

Stop recording

Click the button to stop recording.

Start recording

Click

Button to start page recording.

Restore the default value

Click the button to restore the default value.

Working with scen

Perfornamce (Jmeter): performance testing

API Functional (Jmeter): API functional testing

GUI Functional (Selenium): API functional testing

End User Experence Monitoring (JMeter & Selenium): joint testing

For more details, see https://www.blazemeter.com/product/

Editing

JMeter Script: edit the Jmeter recording script and upload it, see figure 1-4

Figure 1-4 Editing the Jmeter recording script

Selenium: upload after editing the Jmeter recording script

Figure 1-5 Editing the Selenium recording script

L save

Click to select the save type JMeter (JMX), Selenium only, JMeter & Selenium combined (YAML).

Figure 1-6 script save type

1.2.3 Advanced Settings

No more details.

1.2.4 Save the project

In the option of saving the project, configure the account, workspace and project. Do not fill in according to the default value, as shown in figure 1-7.

Figure 1-7 Save options

1.3 Web recording

Open the recorded web page, click the icon, and start page recording, as shown in figure 1-8.

Figure 1-8 blazeMeter interface

Before you start recording, enter the project name in the input box, click the start recording button, and you can observe that the following number has been changing, indicating that the interface operation events have been recorded, as shown in figure 1-9.

Figure 1-9 BlazeMeter recording

Click the icon after recording to stop recording; click the icon and select the export script type JMeter, Selenium only, Jmeter & Selenium combined, and export the recording script directly, as shown in figure 1-10.

Note: JMeter needs to register and login before it can be exported for use. Check JMeter (JMX) to generate the Jmeter script and download it, see figure 1-11.

Figure 1-10 Export JMX script directly

Or click the edit button, select JMeter Script, Selenium a type, enter the editing interface, you can edit the script, selected to edit the content highlighted, see figure 1-11, after editing, click on the upper right corner of the page, select a save type after the browser directly starts to download the script to the local default path.

Figure 1-11 download after editing the script

Open the Jmeter interface, drag the JMX recording script downloaded locally to the Jmeter window, and BlazeMeter automatically populates the global configuration information (Http information header, extract interface environment variables), as shown in figure 1-11.

Figure 1-11 Environmental parameters

The above is all the content of the article "how to achieve web recording by Jmeter BlazeMeter". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

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

Development

Wechat

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

12
Report