如何在重定向器上的jmeter中传递动态表单数据 [英] How to pass dynamic form data in jmeter on re direction

查看:315
本文介绍了如何在重定向器上的jmeter中传递动态表单数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每当我导航到链接

解决方案

您需要使用后处理器


  • 添加正则表达式提取器的详细信息。


  • 此处,您可以签入详细说明

    因此,您可以提取任何数据。



    希望,这可以解决您的问题。


    whenever I navigate to the link http://43.252.88.109:4006/BracketICT/testengine.aspx after starting the test from http://43.252.88.109:4006/BracketICT/?t=aZCcbzidJJKfFgrkk1RYPH0zHTl+MtTuoGeiUw0hEw48nLZUoPrfntO29VV2daEiR3cPbu25/Xf2a3Q1UMZs1tMlk3PvhYZb/aXd43cpH0Sp0Z1yTrWlkWOmJXsjTloRGTwk/LMZHkqQhW9CBVpyUsA==&uniqueID=dGdck61pZFjpiV7I05aERpx8kdvC0ymx&dev=1696661&reuse=1696661

    there is a uniqueiD that is generated in the form data whenever i select any radio button and click on next. Also the next page that is generated has the same url i.e. http://43.252.88.109:4006/BracketICT/testengine.aspx where a new question is generated and hence a new unique ID on every page on redirection.

    How do i extract the uniqueID parameter everytime from form Data i.e. Dynamic in nature?

    解决方案

    You need to use post processors Regular Expression Extractor to extract the value.

    1. Add the Regular Expression Extractor in the request generating the uniqueID.

    2. Add the details for the Regular Expression Extractor.

    Here, you can check out in details the value of each field from Regular Expression Extractor

    Regular Expression : &uniqueID=(.*?)&dev Check out Regular Expressions for details.

    1. (Optional) Add a Beanshell PostProcessor to check the extracted value in the logs.

    So, like this you can extract any data.

    Hope, this resolves your concern.

    这篇关于如何在重定向器上的jmeter中传递动态表单数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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