Selenium Syllabus

Prerequisites to learn Selenium

What to learn for Selenium Testing?

Selenium Syllabus, Selenium Fundamentals, Java for Selenium, Selenium WebDriver, TestNG Testing Framework for Selenium, and Selenium Automation Framework. 

Select Selenium Tool/s, Programming Language to write Test Scripts, and TestNG Framework as Test Runner.

Selenium Suite of Tools/Selenium Components
i) Selenium IDE
ii) Selenium RC
iii) Selenium WebDriver
iv) Selenium Grid

Selenium IDE is a Record and Playback tool, no programming support and it is a prototype tool, not suitable for complex Test Design, so eliminate Selenium IDE, next Selenium RC is outdated, next Selenium Grid, It is only for Test Execution/Parallel Testing and doesn’t support Test Design, so now we have only one tool for creating and executing Test cases, that is Selenium WebDriver.

Selenium WebDriver supports Java, C#.NET, Python, Perl, Ruby, and PHP, nowadays most of Selenium Testers are choosing Java, so select Java for Selenium.

Testing Framework Selection depends on the Programming platform, we select Java as a programming platform, then the supported Framework is either JUnit or TestNG, select TestNG Framework for selenium as Test Runner.

Selenium Syllabus  

• Selenium is not an all-inclusive Test Tool, so it requires third-party plugins and frameworks to broaden the scope of testing.

• Select Selenium Tool/s, Third Part Plugins, and Frameworks.

(In Real-time, Test Lead or Test Manager selects the required software for Test Environment by considering the team members’ interests and their previous experience.)

Components of Selenium Test Environment

1. Selenium WebDriver
2. Selenium Grid
3. Java
4. Eclipse IDE
5. TestNG
6. Maven
7. Extent Reports
8. Automation Framework (Hybrid)

Important Modules
1. Java Programming for Selenium
2. Selenium WebDriver
3. TestNG Testing Framework for Selenium
4. Selenium Automation Framework

Module I: Java Programming for Selenium

Java Standard Edition (Core Java)

1. Java Environment Setup

Download & Install Java (JDK) software, set Java environment variable path, and Download & Install Eclipse IDE.

2. Java Keywords and Identifiers

Java keywords are also known as reserved words. Keywords are particular words that act as a key to a code.

Identifiers in Java are symbolic names used for identification. They can be a class name, variable name, method name, package name, constant name, and more.

3. Java Syntax

The syntax of Java refers to the set of rules defining how a Java program is written and interpreted. The syntax is mostly derived from C and C++.

4. Java Object Oriented Programming Basics
(Class, Object, Method, Constructor, and Interface)

5. Java Program Structure

Java Program Structure, Java Syntax, Java Keywords & Literals, Java main method, Create Java Variables, Methods, conditions, loops, and IO.

6. Java Comments

Java Comments, What is a Comment?, Writing comments in Java, Java single line comment, multi-line comment, and Java Documentation comments.

7. Java Modifiers

8. Java Data Types

Java Data Types, Categories of Data Types in Java, Java Primetime Data Types, Java Non-primitive Data Types, and Data Type Conversion in Java.

9. Java Variables

Java Variables, What is Variable, Types of Variables in Java, Declare Variables, Assign values to Variables, and Java Variable Naming Rules.

10. Java Operators

Operators in Java, what is the operator? operator precedence, arithmetic operators, unary operators, comparison operators, and logical operators.

11. Java Control Flow
i. Decision Making/Conditional Statements
ii. Loop Statements
iii. Branching Statements

12. String Handling in Java

Java Strings, What is String?, Declare Strings in Java, String handling in Java, String Methods, String Concatenation, and String Comparison.

13. Java Data Structures

Java Arrays

Arrays in Java, What is Array in Java, Declare Arrays, Java Array built-in methods, advantages of Java Arrays, and Drawbacks of Java Arrays.

Java ArrayList

Java ArrayList, Java Data Structures, Java Arrays vs. ArrayList, Add elements to an ArrayList, Remove Java Array List Elements, and Java ArrayList Operations.

14. Java Input and Output
Java Input and Output, Java User Input, Java Output, Java Scanner Class, Java System Class, Java File Handling, and Java Database Connectivity.

15. Java Methods

Java User-defined methods

Java User-defined Methods, What is a Method?. Advantages of methods in Java. Declare & call methods, and Static & Non-static Methods in Java.

Java built-in methods

Java Built-in Methods, Java Java Standard Library Methods, Java String Methods, Java Number Methods, Java Character Methods, and Array Methods.

16. Java Exception Handling

Exception Handling in Java, What is Exception handling, Types of exceptions in Java, Java Program Run-time Errors, and Java try-catch block.

17. Java Object-Oriented Programming
Java Object-Oriented Programming, Class, Object, Method, Java Inheritance, Polymorphism in Java, Java Abstraction, and Java Encapsulation.

Module 2: Selenium WebDriver

1. Selenium Test Environment Setup

(Select Selenium Tools and Other Software for Selenium Test Environment, Download & Install Java, Download & Install Eclipse IDE, Download Selenium WebDriver & Configure, Download & Install TestNG Plug-in, Create Maven Project, etc,) 

2. Inspect Web/HTML Elements

(Handle Edit boxes, Links, Buttons, Dropdown boxes, List Boxes, Combo boxes, Radio Buttons, Check Boxes, Images, Tables, Frames, etc, )

3. Locating Elements in Selenium (Using Element Locators)

(Web or HTML Elements, id(), name(), className(), tagName(), linkText(), partialLinkText(), cssSelector, and xpath())

4. Performing Actions on Elements (Using Selenium WebDriver Methods)

(Handle Browsers, Enter a Value into Edit box, Capture value from an Edit box, Clear value from an Edit box, Click Button, Click Link, Select a Radio Button, Select Check Box, Capture Error Message, Handle Error Popup, Handle Web Tables, and Handle Frames, etc, )

5. Selenium Page Object Model (Creating Object Repositories)

(Create Object Page Classes using without Page Factory, Create Test Case Classes using Page Classes, Update Page Classes (Object Repositories), and Maintain Page classes.)

6. Writing Selenium Test Cases

Write Selenium Test Steps
Inserting Verification Points
Handling Run-time Errors

Module 3: TestNG Testing Framework for Selenium

1. Install TestNG plug-in for Eclipse IDE

2. Create Test Batches (TestNG Programs)

3. Prioritize Test Cases

4. Grouping Test Cases

5. Executing Test Batches

6. Generating Test Reports

Module 4: Selenium Automation Framework

1. Selenium Test Environment Setup
(By Integrating Maven with Selenium)

2. Create a Folder Structure
(To store Automation resources like Page Objects, Reusable Functions, Test Cases, Test Data, Test Results, etc,)

3. Create Automation Resources
(Object Repositories/Page Objects, Reusable Functions, etc,)

4. Create Selenium Test Cases

5. Execute/Run Test Batches

6. Analyze Test Results & Report Defects.

7. Re & Regression Testing

8. Maintain Test Automation Resources

Note: Selenium Syllabus depends on our selected tools and plugins for Selenium. (Ex: Java, TestNG, etc.)

Eclipse IDE:

Eclipse IDE (Integrated Development Environment) is an Open source software, it is a platform to write and execute computer programs like Java, Perl, Python, Ruby, PHP, etc…

Eclipse IDE provides an editor for writing programs, Syntax guidance, Context Help, Auto Compilation, etc…

Note: Eclipse IDE is used to write Selenium Test cases and Integrate Selenium with other software.

Subject Links:

Writing Selenium Test Cases

Selenium Automation Framework

Follow me on social media: