Jmeter 在taurus中重定向后从页面中提取信息
我有一个页面Jmeter 在taurus中重定向后从页面中提取信息,jmeter,taurus,Jmeter,Taurus,我有一个页面/login 成功登录后,我们将被重定向到/files如何从/files页面提取信息?我使用Jmeter作为执行器 - url: '${host}/login' method: POST label: 'Login' headers: Upgrade-Insecure-Requests: '1' Origin: 'null'
/login
成功登录后,我们将被重定向到/files
如何从/files
页面提取信息?我使用Jmeter作为执行器
- url: '${host}/login'
method: POST
label: 'Login'
headers:
Upgrade-Insecure-Requests: '1'
Origin: 'null'
Content-Type: application/x-www-form-urlencoded
Accept: 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9'
extract-xpath:
requesttoken:
xpath: //head/@data-requesttoken
default: NOT_FOUND
validate-xml: false
ignore-whitespace: true
use-tolerant-parser: true
body:
password: pass
timezone: Europe/Berlin
timezone_offset: '2'
user: admin
JMeter应该为您提供
此外,还需要通过添加
通过运行以下命令,始终可以启动JMeter GUI:
bzt your-test.yaml -gui
金牛座将把你的YAML场景转换成JMeter测试计划,它可以很容易地启动和调试
更多信息:有关子样本的更多信息
bzt your-test.yaml -gui