selenium testing

所需积分/C币:14 2016-12-04 09:26:55 3.03MB PDF
收藏 收藏
举报

学习selenium然后使用python
Learning Selenium Testing Tools with Python Copyright o 2014 Packt Publishi ing 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 rt 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, cither express or implied. Neither the author nor Pacl 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 Project Coordinator Unmesh gundeck Harsha ved Reviewers Proofreaders Adil Imroz Ameesha Green Dr. Philip polstra Chris smith Walt stol Yuri Weinstein Indexer Monica Ajmera Commissioning Editor Usha lyer Production coordinator Nileshr. mohite Acquisition Editor Neha Nagwekar Cover work Nileshr. mohite Content Development Editor Athira Laj Technical editor e Patil Copy edit Subramanian 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 automation solutions using industry standards, in-house and custom test automation frameworks along with leading commercial and open source test automation tools He has development experience in Microsoft technologies and Java. He is presentl working as a test solution architect with a multinational company in Pune, India Ilis experience includes support to Ruby, Java, iOS, Android, and PIIp 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. Id like to thank each of them for volunteering their time reviewing the drafts of this book and providing valuable feedback. 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 About the reviewers Adil Imroz is a Python enthusiast who loves the simplicity of this beautiful language He is a software developer in testing by profession and a mobile automation expert He likes playing around with open source software and believes in being agile. When not working, he can be found biking, reading a book, or sleeping. Ile believes that there is a lot of scope around; all you have to do is hit the right chords. You can get in touchwithhimviae-mailatalam.adil12@gmail.com.Youcanalsofollowhimon Twitter at aadilimroz Dr. Philip Polstra( known to his friends as Dr Phil)is an internationally recognized hardware hacker His work has been presented at numerous conferences around the globe, including repeat performances at DEfCON, Black Ilat, 44C0 Maker faire, and other top conferences dr Polstra is a well-known expert on USB forensics and has published several articles on this topic Recently, Dr. Polstra has developed a penetration testing Linux distribution, known as The Deck, for the Beagle Bone and BeagleBoard family of small computer boards He has also developed a new way of performing penetration testing with multiple low-power devices, including an aerial hacking drone. This work is described in his book hacking and penetration Testing with Low Power Devices, Syngress Media(2014) Dr. Polstra has also been a technical reviewer on several books, including Beagle bone Home Automation by juha lumme and Beagle bone for Secret Agents by Josh Datko, both published in 2014 by Packt Publishing Dr. Polstra is an Associate Professor at Bloomsburg University of Pennsylvania (http://bloomu.edu/digitalforensics),whereheteachesdigitalforensics among other topics. In addition to teaching he provides training and performs penetration tests on a consulting basis. When not working, he is known to fly, build aircraft, and tinker with electronics. His latest happenings can be found on his blog athttp://philpolstra.comYoucanalsofollowhimonTwitterat@ppolstra Walt Stoneburner is a software architect with over 25 years of commercial pplication development and consulting experience. His fringe passions involve quality assurance, configuration management, and security. If cornered, he may actually admit to liking statistics and authoring documentation as well He's casily amused by programming language design, collaborative applications, bi data, knowledge management, data visualization and ascii art. a self-proclaimed closet geek, Walt also evaluates software products and consumer electronics, draws cartoons, runs a freelance photography studio specializing in portraits and art http://charismaticmoments.com/),writeshumorpiecesperformssleightof hand, enjoys game designing, and can occasionally be found on ham radio Waltcanbereacheddirectlyviae-mailatwls@wwco.comorWalt.Stoneburnera gmail. com. He publishes a tech and humor blog called Walt-O-Matic at https://www.wwco.com/wls/blog/. His other book reviews and contributions include the following AntiPatterns and patterns in Software Configuration management, John Wiley 6 sn(sBN978-0471329299,p.xi) Exploiting Software How to Break Code, Pearson Education (IsBN 978-0-201 78695-8,p.Xxi Ruby on Rails Web mashup Projects, Packt Publishing(IsBn 978-1847193933 Building dynamic Web 2.0 Websites with Ruby on Rails, Packt Publishing(ISBN 978-1-847193-41-4) Instant Sinatra Starter, Packt Publishing(Isbn978-1782168218 C++ Multithreading Cookbook, Packt Publishing(isBn 978-1-78328-979-0 Trapped in Whittier(a Trent walker Thriller book 1), Amazon Digital South asia Services, Inc (ASIN BOOGTDIRBS) South. Mouth: Hillbilly Wisdom, Redneck Observations good Ol Boy logic, Createspace Independent publishing platform(isbn 978-1-482340-99-0 Yuri Weinstein lives in San Francisco, CA with his family. He has spent over two decades working for top technology companies in the Silicon valley, focusing on software testing with a special passion for test automation techniques. He currently works at Red Hat, ensuring the quality of the Ceph open source storage project Www.Packtpub.com Support files, eBookS, discount offers, and more Forsupportfilesanddownloadsrelatedtoyourbookpleasevisitwww.packtPub.coil Did you know that Packt offers eBook versions of every book published, with PDF and epubfilesavailableYoucanupgradetotheeboOkversionatwww.Packtpub.comand is a print book customer you are entitled to a discount on the ebook copy Get in touch th us at service@packtpub com for more details Atwww.Packtpub.com,youcanalsoreadacollectionoffreetechnicalarticlessignup for a range of free newsletters and receive exclusive discounts and offers on Packt books and e books PACKTLIB https://www.packtpub.com/books/subscription/packtlib Do you need instant solutions to your If questions? PacktLib is Packt's online digital book library. Here, you can search, access and read Packt's entire library of books Why subscribe? Fully searchable across every book published by Packt Copy and paste, print, and bookmark content On demand and accessible via a web browser Free access for Packt account holders Ifyouhaveanaccountwithpacktatwww.Packtpuh.com,youcanusethistoaccess PacktLib today and view 9 entirely free books Simply use your login credentials for immediate access Table of contents Preface Chapter 1: Getting Started with Selenium Web Driver and Python 7 Preparing your machine Installing Python stalling the selenium package 888 Browsing the Selenium WebDriver Python documentation Selecting an IDE 10 Py Charm The PyDev Eclipse plugin Py Scripter 13 Setting up Py Charm Taking your first steps with Selenium and Python 18 Cross-browser support 23 Setting up Internet Explorer 23 Setting up Google Chrome 26 Summary 2 Chapter 2: Writing Tests Using unittest 29 The unittest library 29 The Testcase class 31 The setUp methad Writing tests 32 Cleaning up the code Running the test 34 Adding another test 36 Class-level setUp and tear Down( methods 37 Assertions 38 Test suites 40 Generating the HTML test report 43 Summary 44

...展开详情
试读 127P selenium testing
立即下载 低至0.43元/次 身份认证VIP会员低至7折
    抢沙发
    一个资源只可评论一次,评论内容不能少于5个字
    关注 私信 TA的资源
    上传资源赚积分,得勋章
    最新推荐
    selenium testing 14积分/C币 立即下载
    1/127
    selenium testing第1页
    selenium testing第2页
    selenium testing第3页
    selenium testing第4页
    selenium testing第5页
    selenium testing第6页
    selenium testing第7页
    selenium testing第8页
    selenium testing第9页
    selenium testing第10页
    selenium testing第11页
    selenium testing第12页
    selenium testing第13页
    selenium testing第14页
    selenium testing第15页
    selenium testing第16页
    selenium testing第17页
    selenium testing第18页
    selenium testing第19页
    selenium testing第20页

    试读已结束,剩余107页未读...

    14积分/C币 立即下载 >