jmeter + python may be implemented using jython

jmeter can execute Jython: python lines of code

1, download the Jython jar package: http://www.jython.org/downloads.html

2, to download the Jython jar package into jmeter lib folder. Restart jmeter

3, thread group Add JSR223 Sampler

4, provided JSR223 Sampler

python code

Copy the code
 
 
Copy the code

5 is performed, and since the code mark 502 fails, execution results are as follows

Guess you like

Origin www.cnblogs.com/zhichao-123/p/11937741.html