15
Lessons
5 days
Duration
English
Language
Share This Class:
OBJECTIVEs:
- Basic Language Syntax
- Object Oriented Features in Python
- Exception Handling
- Regular Expression
- Working with inbuilt database support (SQLite)
- Itertools and Collections framework
- Testing
- Py.test
Course features:
- Practical hands on
- Lab sessions
- Training by experienced faculty
PRE-REQUISITES:
- This course is designed for Intermediate to Advance Level. Participants do not need to have any prior exposure to Python programming language.
- Prior familiarity with some other programming language (such as Java or C++) would be useful, but it is not mandatory.
Audience:
- This training is suitable for all testers and programmers who want to get deep hands-on experience of Robot Framework and Selenium Automation Tester.
- The training is generic and useful for people working in any domain. The application under test in the hands-on exercises is web based, and participants thus get immediately useful skills for web test automation as a by-product.
Setup Requirements:
- Computer with the following software
- Operating System: Unix OS Ubuntu 20/22 / Windows 11
- python 3.9 on Anaconda Notebook Tools
- Sublime3 Text Editor
- Eclipse with pydev plugins (Recommended for Project Work)
- Python Library selenium library
- Web Browser (Chrome / Firefox)
- Note: Training Session include 90 % Hands on Session and 10% Interactive Discussion
Learning Path
- Day 1
- Introduction to Python
- Dynamic Typing
- Object Types
- Complex Object Type
- Operators
- Unbounded Integers
- Useful functions
- type()
- id()
- dir()
- help()
- chr()
- unichr()
- Simple Program Using Basic Python
- Anaconda Installation
- Sublime Text Editor
- Python Project using Eclipse
Basic Language Construct
- Data types and Variables
- String type
- Format method
- Operators and Expressions
- Indentation
Data Structures Mutable and Immutable Data Structures
- List, Subscripting, Nested List
- Tuple, Use cases
- String Manipulation
- Dictionary with Case Study
- Use Cases and Assignment
Control Structure
- Indentation
- if elif else
- while
- for ( nested )
- Use Cases and Assignments
- Day 2
Functions
User Define Functions
- global variable
- default arguments
- variable arguments *arg
- Multiple Variable Default Argument
- **kwarg
- Use Case Design Multiplier
Sequence Operation using:
- lambda
- filter
- map
- reduce
- sum/max/min
- set
- enumerate
- sorted
- reversed
- range
Operation using:
- List /Tuple Comprehension
- Dictionary Comprehension
- Dictionary Use Case
Modules
User Define Modules
Import Categories
- 1) using import
- 2) using from
Built In Modules
- 1) math
- 2) os
- 3) sys
- 4) random
- 5) pickle / Unpickle (Object Serialization)
- 6) json etc
- Day 3
Object Oriented Programming
- Classes and Objects
- The “self” keyword
- Methods and Attributes
- Constructor and Destructor
- Instance and static member
- Class Inheritance
- Built In Attributes
- __private
- public
- _protected
- Multiple Inheritance
- Locking Attributes
- Super keyword
- Files Objects and Methods
- open()
- read(), readlines()
- write(), writelines()
- tell()
- using with statements
- Use Case using File Handling
- Exception Handling
- Built in Exceptions
- exceptions module
- User Define Exceptions
- Day 4
- Regular expressions
- Pattern Writing
- Compiling
- Match/Search
- Group/Groups
- findall
- re.sub
- re.split
- Use Case using Regular Expression and Pattern
File and Directory handling
- 1) Fileinput
- 2) glob
- 3) Regular Expression
- 4) Case Study for Extraction of Data from Multiple Files and Generating Reports
Itertools and Collections framework
- imap/ ifilter /izip
Iterator
file iteration using map
Overriding iterator functions
Generator
- yield
- Use Case of yield
- Day 5
- Testing
- Testing Fundamental
- Types of Testing
- Unittest Framework
- Run Test
- Write Unittest.TestCase for Python
- Code
- Python Debugging and Testing
- Use of pdb
- Calling pytest through python
- py.test
- py.test –pdb
- PyTest Hands On
- Conclusion and Summary