【问题标题】:Can't import load test results into Visual Studio 2015无法将负载测试结果导入 Visual Studio 2015
【发布时间】:2015-09-08 19:08:45
【问题描述】:

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

我得到的错误可以在这里看到:

而事件日志中的错误是:

(devenv.exe,PID 5824,线程 59)WebLoadTestAdapter:异常 在 SQL Server 上调用 SQL 脚本 loadtestresultsrepository.sql 实例数据源=(localdb)\v11.0;初始目录=master;集成 Security=True:发生了与网络相关或特定于实例的错误 在建立与 SQL Server 的连接时。服务器没有 找到或无法访问。验证实例名称是否正确 并且 SQL Server 配置为允许远程连接。 (提供者:SQL 网络接口,错误:50 - 本地数据库运行时 错误发生。无法创建自动实例。见窗 错误详情的应用程序事件日志。

我已按照此处 (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)

【问题讨论】:

  • 我最近收到了类似的消息。单击“删除临时文件”按钮(如@Vicky 的答案所示)后,它对我有用。

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


【解决方案1】:

你需要:

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

2)。确保 本地测试结果存储 指向 MACHINE-NAME\SQLEXPRESS 服务中的 LoadTest2010 数据库:在负载测试编辑器中右键单击负载测试,然后选择管理测试控制器 .确保您选择了正确的 sql 服务并且测试连接是成功

【讨论】:

  • 谢谢,由于某种原因,连接属性中的“服务器名称”设置为 localdb\v11.0。将其更改为 .\SQLEXPRESS 解决了问题。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2014-07-20
  • 2018-03-22
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2016-09-17
  • 2017-01-31
相关资源
最近更新 更多