Visual studio 如何在VisualStudioWeb性能测试项目中参数化url的路径?

Visual studio 如何在VisualStudioWeb性能测试项目中参数化url的路径?,visual-studio,testing,performance-testing,Visual Studio,Testing,Performance Testing,我正在使用VisualStudio2010测试我的web系统 我记录了许多请求 http://10.20.30.40/system_name/aa.aspx http://10.20.30.40/system_name/bb.aspx http://10.20.30.40/system_name/cc.aspx 我使用了参数化Web服务器功能。此功能仅允许我更改ip 然后请求url将更改为 {{WebServer1}}/system_name/aa.aspx {{WebServer1}}/sys

我正在使用VisualStudio2010测试我的web系统

我记录了许多请求

http://10.20.30.40/system_name/aa.aspx

http://10.20.30.40/system_name/bb.aspx

http://10.20.30.40/system_name/cc.aspx

我使用了参数化Web服务器功能。此功能仅允许我更改ip

然后请求url将更改为

{{WebServer1}}/system_name/aa.aspx

{{WebServer1}}/system_name/bb.aspx

{{WebServer1}}/system_name/cc.aspx

所以我创建了一个上下文参数,p1=sys\u name

但我需要手动更改每个请求

{{WebServer1}}/{{p1}}/aa.aspx

它将花费太多的时间


我可以知道如何在visual studio中自动执行此操作吗?

使用此功能:在请求中查找和替换


右键单击一个请求,指定参数,然后单击“全部替换”

使用这个奇妙的功能:在请求中查找并替换

右键单击一个请求,指定参数,然后单击“全部替换”