Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Mobile Test Automation with Appium

You're reading from   Mobile Test Automation with Appium Mobile application testing made easy

Arrow left icon
Product type Paperback
Published in Jun 2017
Publisher Packt
ISBN-13 9781787280168
Length 256 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
 Verma Verma
Author Profile Icon Verma
Verma
Arrow right icon
View More author details
Toc

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
Visually different images