1. Webservice (soap) interface
The reason for the garbled Chinese characters in the response message : the response encoding is inconsistent with the encoding of our jmeter-gui; the encoding of jmeter-gui is based on your operation, and jmeter is changed. The encoding of promise must be restarted
soap=http+xml
The difference between soap1.1 and soap1.2:
soap1.1 message header: with SOAPAction
soap1.2 message header: without SOAPAction
request body: node name soap12
2. Jmeter (jdbc) script Create
JDBC (JavaDataBaseConnectivity): Java protocol for operating database data
-
Is a JAVA API used to execute SQL statements
-
Through this api, you can directly execute the sql script
DDT: data
java-api
project: easy payment, database mysq15.7
mysql-connector-java-8.0.20.jar into the lib\ext file and restart jmeter
JDBC connection configuration
pool: the name is OK Define by yourself;
database address: Database URL, different databases are written differently;
mysql:jdbc:mysql://host[:port]/dbname
class: MySQL5.7 version com.mysql.jdbc.Driver
mysql8.* com.mysql. sj.Driver
JDBC Request: Sampler of the protocol. During
work, if it appears, "Get *** list", it takes a long time and has a large amount of data. From the view result, there is no response
=== Reason: The amount of returned data is too large. Exceeding the memory resource size of jmeter
Write sql statement in jdbc request, the official recommendation is: -
The statement does not end with ";"
-
A jdbc sampler, do not write multiple statements, write one statement, which can be a complete sentence such as where, left connection, right connection, etc.
select statement: directly write select
select update statement: directly write update
prepaed select statement:
prepare update statement with parameters
How to become a dynamic condition?
DDT data-driven performance test-jmeter+sqlite batch data creation
sqlite: relational database
database does not need to be installed, no account password is required, it is a memory database
DDT: data
1, use sqlite to create db
2, create a table, design the table structure yourself = ===Used to store the data you want to save for post-processing, you can save the information you want in other responses
to the sqlite
data storage
3. Data-driven
query users from the database, and users use it for follow-up Place an order