Skip to Content
Testing ASP.NET Web Applications
book

Testing ASP.NET Web Applications

by Ben Hall, Jeff McWherter
October 2009
Intermediate to advanced
430 pages
12h 45m
English
Wrox
Content preview from Testing ASP.NET Web Applications

5.3. Importance of Automated UI Testing

We feel that UI testing is an important part of a project. Though the tests are still automated, they have to be handled in a slightly different fashion and different considerations need to be taken into account when creating them.

With unit tests, the focus is on an isolated and targeted method with a clearly defined set of inputs and outputs, and as such, it is easier to understand the flow of the test and the interactions it is performing. With UI tests you lose this ability. This means that you need to combat this by reconsidering how you write and structure your tests to take this into account. As with most parts of software development, if you lose something — such as readability or automation — then you need to react by replacing or mitigating the impact. This is solved by paying more attention to another area that will help combat this. Because it is more difficult to understand the internals of the system when dealing with a black box, you need to make UI tests even more readable.

UI tests also have a different focus and role than unit tests. They both focus on catching regression bugs, but unit tests, and in particular TDD, focus on design and improving testability of the code base. Sadly there isn't this relationship to the UI. The UI tests can provide a form of documentation for your UI and the UI interface about how the software should work. If you combine this with your BDD or acceptance testing then you can create a very effective ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Pro ASP.NET Web API: HTTP Web Services in ASP.NET

Pro ASP.NET Web API: HTTP Web Services in ASP.NET

Tugberk Ugurlu, Alexander Zeitler, Ali Kheyrollahi
ASP.NET 4 Unleashed

ASP.NET 4 Unleashed

Stephen Walther, Kevin Hoffman, Nate Dudek

Publisher Resources

ISBN: 9780470496640Purchase book