Python Unit Test Automation, 2nd Edition

Automate, Organize, and Execute Unit Tests in Python



Bookstore > Books > Python Unit Test Automation, 2nd Edition

Price$39.89 - $46.80
Rating
AuthorAshwin Pajankar
PublisherApress
Published2022
Pages209
LanguageEnglish
FormatPaper book / ebook (PDF)
ISBN-101484278534
ISBN-139781484278536
EBook Hardcover Paperback

Learn how to automate unit tests of Python 3 with automation libraries, such as doctest, unittest, nose, nose2, pytest, and selenium. This book explores important concepts in software test automation and demonstrates how to automate, organize, and execute unit tests with Python. It also introduces readers to the concepts of web browser automation and logging.

This new edition starts with an introduction to Python 3. Next, it covers doctest and pydoc. This is followed by a discussion on unittest, a framework that comes packaged with Python 3 itself. There is a dedicated section on creating test suites, followed by an explanation of how nose2 provides automatic test module discovery. Moving forward, you will learn about pytest, the most popular third-party library and testrunner for Python. You will see how to write and execute tests with pytest. You'll also learn to discover tests automatically with pytest.

This edition features two brand new chapters, the first of which focuses on the basics of web browser automation with Selenium. You'll learn how to use Selenium with unittest to write test cases for browser automation and use the Selenium IDE with web browsers such as Chrome and Firefox. You'll then explore logging frameworks such as Python's built-in logger and the third-party framework loguru.

The book concludes with an exploration of test-driven development with pytest, during which you will execute a small project using TDD methodology.


  1. (3 books)


Similar Books


Python Testing Cookbook, 2nd Edition

Python Testing Cookbook, 2nd Edition

by Greg L. Turnquist, Bhaskar N. Das

Automated testing is the best way to increase efficiency while reducing the defects of software testing. It helps find bugs in code easily and at an early stage so that they can be tackled efficiently. This book delves into essential testing concepts used in Python to help you build robust and maintainable code.Python Testing Cookbook beg...

Price:  $44.99  |  Publisher:  Packt Publishing  |  Release:  2018

DevOps in Python, 2nd Edition

DevOps in Python, 2nd Edition

by Moshe Zadka

Take advantage of Python to automate complex systems with readable code. This new edition will help you move from operations/system administration into easy-to-learn coding.You'll start by writing command-line scripts and automating simple DevOps-style tasks followed by creating reliable and fast unit tests designed to avoid incident...

Price:  $37.95  |  Publisher:  Apress  |  Release:  2022

Python Automation Cookbook, 2nd Edition

Python Automation Cookbook, 2nd Edition

by Jaime Buelta

In this updated and extended version of Python Automation Cookbook, each chapter now comprises the newest recipes and is revised to align with Python 3.8 and higher. The book includes three new chapters that focus on using Python for test automation, machine learning projects, and for working with messy data.This edition will enable you t...

Price:  $39.99  |  Publisher:  Packt Publishing  |  Release:  2020

Beginning Python Games Development, 2nd Edition

Beginning Python Games Development, 2nd Edition

by Harrison Kinsley, Will McGugan

Learn how to create compelling games using Python and the PyGame games development library. Beginning Python Games Development, 2nd Edition will teach you how to create visuals, do event handling, create 3D games, add media elements, and integrate OpenGL into your Python game.In this update to the first ever book to cover the popular open...

Price:  $39.49  |  Publisher:  Apress  |  Release:  2015

Learn Python the Hard Way, 3rd Edition

Learn Python the Hard Way, 3rd Edition

by Zed A. Shaw

Zed Shaw has perfected the world's best system for learning Python. Follow it and you will succeed-just like the hundreds of thousands of beginners Zed has taught to date! You bring the discipline, commitment, and persistence; the author supplies everything else.In Learn Python the Hard Way, 3rd Edition, you'll learn Python by w...

Price:  $29.95  |  Publisher:  Addison-Wesley  |  Release:  2013

Programming Entity Framework, 2nd Edition

Programming Entity Framework, 2nd Edition

by Julia Lerman

Get a thorough introduction to ADO.NET Entity Framework 4 - Microsoft's core framework for modeling and interacting with data in .NET applications. The second edition of this acclaimed guide provides a hands-on tour of the framework latest version in Visual Studio 2010 and .NET Framework 4. Not only will you learn how to use EF4 in a...

Price:  $6.99  |  Publisher:  O'Reilly Media  |  Release:  2010

Node.js in Action, 2nd Edition

Node.js in Action, 2nd Edition

by Alex Young, Bradley Meck, Mike Cantelon, Tim Oxley, Marc Harter, T.J. Holowaychuk, Nathan Rajlich

You already know JavaScript. The trick to mastering Node.js is learning how to build applications that fully exploit its powerful asynchronous event handling and non-blocking I/O features. The Node server radically simplifies event-driven real-time apps like chat, games, and live data analytics, and with its incredibly rich ecosystem of m...

Price:  $25.18  |  Publisher:  Manning  |  Release:  2017

Camel in Action, 2nd Edition

Camel in Action, 2nd Edition

by Claus Ibsen, Jonathan Anstey

Apache Camel is a Java framework that implements enterprise integration patterns (EIPs) and comes with over 200 adapters to third-party systems. A concise DSL lets you build integration logic into your app with just a few lines of Java or XML. By using Camel, you benefit from the testing and experience of a large and vibrant open source c...

Price:  $50.26  |  Publisher:  Manning  |  Release:  2018