FAQs RRS feed

  • Question

  • 1.       Why are my changes in UIMap.Designer.cs are undone?

    2.       How do I handle changes in my application – searchproperties, url etc.


    Solution: UIMap.Designer.cs contents are re-generated from the uitest file everytime you generate code. If you want any customizations to search properties, create a method in UIMap.cs and call it before calling the methods in UIMap.Designer.cs.

    Refer http://blogs.msdn.com/gautamg/archive/2009/12/21/understanding-the-code-generated-by-coded-ui-test-part-2.aspx


    3.       How can I stop the contents of UIMap.Designer.cs from reverting back everytime I edit them?


    Solution: Edit the xml file(UIMap.uitest) file with the new property values(Do it carefully and ensure you have a back up) and generate code again, the designer file will now reflect the changes made in xml.

    We are working on a tool to make the editing of xml easier, though we don’t have any fixed timelines regarding its availability yet.


    4.       Data driving a coded ui test.


    Solution: Refer http://blogs.msdn.com/mathew_aniyan/archive/2009/03/17/data-driving-coded-ui-tests.aspx


    5.       Is Silverlight(and other technologies supported)?


    Solution: Please go through the matrix located at http://blogs.msdn.com/gautamg/archive/2010/01/07/platform-support-for-coded-ui-test-and-fast-forward-feature-of-test-runner.aspx


    6.       How do I launch Coded UI Test Builder, the second time?


    Solution: Right click from inside a test method and click Generate Code for Coded UI Test -> Use Coded UI Test Builder


    7.       Upgraded from Beta 2 and seeing a bunch of errors. How I do I fix them.


    Solution: Refer http://visualstudiogallery.msdn.microsoft.com/en-us/0137d3e8-0adb-4549-aac7-59df340c48a8


    8.       Playback doesn’t wait for the window to appear or Playback takes a long time to report a search failure.


    Solution: Try using Playback.PlaybackSettings.ShouldSearchFailFast, Playback.PlaybackSettings.SearchTimeOut as required.


    9.       Can I run coded ui tests on remote desktop?


    Solution: You will need a active session for the CUIT to work. If you are using a VM then from the host machine use VMConnect to connect to VM and then you can lock the host machine.


    10.   How to change the time taken between two actions?


    Solution: Use Playback.PlaybackSettings.DelayBetweenActions.

    Please mark the post as answered if this answers your question. ThejK
    Sunday, May 2, 2010 5:04 AM

All replies