i
TCS
Filter interviews by
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 ...
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...
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...
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
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...
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...
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...
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...
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
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
I applied via Company Website and was interviewed in Oct 2024. There was 1 interview round.
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
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...
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...
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
I appeared for an interview in Sep 2024.
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 ...
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.
I appeared for an interview in Aug 2024.
You must know one programming language is must , Basic , Java with selenium you have getting experienced it's good
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...
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...
Speak boldly depends on the title
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 ...
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
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
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...
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
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...
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
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...
I applied via Recruitment Consulltant and was interviewed in Sep 2024. There was 1 interview round.
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
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...
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...
I applied via Walk-in and was interviewed in Jul 2024. There were 3 interview rounds.
Scenario based questions, string operation programs
I appeared for an interview in Mar 2025, where I was asked the following questions.
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...
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...
Some of the top questions asked at the TCS Automation Test Engineer interview -
The duration of TCS Automation Test Engineer interview process can vary, but typically it takes about less than 2 weeks to complete.
based on 51 interview experiences
Difficulty level
Duration
based on 337 reviews
Rating in categories
System Engineer
1.1L
salaries
| ₹3.9 L/yr - ₹8.3 L/yr |
IT Analyst
65.5k
salaries
| ₹7.7 L/yr - ₹12.7 L/yr |
AST Consultant
53.6k
salaries
| ₹12 L/yr - ₹20.6 L/yr |
Assistant System Engineer
33.2k
salaries
| ₹2.5 L/yr - ₹6.4 L/yr |
Associate Consultant
33k
salaries
| ₹16.2 L/yr - ₹28 L/yr |
Amazon
Wipro
Infosys
Accenture