Skip to main content

Investigating Failures

  • Chapter
  • First Online:
  • 1831 Accesses

Abstract

Here’s a true story: In the previous chapter we completed our first test, and it passed consistently. My original intent was to continue showing you more tests, then write a chapter about investigating failures. However, reality struck and changed my plans.

This is a preview of subscription content, log in via an institution.

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   44.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   59.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Notes

  1. 1.

    A pull-request is an operation in GitHub that is used to send source code contributions to an open source project owned by another user. It is called “pull-request” because the contribution isn’t automatically pushed to the owner’s repository, but rather a message is sent to him asking him to pull the changes from the contributor’s repository. This way the owner has control over the contributions and can accept or reject them.

  2. 2.

    Extension methods are a C# language feature, which allow us to associate methods to existing classes or interfaces, as if they were instance members of these classes or of all classes implementing those interfaces. These methods are in fact simple static methods, but they make the code more elegant. The idea is that the object on which the extension method acts upon (in our case, WebDriver), is passed to the first parameter, which is specifically annotated with the keyword this in the method declaration (as you can see in Listing 13-3). You can read more about C# extension methods at https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/extension-methods or simply search the web for “C# extension methods.”

  3. 3.

    An Anti-Pattern is a common solution to a problem, that albeit being common, its effectiveness is questionable and often counterproductive.

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2018 Arnon Axelrod

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Axelrod, A. (2018). Investigating Failures. In: Complete Guide to Test Automation. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-3832-5_13

Download citation

Publish with us

Policies and ethics