One problem: different user logs on, the extraction token, subsequent requests can not be successful request
Solution:
- Record login request after the login request plus regular extractor, extracted from the token
- 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
- 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:
- Download plugin Plugins Manager
- Double-click plugin Custom Thread Groups, enter the Custom Thread Groups in the second tab, click ApplyChanges and Restart Jmeter, wait for the installation
- After installing, right-testing program, select the thread group 'jp @ gc-Stepping Thread Group'
- Setting the Scene Mode
- 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:
- Add plug-ins BlazeMeter, record a script for the browser
- JMX export file formats
- 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