Learning Selenium Testing Tools with Python.pdf

所需积分/C币:10 2016-05-24 10:10:22 5.99MB PDF
7
收藏 收藏
举报

Learning Selenium Testing Tools with Python.pdf
able of contents Learning Selenium Testing Tools with Python Credits About the author About the reviewers www.Packtpub.com Support files, eBooks, discount offers, and more Why subscribe? Free access for packt account holders Pre relace What this book coⅴers What you need for this book Who this book is for Conventions Reader feedback Customer support Downloading the example code Errata Piracy Questions 1. Getting Started with Selenium WebDriver and Python Preparing your machine Installing python Installing the selenium package Browsing the Selenium WebDriver Python documentation Selecting an IDE Py Charm The PyDev eclipse plugin PyScripter Setting up PyCharm Taking your first steps with Selenium and Python Cross-browser support Setting up Internet Explorer Setting up Google Chrome Summary 2. Writing Tests Using unittest The unittest library The Test case class The setUp method Writing tests Running the test Adding another test Class-level setUp and tearDown methods assertions Test suites Generating the hTML test report Summary 3. Finding elements Using developer tools to find locators Inspecting pages and elements with Firefox using the Firebug add-in Inspecting pages and elements with Google Chrome Inspecting pages and elements with Internet Explorer Finding elements with Selenium WebDriver Using the find methods Finding elements using the ID attribute Finding elements using the name attribute Finding elements using the class name Finding elements using the tag name Finding elements using XPath Finding elements using CSs selectors Finding links Finding links with partial text Putting all the tests together using find methods Summary 4. USing the Selenium Python API for Element Interaction Elements of html forms Understanding the WebDriver class Properties of the WebDriver class Methods of the web driver class Understanding the WebElement class Properties of the WebElement class Methods of the web element class Working with forms, textboxes, checkboxes, and radio buttons Checking whether the element is displayed and enabled Finding the element attribute value Using the is selected method Using the clear and send keys methods Working with dropdowns and lists Understanding the Select class Properties of the Select class Methods of the select class Working with alerts and pop-up windows Understanding the alert class Methods of the alert class Automating browser navigation Summary 5. Synchronizing Tests USing implicit wait Using explicit wait The expected condition class Waiting for an element to be enabled Waiting for alerts Implementing custom wait conditions Summary 6. Cross-browser Testing The selenium standalone server Downloading the Selenium standalone server Launching the selenium standalone server Running a test on the selenium standalone server Adding support for Internet Explorer Adding support for Chrome Selenium grid Launching Selenium server as a hub Adding nodes Adding an IE node Adding a Firefox node Adding a chrome node Mac os X with safari Running tests in grid Running tests in a cloud Using Sauce Labs Summary 7. Testing on Mobile Introducing apium Prerequisites for Apium Setting up Xcode for iOS Setting up Android SDK Setting up the appium Python client package Installing Apium Appium Inspector Testing on iOs Writing a test for iOS Testing on Android Writing a test for Android Using Sauce Labs 8. Page Objects and Data-driven Testing Data-driven testing Using ddt for data-driven tests Installing ddt Creating a simple data-driven test with ddt in unittest Using external data sources for data-driven tests Reading values from CSV Reading values from Excel The page objects pattern Organizing tests The BasePage object Implementing page objects Creating a test with page objects Summary 9. Advanced Techniques of selenium WebDriver Methods for performing keyboard and mouse actions Keyboard actions The mouse movement The double click method The drag and drop method Executing JavaScript Capturing screenshots of failures Recording a video of the test run Handling pop-up windows Managing cookies Summary 10. Integration with Other Tools and frameworks Behavior-Driven Development Installing Behave Writing the first feature in Behave Implementing a step definition file for the feature Creating environment configurations Running features USing a scenario outline CI with Jenkins Preparing for Jenkins Setting up Jenkins Summary nex Learning selenium Testing Tools with Python Learning selenium Testing Tools with Python CopyrightC 2014 Packt Publishing All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals However, Packt Publishing cannot guarantee the accuracy of this information First published December 2014 Production reference: 1231214 Published by Packt Publishing Ltd Livery place 35 Livery street Birmingham b3 2PB, UK ISBN978-1-78398-350-6 www.packtpub.com Credits Author Unmesh gundecha Reviewers Adil imroz Dr Philip polstra Walt stoneburner Yuri Weinstein Commissioning editor Usha iver Acquisition Editor eha nagwekar Content Development Editor Athira laii Technical editor Mrunmayee pati Copy editor Laxmi subramanian Project Coordinator Harsha ved Proofreaders Ameesha green Chris smith Indexer Monica ajmera Mehta Production coordinator Nileshr, mohite Cover Work NileshR mohite About the author Unmesh Gundecha has a Master's degree in Software Engineering and over 12 years of experience in software development and testing Unmesh has architected functional test frameworks along with leading commercial and open source test automation too p automation solutions using industry standards, in-house and custom test automation He has development experience in Microsoft technologies and Java. He is presently working as a test solution architect with a multinational company in Pune, India His experience includes support to Ruby, Java, iOS, Android, and PhP projects as an automated tester and software developer He authored selenium Testing Tools Cookbook, Packt Publishing in November 2012 I would like to thank Neha Nagwekar, acquisition editor, for giving me an opportunity to write this book; Athira Laji, content development editor; Harshal Ved, project coordinator, for constantly supporting and encouraging me in completing this book; and the entire team at Packt Publishing This book has benefited a lot from a great team of technical reviewers I'd like to thank each of them for volunteering their time reviewing the drafts of this book and providing valuable feedbac ck I would also like to thank my mentor and friend, Yuri Weinstein, for his support and help during this project. Thanks to my friends and colleagues at work for their constant encouragement and support in writing this book

...展开详情
试读 127P Learning Selenium Testing Tools with Python.pdf
立即下载 低至0.43元/次 身份认证VIP会员低至7折
一个资源只可评论一次,评论内容不能少于5个字
您会向同学/朋友/同事推荐我们的CSDN下载吗?
谢谢参与!您的真实评价是我们改进的动力~
上传资源赚钱or赚积分
最新推荐
Learning Selenium Testing Tools with Python.pdf 10积分/C币 立即下载
1/127
Learning Selenium Testing Tools with Python.pdf第1页
Learning Selenium Testing Tools with Python.pdf第2页
Learning Selenium Testing Tools with Python.pdf第3页
Learning Selenium Testing Tools with Python.pdf第4页
Learning Selenium Testing Tools with Python.pdf第5页
Learning Selenium Testing Tools with Python.pdf第6页
Learning Selenium Testing Tools with Python.pdf第7页
Learning Selenium Testing Tools with Python.pdf第8页
Learning Selenium Testing Tools with Python.pdf第9页
Learning Selenium Testing Tools with Python.pdf第10页
Learning Selenium Testing Tools with Python.pdf第11页
Learning Selenium Testing Tools with Python.pdf第12页
Learning Selenium Testing Tools with Python.pdf第13页
Learning Selenium Testing Tools with Python.pdf第14页
Learning Selenium Testing Tools with Python.pdf第15页
Learning Selenium Testing Tools with Python.pdf第16页
Learning Selenium Testing Tools with Python.pdf第17页
Learning Selenium Testing Tools with Python.pdf第18页
Learning Selenium Testing Tools with Python.pdf第19页
Learning Selenium Testing Tools with Python.pdf第20页

试读结束, 可继续阅读

10积分/C币 立即下载 >