Design & Build a Test Framework With Python Pytest
- Description
- Curriculum
- FAQ
- Reviews
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 be:
-
Modular-Based,
-
Data-driven, & also
-
Library/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 prospects
-
Finally, 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!
Tags: Python Test Frameworks, Pytest Framework Automation, API Testing
-
4About PytestVideo lesson
-
5Pycharm: Create Project & Virtual EnvVideo lesson
-
6Pycharm: Installing Python ModulesVideo lesson
-
7Pytest: First Test and Test NamingVideo lesson
-
8Pytest: Test ExecutionVideo lesson
-
9Using Python AssertionVideo lesson
-
10Pytest: Test DiscoveryVideo lesson
-
11Quiz1Quiz
-
12About __init__.pyVideo lesson
-
13Pytest: MarkersVideo lesson
-
14Pytest: Cmd line optionsVideo lesson
-
15Quiz2Quiz
-
16Pytest: Parametrized TestsVideo lesson
-
17Pytest: FixturesVideo lesson
-
18Quiz3Quiz
-
19Files OpsVideo lesson
-
20About JSONVideo lesson
-
21Json Ops: Data to JsonVideo lesson
-
22Json Ops: Json to DataVideo lesson
-
23Json Ops: Validate JSONVideo lesson
-
24Free/Public API URLsVideo lesson
-
25Request Module: Simple RequestsVideo lesson
-
26Requests Ops: with paramsVideo lesson
-
27Requests Ops: Post methodVideo lesson
-
28Requests Ops: Custom headersVideo lesson
-
29CSV OpsVideo lesson
-
36About Test FrameworksVideo lesson
A test framework is a set of tools and components that help you to write, execute, and manage tests.
Learn the necessary modules in a test framework.
-
37Test Framework OutlineVideo lesson
Start design the test framework
-
38API Test/Automation: Basic Approach(1/2)Video lesson
How API test is done, using rudimentary approach.
Use GET method request
-
39API Test/Automation: Basic Approach(2/2)Video lesson
How API test is done, using rudimentary approach.
Use POST method request
-
40Design/Build Framework: Utils/LibsVideo lesson
Start building framework by adding utilities functions
-
41Design/Build Framework: Why ConfigVideo lesson
Start building framework, by using configuration files
-
42Design/Build Framework: ConfigparserVideo lesson
Start building framework, by using configuration files, and configparser functions
-
43API Test/Automation PUT RequestVideo lesson
-
44API Test/Automation DELETE RequestVideo lesson
-
45Design/Build Framework: Logging(1/2)Video lesson
Understand why we need logging and its benefits
-
46Design/Build Framework: Logging(2/2)Video lesson
Demo on using Python & Pytest Logging in Test Framework.
-
52IntroText lesson
-
53Framework: Adding Tests(1/3)Video lesson
-
54Framework: Adding Tests(2/3)Video lesson
-
55Framework: Adding Tests(3/3)Video lesson
-
56Scenario Parameterized TestVideo lesson
-
57TestData - Request Data From FileVideo lesson
-
58API AuthenticationsVideo lesson
-
59Scenario Handle API Auth Tokens(1/2)Video lesson
Test API's which need Tokens. In first part we'll see how it is done in a rudimentary approach.
-
60Scenario Handle API Auth Tokens(2/2)Video lesson
Test API's which need Tokens. How we can handle fetching tokens from Pytest Fixtures and using in all our test modules. Also learn about sharing fixtures.
-
61DataDriven Test - Basic Approach(1/2)Video lesson
-
62DataDriven Test - Basic Approach(2/2)Video lesson
-
63DataDriven Test - Parameterized(1/4)Video lesson
-
64DataDriven Test - Parameterized(2/4)Video lesson
-
65DataDriven Test - Parameterized(3/4)Video lesson
-
66DataDriven Test - Parameterized(4/4)Video lesson

External Links May Contain Affiliate Links read more