Coverart for item
The Resource Selenium Design Patterns and Best Practices

Selenium Design Patterns and Best Practices

Label
Selenium Design Patterns and Best Practices
Title
Selenium Design Patterns and Best Practices
Creator
Subject
Language
eng
Summary
Selenium WebDriver is a global leader in automated web testing. It empowers users to perform complex testing scenarios with its simple and powerful interface. This guide will provide you with all the skills you need to successfully create a functional Selenium test suite. Starting from the very beginning of the Selenium IDE, this book will show you how to transition into a real programing language such as Ruby or Java. You will quickly learn how to improve your code quality with refactoring and the skills needed to plan for the future development of your website to future-proof your test suite. With ample test examples running against a life-like e-commerce store and detailed step-by-step code review and explanations, you will be ready to test any challenge web developers might throw your way. This book is intended for anyone who wants to create a test suite that is easy to maintain by expanding your knowledge until you feel truly confident and comfortable with Selenium
Member of
Cataloging source
IDEBK
http://library.link/vocab/creatorName
Kovalenko, Dima
Dewey number
005.1
Index
no index present
Language note
English
LC call number
QA76.76.T48
LC item number
B76 2007
Literary form
non fiction
Nature of contents
dictionaries
Series statement
Community Experience Distilled
http://library.link/vocab/subjectName
  • Application software
  • Scripting languages (Computer science)
  • Web site development
  • COMPUTERS
  • COMPUTERS
  • COMPUTERS
  • Application software
  • Scripting languages (Computer science)
  • Web site development
Label
Selenium Design Patterns and Best Practices
Instantiates
Publication
Antecedent source
unknown
Carrier category
online resource
Carrier category code
  • cr
Carrier MARC source
rdacarrier
Color
multicolored
Content category
text
Content type code
  • txt
Content type MARC source
rdacontent
Contents
  • Cover; Copyright; Credits; Foreword; About the Author; Acknowledgments; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Writing the First Test; Choosing Selenium over other tools; Right tool for the right job; Price; Open source; Flexibility; The Record and Playback pattern; Advantages of the Record and Playback pattern; Disadvantages of the Record and Playback pattern; Getting started with the Selenium IDE; Installing the Selenium IDE; Recording our first test; Saving the test; Understanding Selenium commands; Reading Selenese; Comparing Ruby to Selenese
  • Comparing Selenium commands in multiple languagesWriting a Selenium test in Ruby; Introducing Test::Unit; Introducing asserts; Interactive test debugging; Summary; Chapter 2: The Spaghetti Pattern; Introducing the Spaghetti pattern; Advantages of the Spaghetti pattern; Disadvantages of the Spaghetti pattern; Testing the product review functionality; Starting a product review test; Locating elements on the page; Using a browser''s element inspector; Introducing locator strategies; Using advanced locator strategies; Writing locator strategy code; Using chained selector strategy methods
  • Using the CSS selectorUsing XPath; Implementing clicks and assertions; Duplicating the product review test; Reasons for failures; The Chain Linked pattern; The Big Ball of Mud pattern; Summary; Chapter 3: Refactoring Tests; Refactoring tests; The DRY testing pattern; Advantages of the DRY testing pattern; Disadvantages of the DRY testing pattern; Moving code into a setup and teardown; Removing duplication with methods; Removing external test goals; Using a method to fill out the review form; Reviewing the refactored code; The Hermetic test pattern; Advantages of the Hermetic test pattern
  • Disadvantages of the Hermetic test patternRemoving test-on-test dependence; Using timestamps as test data; Extracting the remaining common actions to methods; Reviewing the test-on-test dependency refactoring; Creating generic DRY methods; Refactoring with generic methods; The random run order principle; Advantages of the random run order principle; Disadvantages of the random run order principle; Summary; Chapter 4: Data-driven Testing; Data relevance versus data accessibility; Hardcoding input data; Hiding test data from tests; Choosing the test environment; Introducing test fixtures
  • Parsing fixture dataUsing fixture data in the tests; Using fixtures to validate products; Testing the remaining products; Using an API as a source of fixture data; Using data stubs; The default values pattern; Advantages of the default values pattern; Disadvantages of the default values pattern; Merging the default values pattern and the faker library; Implementing faker methods; Updating the comment test to use default values; Summary; Chapter 5: Stabilizing the Tests; Engineering the culture of stability; Running fast and failing fast; Running as often as possible
Control code
892045656
Dimensions
unknown
Extent
1 online resource
File format
unknown
Form of item
online
Isbn
9781322152974
Level of compression
unknown
Media category
computer
Media MARC source
rdamedia
Media type code
  • c
http://library.link/vocab/ext/overdrive/overdriveId
780f3294-b2d4-447d-ba76-8ec307dd326a
Quality assurance targets
not applicable
Reformatting quality
unknown
Sound
unknown sound
Specific material designation
remote
System control number
(OCoLC)892045656
Label
Selenium Design Patterns and Best Practices
Publication
Antecedent source
unknown
Carrier category
online resource
Carrier category code
  • cr
Carrier MARC source
rdacarrier
Color
multicolored
Content category
text
Content type code
  • txt
Content type MARC source
rdacontent
Contents
  • Cover; Copyright; Credits; Foreword; About the Author; Acknowledgments; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Writing the First Test; Choosing Selenium over other tools; Right tool for the right job; Price; Open source; Flexibility; The Record and Playback pattern; Advantages of the Record and Playback pattern; Disadvantages of the Record and Playback pattern; Getting started with the Selenium IDE; Installing the Selenium IDE; Recording our first test; Saving the test; Understanding Selenium commands; Reading Selenese; Comparing Ruby to Selenese
  • Comparing Selenium commands in multiple languagesWriting a Selenium test in Ruby; Introducing Test::Unit; Introducing asserts; Interactive test debugging; Summary; Chapter 2: The Spaghetti Pattern; Introducing the Spaghetti pattern; Advantages of the Spaghetti pattern; Disadvantages of the Spaghetti pattern; Testing the product review functionality; Starting a product review test; Locating elements on the page; Using a browser''s element inspector; Introducing locator strategies; Using advanced locator strategies; Writing locator strategy code; Using chained selector strategy methods
  • Using the CSS selectorUsing XPath; Implementing clicks and assertions; Duplicating the product review test; Reasons for failures; The Chain Linked pattern; The Big Ball of Mud pattern; Summary; Chapter 3: Refactoring Tests; Refactoring tests; The DRY testing pattern; Advantages of the DRY testing pattern; Disadvantages of the DRY testing pattern; Moving code into a setup and teardown; Removing duplication with methods; Removing external test goals; Using a method to fill out the review form; Reviewing the refactored code; The Hermetic test pattern; Advantages of the Hermetic test pattern
  • Disadvantages of the Hermetic test patternRemoving test-on-test dependence; Using timestamps as test data; Extracting the remaining common actions to methods; Reviewing the test-on-test dependency refactoring; Creating generic DRY methods; Refactoring with generic methods; The random run order principle; Advantages of the random run order principle; Disadvantages of the random run order principle; Summary; Chapter 4: Data-driven Testing; Data relevance versus data accessibility; Hardcoding input data; Hiding test data from tests; Choosing the test environment; Introducing test fixtures
  • Parsing fixture dataUsing fixture data in the tests; Using fixtures to validate products; Testing the remaining products; Using an API as a source of fixture data; Using data stubs; The default values pattern; Advantages of the default values pattern; Disadvantages of the default values pattern; Merging the default values pattern and the faker library; Implementing faker methods; Updating the comment test to use default values; Summary; Chapter 5: Stabilizing the Tests; Engineering the culture of stability; Running fast and failing fast; Running as often as possible
Control code
892045656
Dimensions
unknown
Extent
1 online resource
File format
unknown
Form of item
online
Isbn
9781322152974
Level of compression
unknown
Media category
computer
Media MARC source
rdamedia
Media type code
  • c
http://library.link/vocab/ext/overdrive/overdriveId
780f3294-b2d4-447d-ba76-8ec307dd326a
Quality assurance targets
not applicable
Reformatting quality
unknown
Sound
unknown sound
Specific material designation
remote
System control number
(OCoLC)892045656

Library Locations

    • Ellis LibraryBorrow it
      1020 Lowry Street, Columbia, MO, 65201, US
      38.944491 -92.326012
    • Engineering Library & Technology CommonsBorrow it
      W2001 Lafferre Hall, Columbia, MO, 65211, US
      38.946102 -92.330125
Processing Feedback ...