从源管理器获取源后,Visual Studio 2015 Enterprise Edition无法找到现有的Web测试 [英] Visual Studio 2015 Enterprise Edition cannot find the existing webtests after getting the source from the source manager

查看:59
本文介绍了从源管理器获取源后,Visual Studio 2015 Enterprise Edition无法找到现有的Web测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

此问题在Visual Studio 2015企业版中发生,但没有论坛.因此,我在这里添加了它.

This problem occurred in Visual Studio 2015 Enterprise Edition, but there was no forum for it. Hence, I added it here.

问题描述:

我已经用c#开发了许多不同的Web测试,并且可以在我自己的机器上完美运行.我向源管理器提交了代码和Web测试,并从源管理器在新计算机上检索了代码以及Web测试.

Problem description:

I have developed bunch of different webtests in c#, and are perfectly running on my own machine. I submitted the code and webtests to our source manager, and retrieved the code along with webtests on a new machine from the source manager.

我能够成功构建解决方案,但是当我尝试运行Webtest时,出现以下消息:

I'm able to build the solution successfully, but when I try to run a webtest, I get the following message:

无法运行测试.确认有一个解决方案处于打开状态,并且要运行的测试包含在当前解决方案中.

The test cannot be run. Confirm that there is a solution open, and the test you want to run is contained in the current solution.

同时,它还报告它无法加载测试容器或其依赖项之一.

Along that it also reports that it was unable to load the test container or one of its dependencies.

我检查了容器,它在那里.因此,这不是问题的根源.

I checked the container, it is there. So it is not the root of the problem.

此外,在新机器上,我创建了一个全新的空Web测试,并将所有测试步骤从现有的测试步骤(导致错误消息的位置)复制到新的空Web测试中.基本上,我是手动克隆它的.在新计算机上创建的新的Webtest 以这种方式,可以完美地工作.

Further, on the new machine, I created a brand new empty webtest, and copied all test steps from the existing one (where causes the error message) into the new empty webtest. Basically I cloned it manually. The new webtest, which is created on the new machine in such a way, works perfectly.

另外,我尝试将源从源管理器导入到我自己的计算机中,但移到另一个位置.我还能够从自己的计算机上的新位置构建和运行测试.这证明所有必需的源都在源控件中.

Also, I tried to get the source from the source manager into my own machine, but into a different location. I was also able to build and run the tests from the new location on my own machine. This proves that all required sources are in the source control.

由于我有100多个Web测试,而且步骤很多,因此该解决方案很繁琐,我想知道是否有一个简单的解决方案.在资源管理器的推入和获取过程中,我可能还会错过一些简单的步骤,这会导致问题.

Since I have over 100 webtests with lot of steps, this solution is a tedious one, I'm wondering whether there is an easy solution. I might also miss some simple step during push and get process to the resource manager, which causes the issue.

请让我知道您是对此有解决方案还是解决此问题的窍门.

Please let me know whether you have a solution for it or a trick to resolve the issue.

谢谢

推荐答案

您好,FredrichF,

Hi FredrichF,

根据您的描述,我认为您说的Web测试不是Web性能测试,而是Web测试的编码UI,对吗?

According to your description, I think the webtest you said is not web performance test, and it is coded UI for web test, am I right?

请参考以下情形:

1).在运行测试之前,请清理解决方案,然后重新生成它,然后运行它.

1). Before run the test, please clean the solution, and rebuild it then run it.

2).删除.suo文件,清理解决方案,重新生成解决方案,然后再次运行.

2). Delete the .suo file, clean the solution, rebuild the solution and run it again.

3).请注意解决方案的文件夹,如果要测试项目,我想我们只保留两个文件夹,即测试项目文件夹和应用程序测试,我们可以删除其他无用的文件夹.

3). Please pay attention to the folder of solution, if we want to test a project, I think we only persist two folders, test project folder and application test, and we could delete other useless folders.

4).如果上述步骤不适合您,请将您的项目(从源代码控制克隆)上传到OneDrive并分享给我一个链接,我将帮助您在我的一侧运行它,查看是否存在相同的问题.

4). If above steps not work for you, please upload your project (clone from the source control) to OneDrive and share me a link, I will help you run it in my side to see whether has the same issue.

请让我们保持联系.

此致

奥斯卡


这篇关于从源管理器获取源后,Visual Studio 2015 Enterprise Edition无法找到现有的Web测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆