Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Mobile Test Automation with Appium

You're reading from  Mobile Test Automation with Appium

Product type Book
Published in Jun 2017
Publisher Packt
ISBN-13 9781787280168
Pages 256 pages
Edition 1st Edition
Languages
Author (1):
Nishant Verma Nishant Verma
Profile icon Nishant Verma

Chapter 8. Design Patterns in Test Automation

In the past chapters, we learned about gestures and how to implement gestures in mobile automation. Until now, we have learned almost all the major aspects of Appium, right from understanding the app to writing a basic test in cucumber and automating it. If you notice the code we have written, we can see elements of repeatability and lack of structure and design in the whole approach. There are a couple of design patterns that are used in test automation framework, and some of them are s, Singletons, Facades, Strategy design patterns, and so on.

In this chapter, we will take a look at the very popular and widely used design pattern as well as the most fundamental aspect of test automation which is assertion:

  • Page Object pattern
  • Implementing assertions

Before we get on to the concept of the Page Object pattern, let's do one more round of refactoring and introduce the concept of BaseSteps, the same is illustrated below.

We will implement this in the...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}