无法将负载测试结果导入Visual Studio 2015

时间:2015-09-08 19:08:46

标签: visual-studio-2015 load-testing sql-server-express azure-devops

我无法存储本地负载测试结果,也无法将Visual Studio Online中的负载测试结果导入Visual Studio 2015.我之前可以使用Visual Studio 2013在另一台计算机上执行此操作。

我可以在此处看到错误:error screen-shot

事件日志中的错误是:

  

(devenv.exe,PID 5824,Thread 59)WebLoadTestAdapter:异常   在SQL Server上调用SQL脚本loadtestresultsrepository.sql   instance Data Source =(localdb)\ v11.0; Initial Catalog = master; Integrated   Security = True:发生与网络相关或特定于实例的错误   同时建立与SQL Server的连接。服务器不是   发现或无法访问。验证实例名称是否正确   并且SQL Server配置为允许远程连接。   (提供者:SQL网络接口,错误:50 - 本地数据库运行时   发生了错误。无法创建自动实例。查看Windows   应用程序事件日志以获取错误详细信息。

我已按照此处的说明(https://msdn.microsoft.com/en-us/library/ms182600(v=vs.140).aspx)了解如何设置负载测试存储库,但它没有帮助......

C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE>SQLCMD /S localhost\sqlexpress /i loadtestresultsrepository.sql
Changed database context to 'LoadTest2010'.
Msg 2714, Level 16, State 3, Server MACHINE-NAME\SQLEXPRESS, Procedure LoadTestTransactionResults2, Line 2
There is already an object named 'LoadTestTransactionResults2' in the database.
Msg 2714, Level 16, State 3, Server MACHINE-NAME\SQLEXPRESS, Procedure LoadTestPageResultsByNetwork2, Line 2
There is already an object named 'LoadTestPageResultsByNetwork2' in the database.
Msg 2714, Level 16, State 3, Server MACHINE-NAME\SQLEXPRESS, Procedure Prc_QueryLoadTestPageComparison, Line 2
There is already an object named 'Prc_QueryLoadTestPageComparison' in the database.
Msg 2714, Level 16, State 3, Server MACHINE-NAME\SQLEXPRESS, Procedure Prc_QueryLoadTestTestComparison, Line 2
There is already an object named 'Prc_QueryLoadTestTestComparison' in the database.
Msg 2714, Level 16, State 3, Server MACHINE-NAME\SQLEXPRESS, Procedure Prc_QueryLoadTestTransactionComparison, Line 2
There is already an object named 'Prc_QueryLoadTestTransactionComparison' in the database.
Msg 2714, Level 16, State 3, Server MACHINE-NAME\SQLEXPRESS, Procedure Prc_QueryComputedCounterComparison, Line 2
There is already an object named 'Prc_QueryComputedCounterComparison' in the database.
Msg 2714, Level 16, State 3, Server MACHINE-NAME\SQLEXPRESS, Procedure prc_QueryForMachinesInRun, Line 2
There is already an object named 'prc_QueryForMachinesInRun' in the database.
Msg 2714, Level 16, State 3, Server MACHINE-NAME\SQLEXPRESS, Procedure Prc_QueryLoadTestErrorComparison, Line 2
There is already an object named 'Prc_QueryLoadTestErrorComparison' in the database.

(1 rows affected)

(1 rows affected)

(1 rows affected)

(1 rows affected)

(1 rows affected)

(1 rows affected)

(1 rows affected)

(1 rows affected)

(1 rows affected)

(1 rows affected)

(1 rows affected)

(1 rows affected)

(1 rows affected)

(1 rows affected)

(1 rows affected)

(1 rows affected)

(1 rows affected)

(1 rows affected)

(1 rows affected)

(1 rows affected)

(1 rows affected)

(1 rows affected)

(1 rows affected)

(1 rows affected)

(1 rows affected)

(1 rows affected)

(1 rows affected)

(1 rows affected)

1 个答案:

答案 0 :(得分:0)

你需要:

1)。确保MACHINE-NAME \ SQLEXPRESS服务正在运行,并且您能够在VS中的服务器资源管理器中检查LoadTest2010数据库。

2)。确保本地测试结果存储以MACHINE-NAME \ SQLEXPRESS服务中的LoadTest2010数据库为目标:右键单击“负载测试编辑器”中的负载测试,然后选择管理测试控制器 。确保选择正确的sql服务,并且测试连接成功enter image description here

相关问题