Testing Web Applications with CodedUI

This course will teach web developers and functional testers how to automate testing of their websites by using Microsoft CodedUI.
Course info
Rating
(150)
Level
Intermediate
Updated
Mar 26, 2015
Duration
3h 47m
Table of contents
Course Introduction
Getting Started
Building a Maintainable Automation Framework
Common Web Test Scenario Solutions
Cross Browser Playback
Integration With Lab Management and MTM
Daily Test Automation Build
Description
Course info
Rating
(150)
Level
Intermediate
Updated
Mar 26, 2015
Duration
3h 47m
Description

This course is specifically targeted at web developers who want to test their websites every time they commit a new change to see if they did not break anything in the UI. This course will teach web developers and functional testers how to automate testing by using CodedUI. It will show specific web-related scenarios and how you can test them using CodedUI. With the web, there are specific things that look hard to test; this course will show how to solve these problems. It will also show how to integrate the tests you build with the integrated test environment called MTM. We will go through the steps of setting up your test environment, running the tests on a daily basis, and scaling out the test environment as needed. Getting this in place is crucial if you want to move to continuous delivery of your applications.

About the author
About the author

Marcel is the co-founder and CTO of Xpirit, a high-end consulting firm based in Hilversum, Netherlands. Helping organizations transform towards a high speed, innovative, and productive organization is his passion.

More from the author
More courses by Marcel de Vries
Section Introduction Transcripts
Section Introduction Transcripts

Course Introduction
Welcome to this Pluralsight course on Testing Web Applications with CodedUI. In this course we will have a look at how you test web applications using the Visual Studio Premium tools. Before we get started, I want to show you the goals I set for this course, and how the modules are structured. This will give you an idea what you will learn in each module, and give you the opportunity to pick and choose what you feel fits your needs best. My name is Marcel de Vries, and I'm the author of this Pluralsight course. When you follow this course and you still have questions left unanswered, please reach out to me on Twitter @marcelv and I'll try to help you as soon as possible.

Getting Started
So let's get started with the first module of this Pluralsight course on Web Application Testing with CodedUI. I call this first module Getting Started since we will learn all the fundamentals in CodedUI and how to get started. The things you'll learn in this module are a prerequisite for all subsequent modules. My name is Marcel de Vries, and I'm the Pluralsight author of this course. When you're watching this module and still have questions left unanswered, please reach out to me on Twitter @marcelv and I will try to help you as soon as possible.

Building a Maintainable Automation Framework
In this module we will build on the foundation we learned in module 2, How CodedUI Works. In this module we will have a close look at how you can build a maintainable test framework. The issues all test automation tools face is the fact that the first set of tests are fairly easy to build, either with a record and playback technique or by hand coding against the object model, but the problem they all face is that once the application becomes bigger and more complex, the automation code becomes a gigantic ball of spaghetti code. At a certain point you see that implementing a new feature starts to incur more cost on the test automation side, and the next step is most of the time we stop testing that code. This is something we need to avoid, because otherwise test automation would never be feasible as a long-term solution. The past few years I worked with a lot of customers helping them implement test automation. In those years I came to learn some patterns that I would like to share that really helped me tidy up the code and the way you build maintainable tests. Welcome to the third module of this Pluralsight course on testing web applications with CodedUI. This module is called, Building a Maintainable Automation Framework. My name is Marcel de Vries, and I'm the Pluralsight author of this course. Please don't hesitate to reach out to me on Twitter @marcelv when you still have questions unanswered when taking this course. I will try to help you as soon as possible.

Common Web Test Scenario Solutions
In this module, we will have a look at common scenarios you will encounter when testing web applications and ways how to solve this with CodedUI. When you look at web applications, you see that we have different ways user interfaces are built. Nevertheless, you see some common scenarios that are pretty common, but also sometimes challenging to test. In my engagements with customers, we solve many of these scenarios in a SOLID and reproducible way, and in this module we will have a look at the series of these scenarios and how you can test these. Welcome to the fourth module of this Pluralsight course on testing web applications with CodedUI. This module is called Common Web Test Scenario Solutions. My name is Marcel de Vries, and I'm the Pluralsight author of this course. Please don't hesitate to reach out to me at Twitter @marcelv when you still have questions unanswered when taking this course. I will try to help you as soon as possible.

Cross Browser Playback
With the trend of the web moving forward to HTML5, we see more and more applications being built with HTML and JavaScript, and with that we see a ton of libraries that emerged that all claim to work cross browser. Unfortunately, this claim is not always true. Therefore, whether you're using these frameworks or not, you should test the most crucial parts of your website or your application on a variety of browsers. But this is a tedious job, running through all of those scenarios on each and every browser and see if the application runs as expected, especially these days where consumers are still using Internet Explorer and developers are using Chrome. The number of bugs you see in websites these days seem to become larger with _____, at least from an end user perspective. Therefore, it's important to find a way to efficiently test your application's UI with multiple browsers, and preferably in an automated way. This is what we're going to talk about in this module. Welcome to the fifth module of this Pluralsight course, Testing Web Applications with CodedUI. This module is called Cross Browser Playback. My name is Marcel de Vries, and I'm the Pluralsight author of this course. When you go through this course and have additional questions unanswered, please reach out to me on Twitter @marcelv and I will try to help you as soon as possible.

Integration With Lab Management and MTM
By now we have seen how we can test our applications with CodedUI, but test automation is part of a larger part of the application lifecycle. Test automation is, for example, one of the enablers of continuous delivery, and it can function, for example, as a quality gate before you deploy an application to production. In order to speed up the testing and to make it an integral part of your test cycle, this module will dive into the way we can integrate test automation with CodedUI with manual testing products _____ as Microsoft Task Manager that is part of the ALM tools Microsoft provides. MTM is a manual testing tool, but it also has capabilities to let testers run automated tests on their own machine or even on a set of test machines that are part of a test lab. In this module we have a detailed look at how we can enable test automation test runs and how we can use the test lab setup with Lab Management to run our tests on a group of machines at once. Welcome to this module, Integration with Lab Management and MTM for this Pluralsight course on testing web applications with CodedUI. My name is Marcel de Vries, and I'm the Pluralsight author of this course. When you go through this course and you have any questions left unanswered, please reach out to me at Twitter @marcelv, and I'll try to help you as soon as possible.

Daily Test Automation Build
In the previous modules we have learned how to build CodedUI tests and how we can run them on a test environment. This was all still manual. We are now able to run our tests using Microsoft Test Manager, but I would like to be able to make the automated test runs part of my daily build cycle or part of my weekly integration build cycle, for example. In this module I will show you how we can set up a build that uses all we have learned until now with lab management and the test plans we created in MTM to actually run a daily build. Welcome to the final module of this Pluralsight course on testing web applications with CodedUI. This module is called Daily Build Integration. My name is Marcel de Vries, and I'm the Pluralsight author of this course. Please don't hesitate to reach out to me on Twitter @marcelv when you still have questions unanswered when taking this course. I will try to help you as soon as possible.