Python-based performance test method and device,, computer equipment and storage medium

A technique for testing method, performance
CN111444111APending Publication Date: 2020-07-24深圳市万睿智能科技有限公司

Patent Information

Authority / Receiving Office
CN · China
Current Assignee / Owner
深圳市万睿智能科技有限公司
Publication Date
2020-07-24

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The invention relates to a python-based performance test method and device, computer equipment and a storage medium, and the method comprises the steps: installing a python environment, and building an httprener and a locust system in the python environment; creating an httprener initial script according to the httprener initial script; capturing a packet through a fidler program, and importing the captured data packet into an httprener to generate a test script; packaging the log module and the mail module, and introducing an HTMLTEstRunner program and an mkdocs program which are used for defining a test report; and executing the test script, and obtaining a web version test log and a test report. According to the method, the script writing work is completed in the mode that the fidler captures the package, then exports the captured package into the har format, continues to convert the captured package into the yaml format and then imports the captured package into the httprener, thescript writing threshold is greatly reduced, the test efficiency is also improved, and the code error rate is also reduced; in the performance test execution process, the concurrency number can be increased on the UI interface of the locust, and the concurrency number does not need to be set after the test is executed.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The present invention relates to the computer field, and more specifically refers to a python-based performance testing method, device, computer equipment and storage medium. Background technique

[0002] Currently, the popular performance testing tools on the market mainly include loadrunner and jmeter. The aforementioned loadrunner and jmeter can support the performance testing of most protocols.

[0003] loadrunner monitors the communication between the client and server of various protocols through the Agent process, and converts the recorded user operations into scripts using the built-in C language. loadrunner calls these scripts to send requests to the server and accept the server's response. To write scripts, controller to set scene parameters, manage virtual users, analysis to view test results. Loadrunner has the following disadvantages: 1. Loadrunner is a heavyweight software with cumbersome installation; 2. The script writing is very compl...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More