"JMeter" JMeter use Badboy to record Web test scripts

Source: Internet
Author: User

JMeter is a Java-written software feature and functionality. The ability to test the tool, its recording script is too clumsy and complex. Badboy is a dynamic application testing tool developed in C + +, which has powerful screen recording and playback functions, and provides graphical results analysis function, just to compensate for the shortcomings of JMeter. Therefore, doing web testing using these two tools will be the best combination. At the same time, Badboy recorded scripts can be exported to jmeter supported JMX format scripts.

Next share: JMeter How do I record a Web test script using Badboy?

Tools/Materials
    • Apache JMeter v2.12
    • Badboy v2.2
    • Example system: win8.1 64-bit
I. Download and installation of Badboy
    1. 1

      Badboy download.

      Baidu search "Badboy download", can be downloaded to the third-party website, but also into the official website (Badboy software Home Page) download.

    2. 2

      Install Badboy.

      Double-click Badboyinstaller-2.2.exe, and then follow the prompts to badboy the installation.

      END
Ii. use Badboy to record scripts and export them to JMX format
    1. 1

      Start the Badboy tool and go to the Badboy installation directory and double-click Badboy.exe. is the Badboy main interface.

    2. 2

      To log on to Baidu as an example of recording scripts, enter Baidu website after hitting enter, that is, enter the Baidu interface.

    3. 3

      Login to Baidu.

    4. 4

      Enter the personal user interface after successful login.

    5. 5

      Export the recording script to the JMX format.

      Click File→export to JMeter ... → Save As "Baidu landed. Jmx" → saved.

      END
Iii. using JMeter to run the exported JMX script
    1. Start JMeter, import " Baidu login. Jmx".

      --click file → open → select "Baidu login. Jmx" → open.

      Add "view End Tree" and "aggregated report".

      --Right click on thread group→ add → listener → view result tree.

      --Right click on thread group→ add → listener → aggregate report.

    2. When the startup script finishes running, view results tree. (Click Start or "Ctrl+r" to run the script)

      Note: Baidu website security level is high, will record the script directly rerun will appear the corresponding exception, therefore the view tree and the aggregation report all have the exception. You need to make the appropriate configuration to log on successfully .

    3. When the startup script finishes running, review the aggregation report.

      END
Precautions
    • The Badboy recording script is in the English version, so the test plan appears as "Thread Group" when JMeter opens JMX.

"JMeter" JMeter use Badboy to record Web test scripts

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.