I am trying to get a ASP.NET Unit Test running and I keep getting a DirectoryNotFoundException: Could not find part of the Path 'C:\\inetpub\\wwwroot\\WebsiteName\\GPS\\web.config. The problem is the path to the GPS web.config is C:\\inetpub\\wwwroot\\WebsiteName\\website\\GPS\\web.config. I can't figure out how to set the path of this web.config. My attributes are posted below. As you can see the logical convention seems to be what the test is looking for, but our Website is just not set up like that. Any help would be appreciated.
[TestMethod()]
[HostType("ASP.NET")]
[UrlToTest("http://localhost/WebsiteName/GPS/Default.aspx")]
[DeploymentItem("GPS.dll")]
你不应该改变UrlToTest属性参数到HTTP://localhost/WebsiteName/website/GPS/Default.aspx ?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.