Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/windows/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jmeter 在taurus中重定向后从页面中提取信息_Jmeter_Taurus - Fatal编程技术网

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