Python 3.7 Programming and Testing For Absolute Beginners: With PyTest and Live Projects by Narendra Mohan Mittal
English | 2019 | ISBN: N/A | ASIN: B07VMRT2R2 | 739 pages | MOBI | 11 Mb
English | 2019 | ISBN: N/A | ASIN: B07VMRT2R2 | 739 pages | MOBI | 11 Mb
How to Use This Book (Python 3.7 Programming and Testing For Absolute Beginners)?
This book is for Students, Teachers, data scientists, experts and professionals, and researchers in academia who want to understand the understanding of latest Python 3.7 programming and Python Testing with live project. This book presents Latest Python 3.7 programming and Testing with pytest and latest python testing tools for absolute beginners to experts in 25 easy steps. It will help the reader grab some important concepts. You can teach yourself Python and testing by working through all the examples and live project here, and then using what you've learned on your problems.
Table of Contents
1.The World of Python 3.7
2.Python 3.7 Components
3.Python 3.7 Syntax Concepts
4.Python’s Loops and Logic
5.Python Shortcuts, Tips and Tricks
6.Python Data Types
7.List Operations in Python 3.7
8.Working with Strings in Python 3.7
9.Functions in Python 3.7
10.Implement Python 3.7 Classes
11.Iterators in Python 3.7
12.Exceptions in Python 3.7
13.Software Testing Attributes and Future
14.Testing in Python 3.7
15.Python Testing with PyTest
16.How to use PyTest?
17.Writing Tests in Python 3.7
18.Unit Testing with Python 3.7
19.Acceptance Test Tools
20.Test-Driven Development
21.Automating with Python
22.Pattern in Python 3.7
23.Python 3.7 Database Operations
24.Live Project using Python 3.7
25.Basics of Ansible
What Is Python 3.7?
Python 3.7 is a general-purpose programming language. That means it was designed and developed to write software for a wide variety of disciplines. Python has been used to write applications to solve problems in biology, chemistry, financial analysis, numerical analysis, robotics, and many other fields. It is also widely used as a scripting language for use by computer administrators, who use it to capture and replay sequences of computer commands.
• Python is an interpreted language, meaning that it does not need to be compiled prior to being run like certain other languages.
• Python is a multi-purpose language, capable of being used in a wide array of fields, including data science, ethical hacking, system administration, web development, mobile app development, video game programming, scientific modeling, and much more.
Python Testing with PyTest
PyTest is another popular test runner for Python and indeed is as mature and feature-rich as Nose for running your tests. Which one you choose to use in your own projects is merely a personal preference or perhaps based on the use of a plug-in for a specific reason, which may be available in only one of the runners. Whichever you decide to use, both test runners are mature and dependable packages for helping automate, run, and debug your tests.
The following are the reasons I use pytest and recommend that all Python enthusiasts and professionals use it:
1.It is better than unittest. The resulting code is cleaner and simpler.
2.Unlike with nose, pytest is still under active development.
3.has great features for controlling the test execution.
4.It can generate XML as well as plaintext results without an additional plugin.
5.It can run unittest tests.
6.It has its own set of advanced fixtures that are modular in nature.
7.If you are working on a project where they use unittest, nose, or doctest as the test framework for Python, I recommend migrating your tests to pytest.
When Should You Use Python?
Python, being a general and multipurpose programming language, can be used to build applications and systems for different domains and solve diverse real-world problems. Python comes with a standard library that hosts a large number of useful libraries and modules that can be leveraged to solve various problems.