无法使用jmeter创建用户 [英] Can't create user using jmeter

查看:133
本文介绍了无法使用jmeter创建用户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法在特定网站上使用jmeter创建用户: https://partner-test .smartcity.comarch.com/home .如果我手动创建用户,则会添加该用户.在其他网站上,一切对我来说都很顺利.我不知道我在做什么错.任何帮助将不胜感激.

I can't create user using jmeter on specific website: https://partner-test.smartcity.comarch.com/home . If I create user manually the user is added. On other websites everything goes smooth for me. I don't know what I am doing wrong. Any help will be appreciated.

我添加了带有jmeter脚本的屏幕

推荐答案

您需要对 CSRF保护.

You need to perform correlation of the p_auth parameter which is being used in Liferay application server for CSRF protection.

所以您需要:

  1. 执行GET请求到您的/web/guest/home路径
  2. 提取p_auth令牌值(通常人们使用正则表达式提取器为此)
  3. 用步骤2中的变量替换硬编码的记录值
  1. Execute GET request to your /web/guest/home path
  2. Extract p_auth token value (normally people use Regular Expression Extractor for this)
  3. Substitute hard-coded recorded value with the variable from step 2

请参见如何加载受CSRF保护的网站的测试网站以获取更多信息.

See How to Load Test CSRF-Protected Web Sites for more information.

这篇关于无法使用jmeter创建用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆