Website System Stress Test Jmeter+badboy

Source: Internet
Author: User

Recent projects require stress testing, so search for several trials, the first choice is LoadRunner this famous test software:

LoadRunner11 Download please poke here .Transmission Door
loadrunner hack file download please poke here .Transmission Door
LoadRunner Registry Cleanup Tool download please poke here .Transmission Door

(Super license supports up to 6.5w concurrent: AEACFSJI-YJKJKJJKEJIJD-BCLBR)

How to install please refer yourself:

http://www.neversaydie.cc/loadrunner11-download-and-crack-in-detail/


However, because several G files need to be downloaded and because of some commercial copyright factors, a different set of test software has been selected: Jmeter+badboy

The version I downloaded is: Apache-jmeter-2.11.zip and Badboyinstaller-2.2_beta_1.exe

JMeter is a popular and popular open source performance testing tool in foreign countries, like LoadRunner, it also provides a capability to record generated test scripts using a local proxy server (proxy), but this is not a good feature. So this article describes a more common approach--using badboy recording to generate JMeter scripts.

Simply introduce the Badboy. Badboy is a good web automation test tool, if you use it for non-commercial purposes, or for commercial purposes but the number of machines installed Badboy is no more than 5, you do not need to pay any fees for it. Perhaps a promotional strategy, Badboy provides the ability to export Web test scripts directly to generate JMeter scripts, and this is a very useful and simple feature. You can follow the test steps below to take your first step in the open source world.

1, first Java operating environment these are not listed in this article, please install it yourself.

2, install JMeter, decompression "Jakarta-jmeter-2.11.zip" to the E-packing directory: "e:/jakarta-jmeter-2.11".
Set Environment variables:
(1) In the user variable, the new variable name "Jmeter_home", the value of the variable is: "e:/jakarta-jmeter-2.11;".
(2) Modify "CLASSPATH" and add: "%jmeter_home%/lib/ext/apachejmeter_core.jar;%jmeter_home%/lib/jorphan.jar;%jmeter_home%/ Lib/logkit-1.2.jar; ".
Start:
Run JMeter: Open E:/jakarta-jmeter-2.11/bin/jmeter.bat directly.


3, Installation Badboyinstaller-2.2_beta_1.exe

4. Web System Testing

(1) Start Badboy, you can see the following interface.


(2) in the Address bar (the section highlighted in the red box in the figure), enter the url--of the Web app you want to record here we take http://www.yahoo.com as an example and click the Go button to start recording. If you have used business tools such as LoadRunner, you must not be unfamiliar with this operation ^_^
(3) After you start recording, you can work directly in the Badboy embedded browser (on the right side of the main interface) and all operations are recorded in the edit window on the left side of the main interface-in this experiment, we enter JMeter to search the Yahoo search engine. But you will see that the recorded script is not a line of code, but a Web object--which is a bit like the tree view in LoadRunner's Vugen;
(4) After the recording is complete, click the "Stop Recording" button in the toolbar to complete the recording of the script;
(5) Select the "file-, Export to JMeter" menu, fill in the file name "LOGIN_MANTIS.JMX" and export the recorded script to the JMeter script format. You can also choose the "File--Save" menu to save as a badboy script;
(6) Start JMeter and open the test script that you just generated.


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.