VS Coded UI Series is designed to cover all the nitty gritty details in Visual Studio CUIT. This video series will start from Introduction through advanced level hand coding with CUIT for all the technologies like MSAA, Web and UITestControl (Generic). We will cover more topics on web, since thats where the world of is moving now !!!

Topics

  1. Introduction to Visual Studio Testing
  2. An Introduction to Coded UI Test(CUIT)
  3. Coded UI Record and Playback
  4. Understanding Coded UI Recorded Code from UIMap
  5. Working with Assertions in Coded UI Test Builder
  6. Data Driven Testing in Coded UI Test Record and Playback
  7. Get and Set Properties in Coded UI Testing
  8. Hand Coding in Coded UI Testing – Part 1
  9. Hand coding in Coded UI testing – Part 2
  10. Hand Coding Coded UI Test with UITestControl
  11. Getting all the Controls properties from Application in Coded UI Test
  12. Record and playback in Coded UI for Web Applications
  13. Hand Coding Web Application using Coded UI Test
  14. Understanding Why and How Parent-Child relationship works in Coded UI Testing
  15. Creating custom reusable methods for different controls in Coded UI Testing
  16. Creating generic method for control with Generic in Coded UI
  17. Exploring features of Browser in CUIT
  18. Assertions in Coded UI Testing
  19. Exception handing in Coded UI Testing
  20. Types of Test Attribute in CUIT
  21. Run test in order via Ordered Test
  22. Using TestContext to identify the state of Test method
  23. Wait For Control in Coded UI Testing
  24. Cross Browser Testing with Coded UI
  25. DDT with Excel in CUIT with Custom Library (Part 1)
  26. DDT with Excel in CUIT with Custom Library (Part 2)
  27. Executing Javascript on Browser with Coded UI

128 comments

  1. Raj says:

    I have one main frame application and coded-ui test builder does identify the objects. Can you please suggest me any other way to automate mainframe application using coded ui.

  2. prashanth says:

    I am working on to enter a text in a text box with in the pane by using coded UI , I recorded the action but when I play back the results are different on each run , first run it is selecting first text box and in second run selecting second text box.

    Tag name is Div
    Control type is pane

    Searching based on Tag instance:

    When debug the individual test working fine , but testing whole application having problem.

  3. suruthi says:

    Hi,
    I have a web application which has a number of Html Custom menu items (capable of being recognized by coded ui) but has a number of submenus too some of which are HtmlCustom controls and some as HtmlHyperlink controls. These sub menu items are hidden . My aim is to hover over the menu items (i.e html custom control)and then when they get expanded to click on the sub menu items which act as hyperlink. I am not able to do this. i use this code for clicking all the hyperlink .help me out how to handle with the HtmlCustom and then click items below it.

    BrowserWindow browser = BrowserWindow.Launch(“http://www.ubtiinc.com/”);
    browser.Maximized = true;

    HtmlControl control = new HtmlControl(browser);
    control.SearchProperties.Add(HtmlControl.PropertyNames.ClassName, “HtmlCustom”);
    UITestControlCollection controlcollection = control.FindMatchingControls();
    List names = new List();
    foreach (HtmlControl x in controlcollection)
    {
    if (x is HtmlCustom)
    {
    HtmlCustom s = (HtmlCustom)x;
    names.Add(s.Id);
    Console.WriteLine(s.Id);
    Mouse.Click(s);
    }
    }

  4. Jyothi Prakash says:

    Hi Karthik,
    I am following your Coded UI Test series. It is awesome. I have learned so many things mainly hand coding part and exception handling.
    I have situation where i have deal with dialog box/javascript popups. Can you please tell me how to deal generically these things.
    Thank you….

  5. suruthi says:

    Hi ,

    i am working with coded ui testing in web application, in that i have to hover menu and click the sub menu under that , so i declared hover function on menu and then click function on sub menu.I am facing with some error as given below:

    “Another control is blocking the control.Please make the blocked control visible and retry the action”
    can any one please help me out to solve this issue.

    Regards,
    suruthi

  6. Ayushi says:

    I was trying the same calculator example(tutorial 4) and win10 & visual studio 2015 . I am facing a problem that when I started the recording and clicked calculator buttons the recorder says “To test Windows Store apps, use the Coded UI Test project template for Windows Store apps under the Windows Store node.”
    I tried to search for the templates but didn’t find it. please reply ASAP.

    • Karthik kk says:

      Windows 10 uses different technology, its not WinControl, its UWA (Universal Windows App).

      Hence use the the calculator which is of WinControl or use some other application which is of type WinControl.

      But still UWA is supported in Coded UI as well.

      Thanks,

  7. Manisha says:

    I am working on automating Inspect tool(Manual testing tool for Accessibility) using coded UI test tools.Can I get some details how to do .

  8. Prakash says:

    Hello Karthik, i have come across one requirement in our project. we were asked to automate mainframe using coded UI. I have seen your videos in which i have found any information related to same. Can you please let me know the possibilities of Mainframe automation using CodedUI. If yes, can you please let me know process to do same.

    • Prakash says:

      Please find the below comments and ignore previous 🙂
      Hello Karthik, i have come across one requirement in our project. we were asked to automate mainframe using coded UI. I have seen your videos in which i haven’t found any information related to same. Can you please let me know the possibilities of Mainframe automation using CodedUI. If yes, can you please let me know process to do same.

  9. sandeep says:

    Hi Karthik,
    I am following your video blog on CodedUI. Very good starting point.

    For the Data Driven Testing video, if we change the TXT File properties to UTF-8 WITHOUT SIGNATURE, the issue you faced in the video will not occur.

    Moving on to the Hand coded project, I understood what you are doing, but i am having a hard time using it on my test application.

    It is a WPF application and I am missing a link after I click on a sign in button.

    This is when a different screen loads.

    When I spy on the button that I need to click, it has about 4-5 levels above it. Should I be creating classes/UITestcontrol objects for each of the items??

    Also, in your hand coding tutorial, application launch code is missing, I am having a hard time figuring out where to keep that code. In [TestInitialize] attribute? if so, in which place ? CustomCaller.cs?? before the TestMethod/Datasource attributes??

    • sandeep says:

      Hi Karthik,
      By comparing between record and handcoded projects, I found the following

      UITestControl myApp= new WpfWindow();
      myApp.SearchProperties[WpfWindow.PropertyNames.Name] = “XYZ”;

      //Line from recorded script and the working one!
      myApp.SearchProperties.Add(new PropertyExpression(WpfWindow.PropertyNames.ClassName, “HwndWrapper”, PropertyExpressionOperator.Contains));

      //Line from what I wrote
      myApp.SearchProperties[WpfWindow.PropertyNames.ClassName] = “HwndWrapper”;

      Could you please let me know what is the difference? Why Add ? Why new PropertyExpression?

  10. vikram says:

    I am facing problem while finding the child element of control which is Winclient type.

    There are some clickable tab inside this control for which i am not getting type of that control or name to search

    I try to take getchildren of this control but in row it is giving blank.

    UITestControlCollection tt= this.UIMap.UIWorkClaimsWindow.UIShacunMarshWindow.UIDockTabControl_6Window.UIDockTabControl_6Client.GetChildren();
    foreach(WinClient ss in tt)
    {
    string mm = ss.Name;
    }

    PLease suggest how to handle this control

    Need resolve this issue.
    I am facing problem while finding the child element of control which is Winclient type.

    There are some clickable tab inside this control for which i am not getting type of that control or name to search

    I try to take getchildren of this control but in roe it is giving blank.

    UITestControlCollection tt= this.UIMap.UIWorkClaimsWindow.UIShacunMarshWindow.UIDockTabControl_6Window.UIDockTabControl_6Client.GetChildren();
    foreach(WinClient ss in tt)
    {
    string mm = ss.Name;
    }

    PLease suggest how to handle this control

    Need resolve this issue.

      • vikram says:

        Hi Karthik,
        Thanks for response.
        I did the same as you suggest ..But this doesn’t solve my issue.

        While debuging, we don’t get any values to enumerate.
        Again I would like describe you scenario,UImap showing it is the control type Cleint,
        and in GUI its like bar at bottom of application containing 3 clickable tab say A,B,C.
        When click on A,it open a grid table,when click on B it open other grid table and so on..
        Though test builder ,we cannot able to catch the UImap of any clickable tab A,B or C means when we take the cross hair on A ,testbuilder highlight the complete bar.
        So in UImap there is no OR for A,B or C.
        However I had a discussion with Dev team and found that this is a SyncFusion controls. Which is a third party control .
        Could you please suggest further how to handle this in Coded ui.
        Is there any way to send snap shot that i can describe it properly,

        Regards,
        Vikram

  11. Hafeez says:

    Sir,

    What is the difference between videos here and the Udemy course.
    Can I get some discount if I want to buy Udemy course videos for Coded ui 2015
    Thank you sir.

  12. jaya gudi says:

    Hello Kathik,

    Need your help Please !!!

    Currently i have field Signature Field where user has to make signature, since it mandatory .. how can i handle it.

    its getting identified as HTML Custom Control, please suggest.

    Regards
    Jaya

    • Karthik kk says:

      You can still automate custom control if its recognized with unique identifiers in Coded UI test.

      Thanks,
      Karthik KK

  13. Bala says:

    Hi Karthik,

    Am working web application automation with coded UI handcoding. They used kendo UI. Coded ui entering the text box values are very slow.
    Is there any option to improve the speed of enter the text in the text box. I tried keyboard.sendKeys and .Text method.

    Thanks,
    Bala

    • Karthik kk says:

      Instead of Keyboard.Sendkey(), you can sometimes directly set the value to the control

      E.g
      CustomTextbox.Text = "ExecuteAutomation"

      Thanks

  14. Raj says:

    Hi Karthk,
    Thank u for videos.
    I would like to generate custom reports for coded ui test at each step level and at testcase level, is there a way to create lie this. and also it should show kind of piecharts.
    Example:
    I have test case with 10 steps, when I execute report should show results for each step and overall testcase level result.

    Kindly help me on this

  15. Yogesh Kolhe says:

    Hi Karthik,

    can you provide few lines of code for selecting date from DateTimePicker control using Mouse.Click()

  16. Suganya says:

    Hi Karthik,

    I am started automating windows application (MSAA technology). it is taking more time to identify the controls. is there any way to optimize it

  17. Vinoth says:

    Hi Karthik,
    Thanks for the videos.
    Can u share the framework you have to work and understand CodedUI better .
    I have QTP Automation Background and i am new to CodedUI.
    If you can provide the framework I will understand on my own to the best.
    Please consider this as my humble request and send the framework in zipfile/any format to the mail id mentioned .. It would be really helpful for me.
    I need to create the framework for WPF application . I hope that you will help me.

  18. Vinoth says:

    Even if you have the framework for HTML application send it to me. I will try to understand and change according to WPF .

  19. Prakruthi says:

    Hi Karthik,

    i am new to this coded ui and i had few questions,
    1. couldn’t click on a button while automating but able to click on button manually even after defining the parent child objects, i am able to highlight the button which i need to click, could you please let me know what might be the issue.
    2. a page contains 5 textboxes and there is no properties provided for all and i need to enter text into 5th textbox how do i proceed.

  20. karthick says:

    Hi Karthik,

    Appreciate your blog, really helpful.

    I am working on winform application, I can automate most of the components using coded UI. However there is an obstacle on my application. There is a Datagrid which is design with the help of Third party client[Syncfusion]. When I am try to locate data-grid cell value control using coded UI test builder I can find only the entire data-grid controls, because it’s custom client. I have googled and find some link to integrate Syncfusion with coded UI but I constantly failed. Here the blog link: https://help.syncfusion.com/windowsforms/grid/coded-ui-automation. If you come across with similar issue can you kindly share your Knowledge experience, perhaps it helpful if you could you do this.

    Simple Example to understand my problem is: Open excel and try to find cell value control using coded UI [Similar issue ].

    I tried to locate with Inspect.exe , UIspy and coded UI nothing works on case.

    Awaiting for your reply and thanks in Advance

  21. vikram says:

    Hi Karthik,
    I am working to automate window application.
    I am facing problem to handle the datatime picker calendar as through test builder not able to get the property of calender.
    Please help to handle it pick the desire date from calendar.

    Regards,
    Vikram

  22. anjaneyulu says:

    Can we automate windows application which is developed in visual basic using coded UI? I have tried to record the application but it’s not able to identify the controls. Is there any specific plugins are needed to automate this?

    • Karthik kk says:

      Application developed with VB should work without any problem with Coded UI, but see if there is any 3rd party plugins being used with the application such as Telerik controls, if so, you need to add those DLLs for your test project.

      Thanks,
      Karthik KK

  23. Sathees says:

    Guys ,

    Please help me out out to enter value/Text at edit box(Username/Password fields) and how select date in codedUI during Windows phone app Automating….

  24. Chinta says:

    Hi Karthik,

    What is the difference between this course and the udemy course, as per my job requirement I need to automate windows application using Coded UI.
    Do your udemy course purely focus on automating WIN applications, if so I would like to purchase it. Please let me know.

    Thanks,
    Chinta

Leave a Reply

Your email address will not be published. Required fields are marked *