
Discover why testers learn Python for automation, data generation, and testing with Selenium, Appium, and Robot Framework, plus pandas, numpy, and seaborn for analytics.
Explore the course architecture essential for every software tester, focusing on Python automation basics, setup, data handling in Excel, and practical projects for test data generation.
Set up Python on a Windows 64-bit machine by downloading, installing, and configuring the environment variable. Verify installation with Python -V.
Download and install PyCharm community edition, create a Python project named automation one, select Python 3.7 as the interpreter, and switch to a dark theme in settings.
Configure pip on a Windows machine by setting the path variable, verify its setup in the command prompt, and use pip to download and install Python packages.
Create a Python project and file in PyCharm, configure the interpreter, and run code from the IDE or command prompt. Learn print, comments, indentation, and case sensitivity.
Learn how to define and use variables in Python, assign multiple values in one line, print formatted statements, and understand constants and typecasting.
Learn to take user input with Python's input(), store it in variables, print results, and explore variables, concatenation, and line continuation with backslashes and semicolons.
Explain variables and the illusion of constants in Python, where capital names signal intent but may still change. Demonstrate typecasting between string and integer for input and output.
Explore how Python infers numeric, string, list, tuple, and dictionary types from values, and differentiate writable lists from read-only tuples.
Master condition handling in Python with if, else, and elif to choose actions based on user input, including determining even numbers and managing multiple conditions with proper indentation.
Learn how to handle two conditions with if and else by taking user input, converting it to an integer, and printing whether the number is even or odd.
Develop skills to handle multiple conditions with if, elif, and else, including negative, zero, and positive numbers, and determine even or odd results, with a practice exercise.
Explore nested conditions in Python by handling a condition inside a condition. Take a user number, check negative or positive, then if positive check even or odd, illustrating two approaches.
Learn to apply logical or and logical and in Python automation to validate inputs, handling invalid marks (greater than 100 or less than zero) and valid marks (0–100).
Learn to write a python program that prompts for three numbers, casts them to integers, and uses condition handling to determine the largest and smallest among them.
Learn to read a user input number in python and use conditional handling to check divisibility by 5 and 11, printing for both, five only, eleven only, or not divisible.
Develop condition handling by inputting a month number and printing the days in that month, such as 31 for January or 30 for April, with invalid numbers flagged.
Develop condition handling by inputting three triangle sides and classifying the triangle as equilateral, scalene, or isosceles.
Learn condition handling by inputting six subject marks, computing the average, and assigning a grade from a to f using percentage thresholds in a Python automation task.
Discover why loops matter in automation and programming and learn to write for and while loops to repeat tasks, including printing hello and retrying database connections.
Master for loops in Python using a final range, starting at zero when omitted, with end exclusive, and printing values while converting user input to int.
Discover how to use a for loop with a start and end range in Python, print multiplication tables, and handle type casting between strings and integers for dynamic user input.
Learn to control a Python for loop's increment using range(start, end, step). See examples that increment by 2 or 3 to produce sequences like 1,3,5,7,9 and 1,4,7,10.
Explore running a Python for loop in reverse using a decrement value with range, from 10 to 1, and from a user input number to generate a reverse multiplication table.
Explore how to use a for loop with lists in Python, iterating over all values, printing after the loop, and summing numbers, while also showing per-character iteration on a string.
Learn to implement a while loop with an increment, including initialization, condition, and increment steps, and see how it prints values and typecasts input to build a multiplication table.
Learn to use a while loop with decrement from a starting value down to 1, using i -= 1, and display a table from user input.
discover how to use the break statement to exit a loop when a condition is met, with examples from a for loop and a stop-at-60 multiplication table.
Discover how the continue statement skips the rest of the loop when a condition matches, illustrated by a number table that omits multiples of ten.
Learn how the else statement in Python runs after a for loop completes, using range to print 1 to 10 and then execute the else block.
Swap two user inputs in Python by storing numeric values in variables and exchanging them. Do this first with a temporary variable, then without one.
practice printing rectangles of stars, including a filled four-line, five-star example and a hollow rectangle where only the first and last stars appear.
Learn to write a Python program that prints a table from a user input and displays only numbers not multiples of 3, 5, or 7.
Learn to calculate the factorial of a user-provided number by multiplying down from n to 1, with a practical example showing 6 yields 720 and a guided programming exercise.
Write a Python program to generate a Fibonacci series by summing the last two numbers, starting with 0 and 1, up to a user-specified limit, for example 1000.
Learn to write a Python program that takes a user input number and checks whether it is prime, displaying whether the number is prime or not.
Explore Python string basics: define strings with single, double, and triple quotes; perform concatenation and repetition; learn typecasting to string and common string operations for automation and interview prep.
Fetch characters and substrings in Python by index, by a start and end index (end+1), or by a starting index alone, using zero-based indexing.
Explore common string operations in Python automation, including calculating string length, converting to uppercase and lowercase, and using capitalize to format the first letter.
Learn how to remove spaces from strings using strip, lstrip, and rstrip, and apply these techniques in automation to compare actual and expected results.
Explore string operations in Python, including replacing substrings, finding substrings, and splitting by spaces or custom delimiters. Practice removing spaces to compute length and handling case variations during replacements.
Compare strings in Python for automation by using the equal to operator, covering case sensitive and case insensitive checks. Trim spaces with strip before comparison to ensure accurate results.
Learn how to define and fetch data from a Python list, use square brackets for indices and ranges, and loop through items while checking the list’s length.
Join this lesson to learn how to concatenate lists, update elements by index, insert new values at specific positions, and remove items by value, including handling first versus all occurrences.
Understand what a tuple is and how it differs from a list by using parentheses to store diverse data while enabling zero-based indexing for read-only access.
Learn how to concatenate two tuples using the plus operator, and see that tuples do not support update, insert, or remove operations, so they offer only read access, unlike lists.
Explore what a dictionary is in Python, define dictionaries with key-value pairs, fetch data by key, and understand unique keys, length, and basic operations.
Learn how to define a dictionary, add and update items, delete keys with pop, and fetch keys or values, plus when to use dictionaries versus lists.
Explore Python function basics, learning what a function is, why to use it for code reuse, and how to create and call functions to boost modularity and reduce duplication.
Learn how to define functions in Python using def, manage indentation, and return values, with examples of calling the function and using the first line for comments.
Explore basic Python functions, from no-argument, no-return demos to functions with parameters, type casting for concatenation, and returning values for flexible reuse.
Learn how Python handles function arguments, including required, keyword, and default arguments, with examples of calling and default value behavior.
Create two string handling methods to compare the last ten characters of two strings, ignoring case; extend with a second method that compares a configurable number of trailing characters.
Master the string handling task of comparing two strings by their first three characters, ignoring case, to determine if they match.
Learn to determine if a substring exists in a string and count its occurrences in Python, helping testers automate string handling with practical examples like testing and hello.
Learn to compare strings by trimming leading and trailing spaces and ignoring case, with practical examples of strings with varying spaces.
Learn to reverse a string in Python without using the reverse function, and practice string handling as part of a Python automation task.
Develop a string handling method that takes a string argument and checks whether it is a palindrome. Read from the start and end to confirm it reads the same.
Learn to build a method that accepts two string arguments, concatenates them, displays the concatenated result, and computes its length. For example, hello and world become 'hello world'.
Create a method that counts words in a string and identifies duplicate words. The tutorial demonstrates a four-word example and shows how duplicates, such as 'this', appear twice.
Learn to implement a string cleanup method that removes all spaces, then calculate removed spaces by comparing the original and final string lengths.
Learn how to create a simple class in Python, define a method, instantiate objects, and call class functions using self in an object oriented scripting language.
Explore how to define and call different types of class methods in python: no-argument methods, methods with arguments, and methods with return values, using self and object instances.
Learn how Python constructors initialize objects with the self argument, are automatically invoked on object creation, can take arguments, and cannot return a value.
Learn how constructors perform initialization by establishing the database connection when an object is created, avoiding repeated connections and code duplication while enabling safe method access.
Import a class from another file, create its object, and call its methods in Python. Learn how to pass constructor arguments and access results across files.
Learn how a Python module, defined as a Python file, can include executable code, module functions, and classes with methods, properties, and a constructor that executes when the module runs.
Learn how to use Python modules by importing a module, calling module functions, and creating class instances, while executable code runs automatically on import.
Learn to structure a Python automation project by creating directories like library, test cases, and utility, then add models, classes, and methods to organize code and subdirectories.
Learn how to use import and from import to access classes and constructors and methods in Python modules, create objects, and understand when importing entire modules versus specific classes.
Course Updates
May 2024 : Updated Condition Handling and Looping videos
Nov 2021: Added Data Generation Project
Apr 2021 : Updated video quality
Looking to Automate your testing stuffs using Python ? Then you are on the right place.
This course will help you to understand and Learn Python programming from Scratch to Expert Level. It is specially designed by keeping Software Testing in mind so almost all already/libraries of Python which are required in automation would be covered in his course.
Python in not just use for web browser automation but also can use for following
Read | Search & validate data in excel
Have to pull text off of several web pages?
Copy thousands of files from one location to another
Perform repeatable tasks in single click
Rename multiple files & folders within a second.
Python can help in automating tasks like -
Setting up environments for testing
Analyzing data.
Extracting performance data
Automate API
Automate Web Applications
Generate test Data
Course Coverage
Step by Step Setup
Why to Learn Python as Software Tester
Basic Programming
Modules
OOPS Concepts
OpenPyXl
Working with Notepad and CSV
Pytest Framework
Interview Question
Practical Implementation
Practice Exercises
Realtime Scenario
Best Practices
After this course, you will be eligible to implement your knowledge to make Testing Utilities using Python and also ready to automation different types of application (Web, API) using Python, Most common tools available in market which support python are following, you will be ready to work on these tools after completing this course
Selenium with Python
API Testing using Python
Appium with Python
Robot Framework