【发布时间】:2017-09-15 17:33:53
【问题描述】:
我在 jmeter 中遇到 AJAX 调用问题。
每次获取cookie值生成一个新的Ajax Token
efpcookieiQmdOSdtYvVcktctGnNfrwCC4350121699716256984xxxxxxxxx=nAgvF4MhWoTTb7NTV8zaowCC;
我需要在以下 URL 中传递 cookie:
http://www.example.com/?usecase=maintain_account&command=load_acc_type_command&guid=${uid6}&commandorigin=0.create_account_step1_view&fpid=efpcookieiQmdOSdtYvVcktctGnNfrwCC4350121699716256984xxxxxxxxx&view=create_account_step1_view&pipe=ajax&hash=hash1287912XXXX&ajaxtoken=${ajaxtokan}&accProdId=1
我怎样才能捕捉到这个?
【问题讨论】:
-
看看this。
-
您需要包含正则表达式提取器(后处理器)并选择要检查的文件为
Response Headers并提取cookie信息并将其传递到URL中。