从Visual Studio 2013到更新的Visual Studio Enterprise 2015的CodedUI迁移3 [英] CodedUI Migration from Visual Studio 2013 to Visual Studio Enterprise 2015 with update 3

查看:100
本文介绍了从Visual Studio 2013到更新的Visual Studio Enterprise 2015的CodedUI迁移3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要将我的CodedUI代码从VS2013迁移到VS 2015.

I need to migrate my CodedUI code from VS2013 to VS 2015.

我遵循以下步骤:

  •         ; 我更新了目标框架.到 所有项目的.NET Framework 4.6.1.
  •      ;    我更新了所有dll引用.
  • 解决了所有构建错误.
  •      ;    成功构建解决方案. 并且代码是根据Visual Studio 2015环境设置的..
  •          I updated the Target Framework  to .NET Framework 4.6.1 for all the projects.
  •          I updated all the dll references.
  •          Resolved all the build errors.
  •          Built the solution successfully. And code is set as per Visual Studio 2015 Environment

问题在于,CodedUI代码正在查找UI控件(例如按钮).还会触发click事件,但无法提前执行javascript代码(UI元素的Click Event上调用的方法,更具体地讲是按钮).

The issue is that, the CodedUI code is locating the UI control (Ex. Button). Also firing the click event, but unable to execute javascript code ahead(Method that is called on Click Event of UI Element, more specific the button).

关于我们的应用程序,这里需要注意一些要点

There are some points to be noted here regarding our application

  1. 该应用程序在 IE 11 上运行,文档模式为 8(默认)
  2. 我们能够单击该按钮,并且该应用程序可以完美运行当手动完成但尝试使用CodedUI(VS 2015迁移)执行相同的步骤时,某些事件(例如Click Event)无法正常工作.
  3. 相同的编码UI项目/代码可以完美运行
  4. 我注意到,某些程序集版本对于两个Visual Studio版本(2013& 2015), 都是相同的.  例如:Microsoft.VisualStudio.QualityTools.UnitTestFramework 程序集版本-&​​nbsp; 10.0.0.0
  5. 对于VS2015,某些程序集版本较旧(与VS2013相同)
  1. The application runs on IE 11, document mode as 8(default)
  2. We are able to click the button and the application runs perfectly when it is done manually but when we try to execute the same steps with CodedUI (VS 2015 Migration), some events(e.g Click Event) are not working.
  3. The same coded UI project/code is working perfectly with VS2013.
  4. I noticed that some of the Assembly versions are same for both the Visual Studio versions(2013 & 2015),    For example: Microsoft.VisualStudio.QualityTools.UnitTestFramework  Assembly version- 10.0.0.0
  5. For VS2015 some assemblies versions are old( Same as VS2013)

观察:根据我的分析,VS2015 dll与浏览器存在一些兼容性问题.

任何人都可以提供一些建议吗,或者可能已经遇到了编码UI的类似问题,然后请分享您的经验和解决方案.

Can anyone please provide some suggestions or may be, have faced similar issue with Coded UI then please share your experience and solution.

推荐答案

Divya_Wipro,

Hi Divya_Wipro,

>>我们能够单击该按钮,并且在手动完成该应用程序后可以完美运行,但是当我们尝试使用CodedUI(VS 2015迁移)执行相同的步骤时,会发生一些事件(例如Click事件) )无法正常工作.

它是否抛出任何异常,如果是,请提供详细的错误消息.

Does it throw any exception, if so, could you please provide the detailed error message.

此外.请使用程序集绑定将旧的CodedUI程序集重定向到新版本

In addition. Please Use assembly bindings to redirect old CodedUI assemblies to the new versions

...
<dependentAssembly>
        <assemblyIdentity name="Microsoft.VisualStudio.QualityTools.WindowsStore.CodedUITestFramework">> publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
        <bindingRedirect oldVersion="10.0.0.0-14.0.0.0" newVersion="14.0.0.0" />
      </dependentAssembly>
...

最诚挚的问候,

吴可乐


这篇关于从Visual Studio 2013到更新的Visual Studio Enterprise 2015的CodedUI迁移3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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