Problems pressure measurement process Jmeter

One problem: different user logs on, the extraction token, subsequent requests can not be successful request

Solution:

  1. Record login request after the login request plus regular extractor, extracted from the token

  1. Recording subsequent requests, eg: submit the form. a. extract was added in the url token b. Add the cookie manager at the request of, in addition of the extraction of the token manager
  2. If you have a lot of follow-up request, each request token plus some trouble: The token logged in to do a global variable (Reference: https: //www.cnblogs.com/qtclm/p/10016405.html)

A. After logging plus BeanShellPostProcessor

B. Join Cookie Manager

Second problem: Jmeter carrying member can not meet the stepped pressure sensing, eg: 50 concurrent instantaneous, from 10 users every 5s

Solution:

  1. Download plugin Plugins Manager
  2. Double-click plugin Custom Thread Groups, enter the Custom Thread Groups in the second tab, click ApplyChanges and Restart Jmeter, wait for the installation
  3. After installing, right-testing program, select the thread group 'jp @ gc-Stepping Thread Group'

  1. Setting the Scene Mode

  1. Add a listener:

A. A CPU monitor server listener -jp @ gc - PerfMon Metrics Collector (open ServerAgent server)

B. Aggregate Report

C. View user scenarios jp @ gc - Active Threads Over Time

D. Tree View Results

E. FIG other polymerization may be performed by introduction of the report shows

 

How to record a script:

  1. Add plug-ins BlazeMeter, record a script for the browser
  2. JMX export file formats
  3. Jmeter import files JMX

 

 

Question two: Jmeter how to skip the verification code interfaces Cookie

Increased under the following cookie request (can also use a variable)

Note: Do not have a login interfaces

 

Guess you like

Origin blog.csdn.net/Xuxiuyun0611/article/details/94627904