i
TCS
Filter interviews by
My framework is a data-driven automation framework using Selenium and TestNG.
Utilizes Selenium for web automation
Uses TestNG for test case management and execution
Supports data-driven testing with external data sources like Excel or CSV files
Listeners in test automation are used to capture and log events during test execution.
Listeners are interfaces that collect and display information about test execution.
They can be used to generate logs, reports, and screenshots during test runs.
Common listeners in test automation frameworks include TestNG listeners and JUnit listeners.
The pillars of OOP (Object-Oriented Programming) are encapsulation, inheritance, and polymorphism.
Encapsulation: Bundling data and methods that operate on the data into a single unit (class).
Inheritance: Ability to create new classes based on existing classes, inheriting their attributes and methods.
Polymorphism: Ability for objects of different classes to respond to the same message in different ways.
Java OOPs concept refers to the Object-Oriented Programming principles in Java, including encapsulation, inheritance, polymorphism, and abstraction.
Encapsulation: Bundling data and methods that operate on the data into a single unit (class).
Inheritance: Allows a class to inherit properties and behavior from another class.
Polymorphism: Ability to present the same interface for different data types.
Abstraction: Hiding th...
Java Collection Framework is a set of classes and interfaces that provide various data structures and algorithms to store and manipulate collections of objects.
It provides interfaces like List, Set, Map, Queue, etc. for different types of collections.
Classes like ArrayList, LinkedList, HashSet, HashMap, PriorityQueue, etc. implement these interfaces.
It includes algorithms like sorting, searching, and manipulation of co...
What people are saying about TCS
TCS interview questions for designations
I applied via Naukri.com and was interviewed in Jul 2021. There were 4 interview rounds.
Relative xpath is a path that starts from the node of the current element, while absolute xpath starts from the root node.
Relative xpath is shorter and more flexible than absolute xpath.
Relative xpath is recommended when the structure of the page is likely to change.
Absolute xpath is more specific and less prone to errors.
Absolute xpath is recommended when the structure of the page is unlikely to change.
Example of rela...
POM stands for Page Object Model. It is a design pattern used in test automation to create object repositories for web UI elements.
POM separates the UI elements and the test code, making the code more maintainable and reusable.
Each web page is represented by a separate class in POM.
POM helps in reducing code duplication and improves test script maintenance.
POM is widely used in Selenium WebDriver test automation.
Exampl...
Jenkins is an open-source automation server that helps to automate parts of the software development process.
Jenkins allows for continuous integration and continuous delivery (CI/CD) of software projects.
It can be used to build, test, and deploy software automatically.
Jenkins has a large number of plugins available to extend its functionality.
Examples of plugins include ones for integrating with version control systems...
Constructor is a special method that is used to initialize objects. Constructor overloading is having multiple constructors with different parameters.
Constructor is called when an object is created
It has the same name as the class
It can have parameters
Constructor overloading is having multiple constructors with different parameters
Example: public class Person { public Person() {} public Person(String name) {} }
Method overloading and overriding are two concepts in object-oriented programming that allow methods to have multiple implementations.
Method overloading is when a class has multiple methods with the same name but different parameters.
Method overriding is when a subclass provides a different implementation of a method that is already defined in its superclass.
Example of method overloading: public void print(int num) and...
TestNG is a testing framework for Java that supports various annotations to define test methods and their behavior.
TestNG is used for unit, functional, and integration testing
Annotations like @Test, @BeforeTest, @AfterTest, etc. are used to define test methods and their behavior
TestNG allows grouping of test methods and prioritizing their execution
TestNG also supports data-driven testing and parallel test execution
Exam...
TestNg.xml file is important for configuring and executing TestNG tests.
TestNg.xml file allows us to configure test suites, test cases, and test data.
It helps in grouping and prioritizing tests, setting up dependencies, and parallel execution.
We can also specify test parameters, listeners, and reporting options in the TestNg.xml file.
Example:
Example:
Example:
Implicit wait is a global wait applied to all elements, while explicit wait is a wait applied to a specific element.
Implicit wait is set once and applied to all elements in the script
Explicit wait is set for a specific element and waits for a certain condition to be met
Implicit wait is set using the 'driver.manage().timeouts().implicitlyWait()' method
Explicit wait is set using the 'WebDriverWait' class and 'ExpectedCon...
Screenshots can be captured using built-in tools or third-party software.
On Windows, use the Snipping Tool or press Windows key + Print Screen
On Mac, press Command + Shift + 4
Third-party software like Greenshot or Lightshot can also be used
Screenshots can be saved as image files or copied to clipboard
find elements returns a list of web elements matching the locator, while find element returns the first web element matching the locator.
find elements returns a list of web elements, find element returns the first web element
find elements is used when multiple elements need to be located, find element is used when only one element is needed
find elements is useful for handling multiple elements like a list of links, fin...
Get interview-ready with Top TCS Interview Questions
I applied via Naukri.com and was interviewed before Jul 2021. There were 2 interview rounds.
I applied via Company Website and was interviewed before May 2022. There were 4 interview rounds.
Real time scenario test in coding
I applied via Job Fair and was interviewed before Apr 2022. There were 4 interview rounds.
Refer all questions asked before
I applied via Campus Placement and was interviewed before Feb 2021. There were 3 interview rounds.
Aptitude round consists Logical reasoning, General Aptitude, Grammar related questions etc. All are moderate level questions.
OOPs is a programming paradigm that uses objects to represent real-world entities. Java is an OOPs language.
OOPs stands for Object-Oriented Programming System
Java is a class-based OOPs language
Encapsulation, Inheritance, Polymorphism, and Abstraction are the four pillars of OOPs
Objects have state and behavior
Java supports interfaces, which allow for multiple inheritance
Example: A car can be represented as an object wit...
Java solves machine dependency by using bytecode and virtual machine.
Java code is compiled into bytecode which is platform-independent
The bytecode is executed by the Java Virtual Machine (JVM) which is platform-specific
JVM translates bytecode into machine code for the specific platform
This allows Java code to run on any platform with a JVM installed
Example: A Java program compiled on Windows can run on Linux or Mac as
The duration of TCS Test Engineer interview process can vary, but typically it takes about less than 2 weeks to complete.
based on 6 interviews
1 Interview rounds
based on 255 reviews
Rating in categories
System Engineer
1.1L
salaries
| ₹0 L/yr - ₹0 L/yr |
IT Analyst
66.6k
salaries
| ₹0 L/yr - ₹0 L/yr |
AST Consultant
51.5k
salaries
| ₹0 L/yr - ₹0 L/yr |
Assistant System Engineer
29.8k
salaries
| ₹0 L/yr - ₹0 L/yr |
Associate Consultant
29.5k
salaries
| ₹0 L/yr - ₹0 L/yr |
Amazon
Wipro
Infosys
Accenture