Upload Button Icon Add office photos
Engaged Employer

i

This company page is being actively managed by TCS Team. If you also belong to the team, you can get access from here

TCS Verified Tick

Compare button icon Compare button icon Compare

Filter interviews by

TCS Automation Test Engineer Interview Questions and Answers

Updated 16 May 2025

62 Interview questions

🔥 Asked by recruiter 14 times
An Automation Test Engineer was asked 1mo ago
Q. What is Encapsulation?
Ans. 

Encapsulation is a fundamental concept in object-oriented programming that restricts direct access to object data.

  • Encapsulation combines data and methods that operate on that data within a single unit or class.

  • It protects the internal state of an object by using access modifiers (private, protected, public).

  • For example, a class 'Car' can have private attributes like 'speed' and 'fuelLevel', with public methods to ...

An Automation Test Engineer was asked 2mo ago
Q. What is the difference between git pull and git merge?
Ans. 

Git pull fetches and merges changes from a remote repository, while git merge combines changes from different branches locally.

  • Git Pull: A command that fetches changes from a remote repository and merges them into the current branch. Example: 'git pull origin main'.

  • Git Merge: A command that combines changes from one branch into another branch locally. Example: 'git merge feature-branch'.

  • Pull is a combination of fe...

Automation Test Engineer Interview Questions Asked at Other Companies

asked in TCS
Q1. How to handle scrollbar and mouse activities Jenkins and Github S ... read more
asked in Infosys
Q2. Introduce yourself 1.What is STLC 2. difference between Test plan ... read more
asked in LTIMindtree
Q3. 1. diff b/w findelements vs findelement? 2. set vs map? 3. wap fo ... read more
asked in Capgemini
Q4. 1] Introduction 2] Sanity Vs Smoke testing 3] Waits in selenium a ... read more
asked in Capgemini
Q5. What is assertion? What is soft assertion? What is hard assertion ... read more
An Automation Test Engineer was asked 2mo ago
Q. Given an input string like 'aaabbbcccdddaa', how would you compress it to an output like 'a->3 b->3 c->3 d->3 a->2'?
Ans. 

The task involves counting consecutive characters in a string and formatting the output to show counts for each character.

  • Character Counting: Iterate through the string and count consecutive occurrences of each character.

  • Output Format: Each character and its count should be formatted as 'character->count'.

  • Example: For 'aaabbbcccdddaa', the output should be 'a->3 b->3 c->3 d->3 a->2'.

  • Handling Tran...

An Automation Test Engineer was asked 2mo ago
Q. Are you willing to adopt flexible working hours?
Ans. 

I am open to flexible work timings as it enhances productivity and work-life balance.

  • Flexible timings allow me to work during my peak productivity hours, leading to better test coverage.

  • For instance, I can conduct tests during off-peak hours to minimize system load and get more accurate results.

  • It also enables me to accommodate personal commitments, ensuring I remain focused and motivated at work.

  • I have previously...

What people are saying about TCS

View All
a digital marketer
3d
Do you think they're gonna work on employees' work-life balance, OR for just publicity?
Infosys, Infosys, TCS, Genpact Revise Workplace Policies Infosys is sending a warning mail, if an employee overshoots the daily limit while working remotely, the system triggers a notification Genpact introduced a new policy to log in before 11 am But will these companies really change, or is it just a show to mask their issues?
FeedCard Image
Got a question about TCS?
Ask anonymously on communities.
An Automation Test Engineer was asked 4mo ago
Q. What is the TestNG tool, and when do we use it for testing?
Ans. 

TestNG is a testing framework designed for unit testing and integration testing in Java.

  • TestNG is used for writing and running tests in Java programming language.

  • It supports annotations like @Test, @BeforeMethod, @AfterMethod for test configuration.

  • TestNG allows grouping of test cases, prioritizing tests, and parallel execution.

  • It generates detailed test reports and supports data-driven testing.

  • TestNG can be integ...

An Automation Test Engineer was asked 7mo ago
Q. What do you mean by XPath?
Ans. 

XPath is a language used to navigate through elements and attributes in XML documents, commonly used in web automation testing.

  • XPath stands for XML Path Language.

  • It allows for the selection of nodes from an XML document.

  • XPath can be used to locate elements in HTML documents, as HTML is a form of XML.

  • Example: //div[@id='example'] selects a <div> element with id 'example'.

  • XPath supports both absolute and relat...

An Automation Test Engineer was asked 7mo ago
Q. What do you mean by DOM?
Ans. 

DOM stands for Document Object Model, a programming interface for web documents that represents the structure of a webpage.

  • The DOM represents the document as a tree of nodes, where each node is an object representing a part of the document.

  • It allows programming languages like JavaScript to manipulate the content, structure, and style of a webpage dynamically.

  • For example, using JavaScript, you can access an element...

Are these interview questions helpful?
An Automation Test Engineer was asked 8mo ago
Q. Explain the OOP concepts used in your framework with examples.
Ans. 

OOPs concepts used in the framework include inheritance, polymorphism, encapsulation, and abstraction.

  • Inheritance is used to create a parent-child relationship between classes. For example, a base class 'Page' can be inherited by 'HomePage' and 'LoginPage' classes.

  • Polymorphism allows objects of different classes to be treated as objects of a common superclass. For instance, a 'click' method can be implemented diff...

An Automation Test Engineer was asked 8mo ago
Q. Write a Java program to print the sum of elements in a string array. For example: String[] arr = {"1","2","3"}
Ans. 

Java program to print the sum of elements in a string array.

  • Convert each element in the string array to an integer using Integer.parseInt()

  • Sum up all the integers to get the total sum

An Automation Test Engineer was asked 8mo ago
Q. Write a Java program to print the sum of digits from a given string (e.g., "abcd23").
Ans. 

Java program to print sum of digits from a given string

  • Iterate through each character in the string

  • Check if the character is a digit using Character.isDigit() method

  • Convert the digit character to integer using Character.getNumericValue() method

  • Sum up all the digits found in the string

TCS Automation Test Engineer Interview Experiences

50 interviews found

Interview experience
4
Good
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Not Selected

I applied via Company Website and was interviewed in Oct 2024. There was 1 interview round.

Round 1 - Technical 

(4 Questions)

  • Q1. Write java program to print sum of digits from a given string eg: "abcd23"
  • Ans. 

    Java program to print sum of digits from a given string

    • Iterate through each character in the string

    • Check if the character is a digit using Character.isDigit() method

    • Convert the digit character to integer using Character.getNumericValue() method

    • Sum up all the digits found in the string

  • Answered by AI
  • Q2. Explain oops concepts used in your framework with example?
  • Ans. 

    OOPs concepts used in the framework include inheritance, polymorphism, encapsulation, and abstraction.

    • Inheritance is used to create a parent-child relationship between classes. For example, a base class 'Page' can be inherited by 'HomePage' and 'LoginPage' classes.

    • Polymorphism allows objects of different classes to be treated as objects of a common superclass. For instance, a 'click' method can be implemented different...

  • Answered by AI
  • Q3. Explain polymorphism
  • Ans. 

    Polymorphism is the ability of a single function or method to operate on different types of data.

    • Polymorphism allows objects of different classes to be treated as objects of a common superclass.

    • There are two types of polymorphism: compile-time (method overloading) and runtime (method overriding).

    • Example of compile-time polymorphism: function overloading in Java.

    • Example of runtime polymorphism: method overriding in Java...

  • Answered by AI
  • Q4. Java program to print the sum of elements in string array eg: String[] arr = {"1","2","3"}
  • Ans. 

    Java program to print the sum of elements in a string array.

    • Convert each element in the string array to an integer using Integer.parseInt()

    • Sum up all the integers to get the total sum

  • Answered by AI

Skills evaluated in this interview

Interview experience
3
Average
Difficulty level
Easy
Process Duration
Less than 2 weeks
Result
Selected Selected

I appeared for an interview in Sep 2024.

Round 1 - Technical 

(2 Questions)

  • Q1. Selenium related question
  • Q2. Java/Python concepts
Round 2 - Behavioral 

(2 Questions)

  • Q1. Why TCS and what makes you different from others
  • Ans. 

    I chose TCS for its global presence, reputation for innovation, and opportunities for growth.

    • TCS is a global leader in IT services with a strong reputation for innovation and quality.

    • I am attracted to TCS's focus on continuous learning and development, which aligns with my career goals.

    • TCS offers diverse opportunities for growth and career advancement, which is important to me.

    • I believe my skills in automation testing ...

  • Answered by AI
  • Q2. Resume walkthrough
Round 3 - HR 

(1 Question)

  • Q1. How soon you can join
  • Ans. 

    I can join within 2 weeks of receiving an offer.

    • I have a 2-week notice period at my current job.

    • I need time to wrap up my current projects before starting a new role.

    • I am excited about the opportunity and eager to join the team.

    • I can start sooner if necessary, depending on the circumstances.

  • Answered by AI
Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Selected Selected

I appeared for an interview in Aug 2024.

Round 1 - Aptitude Test 

You must know one programming language is must , Basic , Java with selenium you have getting experienced it's good

Round 2 - Technical 

(2 Questions)

  • Q1. When we are using the automation testing
  • Ans. 

    Automation testing is the use of software to execute tests and compare actual outcomes with expected outcomes.

    • Automation testing helps in reducing human errors and increasing test coverage.

    • It is useful for repetitive test cases, regression testing, and load testing.

    • Tools like Selenium, Appium, and JUnit are commonly used for automation testing.

    • Automation testing can be used for web applications, mobile applications, an...

  • Answered by AI
  • Q2. What is the TestNG tool and when we are using this tool to test
  • Ans. 

    TestNG is a testing framework designed for unit testing and integration testing in Java.

    • TestNG is used for writing and running tests in Java programming language.

    • It supports annotations like @Test, @BeforeMethod, @AfterMethod for test configuration.

    • TestNG allows grouping of test cases, prioritizing tests, and parallel execution.

    • It generates detailed test reports and supports data-driven testing.

    • TestNG can be integrated...

  • Answered by AI
Round 3 - Group Discussion 

Speak boldly depends on the title

Round 4 - HR 

(2 Questions)

  • Q1. Why did you select in this company
  • Ans. 

    I selected this company for its reputation in the industry, opportunities for growth, and positive work culture.

    • Reputation in the industry - Company is known for its innovative solutions and quality products.

    • Opportunities for growth - Company offers training programs and career advancement opportunities.

    • Positive work culture - Employees speak highly of the supportive and collaborative environment.

    • Location - Convenient ...

  • Answered by AI
  • Q2. What is your expectations about in this organisation
  • Ans. 

    I expect to work in a collaborative environment with opportunities for growth and learning.

    • Opportunities for professional development and training

    • Collaborative team environment

    • Clear communication and feedback channels

    • Supportive management

    • Work-life balance

  • Answered by AI
Interview experience
4
Good
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Technical 

(6 Questions)

  • Q1. Types of Locators
  • Ans. 

    Locators are used in automation testing to identify web elements on a webpage. Common types include ID, class name, name, xpath, and CSS selector.

    • ID: Unique identifier for an element

    • Class name: Name of the class attribute of an element

    • Name: Name attribute of an element

    • XPath: Path of the element in the HTML structure

    • CSS selector: Selector based on CSS attributes

  • Answered by AI
  • Q2. What is Interface
  • Ans. 

    An interface in programming defines a contract for classes to implement, specifying methods and properties that must be included.

    • Interfaces in programming are used to define a set of methods that a class must implement.

    • They provide a way to achieve abstraction and multiple inheritance in languages that do not support it.

    • Interfaces are like blueprints for classes, ensuring consistency and standardization in code.

    • Example...

  • Answered by AI
  • Q3. What is abstract class
  • Ans. 

    Abstract class is a class that cannot be instantiated and may contain abstract methods.

    • Cannot be instantiated directly

    • May contain abstract methods that must be implemented by subclasses

    • Can have both abstract and non-abstract methods

    • Used for defining a common interface for subclasses

  • Answered by AI
  • Q4. Absolute and relative xpath difference
  • Ans. 

    Absolute xpath starts from the root node, while relative xpath starts from any node in the DOM.

    • Absolute xpath starts with a single forward slash (/) and is more brittle as any changes in the DOM structure can break the xpath.

    • Relative xpath starts with a double forward slash (//) and is more flexible as it can start from any node in the DOM.

    • Absolute xpath is longer and less readable compared to relative xpath.

    • Example: A...

  • Answered by AI
  • Q5. Different exceptions
  • Ans. 

    Different exceptions in automation testing

    • Common exceptions include NoSuchElementException, TimeoutException, StaleElementReferenceException

    • Handle exceptions using try-catch blocks to gracefully handle errors

    • Custom exceptions can be created for specific scenarios

    • Exceptions can be logged for debugging purposes

  • Answered by AI
  • Q6. String Duplicates coding
  • Ans. 

    Identify and remove duplicate strings from an array while maintaining the original order.

    • Use a Set to track seen strings and filter duplicates. Example: ['apple', 'banana', 'apple'] becomes ['apple', 'banana'].

    • Iterate through the array and add unique strings to a new array. Example: ['cat', 'dog', 'cat'] results in ['cat', 'dog'].

    • Consider case sensitivity. Example: ['Hello', 'hello'] treats them as different strings.

    • Re...

  • Answered by AI

Skills evaluated in this interview

Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Not Selected

I applied via Recruitment Consulltant and was interviewed in Sep 2024. There was 1 interview round.

Round 1 - Technical 

(2 Questions)

  • Q1. API testing related questions like status codes, about postman
  • Q2. Java program on arrays
  • Ans. 

    Java program on arrays to manipulate array of strings

    • Declare an array of strings

    • Initialize the array with values

    • Access and manipulate elements in the array

  • Answered by AI

Skills evaluated in this interview

Interview experience
4
Good
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Technical 

(2 Questions)

  • Q1. Project Specific question
  • Q2. Basics of Java and selenium
Round 2 - Behavioral 

(2 Questions)

  • Q1. Experience in team management
  • Ans. 

    I have led diverse teams in automation testing, focusing on collaboration, mentorship, and achieving project goals efficiently.

    • Led a team of 5 automation testers, improving test coverage by 30% through effective collaboration and knowledge sharing.

    • Implemented Agile methodologies, resulting in a 20% reduction in testing cycle time and increased team productivity.

    • Mentored junior testers, providing guidance on best practi...

  • Answered by AI
  • Q2. Roles and responsibilities
Round 3 - HR 

(1 Question)

  • Q1. Compensation negotiation
Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
-
Result
Not Selected
Round 1 - Technical 

(2 Questions)

  • Q1. Questions on selenium, Java oops concepts
  • Q2. Difficult problems u have solved in your current company
  • Ans. 

    Implemented a robust automation framework to handle dynamic web elements and data-driven testing.

    • Developed custom functions to handle dynamic element identification using XPath and CSS selectors.

    • Implemented data-driven testing using Excel sheets to easily update test data.

    • Resolved issues with handling pop-up windows and alerts during test execution.

    • Optimized test scripts for faster execution by implementing parallel te...

  • Answered by AI
Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Not Selected

I applied via Walk-in and was interviewed in Jul 2024. There were 3 interview rounds.

Round 1 - Coding Test 

Scenario based questions, string operation programs

Round 2 - One-on-one 

(2 Questions)

  • Q1. Framework related questions
  • Q2. Testing methodologies
Round 3 - HR 

(1 Question)

  • Q1. Academic and work experience details
Interview experience
3
Average
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Not Selected

I appeared for an interview in Mar 2025, where I was asked the following questions.

  • Q1. Input: aaabbbcccdddaa output: a->3 b>3 c>3 d>3 a>2
  • Ans. 

    The task involves counting consecutive characters in a string and formatting the output to show counts for each character.

    • Character Counting: Iterate through the string and count consecutive occurrences of each character.

    • Output Format: Each character and its count should be formatted as 'character->count'.

    • Example: For 'aaabbbcccdddaa', the output should be 'a->3 b->3 c->3 d->3 a->2'.

    • Handling Transitio...

  • Answered by AI
  • Q2. Diff between git pull and git merge
  • Ans. 

    Git pull fetches and merges changes from a remote repository, while git merge combines changes from different branches locally.

    • Git Pull: A command that fetches changes from a remote repository and merges them into the current branch. Example: 'git pull origin main'.

    • Git Merge: A command that combines changes from one branch into another branch locally. Example: 'git merge feature-branch'.

    • Pull is a combination of fetch a...

  • Answered by AI
  • Q3. Jenkins, collection
Interview experience
5
Excellent
Difficulty level
-
Process Duration
4-6 weeks
Result
Selected Selected
Round 1 - One-on-one 

(2 Questions)

  • Q1. Automation Test Process
  • Q2. Docker Kafka Selenium Rest

Interview Preparation Tips

Interview preparation tips for other job seekers - Learn n Learn

TCS Interview FAQs

How many rounds are there in TCS Automation Test Engineer interview?
TCS interview process usually has 2-3 rounds. The most common rounds in the TCS interview process are Technical, HR and Resume Shortlist.
How to prepare for TCS Automation Test Engineer interview?
Go through your CV in detail and study all the technologies mentioned in your CV. Prepare at least two technologies or languages in depth if you are appearing for a technical interview at TCS. The most common topics and skills that interviewers at TCS expect are Automation Testing, Selenium, Java, JIRA and API Testing.
What are the top questions asked in TCS Automation Test Engineer interview?

Some of the top questions asked at the TCS Automation Test Engineer interview -

  1. How to handle scrollbar and mouse activities Jenkins and Github Story Point in ...read more
  2. 1) cucumber 2) Defects worked on, tell me about the bugs you found during testi...read more
  3. Real time scenario to explain like how to approach any testing (Test Scenario, ...read more
What are the most common questions asked in TCS Automation Test Engineer HR round?

The most common HR questions asked in TCS Automation Test Engineer interview are -

  1. What are your salary expectatio...read more
  2. Share details of your previous j...read more
  3. Tell me about yourse...read more
How long is the TCS Automation Test Engineer interview process?

The duration of TCS Automation Test Engineer interview process can vary, but typically it takes about less than 2 weeks to complete.

Tell us how to improve this page.

Overall Interview Experience Rating

4.2/5

based on 51 interview experiences

Difficulty level

Easy 24%
Moderate 76%

Duration

Less than 2 weeks 79%
2-4 weeks 11%
4-6 weeks 7%
More than 8 weeks 4%
View more
TCS Automation Test Engineer Salary
based on 4.7k salaries
₹3.7 L/yr - ₹8.5 L/yr
19% less than the average Automation Test Engineer Salary in India
View more details

TCS Automation Test Engineer Reviews and Ratings

based on 337 reviews

3.8/5

Rating in categories

3.5

Skill development

4.0

Work-life balance

2.6

Salary

4.6

Job security

3.7

Company culture

2.5

Promotions

3.4

Work satisfaction

Explore 337 Reviews and Ratings
Java Automation Test Engineer

Hyderabad / Secunderabad,

Pune

+1

5-10 Yrs

Not Disclosed

Web Automation Test Engineer

Hyderabad / Secunderabad

6-10 Yrs

Not Disclosed

Automation Test Engineer

Chennai

5-10 Yrs

Not Disclosed

Explore more jobs
System Engineer
1.1L salaries
unlock blur

₹3.9 L/yr - ₹8.3 L/yr

IT Analyst
65.5k salaries
unlock blur

₹7.7 L/yr - ₹12.7 L/yr

AST Consultant
53.6k salaries
unlock blur

₹12 L/yr - ₹20.6 L/yr

Assistant System Engineer
33.2k salaries
unlock blur

₹2.5 L/yr - ₹6.4 L/yr

Associate Consultant
33k salaries
unlock blur

₹16.2 L/yr - ₹28 L/yr

Explore more salaries
Compare TCS with

Amazon

4.0
Compare

Wipro

3.7
Compare

Infosys

3.6
Compare

Accenture

3.7
Compare
write
Share an Interview