"Go" Jmeter + Dadboby installation use

Source: Internet
Author: User
Tags assert xpath

has been in contact with LR more, and suddenly want to understand the open source Performance Testing Tools, inadvertently exposed to the jmeter+badboy, these two tools for performance testing, but also for LR high commercial costs placing small companies can be more suitable. Summarize yourself:    JMeteris a purely Java-written function and performance testing tool, but its recording script is too clumsy and complex to become a user's criticism. Badboy is developed in C + + and is used to test and develop complex dynamic applications. It provides powerful screen recording and playback capabilities, as well as rich graphical results analysis capabilities. It can be used for free as long as it is not used for commercial purposes. So the combination of these two tools becomes a perfect match. You can record a script with Badboy, then export the recorded script to a script in jmeter format, and finally import the script into JMeter, simulating a large number of virtual users with jmeter powerful testing capabilities for complex performance testing. 1. Installing BadboyHttp://badboy.com.au/download/index, follow the page prompts to enter Name/email/company and so on to download the version identified as recommended. This is an executable program that is downloaded and then double-clicked, installed according to the installation wizard. 2. Installing JMeterhttp://jmeter.apache.org/Select Download Releases--click to download binary:apache-jmeter-2.7_src.zip (note that the ZIP package is suitable for Windows systems, Where source is able to see the source of the package, if you do not need to view the source code can only download binary under the ZIP package.  ) to unzip after downloading; Install the JMeter to install the JDK locally and configure the environment variables, detailed configuration is as follows: Unzip Apache-jmeter-2.7_src.zip to C drive c:\apache-jmeter-2.7 directory, desktop Select "My Computer" (right button)--advanced--environment variable , in "System variables"---"New", enter in the variable name: jmeter_home, variable Value input: c:\apache-jmeter-2.7, and then modify the CLASSPATH variable, the value of the variable is added%jmeter_home%\lib\ext\ Apachejmeter_core.jar;%jmeter_home%\lib\jorphan.jar;%jmeter_home%\lib\logkit-2.0.jar;  And then determine. Then run Jmeter.bat under Jmeter\bin to open the JMeter 3. Script with Badboy recording script and jmeter format everywhereEnable Badboy in the Start menu, click the Red Pie button on the toolbar, start recording, and then enter the URL of the site you want to test in the URL box. Click on a few links and then click the Black Box button on the toolbar to stop recording. Finally click File–>export to JMeter ... to export the recorded script to a script in JMeter format. 4. Enable JMeter, import Badboy recorded scripts, and set up test plans to start testingThen click File –> to open and in the File Manager select the Badboy recording script you just exported. JMeter and LR have recording scripts, parameterization, checkpoints, collection points, setting associations, scenes, and so on.    1,jmeter parameterization:First prepare a DAT file to be saved locally, then select "Options"---function Assistant---__csvread--input dat file saved path such as C:\test.dat, click Generate and Copy ${__csvread (C:\test.dat,)} Find the page you want to parameterize--paste the copied ${__csvread (C:\test.dat,)} to the location of the parameterized value. 2, Check point:Check settings for objects: Right-click a page----> Add----> Assert----> Respond to Assertion Check results: Add an assertion result, right-click on the page----> Add----> Listener----> Assert results and add another " View results Tree "Right-click our login page----> Add----> Listener----> View results Tree 3, set point setting:Right-click on the STEP1----> Timer---->synchronizing timer, this adds a "collection point", and if you find the location of the collection point is incorrect, you can insert it to the appropriate location. 4, Association:Method One, taken from the previous request, with the regular expression extractor.  To do this, right-click on the request to get the data to add a post-processor and a regular expression extractor reference name that is the name of the parameter to be referenced by the next request, such as filling in the title, you can refer to it by ${title}.  The part that is enclosed in the regular expression () is the one you want to extract: represents any character, * represents any occurrence.  Template, referenced by $$, if there are multiple regular expressions in the regular expression (more than one in parentheses), it can be $2$,$3$ and so on, indicating the number of values to be resolved to the title.  Match numbers, 0 is random, 1 represents all, and the remaining positive integers represent what will be extracted from the contents of the check. Method Two, taken from the previous request with XPath.  This form is more appropriate for cases where XML fragments are returned.  On the request to get data, right-click to add a post processor-->xpath Extractor.  The reference name is the name of the parameter to be referenced by the next request, such as filling in the body, which can be referenced by ${body}. XPath query, an XPath expression, conforms to the XPath syntax.

"Go" Jmeter + Dadboby installation use

Related Article

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.