jmeter执行登录{"msg":"密码错误","code":-4,"data":""}
时间: 2023-09-06 18:13:49 浏览: 130
JMeter技巧集锦1
根据提供的引用内容,错误信息"Response code: Non HTTP response code: java.net.BindException"是由于JMeter的连接设置导致的。在JMeter中,默认情况下勾选了"use keepAlive"选项,但是配置文件中的时间设置却是注销的,这意味着一旦连接空闲,就会立即断开连接,从而导致事务失败的情况发生。
另外,关于错误信息"Response message: Unauthorized",可以采取以下解决方法:
1. 添加一个HTTP Header Manager,并配置相应的cookie值。
2. 每次登录系统时,需要重新设置一次cookie值,以确保cookie的有效性[3]。
综上所述,对于给定的错误信息"{"msg":"密码错误","code":-4,"data":""}",可能的原因是密码错误导致登录失败。您可以尝试重新输入正确的密码来解决该问题。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [jmeter压测报错问题汇总:](https://blog.csdn.net/weixin_39662721/article/details/111740008)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *3* [jmeter返回Response message:Unauthorized错误如何解决](https://blog.csdn.net/doudoubug_0607/article/details/120160276)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文