Turn: Use JMeter to do interface test under Linux

Source: Internet
Author: User

Local DesignFirst in the local design Apache JMeter test plan, you can refer to the "Interface Test JMeter", here no longer repeat. Server ConfigurationEnsure that the server has installed the JDK and PythonCreate a folder on the server side
Mkdir/data/loadtest Cd/data/loadtest
   To upload the test plan to this folder, take QA2.JMX as an example.    download Apache JMeter to current folderwget Http://mirrors.hust.edu.cn/apache//jmeter/binaries/apache-jmeter-3.2.zip UnzipUnzip Apache-jmeter-3.2.zip Create a folder to save the results file and report filesmkdir Report Result Add a scriptVim execloadtest.sh content is as follows:
#! /BIN/SH # Perform performance test Su-C '/data/loadtest/apache-jmeter-3.2/bin/jmeter-n-t/data/loadtest/qa2.jmx-l/data/load test/result/$ (date +%y%m%d%h%m%s). Csv-e-o/data/loadtest/report/$ (date +%y%m%d%h%m%s)/'
(use ROOT to execute Apache JMeter, output and report to the corresponding folder) Add Execute Permissionschmod +x execloadtest.sh perform tests, generate reportsExecutes the script./execloadtest.sh into the Report folder CD reports start a 8000 port HTTP service nohup python-m simplehttpserver & Open Link http://{you IP address of the server used}:8000 Click the link to view the test report Set timed executionAdd the following scheduled tasks in Crontab Crontab-e adds one line: 0 7 * * */DATA/LOADTEST/EXECLOADTEST.SH (7 points per day) Here we complete the interface test to automate and generate the report settings, however , this is not a big ending, interface testing is a need for long-term maintenance work, we also have to periodically increase or decrease the interface, to avoid interface testing and system disconnect. Http://www.51testing.com/html/49/n-3722149.html

Turn: Use JMeter to do interface test under Linux

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.