Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Performance testing with pylot

Shulou Source: shulou.com Published: 2022-06-03 05:49:49 10月28日 Update

Introduction

L based on python written performance testing tools, simple, easy to use, can complete less complex performance testing.

L currently can only be used based on python2.5 32-bit, which is a pity, and it seems to be no longer being maintained, alas

Installation

Install python2.5 32-bit first and modify the environment variable

Download pylot package, which can be used directly after decompression. No installation is required.

L there are two other packages related to graphics, which are exe files, which can be downloaded and installed directly.

Use

1. The easiest to use

L modify testcase.xml and add the URL you want to test

L cmd enter the pylot directory and execute the command: python run.py-a 20-d 20

-a represents the number of concurrency, and-d indicates the duration (s)

A html report will be generated after the execution is completed.

2. HTTP GET request

Modify the testcase.xml, similar to the following, and follow the same steps as before

Note that the & in the request URL should be replaced with &

3. HTTP POST request

Modify testcase.xml, similar to the following, and follow the same steps as before:

Http://v.juhe.cn/laohuangli/d

POST

Content-type:application/x-www-form-urlencoded

4. WS request

Modify testcase.xml, similar to the following, and follow the same steps as before

5 、 GUI

Start GUI using the command: python run.py-g

Tags: Steps tests commands performance complexity regret two variables graphics tools reports files time to make test tools environment directories easy to use generate progress Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB Xiaomi Microsoft macOS Docker