Selenium Python Framework Design in Keyword-Driven Testing
188 pages
English

Découvre YouScribe en t'inscrivant gratuitement

Je m'inscris

Selenium Python Framework Design in Keyword-Driven Testing , livre ebook

-

Découvre YouScribe en t'inscrivant gratuitement

Je m'inscris
Obtenez un accès à la bibliothèque pour le consulter en ligne
En savoir plus
188 pages
English
Obtenez un accès à la bibliothèque pour le consulter en ligne
En savoir plus

Description

An easy-to-understand guide that will get you acquainted with the core concepts of Selenium WebDriver Key Featuresa- Understand and work with the core concepts of Selenium WebDriver 3.0a- Learn how to design a Keyword driven framework with Database a- Find how to use Build triggers in Jenkins to automate tests DescriptionThe book starts by introducing the Selenium WebDriver 3 and Selenium Server by covering each aspect of it in detail. You will learn different concepts like instances and how instances relate to browser sessions. You will further explore the new features in Java 8 with the help of easy to follow examples. Moving on, you will create a Singleton class for fetching WebDriver instances and then explore the different kinds of waits in Selenium. You will then delve into the advanced WebDriver interactions using the Actions class and the JavascriptExecutor. You will then understand the various database operations which will help you with using the MySQL database to store our framework. Next, you will go through the TestNG framework, followed by parallel execution. Further, you will use Maven as a build tool and Jenkins as a build automation tool. You will go through the working of Selenium Grid along with Mobile automation. Lastly, you will be taken through Selenium 4 and it's AI integrated features.What will you learna- Learn the process of building a Selenium Framework a- Understand the Keyword Driven Framework concept a- Work with Document Object Model to access page elementsa- Integrate Maven and Jenkins with Selenium WebDrivera- Use Selenium Grid to run multiple tests across Who this book is forThis book has been designed for Automation developers who would like to build a Keyword Driven framework that fetches keywords from Database. It is also intended for audiences who are interested in understanding Selenium and designing a framework.Table of Contents1. First look at Selenium WebDriver and Web Elements 2. Looking at the various WebDrivers3. A brief look at Java 84. Deep dive into Selenium WebDriver5. Actions class and the JavascriptExecutor6. WebDriver Events7. Database Operations8. Introduction to TestNG framework9. Parallel Execution10. Understanding Maven11. Jenkins Introduction and Scheduling12. Selenium grid and executing in the cloud13. Mobile test automation using Appium14. A look at Selenium-4About the AuthorPinakin Chaubal, a BE (Computer Science) with 19+ years of experience in the IT area. He has done PMP, ISTQB, HP0-M47 (QTP 11.0 Functional testing expert), and INS-21(General Insurance). He is working as an Automation Architect at Intellect Design Arena Ltd. (Previously Polaris Consulting). Previously he has worked with companies like Patni, Accenture, ACS International (USA), L&T Infotech(USA & India), Polaris Financial Technology, and SQS. He carries six years of onsite experience in the US and eight months in Hong Kong & China, working closely with the client and getting involved in senior management and stakeholder meetings. The clients that he has worked for are YES Bank, HSBC, Travelers Insurance, Harleysville Insurance, Albertsons retail chain, Bellsouth Telecommunications GE-Fleet Services, and GE-Supply. He is the creator of Youtube channel 'Automation Geek, ' which teaches PMP, ISTQB, Test Automation using Selenium and Cucumber, and Performance testing using JMeter 3.0. He is the author of 'Page Object Model using Selenium WebDriver and Java' and 'Selenium WebDriver Quick Start Guide'. He is also the reviewer of the newly released book on Selenium Frameworks - 'Selenium Framework Design in Data-Driven Testing' by Carl Cocchiaro.

Sujets

Informations

Publié par
Date de parution 10 avril 2020
Nombre de lectures 0
EAN13 9789389423884
Langue English
Poids de l'ouvrage 4 Mo

Informations légales : prix de location à la page 0,0600€. Cette information est donnée uniquement à titre indicatif conformément à la législation en vigueur.

Extrait

Selenium Python Framework Design in Keyword-Driven Testing
Automate your Test Using Selenium and Appium
by Pinakin Ashok Chaubal
FIRST EDITION 2020
Copyright © BPB Publications, India
ISBN: 978-93-89423-877
All Rights Reservep. No Part of this Pulication may e rePropucep or pistriutep in any form or y any means or storep in a pataase or retrieval system, without the Prior written Permission of the Pulisher with the excePtion to the Program listings which may e enterep, storep anp executep in a comPuter system, ut they can not e rePropucep y the means of Pulication.
LIMITS OF LIABILITY AND DISCLAIMER OF WARRANTY The information containep in this ook is true to correct anp the est of author’s & Pulisher’s knowlepge. The author has mape every effort to ensure the accuracy of these Pulications, ut cannot e help resPonsile for any loss or pamage arising from any information in this ook. All trapemarks referrep to in the ook are acknowlepgep as ProPerties of their resPective owners.
Distributors:
BPB PUBLICATIONS
20, Ansari Roap, Darya Ganj
New Delhi-110002
h: 23254990/23254991
MICRO MEDIA ShoP No. 5, Mahenpra Chamers,
150 DN Rp. Next to CaPital Cinema,
V.T. (C.S.T.) Station, MUMBAI-400 001
h: 22078296/22078297
DECCAN AGENCIES
4-3-329, Bank Street,
Hyperaap-500195
h: 24756967/24756400
BPB BOOK CENTRE
376 Olp LajPat Rai Market,
Delhi-110006
h: 23861747
ulishep y Manish Jain for BB ulications, 20 Ansari Roap, Darya Ganj, New Delhi-110002 anp rintep y him at RePro Inpia Ltp, Mumai
Dedicated to
Arnav My son, who brought sunshine to my life.
About the Author
Pinakin Ashok Chaubal is esign Arenaan Automation specialist working in Intellect D Ltd. He has 19+ years of experience in the IT indus try and has worked with IT giants like Accenture and L&T Infotech Ltd. He has worked in the US for six years for Travelers and in Hong-Kong China for one year for H SBC. He has been involved in designing and maintaining several test automation f rameworks like Page Object Model, Keyword Driven frameworks, Cucumber BDD frameworks, and TestNG based frameworks. He guides and mentors project teams on adopting Test Automation for their projects.
Pinakin has written two books on Selenium WebDriver and has a Youtube channel that teaches various concepts related to Test Automation to people. Pinakin also has a 3-in-1 video course on Jmeter on one commercial website. Currently, he is creating a blogsite for various concepts related to Selenium W ebDriver.
Acknowledgement
There are a few people I want to thank for the continueP anP ongoing support they have given me Puring the writing of this book. First anP foremost, I woulP like to thank my parents, who supporteP me throughout.
This book woulPn’t have happeneP if I haPn’t haP th e support from Nitin Chourey, who helpeP in reviewing this book anP proviPe valuable feePback. Finally, I woulP like to thank BB ublications for giving me this opportunity to write my first book for them.
Preface
Test Automation has emerged as a savior in terms of saving manual testing time. Test automation reduces the cost of the project by lever aging testing for Regression, Smoke, and Sanity. It also helps in less manual int ervention and thus helps in test execution in off-hours.
Selenium WebDriver is an open-source test automatio n tool that can be used efficiently for test automation. It is the market leader in tes t automation and proves to be very powerful in terms of automating application testing quickly. With the emergence of Agile and Scrum, Selenium WebDriver proves to be very eff icient in reducing the iteration or sprint time, thus making it faster for the application to be made live.
This book is focusing on quickly learning Selenium concepts and, at the same time, creating a framework parallelly. I have shown how t o create a Keyword driven framework explaining every concept in detail. We st art with the basics and get into more complicated stuff with each chapter. Each chap ter has exercises that will help you in understanding the concepts clearly. Over the 14 chapters in this book, you will learn the following: Chapter 1: First look at Selenium WebDriver and Web Elements introduces Test automation and states why it is required. It explor es the different test automation tools available, differences between Selenium WebDriver v ersions 2 and 3, the WebDriver architecture, understand the various concepts like WebDriver and WebElements. Eventually, we know the basic operations on WebElem ents.
Chapter 2: Looking at the various WebDriversexploring WebDriver concepts starts like driver instances, instantiating Firefox browse r sessions, what is headless firefox, Instantiating chrome sessions, what is headless chrome, instantiating Internet Explorer, Microsoft Edge, and Safari browsers. We understand what a WebDriverManager is used for. Finally, we see the setup of the WebDrive rManager class.
Chapter 3: A brief look at Java 8at a brief overview of Java 8. Concepts such looks as functional programming, lambda expressions, Stre ams, Map function, method references, and filtering web elements from the array list are explored. Chapter 4: Deep dive into Selenium WebDrivera deep dive in Selenium is WebDriver. It covers concepts like ThreadLocal, Sin gleton pattern, and creating a Singleton Driver for WebDriver instances, Handling pop-up windows, alerts, and frames, Waiting for elements to load using Explicit wait, understanding fluent delays, Handling page loads and Ajax call completion. Chapter 5: Actions class and the Javascript Executo r is a chapter on Advanced interactions with Selenium WebDriver. This chapter teaches advanced communications, actions class, creating a reusable class for Actions, understanding the JavascriptExecutor, and building a generic Java script utility class for the framework and integrating with the frame.
Chapter 6: WebDriver Eventsintroduces the reader to WebDriver Events. This ch apter covers what WebDriver events are, the process of ha ndling events, understand how EventFiringWebDriver and WebDriverEventListener wor k, registering single and multiple listeners with the EventFiringWebDriver, U n-registering the listener, Understand Log4J API, different methods in the WebD riverEventListener interface and integration with the framework.
Chapter 7: Database Operationsthe reader to database operations, and introduces covers Learn the various CRUD operations, Create a properties file for database configurations, Create queries in MySql workbench to retrieve data from the four tables,
Understand what a cached RowSet is Create a class f or database operations, Integrating the new class with the framework
Chapter 8: Get Introduced to TestNGthe TestNG framework, and covers introduces Learn what a testing framework means, Get added to TestNG, Understand the TestNG xml, Learn the different annotations that TestNG pr ovides, Understand the concept of Test classes and Learn what Test Suites are.
Chapter 9: Parallel Execution explains the concept of parallel execution with th e Selenium webdriver. This chapter covers Introductio n to TestNG groups, Learn how to execute tests in a test suite in serial fashion, Ge t introduced to various options available for parallel execution in TestNG xml, to create three tests which perform the same class but with different parameters and Fetchi ng test cases from the database based on these parameters
Chapter 10: Understanding MavenMaven as a build tool. This chapter introduces covers Introduction to Maven, Setting-up Maven, and Maven build Lifecycle, Maven command line calls, Goals in Maven, Packaging, Plug -ins, Triggering tests from TestNG xml, Using Dataprovider instead of For loops Using Assertions, Incorporating Extent Reports and Introduction to Git and GitHub
Chapter 11: Jenkins Introduction and SchedulingThis chapter introduces the reader to Jenkins as a Build Automation tool. This chapter covers Setting-up Jenkins, Executing the Maven build from the command line, cr eate and execute a Jenkins job and Scheduling a Jenkins job
Chapter 12: Selenium grid and executing in the clou dchapter talks about This Selenium Grid and executing in the cloud. This chap ter covers Introducing RemoteWebDriver, Learning about Selenium StandAlone Server, Learning about the RemoteWebDriver Client, Steps to convert a regular script to use RemoteWebDriver Server, Looking at the Hub, Knowing the Node, Hub C onfiguration Parameters, Node Configuration Parameters, Specifying configuration using JSON files. Changes to the SingletonDriver class, Introducing BrowserStack, Se tting-up BrowserStack
Chapter 13: Mobile test automation using Appiumchapter talks about Appium This as a tool for mobile automation. This chapter cover s Types of Mobile applications, Introducing Appium, Learning the Appium architectur e, Setting up Appium, Changes to pom.xml for Appium and Changes to the framework Chapter 14: A look at Selenium-4the reader to newly introduced features Introduces of Selenium 4
Downloading the code bundle and coloured images:
Please follow the link to download the Code Bundleand theColoured Imagesof the book:
https://rebrand.ly/f242d
Errata
We take immense pride in our work at BPB Publicatio ns and follow best practices to ensure the accuracy of our content to provide with an indulging reading experience to our subscribers. Our readers are our mirrors, and w e use their inputs to reflect and improve upon human errors if any, occurred during t he publishing processes involved. To let us maintain the quality and help us reach ou t to any readers who might be having difficulties due to any unforeseen errors, p lease write to us at :
errata@bpbonline.com Your support, suggestions and feedbacks are highly Publications’ Family.
appreciated by the BPB
  • Univers Univers
  • Ebooks Ebooks
  • Livres audio Livres audio
  • Presse Presse
  • Podcasts Podcasts
  • BD BD
  • Documents Documents