我正在尝试为测试 Controller /测试代理安装 Visual Studio 2010 代理,以便我可以在本地计算机上创建负载测试。尝试安装测试 Controller 时,我在配置摘要中收到以下消息
From the installation log I found the following error messages:
The existing connection string for controller MyComputerName:6901 is {this is blank}
System.MissingMethodException: Method not found: 'Boolean Microsoft.VisualStudio.TestTools.WebStress.LoadTestDatabaseCounterWriter.IsDatabaseUpgradeFromRTMNeeded(System.Data.SqlClient.SqlConnection)'. at Microsoft.VisualStudio.TestTools.ConfigCore.TestControllerHelper.CreateAndUpgradeLoadTestSchemaIfRequired(String loadTestConnectionString, String directoryContainingSchemaFile) at Microsoft.VisualStudio.TestTools.ConfigCore.ControllerConfiguration.UpdateLoadTestDatabase(ControllerConfigurationUpdatePack updatePack, DelegateStatusUpdate statusListener)
Failed to configure load test database.
最佳答案
问题解决了!
简而言之,仅缺少 Visual Studio 2010 Service Pack 1,并且 DLL 不包含由测试 Controller 配置工具调用的方法。
解决方案:安装 VS 2010 Service Pack 1。
原因:Microsoft.VisualStudio.QualityTools.LoadTest.DLL不包含配置工具调用的Database checker方法,所以抛出异常,配置失败。升级到 SP1 后,DLL 更新成功,可以在那里找到缺少的方法。
关于visual-studio - Visual Studio 2010 测试 Controller 负载测试数据库配置失败?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7026458/