Locked Auto generating CodedUi

  • 04 Mei 2012 15:59
     
     

    All

    Currently our developers are looking to use T4templates to auto generate the code for some objects, is there anyway that we can use the same technology to auto generate Uimaps?

    Thanks

Semua Balasan

  • 04 Mei 2012 21:11
     
     

    AndySaville,

    T4 Templates run at compile time.  Your suggestion would be really cool if it were possible, but consider that some controls are dynamic and determined at run time.  You could potentially rig up some code to auto generate a UIMap if all of your UI elements were static.

    As is, if you need to add new elements to an existing UIMap you can use the "Add Control to UI Control Map" button in the test editor as described in this post:http://blogs.microsoft.co.il/blogs/shair/archive/2010/08/08/coded-ui-test-tip-4-add-unused-controls-to-ui-map.aspx

    Cheers,

    Paul

    • Ditandai sebagai Jawaban oleh AndySaville 10 Mei 2012 16:19
    • Tanda sebagai Jawaban dihapus oleh AndySaville 10 Mei 2012 16:19
    •