简体   繁体   English

网站性能和负载测试vs2010

[英]web performance and load testing vs2010

im getting this issue when created a web test and run this for load test 我在创建Web测试并运行此以进行负载测试时遇到此问题

The load test results database could not be opened. 无法打开负载测试结果数据库。 Check that the load test results database specified by the connect string for your test controller (or local machine) specifies a database that contains the load test schema and that is currently available. 检查由测试控制器(或本地计算机)的连接字符串指定的负载测试结果数据库是否指定了包含负载测试架构且当前可用的数据库。 For more information, see the Visual Studio help topic 'About the Load Test Results Store'. 有关更多信息,请参见Visual Studio帮助主题“关于负载测试结果存储”。 The connection error was: An error occurred while attempting to create the load test results repository schema: To create the database 'LoadTest2010' your user account must have the either the SQL Server 'sysadmin' role or both the 'serveradmin' and 'dbcreator' roles 连接错误为:尝试创建负载测试结果存储库架构时发生错误:要创建数据库“ LoadTest2010”,您的用户帐户必须具有SQL Server“ sysadmin”角色或“ serveradmin”和“ dbcreator”角色角色

please help me out of this 请帮助我

This worked for me 这对我有用

To resolve this issue, I followed the below steps: 要解决此问题,我按照以下步骤操作:

  1. Open VS command prompt in elevated mode (Run As Administrator) 在提升模式下打开VS命令提示符(以管理员身份运行)
  2. Run the command "cd C:\\Program Files\\Microsoft Visual Studio 10.0\\Common7\\IDE" 运行命令“ cd C:\\ Program Files \\ Microsoft Visual Studio 10.0 \\ Common7 \\ IDE”
  3. Run the command "SQLCMD /S localhost\\sqlexpress /i loadtestresultsrepository.sql " 运行命令“ SQLCMD / S localhost \\ sqlexpress / i loadtestresultsrepository.sql”

The basic problem here is that you permissions are not right for the account that you are using to run the load test. 此处的基本问题是,您用于运行负载测试的帐户的权限不正确。 What account? 什么帐号? That depends on whether you are running a controller and agents or if you are just running your load test locally in Visual Studio or MSTest. 这取决于您正在运行控制器和代理,还是仅在Visual Studio或MSTest中本地运行负载测试。

In the latter case, make sure that the credentials you use to log in to your Visual Studio/MSTest machine will allow you to also create a database on your SQL Server. 在后一种情况下,请确保用于登录Visual Studio / MSTest计算机的凭据将使您也可以在SQL Server上创建数据库。

If you are using a controller and agents, the user credentials that you enter into your Controller configuration tool must have those same permissions. 如果使用的是控制器和代理,则输入到Controller配置工具中的用户凭据必须具有相同的权限。

You've probably read this before. 你可能已经阅读之前。 Read it again and then adjust your user permissions or get your Sysadmin to do it. 再次阅读它,然后调整您的用户权限或让您的系统管理员来做。

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

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