成功登录后我有一个页面/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