دسترسی نامحدود
برای کاربرانی که ثبت نام کرده اند
برای ارتباط با ما می توانید از طریق شماره موبایل زیر از طریق تماس و پیامک با ما در ارتباط باشید
در صورت عدم پاسخ گویی از طریق پیامک با پشتیبان در ارتباط باشید
برای کاربرانی که ثبت نام کرده اند
درصورت عدم همخوانی توضیحات با کتاب
از ساعت 7 صبح تا 10 شب
ویرایش: 2
نویسندگان: Ashwin Pajankar
سری:
ISBN (شابک) : 1484278534, 9781484278536
ناشر: Apress
سال نشر: 2021
تعداد صفحات: 221
زبان: English
فرمت فایل : PDF (درصورت درخواست کاربر به PDF، EPUB یا AZW3 تبدیل می شود)
حجم فایل: 3 مگابایت
در صورت تبدیل فایل کتاب Python Unit Test Automation: Automate, Organize, and Execute Unit Tests in Python به فرمت های PDF، EPUB، AZW3، MOBI و یا DJVU می توانید به پشتیبان اطلاع دهید تا فایل مورد نظر را تبدیل نمایند.
توجه داشته باشید کتاب اتوماسیون تست واحد پایتون: خودکارسازی، سازماندهی و اجرای تست های واحد در پایتون نسخه زبان اصلی می باشد و کتاب ترجمه شده به فارسی نمی باشد. وبسایت اینترنشنال لایبرری ارائه دهنده کتاب های زبان اصلی می باشد و هیچ گونه کتاب ترجمه شده یا نوشته شده به فارسی را ارائه نمی دهد.
Table of Contents About the Author About the Technical Reviewers Acknowledgments Introduction Why This Book? Who This Book Is For How This Book Is Organized How to Get the Most Out of This Book Where Next? A Quick Word About the Instructors’ Fraternity Chapter 1: Introduction to Python The History of Python Features of Python Simple Easy to Learn Easy to Read Easy to Maintain Open Source High-Level Language Portable Interpreted Object-Oriented Extensible Extensive Libraries Robust Rapid Prototyping Memory Management Powerful Community Support Python 3 Differences Between Python 2 and Python 3 Why Use Python 3 Installing Python 3 Installation on Linux Installation on Debian, Ubuntu, and Derivatives Installation on Fedora and CentOS Installation on macOS X Installation on Windows Running a Python Program and Python Modes Interactive Mode Script Mode IDEs for Python IDLE The PyDev Plugin for Eclipse Geany PyCharm Conclusion Chapter 2: Getting Started A Brief Introduction to Software Testing Concepts Unit Testing Test Automation The Benefits of Automated Unit Testing Using Docstrings Example of a Docstring in Python A Brief Introduction to doctest Failing Tests Separate Test File Advantages and Disadvantages of doctest Pydoc Conclusion Chapter 3: unittest Introduction to xUnit Using unittest Order of Execution of the Test Methods Verbosity Control Multiple Test Classes Within the Same Test File/Module Test Fixtures Running Without unittest.main( ) Controlling the Granularity of Test Execution Listing All the Command-Line Options and Help Important Command-Line Options Creating a Test Package Organizing the Code Placing the Development and Test Code in a Single Directory Placing the Development and Test Code in Separate Directories Test Discovery Coding Conventions for unittest Assertions in unittest Other Useful Methods Failing a Test Exceptions in Test Cases assertRaises( ) Creating Test Suites Creating Test Suites Conclusion Chapter 4: nose and nose2 Introduction to nose Installing nose on Linux Distributions Installing nose on macOS and Windows Verifying the Installation Getting Started with nose A Simple nose Test Case Running the Test Module with nosetests Getting Help Organizing the Test Code Test Discovery Fixtures for Classes, Modules, and Methods Fixtures for Functions Fixtures for Packages Alternate Names of the nose Fixtures assert_equals( ) Testing Tools ok_ and eq_ The @raises() Decorator The @timed() decorator Report Generation Creating an XML Report Creating an HTML Report Creating Color Output in the Console Running unittest Tests from nose Running doctest Tests from nose Advantages of nose over unittest Disadvantages of nose Using nose2 Conclusion Chapter 5: pytest Introduction to pytest Simple Test Running Tests with the py.test Command Test Class and Test Package in pytest Test Discovery in pytest xUnit-Style Fixtures pytest Support for unittest and nose Introduction to pytest Fixtures Scope of pytest Fixtures pytest.raises( ) Important pytest Command-Line Options Help Stopping After the First (or N) Failures Profiling Test Execution Duration JUnit-Style Logs Conclusion Chapter 6: Testing with Selenium Introduction to Selenium Selenium IDE Selenium Webdriver Selenium with Unittest Conclusion Chapter 7: Logging in Python Logging Basics Logging with an OS Manually Logging with File Operations Logging in Python Logging to a File Customizing the Log Message Customizing Logging Operations Rotating a Log File Using Multiple Loggers Logging with Threads Multiple Loggers Writing to the Same Target Logging with loguru Using loguru and the Available Logging Levels Customizing File Retention Customizing Tracing Customizing the Log Message Format and Display Configuring with a Dictionary Conclusion Chapter 8: Tips and Tricks Coding and Filenaming Conventions for Easier Test Discovery Test-Driven Development with pytest Conclusion Index