如何在Visual Studio 2012终极版本中自动测试Web性能和负载测试项目

时间:2022-02-19 23:14:39

I am using VS2012 Ultimate to creating Web performance test and Load test project.First I created sample web page application, in this web page two text box username and password and submit button.Then run the web test project, it build successful and click the add recording, automatically opened internet explorer then we enter the web application url manually and enter the username, password and submit. Then stop the recording, it will go to the project and processing, finally result is passed.But I want when i run the web performance and Load test project and give only url then automatically enter username and password and submit. Please guide me.

我正在使用VS2012 Ultimate来创建Web性能测试和负载测试项目。首先我创建了示例网页应用程序,在这个网页中有两个文本框用户名和密码以及提交按钮。然后运行web测试项目,它构建成功并单击添加录音,自动打开Internet Explorer然后我们手动输入web应用程序URL并输入用户名,密码并提交。然后停止录制,它将进入项目和处理,最后结果通过。但我想当我运行Web性能和加载测试项目并只给出url然后自动输入用户名和密码并提交。请指导我。

1 个解决方案

#1


1  

Yes this can be done in the web test. You will have to go to web test URL where you have textboxes, expand the URL properties (Form Post Parameters), here you can change the input parameters. Also, you can bind this with the data source also, data source could be csv file. Please check data source and Form Post Parameters options.

是的,这可以在网络测试中完成。您必须转到具有文本框的Web测试URL,展开URL属性(Form Post Parameters),在这里您可以更改输入参数。此外,您也可以将其与数据源绑定,数据源可以是csv文件。请检查数据源和表单后置参数选项。

#1


1  

Yes this can be done in the web test. You will have to go to web test URL where you have textboxes, expand the URL properties (Form Post Parameters), here you can change the input parameters. Also, you can bind this with the data source also, data source could be csv file. Please check data source and Form Post Parameters options.

是的,这可以在网络测试中完成。您必须转到具有文本框的Web测试URL,展开URL属性(Form Post Parameters),在这里您可以更改输入参数。此外,您也可以将其与数据源绑定,数据源可以是csv文件。请检查数据源和表单后置参数选项。