Design Build a Test Framework With Python Pytest
What you’ll learn
Design & Building a Test Framework
Test Automation With Python & Pytest
Software Test Automation modules and components
Rest API Testing and Automation
Requirements
A computer with internet connection and a good amount of curiosity towards test automation.
Basic python scripting
Description
Welcome!Test frameworks are tools that software developers and quality assurance professionals use to automate the process of testing software applications. These frameworks provide a set of predefined rules, guidelines, and features that help in organizing, executing, and reporting the results of the tests.Some of the key features of test frameworks include the ability to define test cases, assertions, and fixtures, which are reusable components that simplify the process of testing. They also often provide integration with other tools, such as continuous integration and deployment (CI/CD) pipelines, to automate the testing process and improve the efficiency of the development process.Test frameworks are typically designed to support different types of testing, including unit, functional, API, GUI, and performance testing. They can also support different programming languages and platforms, allowing developers to choose the one that best suits their needs.Examples of popular test frameworks include JUnit for Java applications, NUnit for .NET applications, and Pytest for Python applications. There are also specialized test frameworks available for specific types of testing, such as Selenium for web application testing and Appium for mobile application testing.In this course we are going to learn how to design and build a Test Automation Framework. The underlying framework will be Pytest and we will build a hybrid kind of framework which will beModular-Based,Data-driven, & alsoLibrary/Utils Driven Architecture.This framework will be extensible and scalable where in you extend to any types of tests like e.g. DB testing, UI testing and others. We will structure our test project framework to be able to handle complex scenarios also.Some of the modules or components we will have in our Hybrid Test Framework are as: – Test Runner: This is the module responsible for executing tests and reporting the results. Pytest is what we will be using here, to take the benefits of Python. – Utils/Library module: Will contain all reusable functions such as databases, generic functions, application functions etc. – Config Management module: Separate config files and config manager to enable different config files. – Data Management module: Should support Data Driven capability. Handle Scripts and Data separately. – Logging & Reporting: Separate the logging code from the main code, making it easier to maintain and update the test code base. These are some of the modules found in test frameworks we will talk about in this course. And also how to incorporate them in our framework and build a structured framework that will be easy to maintain and flexible enough to add new test scenarios or new functions. Of-course the specific modules you need in your test framework will depend on the needs of your testing process, such as the types of tests you need to run, the technologies you’re using, and the size and complexity of your testing infrastructure. But this course will give you a really good start towards your automation journey, and also make it easier for you to design a test automation framework. After taking this course you will:Have the skills and knowledge needed to build and implement a successful test framework that can improve the quality and reliability of software applications.Be able to easily start adding test scripts functions and modules in a test framework.Be able to design and build your own test framework from scratch.Understand the components in any test test framework.Be able to suggest changes to existing frameworks your team might be using.Design organize your tests properly in any test automation project.Learn API automation as well.Be able to take test automation interviews easily.And, Improve your career prospectsFinally, take another big step towards Test Architect. Overall, taking the course on “Building a Test Framework” can be a great investment in your professional development and can help you build the skills and knowledge needed to succeed in the software industry.Sign in and lets learn to build test automation frameworks and write tests in a structured way.Thank you and see you in the course!
Overview
Section 1: Introduction
Lecture 1 Introduction
Section 2: Installs & Setup
Lecture 2 Python Install(Windows)
Lecture 3 Pycharm Install(Windows)
Section 3: Pytest Basics
Lecture 4 About Pytest
Lecture 5 Pycharm: Create Project & Virtual Env
Lecture 6 Pycharm: Installing Python Modules
Lecture 7 Pytest: First Test and Test Naming
Lecture 8 Pytest: Test Execution
Lecture 9 Using Python Assertion
Lecture 10 Pytest: Test Discovery
Lecture 11 About __init__.py
Lecture 12 Pytest: Markers
Lecture 13 Pytest: Cmd line options
Lecture 14 Pytest: Parametrized Tests
Lecture 15 Pytest: Fixtures
Section 4: Python Modules For TestAutomation
Lecture 16 Files Ops
Lecture 17 About JSON
Lecture 18 Json Ops: Data to Json
Lecture 19 Json Ops: Json to Data
Lecture 20 Json Ops: Validate JSON
Lecture 21 Free/Public API URLs
Lecture 22 Request Module: Simple Requests
Lecture 23 Requests Ops: with params
Lecture 24 Requests Ops: Post method
Lecture 25 Requests Ops: Custom headers
Lecture 26 CSV Ops
Section 5: Rest API Concepts
Lecture 27 API and Webservices
Lecture 28 What is RestAPI
Lecture 29 API Request composition
Lecture 30 API Response composition
Lecture 31 API testing and Strategy
Section 6: Test Automation Framework
Lecture 32 About Test Frameworks
Lecture 33 Test Framework Outline
Lecture 34 Doing API Test: Basic Approach(1/2)
Lecture 35 Doing API Test: Basic Approach(2/2)
Lecture 36 Design/Build Framework: Utils/Libs
Lecture 37 Design/Build Framework: Why Config
Lecture 38 Design/Build Framework: Configparser
Lecture 39 Design/Build Framework: Logging(1/2)
Lecture 40 Design/Build Framework: Logging(2/2)
Section 7: API Server
Lecture 41 About API server
Lecture 42 API server in GitHub
Lecture 43 CURL Cmd(1/3)
Lecture 44 CURL Cmd(2/3)
Lecture 45 CURL Cmd(3/3)
Section 8: Framework & Test Scenarios
Lecture 46 Intro
Lecture 47 Framework: Adding Tests(1/3)
Lecture 48 Framework: Adding Tests(2/3)
Lecture 49 Framework: Adding Tests(3/3)
Lecture 50 Scenario Parameterized Test
Lecture 51 TestData – Request Data From File
Lecture 52 DataDriven Test – Basic Approach(1/2)
Lecture 53 DataDriven Test – Basic Approach(2/2)
Lecture 54 DataDriven Test – Parameterized(1/4)
Lecture 55 DataDriven Test – Parameterized(2/4)
Lecture 56 DataDriven Test – Parameterized(3/4)
Lecture 57 DataDriven Test – Parameterized(4/4)
Software development, testing, or quality assurance professionals curious about Test Frameworks,Beginner to intermediate level test automation developers
Course Information:
Udemy | English | 7h 48m | 4.10 GB
Created by: Kumar S
You Can See More Courses in the Developer >> Greetings from CourseDown.com