VS2015中创建的有序测试无法在VS2017中打开 [英] Ordered tests created in VS2015 won't open in VS2017

查看:104
本文介绍了VS2015中创建的有序测试无法在VS2017中打开的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在VS2015的Coded UI测试项目中有很多Ordered测试。我已升级到VS2017并添加了
个别组件 - > 编码用户界面测试
测试工具核心功能

I have a lot of Ordered tests in my Coded UI Test project in VS2015. I have upgraded to VS2017 and added the Individual Components -> Coded UI Test and Testing tool core features.

我的解决方案打开,构建和运行。我可以记录新的测试等。

My solution opens, builds and runs. I can record new tests etc.

我唯一不能做的就是打开常规打开的Ordered测试(在Open With中,它是"Ordered Test Editor(默认)")。 )。我可以在"XML(文本)编辑器"中打开它们。但是你不能将新记录的测试添加到你订购的测试
那里。

The only thing I cannot do is open the Ordered tests as they normally open (in Open With, it's the "Ordered Test Editor (Default)"). I can open them in the "XML (Text) Editor" but you can't add newly recorded tests to your ordered test there.

错误是" 操作无法完成 "。这是整个信息,并没有告诉我太多。我错过了一个组件,如果是这样的话?

The error is "The operation could not be completed". That's the whole message and it doesn't tell me much. Am I missing a component and if so what?

我可以创建新的有序测试,问题只是添加和编辑我现有的有序测试。

I can create new ordered tests, the problem is simply adding to and editing my existing ordered tests.

作为一个解决方法,我尝试进行一个新的有序测试,用XML打开它并从我的旧订购测试中复制整个
< TestLinks> 部分( VS2015一)。这一半工作,有序测试将打开,但它不会显示我刚刚用XML复制到它的测试。我在VS2015中一直这样做,它运行正常,但不是
VS2017。

As a work around I tried making a new ordered test, open it in XML and copy the whole <TestLinks> section from my old ordered test (the VS2015 one). This half works, the ordered test will open but it then doesn't show the tests that I just copied into it in XML. I do this all the time in VS2015 and it works fine but not in VS2017.

订购的测试兼容性是怎么回事?如何打开我的VS 2015订购测试在2017年的标准有序测试编辑器中?

What's going on with the ordered tests compatibility and how do I open my VS 2015 ordered tests in the standard Ordered Test Editor in 2017?

推荐答案

嗨朋友,

感谢您的支持帖子。

我无法在VS2017中打开ordertest文件(在VS2015中内置),当时我试图重新解决你的问题。

I could not open the ordertest file(which are built in VS2015) in VS2017 either when I was trying to repro your issue in my end.

但是在我再次构建项目之后,它运作良好。

But after I build the project again, it works well.

我不知道你如何打开 ordertest ,但我只是运行VS2017并打开由VS2015创建的相应解决方案文件,之后,两个ord​​ertest文件将显示在项目中。

I don't know how you open the ordertest, but I just run VS2017 and open the corresponding solution file which created by VS2015, after, the two ordertest file will show up in the project.

我还可以通过将现有商品
添加到 编码  UI项目中打开 ordertest 在VS2017的解决方案资源管理器中。

I could also open the ordertest by adding existing item to the Coded UI Project in the Solution Explorer of VS2017.

当您安装了Coded UI测试时,我认为这不是因为缺少任何组件。

As you've installed the Coded UI test, then I don't think it's because of lack of any component.

所以,我只是在打开项目后建议你,重建它
并查看。

So, I just suggest you after opening the project, rebuild it and have a look.

祝你好运,

Fletch


这篇关于VS2015中创建的有序测试无法在VS2017中打开的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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