locked
what is the best way to Same Repeat code use for multiple application in coded ui. RRS feed

  • Question


  • How to use repeated Coded ui code for multiple applications that mean re-usability UI controls configuration using other source like excel and so on..

    Wednesday, March 1, 2017 7:02 AM

All replies

  • Hi raju_sirangu,

    What kind of the applications, would you mind giving us more details? 

    If these applications support Coded UI, and they share the same common control properties which you are going to test, then I think you could reuse the coded ui test code.

    Best regard,

    Fletch


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.


    • Edited by Fletch Zhou Thursday, March 2, 2017 1:10 PM
    • Proposed as answer by Fletch Zhou Friday, March 3, 2017 3:55 PM
    Thursday, March 2, 2017 5:42 AM
  • Hi raju_sirangu,

    Any update for this issue?

    If you use the repeat coded UI code for different apps, does it mean that all projects UT controls have the same properties? You know that the coded UI test find the controls using the unique properties.

    If so, maybe you could run the same test method in a loop, of course, since processes have different names, you could call/start the .exe with switch in the loop.

    If you get any latest information, please feel free to share it here.

    Thanks,

    Jack


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Friday, March 17, 2017 8:40 AM