visualstudiocuit

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

105 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?

Leave a Reply

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