0% found this document useful (0 votes)
11 views2 pages

Automation Testing Preparation Plan

Selenium question bank
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views2 pages

Automation Testing Preparation Plan

Selenium question bank
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

1-Week Automation Testing Interview

Preparation Plan
Day 1

Morning
Topics: Introduction to Selenium and Java Basics
Explanation:

In this session, focus on understanding the basics of Selenium WebDriver and how Java
integrates with Selenium to automate web applications. Review object-oriented
programming concepts, classes, objects, inheritance, and polymorphism, which are key in
writing Selenium tests in Java.

Examples:

Example 1: Write a simple Selenium script to open a browser and navigate to a URL.
Example 2: Demonstrate creating a class and object in Java for browser actions.

Questions and Answers:


Q: What is Selenium WebDriver?
A: Selenium WebDriver is a tool used to automate web applications for testing purposes. It
interacts directly with the browser to perform user actions.
Q: How does Java support Selenium?
A: Java is used as the programming language for writing test scripts. Its OOP concepts help
in building reusable and modular test cases.

Afternoon
Topics: TestNG Setup and Basics
Explanation:

TestNG is a testing framework used with Selenium for managing test cases. It supports
parallel execution, test grouping, and generating detailed test reports. Learn how to install
and configure TestNG with your Java project.

Examples:

Example 1: Create a sample test case with TestNG and run it.
Example 2: Group test methods and execute specific groups.

Questions and Answers:


Q: What are the advantages of TestNG?
A: TestNG allows test configuration, parallel execution, and detailed HTML reports.
Q: How do you create a test suite in TestNG?
A: A test suite is created by using an XML file where you define test groups and their
execution order.

Evening
Topics: Git Basics and Version Control
Explanation:

Version control is critical in automation projects. Git allows tracking code changes,
managing branches, and collaborating with team members. Learn the basic Git commands
and workflows such as cloning repositories, creating branches, committing code, and
merging changes.

Examples:

Example 1: Clone a Git repository.


Example 2: Create a branch, make changes, and push it to the remote repository.

Questions and Answers:


Q: What is the role of Git in automation testing?
A: Git is used for version controlling test scripts, tracking changes, and collaboration among
team members.
Q: How do you resolve a merge conflict in Git?
A: Merge conflicts occur when multiple changes conflict with each other. You can manually
resolve them by editing the conflicting files and committing the changes.

End of Day 1: Review Session


Review the day’s learnings and cover scenario-based questions.
1. Write a Selenium script to check if a login form is visible and enabled on the page.
2. How do you execute only a group of tests using TestNG?
3. Explain a scenario where version control in Git would help during automation.

You might also like