当前位置:网站首页>[this tool, combined with JMeter, will increase your work efficiency by at least 80%, which is highly recommended]

[this tool, combined with JMeter, will increase your work efficiency by at least 80%, which is highly recommended]

2022-06-22 10:12:00 Java enthusiast

1. brief introduction

   In the use of jmeter There are a lot of useless requests when recording scripts automatically , Therefore, it is recommended to use badboy Record the script and save it as jmx file , stay jmeter Open to use . So I'd like to introduce Badboy This tool , I didn't intend to introduce you , The reason is that this tool is no longer maintained and updated , But considering that some children's shoes can't test scripts by hand , So I'd like to take some time to introduce this popular recording tool .

2.badboy brief introduction

Badboy monitor internet explorer The activities of , Provide recording / Playback function .  Recording function :badboy The top of the window shows whether you are currently recording , If you click play Button ,badboy Automatically turn off the recording function , wait until play After the end , You can click on the recording Button , Continue recording scripts . 

Be careful : We have to wait until the last step request After processing , To click to send the next request, Or next request Will be the first request The son of frame.

1. Lightweight free testing tool ;

2. Can function test , Mainly performance testing ;

3. Stress testing for simple tasks can be done alone , It can also be used as Jmeter Script development tools . It's mainly used by testers . There are also a few features that allow developers to debug 、 Self test use .

3. download

1. I tried it recently , The official website is unavailable , It may be because the maintenance is not updated , Therefore, an installation package is provided , You can download and install it yourself , as follows :

badboy Installation package : link : https://pan.baidu.com/s/1Ae3tLuP3q7301SzyXDGw2A Extraction code : jcg5

2. Download and install ( Fool installation , I won't go over it here )

3. Click on the installed badboy The icon , You will see Badboy Of IDE Interface , The following figure is a simple annotation of the interface , These include Badboy An introduction screenshot of the official website

4. This is a detailed introduction to it , As shown in the figure below :

4. Interface and function Overview

4.1 menu bar

1.File: Including common open scripts , New script , Export script , Save scripts and other functions

2.Edit: Click on Edit menu Under the Search/Replace The following interface will pop up in the panel , Help us select and replace features in scripts . Click on X close window . Of course we can use it F3 The shortcut key pops up this interface

3.View: Click and click again , Change the display and hide view areas , among Report There are also functions 3 For users to choose from , This part of the course will cover

4.Tools: There are many functions in , For example, we can configure the data source to automatically fill in data to the test system , Especially when some test point values cannot be unique , Reading from a data source is a common method ,QTP It's easy to read Excel The data of

5.Preferences: We can do it in General Tab Change the system settings . such as : Under default configuration , Click the right arrow to automatically trigger the recording when requesting , If you want to cancel this configuration , You can remove the check , as follows .

6. Help:

Click Content Can help document , My series is also based on Badboy Help documents for collation and basis

4.2Tools bar: Some tools are introduced

1. Create a test group , Test unit , step

2. Recording mode : Request and Navigation Two kinds of

3. Run script : We are also used to call running scripts

4. other : open , keep , Capture screenshots , Create variables , Time to wait

4.3 Browser address bar

because Badboy The recording area is the content area of the right half , Therefore, the starting point of the website should be launched in the address bar

4.4 Script tree

   In early use Badboy In the lower version , Only Step The level of , In the subsequent continuous updating and iteration ,Badboy It was introduced in later versions Suite and test The concept of , The advantage of this is that the level of the script is more obvious , It's clear to the tester , The defenders at the back can take over . Here, we will take the function of publishing essays of the test blog Park as an example to conduct situational learning of all subsequent courses . Children's shoes or partners who have been exposed to the test should understand , If we test the blogosphere , The function of publishing essays is only one function of one module , There are many other functions in the blog Garden , Here is a list of simple functions and testing ideas :

Level description : If we all take Step All test steps are summarized , Just use Step name or ID It's still not easy to understand and find , Now? , We can position the first level function as Suite Level , take Test Positioning as a test point ,Step Layers are different scenarios for testing . Of course ,Badboy There is no clear rule that more than one must be used Suites or Tests, Just add one by default Test Will automatically add subordinates Step, also Test At a tree level , As shown in the figure below :

Make a level of posting essays according to the introduction to work , As shown in the figure below :

increase : Besides clicking on the icon above , It can be like this : Right click selection Add

rename : Double click the name , A dialog box will pop up , You can enter a new name and description , Click on Ok, Save operation

Delete : Right click selection Delete

Template Templates : Right click selection Save as Template, Using templates can effectively embody the concept of script reuse , for example , We can have 2 Login scripts with no captcha entries remain as templates , When there are other websites that log in the same way , You can introduce , No need to record again .

 5. Summary

   Okay , Today is to have a general understanding of this tool, can use it , If you want to study deeply , You can check the English version of the user manual , The introduction is very detailed .

原网站

版权声明
本文为[Java enthusiast]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/173/202206221007038674.html