0

我正在尝试使用VS 2013云负载测试来测试WCF端点压力测试。我创建了运行良好的单元睾丸。为了使我的单元测试工作,我必须将一些随机值传递给端点。所以我创建了一个有效值的数据库haavinf,并随机选择它们作为我的WCF端点的输入。单元测试负载测试Visual Studio Cloud无法初始化SQL Server连接

我想使用VS 2013云负载测试和我的测试在单元测试初始化​​测试失败。

Initialization method WCFLoadTests.Tests.Init threw exception.
System.Data.Entity.Core.EntityException:
System.Data.Entity.Core.EntityException: The underlying provider failed on Open. --->
System.Data.SqlClient.SqlException: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified).

我需要在云上做一些设置吗?或者是什么?

非常感谢,

回答

0

感谢所有谁看了我的问题,花时间帮我解决这个问题。

我通过在我的单元测试中简单地使用Code First技术解决了这个问题。早些时候我首先使用数据库(正在懒惰)和生成的连接字符串(providerName =“System.Data.EntityClient”)给出错误。

非常感谢,

相关问题