Build Robust Test Frameworks In Python
Published 11/2024
MP4 | Video: h264, 1920x1080 | Audio: AAC, 44.1 KHz
Language: English | Size: 2.23 GB | Duration: 4h 16m
Published 11/2024
MP4 | Video: h264, 1920x1080 | Audio: AAC, 44.1 KHz
Language: English | Size: 2.23 GB | Duration: 4h 16m
Master key areas such as command line parsing, logging, configuration file management, and versatile test output formats
What you'll learn
Create Python Test Framework from scratch
Parse command line, work with configuration files, logging
Create test results in text, Excel, Word, HTML or SQL format
Run the tests via Jenkins
Requirements
Basic Python knowledge
Basic SQL knowledge
Basic HTML knowledge
Description
Unlock the power of automated testing with our comprehensive course on creating a test framework in Python! Designed for aspiring QA engineers and developers, this course will guide you through the essential concepts and practical steps needed to build your own test framework from scratch.In the first section, you’ll be introduced to the course structure and the importance of test frameworks in software development. We’ll cover what a test framework is and why it’s critical for efficient testing processes. As you progress, you’ll learn how to create a test framework, followed by strategies for enhancing its functionality.Delve into command line parsing with the argparse library, understand the significance of logging beyond simple print statements, and discover how to implement various types of configuration files, including text, JSON, INI and XML formats. We’ll also explore different ways to output test results, such as text files, Excel (CSV), Word documents, HTML, and SQL databases.Finally, you’ll learn how to run your tests seamlessly from the command line and integrate them with Jenkins for continuous integration. This hands-on course includes practical exercises and quizzes to reinforce your learning, ensuring you not only understand the concepts but can apply them in real-world scenarios.Join us and elevate your testing skills to the next level by mastering the creation of a robust test framework in Python!
Overview
Section 1: Introduction
Lecture 1 Introduction
Lecture 2 What will we cover in this course?
Section 2: What is Test Framework?
Lecture 3 About Test Frameworks
Lecture 4 Parts of the Test Framework
Section 3: Create Simple Test Framework
Lecture 5 Let's start with our simple Test Framework
Lecture 6 What will we test?
Lecture 7 First implementation
Section 4: First Improvements
Lecture 8 Store test results into text file
Lecture 9 Early break
Lecture 10 Different ways of running the test framework
Lecture 11 Support different types of regression test
Lecture 12 Execute test multiple times (for unstable environment or durability testing)
Lecture 13 Retry if failed
Lecture 14 Exercise: Fix test case name
Lecture 15 Bug Fixing
Section 5: Command line parsing
Lecture 16 Why do we need it?
Lecture 17 Using argparse
Section 6: Logging
Lecture 18 Why do we need it, we have print?
Lecture 19 Using Logging
Lecture 20 Exercise: Write logs to file`
Lecture 21 We need both, log file and result file
Section 7: Fixtures
Lecture 22 Setup & Teardown Fixture
Lecture 23 Exercise - Write time of test start and finish
Section 8: Test regularly and fix the bugs
Lecture 24 Fix the bugs and test our Test Framework
Lecture 25 Test regularly your Test Frmework
Section 9: Configuration files
Lecture 26 Text files
Lecture 27 JSON files
Lecture 28 INI files
Lecture 29 XML files
Section 10: Test output
Lecture 30 HTML - graphical explanation
Lecture 31 HTML
Lecture 32 HTML - Code refactoring
Lecture 33 HTML - Testing and bug fixing
Lecture 34 HTML - Fix code smell
Lecture 35 SQL database (part 1)
Lecture 36 SQL database (part 2)
Lecture 37 SQL database - code refactoring and testing
Lecture 38 Word (part 1)
Lecture 39 Word (part 2)
Lecture 40 Word (part 3)
Lecture 41 Word - bug fix
Lecture 42 Word - one more thing
Lecture 43 Exercise - Export results to CSV (Excel)
Section 11: Running the tests
Lecture 44 From command line
Lecture 45 From Jenkins
Section 12: Test Framework limitations and ways for improvements
Lecture 46 Ways to improve HTML test output
Lecture 47 Current Test Framework limitations and further development possibilities
Lecture 48 One more thing you can improve
Section 13: Thank you!
Lecture 49 Thank you!
Beginner to medior Test Automation Engineers