Jmeter test interface with encrypted parameters

When doing interface testing, many times we will encounter interfaces with encrypted parameters. Generally speaking, this interface will have a unified encryption method. It is good to find a developer. How to test it with Jmeter?

1. The overall structure is as follows:

2. Operation steps

(1) Put the encryption method into a jar package and put it in the lib\ext directory of jmeter;

  The jar package method, open eclipse, select the encryption class, click Export, select JAR file under Java, select the export directory, and click Finish.

(2) Click on the Jmeter test plan, Add directory or jar to classpath, click Browse, and add the jar package that needs to be called

(3) Add the bean shell preprocessor under the http request, and write the following test code

(4) Put the params parameter in the Body Data

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324816610&siteId=291194637