Using Coded UI & Using Test Manager
In the previous step, we introduced test automation and using Selenium for automating your tests. In this step, we will explore functional test automation and using coded UI for functional testing.
What is Functional Testing
Functional testing is the process of verifying that your application does what it is designed to do. With functional testing, you want to test each functional element of your software to verify that the output is correct. It is more important to test what the system does rather than testing how it does it. To achieve this, you need to interface with a User Interface (UI).
Functional Test Automation with Coded UI
Functional test automation allows DevOps teams to treat functional, UI-oriented tests, similarly to unit tests with automation. Unlike unit tests, functional UI tests require that the application is deployed to an environment. And unlike manual testing, UI-coded functional tests allow you to short-circuit the application layers (if needed) to insert or validate data.
Coded user interface testing can be employed in several schemes:
Many frameworks support coded UI tests, including:
- Microsoft Visual Studio Coded UI Test
- Telerik Progress Studio UI Test
- Selenium browser automation
Other tools are only intended to be standalone functional test platforms, so pipeline integration is outside the scope of this topic.
Alternatives tools include:
- Microsoft Test Manager and Microsoft Lab Manager
- IBM Rational Functional Tester
- HP Unified Functional Testing (formerly QuickTest)
Adding CUIT Functional Test
Like other supported functional test automation options, Visual Studio Coded UI Tests may be added to a release pipeline. Adding CUIT functional tests to the release pipeline is a simple process, as follows:
-
Open the release definition
-
Add the PowerShell task to start test VMs
-
Add the task Copy Test to copy tests to test VMs
-
Add the task Deploy TestAgent to add test agents to the test VMs
-
Add the task Run Tests
-
Configure the Run Tests task. Set up authentication with computer name and IP. Note that you can do this with variables
-
Add PowerShell task to shut down test VMs
If errors occur when running tests, you might see this message:
Automation engine is unable to playback the test because it is not able to interact with the desktop. This could happen if the computer running the test is locked or its remote session window is minimised.
- Visual Studio Code UI Test
- Telerik Progress Studio Coded UI Test
- Selenium Browser Automaton
- Autologon
Using Test Manager
-
Providing the ability to create and manage test suites and cases, which assists in creating comprehensive and holistic automated tests.
-
Determining the appropriate sequence of automated tests.
-
Using Test Manager to facilitate exploratory testing, especially to support user acceptance. Because these tests (and found defects) can be recorded, exploratory tests might be used as a foundation for expanding test automation.
-
Test Manager supports multiple functional testing platforms, such as Code UI and Selenium.
Join the discussion
Coded UI tests include functional testing of the UI controls. They let you verify that the whole application, including its user interface, is functioning correctly. Discuss how this can be very useful where there is validation in the user interface and give an example of this.Use the discussion section below and let us know your thoughts. Try to respond to at least one other post and once you’re happy with your contribution, click the Mark as complete button to check the step off, then you can move to the next step.
Microsoft Future Ready: Continuous Integration Implementation
Microsoft Future Ready: Continuous Integration Implementation
Register to receive updates
-
Create an account to receive our newsletter, course recommendations and promotions.
Register for free







