当前位置:网站首页>JMeter script FAQs
JMeter script FAQs
2022-06-24 02:41:00 【User 8049856】
1、 Use http cookie manager Get the... In the response header of the login interface cookie value ,cookie The reference variable name is correct , But what we get cookie No entry into force , Still reporting a mistake 401 reason :bin In the catalog jmeter properties File default cookiemanager.save.cookies=false, Acquired cookie Value not saved solve : Remove the comment from this line , Change to cookiemanager.save.cookies=true
2、 Run the login interface in batch to obtain a batch of valid cookie data , The login account and password are correct and not repeated , But the obtained part cookie Always expired reason : Used 2000 Account number and password , Keep running 5min, This leads to the recycling of these accounts and passwords , Resulting in partially generated cookie Be overwritten solve : In thread group loop count Not set to -1, It is set to the number of times , Run as many times , Ensure that each account generates a unique cookie
3、 Use csv Data files guarantee script parameterization , But from the dependent file uid The field value is incorrect , Still uid Isoparametric name reason : The parameter name is set in the first line of the dependent file , And in the csv The first row of... Is ignored in the setting false solve : When the parameter name is set in the first line of the dependent file ,csv The first line selection... Is ignored in the data file settings true; The parameter name is not set in the first line of the dependent file ,csv set selection false
4、coding Platform operation jmeter Script , Completion of task construction during pressure test , The script doesn't work reason : The script uses csv Data files , stay coding The file path is written incorrectly when executing on the platform :jmeter/xxx.csv solve : Change the path to /jmeter/xxx.csv, Here's the absolute path
5、coding Platform operation jmeter Script , After the pressure test grafana No pressure measurement data can be seen on the panel reason : The pressure test cluster of this project is configured with multiple namespaces , Only defalut Under the configuration of grafana Monitor dashboard , So in addition to defalut outside , Results executed under other namespaces are not displayed solve : Put... In the back-end listener influxdbUrl from http://jmeter-influxdb:8086/write?db=jmeter Change to :http://jmeter-influxdb.default:8086/write?db=jmeter
6、 The backend listeners under two different thread groups are set to Baidu 1 And baidu 2 Value , After operation grafana All the pressure test results in the panel are displayed in Baidu 1 in , Baidu 2 The data in is empty reason :jmeter A pit in ! In the source code “ Back end listener ” This name determines whether the listener is running ( Instead of its set value ), Because each thread group is consistent by default , Therefore, not actively changing the name here will cause all the listening data to be mixed in the first one solve : Different backend listeners have different names , for example : Back end listener -1: Baidu 1, Back end listener -2: Baidu 2 etc.
7、 The script dependency file is too large to upload to coding platform , adopt git Upload files ,push I always report mistakes when I'm on duty :rejected reason : The code inconsistency between the remote library and the local library results in solve : In execution push Before the command , Merge updates from the remote library to the local , Execute the following command :git pull --rebase origin master
边栏推荐
- Flink practice tutorial: getting started 1- zero basic users realize simple Flink tasks
- Wkwebview audio and video media playback processing
- What are the conditions for trademark registration? How long does it take to register a trademark?
- Coding helps Jiangsu high-speed information to achieve organizational agility and R & D agility, leading the new infrastructure of Intelligent Transportation
- How to build a website? These things should be paid attention to
- A variety of fixed assets inventory methods to deal with the year-end large inventory of fixed assets
- Uiscrollview add gestures show and hide keyboard
- [Tencent cloud load balancing CLB] cross region binding 2.0 (new version) idc-ip best practices!
- The dealer management and control platform in the leather industry simplifies the purchase approval process and easily controls agents
- Prompt error when Jekyll runs cannot load such file -- webrick (LoadError)
猜你喜欢
随机推荐
How long can the trademark registration be completed? How to improve the speed of trademark registration?
Tke single node risk avoidance
Data acquisition and transmission instrument environmental pollution monitoring of iron and steel plant
Which is a good human voice synthesis platform? What are the human voice synthesis application scenarios
How to use nsfilemanager
Opengl: how to use shader to convert RGBA to nv21 image format? (open source for the first time in the whole network)
What is the meaning of scdo? Is it comparable to bGH
Does the cloud game server only provide one player? Cloud game server defense capability
MySQL Cases-MySQL 8.0.26 bug ERROR 1064 (42000) at line1: You have an error
Do you still understand the deadlock handling methods in MySQL performance testing and tuning?
Wkwebview audio and video media playback processing
Cloudpods golang practice
How much does it cost to rent a cloud game server? Which cloud game server is more reliable?
Grpc: adjust data transfer size limit
DB2 database generates HTML patrol Report
Activiti obtains the initiator based on the process instance ID
What are the performance characteristics of cloud desktop? How to choose the most cost-effective cloud desktop server?
How to build a speech synthesis server
How many graphics cards are required for cloud game servers? What should be paid attention to when purchasing servers
The most comprehensive arrangement of safe operation solutions from various manufacturers

