how to extract parameters from Jmeter for web forms using redirection

北战南征 提交于 2020-06-17 09:43:29

问题


Hi so my webform navigates from : http://43.252.88.109:4006/BracketICT/?t=aZCcbzidJJKfFgrkk1RYPH0zHTl+MtTuoGeiUw0hEw48nLZUoPrfntO29VV2daEiR3cPbu25/Xf2a3Q1UMZs1tAoUDti4wBVbYQbRHhhBDTt0Z1yTrWlkWKunP18DkVBkRSSVMdiHYyQ=&uniqueID=dGdck61pZFirpz9fA5FQZFhakSeoICZ9&dev=1696661 to http://43.252.88.109:4006/BracketICT/examstart.aspx ]3 i.e. from the instructions page to exam start page on the click of ![the exam start button. My Jmeter response during recording shows that the link: http://43.252.88.109:4006/BracketICT/examstart.aspx accepts two parameters i.e. attemptid or recordid. These values are generated on the location parameter of the examstart screen when the user clicks on starts test and lands on exam page. My response for http://43.252.88.109:4006/BracketICT/examstart.aspx does not show the location parameter on JMeter. How do i extract attempt id or recordid dynamically in this case during redirection ?]5


回答1:


You need to:

  1. Expand the 3rd sample result from the top in the View Results Tree listener
  2. Switch to "Response Headers" tab

    there you should be able to see the Location header and you will be able to extract these attemptid and recordid values using Regular Expression Extractor



来源:https://stackoverflow.com/questions/62172739/how-to-extract-parameters-from-jmeter-for-web-forms-using-redirection

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!