Weitere Kapitel dieses Buchs durch Wischen aufrufen
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.
Bitte loggen Sie sich ein, um Zugang zu diesem Inhalt zu erhalten
Sie möchten Zugang zu diesem Inhalt erhalten? Dann informieren Sie sich jetzt über unsere Produkte:
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.
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.”
An Anti-Pattern is a common solution to a problem, that albeit being common, its effectiveness is questionable and often counterproductive.
- Investigating Failures
- Chapter 13
Neuer Inhalt/© ITandMEDIA