Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/visual-studio-2010/4.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/reactjs/25.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
Performance 捕获web性能测试中查询字符串参数的值_Performance_Visual Studio 2010_Testing_Automated Tests - Fatal编程技术网

Performance 捕获web性能测试中查询字符串参数的值

Performance 捕获web性能测试中查询字符串参数的值,performance,visual-studio-2010,testing,automated-tests,Performance,Visual Studio 2010,Testing,Automated Tests,我准备了一个web性能测试集。首先,我记录了一个新客户,因此该客户获得了一个id。我想从记录中获取该客户id的值,并在第二个记录中将其用作参数。测试后,我在查询字符串参数下看到了请求选项卡上id的值,但在测试运行时,我无法捕获并将其记录到文件(xml、csv)中。在调试模式下,该值被视为与参数名称相同(name=“borclu\u id”,value=“borcluId”)。 有人能帮忙吗?有什么方法可以捕获并记录该值吗?您应该能够对响应进行粗略分析,使用正则表达式捕获该值并将其存储到内存中,以

我准备了一个web性能测试集。首先,我记录了一个新客户,因此该客户获得了一个id。我想从记录中获取该客户id的值,并在第二个记录中将其用作参数。测试后,我在查询字符串参数下看到了请求选项卡上id的值,但在测试运行时,我无法捕获并将其记录到文件(xml、csv)中。在调试模式下,该值被视为与参数名称相同(name=“borclu\u id”,value=“borcluId”)。
有人能帮忙吗?有什么方法可以捕获并记录该值吗?

您应该能够对响应进行粗略分析,使用正则表达式捕获该值并将其存储到内存中,以供后续请求使用

根据您的应用程序,您可以从参数中删除客户ID,并依靠cookie管理器为您处理