locked
Coded UI Tests Migration RRS feed

  • Question

  • Hi,

    I am working on Coded UI migration from VS 2010 to VS 2015. I have more than 1000 of test scripts. The issue is - in VS 2015 test builder, the hierarchy of some controls got changed which were created during VS 2010. Due to this, My test scripts at runtime are not finding some controls and fails. I can not generate new UI maps in VS 2015 and then update the test scripts manually. It will take very long time to do so considering large test scripts I have. Any idea how to fix this issue. I am stuck. Please help me. 

    Thanks and Regards

    Nitesh Jain

    • Moved by CoolDadTx Wednesday, December 16, 2015 3:12 PM Testing related
    Wednesday, December 16, 2015 2:25 PM

Answers

  • Hi Nitesh Jain,

    Merry Christmas and happy new year to you.

    >>Is there any framework changes in Coded UI Test builder 2015 compare to Test builder 2010.

    As far as I know. VS 2015 which brings a host of improvements in many different areas, ranging from new IDE features to an extended test framework and etc.

    Also check whether your test program is designed in .net 4.0.  When you record this program in VS2010 and playback this test in VS2015. It may be some compatibility issue existed.

    Since version of framework in VS2010 is .net framework 4 and the version is .net framework 4.6 in VS2015.

    So for your issue. In my opinion. I suggest you may need to record your test in VS2015 again.


    Best Regards,

    Lake Xiao

    Monday, December 28, 2015 3:14 AM

All replies

  • Hi Nitesh Jain,

    Thanks for your post.

    First please change the .NET Framework version under your project by using .NET Framework 4 in your VS2015。

    And then clean and rebuild your whole project, and then run your test again.

    If still no help. I wonder if you could provide us the detailed Coded UI Test Logs.

    Use the following methods in the document to enable the log.

    https://msdn.microsoft.com/en-us/library/jj159363.aspx


    Best Regards,

    Lake Xiao
    • Edited by lake Xiao Friday, December 18, 2015 2:57 AM
    Friday, December 18, 2015 2:56 AM
  • Thanks Lake for your answer. 

    If I change the .NET Framework 4 in VS 2015 then I will not be able to use VS 2015 Coded UI features with .NET framework 4.6.1. So I can not do this as this will be same experience as working in VS 2010.

    Can I manually change the uitest XML with latest VS 2015 generated hierarchy? Will it work?

    Thanks and Regards

    Nitesh Jain

    Monday, December 21, 2015 9:53 AM
  • Hi Nitesh Jain,

    >>Can I manually change the uitest XML with latest VS 2015 generated hierarchy? Will it work?

    As far as I know. I am afraid there is no help if manually change the uitest XML in VS2015.

    For your case, you may need to record your test in VS2015 again.


    Best Regards,

    Lake Xiao



    • Proposed as answer by lake Xiao Tuesday, December 22, 2015 9:59 AM
    • Edited by lake Xiao Thursday, December 24, 2015 8:34 AM
    • Unproposed as answer by lake Xiao Monday, December 28, 2015 1:22 AM
    Monday, December 21, 2015 10:09 AM
  • Thanks again Lake.

    Is there any framework changes in Coded UI Test builder 2015 compare to Test builder 2010. It seems to be there are some changes because both generates different hierarchy of same control which is causing problem for me to migrate from 2010 to 2015.


    Wish you a Merry Christmas and very happy new year 2016.

    Thanks and Regards

    Nitesh Jain

    Friday, December 25, 2015 2:14 PM
  • Hi Nitesh Jain,

    Merry Christmas and happy new year to you.

    >>Is there any framework changes in Coded UI Test builder 2015 compare to Test builder 2010.

    As far as I know. VS 2015 which brings a host of improvements in many different areas, ranging from new IDE features to an extended test framework and etc.

    Also check whether your test program is designed in .net 4.0.  When you record this program in VS2010 and playback this test in VS2015. It may be some compatibility issue existed.

    Since version of framework in VS2010 is .net framework 4 and the version is .net framework 4.6 in VS2015.

    So for your issue. In my opinion. I suggest you may need to record your test in VS2015 again.


    Best Regards,

    Lake Xiao

    Monday, December 28, 2015 3:14 AM