简体   繁体   English

MicroFocus Load Runner 中是否有后处理器或类似的东西,就像在 JMeter 中一样?

[英]Is there a post processor or similar thing in MicroFocus Load Runner Just like in JMeter?

I need a post-processor like function to run a script after the sampler is ran.我需要一个类似后处理器的函数来在采样器运行后运行脚本。 I previously used JMeter and there was a post-processor function however, I am unable to find a similar function in LoadRunner.我以前使用过 JMeter,并且有一个后处理器功能,但是我在 LoadRunner 中找不到类似的功能。 Is there anything similar in Loadrunner that I can use to run post condition response? Loadrunner 中是否有类似的东西可以用来运行后条件响应? What I need is to extract the response of one request in an action and pass that value to another request in the same action.我需要的是在一个动作中提取一个请求的响应,并将该值传递给同一动作中的另一个请求。 These requests are run simultaneously.这些请求是同时运行的。

web_url("PriceStrikeThroughDynamicKitDisplayCmd_2", 
    "URL=https://{host_perf_store}/PriceStrikeThroughDynamicKitDisplayCmd?usertype=&storeId=10151&catentryId=3074457345619656318&skus=8MR32AV%2C8MQ84AV%2CX7B43AV%2CX9H42AV%2C8MR54AV%2C8MQ93AV%2C8MR38AV%2C8MR45AV%2C8MS55AV%23ABA%2C8MR05AV%2C8MR11AV%2C8MR04AV%2C8MR06AV%2C8MR03AV%2C8MQ73AV%2C8MS52AV%23ABA%2C8MS63AV%23ABA%2C8MQ80AV%2C8MS47AV%23ABA%2C9EQ24AV%2C9NA60AV%2C3E755AV%2C4SS11AV%23ABA&crossSell=&currentDate=Mon07Sep202017", 
    "Resource=0", 
    "RecContentType=text/html", 
    "Referer=https://{host_perf_store}/ConfigureView?catalogId=10051&langId=-1&storeId=10151&urlLangId=&catEntryId=3074457345619656318&quantity=1", 
    "Snapshot=t33.inf", 
    "Mode=HTML",

I need to extract the response from this request and pass it to another request:我需要从此请求中提取响应并将其传递给另一个请求:

web_url("PriceStrikeThroughDynamicKitDisplayCmd_3", 
    "URL=https://{host_perf_store}/PriceStrikeThroughDynamicKitDisplayCmd?usertype=&storeId=10151&catentryId=3074457345619656318&skus=8MR32AV%2C8MQ84AV%2CX7B43AV%2CX9H42AV%2C8MR54AV%2C8MQ93AV%2C8MR38AV%2C8MR45AV%2C8MS55AV%23ABA%2C8MR05AV%2C8MR11AV%2C8MR04AV%2C8MR06AV%2C8MR03AV%2C8MQ73AV%2C8MS52AV%23ABA%2C8MS63AV%23ABA%2C8MQ80AV%2C8MS47AV%23ABA%2CY4S94AV%2C9EQ24AV%2C9NA60AV%2C3E755AV%2C4SS11AV%23ABA&crossSell=&currentDate=Mon07Sep202017", 
    "Resource=0", 
    "RecContentType=text/html", 
    "Referer=https://{host_perf_store_hp_com}/ConfigureView?catalogId=10051&langId=-1&storeId=10151&urlLangId=&catEntryId=3074457345619656318&quantity=1", 
    "Snapshot=t36.inf", 
    "Mode=HTML", 
    LAST);

Check out the response handling functions provided by LoadRunner, eg web_reg_save_param_ex , web_reg_save_param_regexp, web_reg_save_param_json and web_reg_save_param_xpath.查看 LoadRunner 提供的响应处理函数,例如web_reg_save_param_ex 、 web_reg_save_param_regexp、 web_reg_save_param_json 和 web_reg_save_param_xpath。 Examples can be found via the help center link.可以通过帮助中心链接找到示例。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM