i
HCLTech
Work with us
Filter interviews by
Abstraction simplifies complex systems by hiding details, while encapsulation restricts access to data and methods.
Abstraction focuses on the essential qualities of an object, ignoring irrelevant details. Example: A car's interface (steering wheel, pedals) abstracts the complex mechanics.
Encapsulation bundles data and methods that operate on that data within a single unit (class), restricting access to some compon...
Frames in Selenium are handled using switchTo() method to navigate between frames within a webpage.
Use driver.switchTo().frame() method to switch to a frame by index, name, or WebElement
To switch back to the default content, use driver.switchTo().defaultContent()
Nested frames can be handled by switching to parent frame first before switching to child frame
Example: driver.switchTo().frame(0); // Switch to frame by ...
Handling windows in automation testing involves identifying and interacting with different types of windows that appear during test execution.
Use window handles to switch between different windows
Identify windows using unique attributes like title or handle
Interact with windows by sending keys or clicking on elements within the window
Program to add values into a hashmap in Java.
Create a new HashMap object.
Use the put() method to add key-value pairs into the hashmap.
Keys must be unique, values can be duplicated.
Example: HashMap<String, Integer> map = new HashMap<>(); map.put("A", 1);
Code using Rest Assured for checking status code
Import Rest Assured library
Use given() method to specify the base URI
Use when() method to specify the HTTP method and endpoint
Use then() method to validate the status code
Main concepts of OOPS in Java include inheritance, encapsulation, polymorphism, and abstraction.
Inheritance: Allows a class to inherit properties and behavior from another class. Example: class B extends class A.
Encapsulation: Bundling data and methods that operate on the data into a single unit. Example: private variables with public getter and setter methods.
Polymorphism: Ability of a method to do different thin...
Different HTTP codes used in Rest Assured
200 - OK: Request was successful
201 - Created: Request was successful and a new resource was created
400 - Bad Request: Request was invalid
401 - Unauthorized: Request requires user authentication
404 - Not Found: Requested resource was not found
500 - Internal Server Error: Server encountered an unexpected condition
Program to find 2nd highest number in array without sorting.
Iterate through array to find highest and second highest numbers
Initialize variables to store highest and second highest numbers
Compare each element with highest and second highest numbers
In Selenium, OOPs concept refers to using Object-Oriented Programming principles like inheritance, encapsulation, polymorphism, and abstraction.
Selenium supports OOPs concepts like inheritance, where one class can inherit properties and methods from another class.
Encapsulation is achieved in Selenium by using access modifiers to restrict access to certain methods and variables.
Polymorphism allows Selenium to perfo...
In Selenium, OOPs concepts like inheritance, polymorphism, encapsulation, and abstraction can be implemented using classes and objects.
Selenium supports object-oriented programming principles like inheritance, where one class can inherit properties and methods from another class.
Polymorphism can be achieved in Selenium by using method overloading or overriding.
Encapsulation is implemented in Selenium by hiding the...
I applied via Naukri.com and was interviewed in Nov 2024. There was 1 interview round.
I appeared for an interview in Mar 2025, where I was asked the following questions.
Overriding allows a subclass to provide a specific implementation of a method already defined in its superclass.
Overriding occurs when a subclass has a method with the same name and parameters as a method in its superclass.
It enables polymorphism, allowing a subclass to define behavior specific to its type.
Example in Java: A superclass 'Animal' has a method 'sound()', and a subclass 'Dog' overrides it to provide a spec...
Abstraction simplifies complex systems by hiding details, while encapsulation restricts access to data and methods.
Abstraction focuses on the essential qualities of an object, ignoring irrelevant details. Example: A car's interface (steering wheel, pedals) abstracts the complex mechanics.
Encapsulation bundles data and methods that operate on that data within a single unit (class), restricting access to some components....
Frames in Selenium are handled using switchTo() method to navigate between frames within a webpage.
Use driver.switchTo().frame() method to switch to a frame by index, name, or WebElement
To switch back to the default content, use driver.switchTo().defaultContent()
Nested frames can be handled by switching to parent frame first before switching to child frame
Example: driver.switchTo().frame(0); // Switch to frame by index
Handling windows in automation testing involves identifying and interacting with different types of windows that appear during test execution.
Use window handles to switch between different windows
Identify windows using unique attributes like title or handle
Interact with windows by sending keys or clicking on elements within the window
I applied via Naukri.com and was interviewed in Aug 2024. There was 1 interview round.
Java program to sort an array in ascending order and find fourth highest number in an array without using any built in methods
I applied via Naukri.com and was interviewed in Mar 2024. There were 2 interview rounds.
Program to find 2nd highest number in array without sorting.
Iterate through array to find highest and second highest numbers
Initialize variables to store highest and second highest numbers
Compare each element with highest and second highest numbers
Program to add values into a hashmap in Java.
Create a new HashMap object.
Use the put() method to add key-value pairs into the hashmap.
Keys must be unique, values can be duplicated.
Example: HashMap<String, Integer> map = new HashMap<>(); map.put("A", 1);
Main concepts of OOPS in Java include inheritance, encapsulation, polymorphism, and abstraction.
Inheritance: Allows a class to inherit properties and behavior from another class. Example: class B extends class A.
Encapsulation: Bundling data and methods that operate on the data into a single unit. Example: private variables with public getter and setter methods.
Polymorphism: Ability of a method to do different things ba...
Different HTTP codes used in Rest Assured
200 - OK: Request was successful
201 - Created: Request was successful and a new resource was created
400 - Bad Request: Request was invalid
401 - Unauthorized: Request requires user authentication
404 - Not Found: Requested resource was not found
500 - Internal Server Error: Server encountered an unexpected condition
Code using Rest Assured for checking status code
Import Rest Assured library
Use given() method to specify the base URI
Use when() method to specify the HTTP method and endpoint
Use then() method to validate the status code
In Selenium, OOPs concepts like inheritance, polymorphism, encapsulation, and abstraction can be implemented using classes and objects.
Selenium supports object-oriented programming principles like inheritance, where one class can inherit properties and methods from another class.
Polymorphism can be achieved in Selenium by using method overloading or overriding.
Encapsulation is implemented in Selenium by hiding the inte...
In Selenium, OOPs concept refers to using Object-Oriented Programming principles like inheritance, encapsulation, polymorphism, and abstraction.
Selenium supports OOPs concepts like inheritance, where one class can inherit properties and methods from another class.
Encapsulation is achieved in Selenium by using access modifiers to restrict access to certain methods and variables.
Polymorphism allows Selenium to perform di...
I applied via Naukri.com and was interviewed in Jan 2021. There were 4 interview rounds.
What people are saying about HCLTech
I applied via Internshala and was interviewed in May 2021. There were 3 interview rounds.
Discussing my resume highlights my skills, experiences, and projects relevant to the software engineering role.
Experience with Java and Python in developing web applications.
Led a team project that improved application performance by 30%.
Contributed to open-source projects, enhancing my coding skills and collaboration.
Completed an internship at XYZ Corp, where I developed a feature that increased user engagement.
I applied via Campus Placement and was interviewed before Aug 2021. There were 3 interview rounds.
The first round was an aptitude test with questions ranging from basic mathematical concepts to logical/analytical questions. English was also included in the test. The difficulty was medium and I was able to solve 70-80% of the questions.
Two coding questions were the part of the test. I was supposed to solve and pass all the test cases for both the questions. The coding questions tested my knowledge in the field of arrays, loops and pointers. I was able to solve one and partially solve another.
I applied via Campus Placement and was interviewed before Sep 2021. There were 4 interview rounds.
Prepare normal for aptitude - maths, quant, analytic
My GD topic was Is internet good for students or not
I didn't attempt this as I was noob back in third year Engg
Some of the top questions asked at the HCLTech Automation Test Engineer interview -
based on 8 interview experiences
Difficulty level
Duration
based on 44 reviews
Rating in categories
Bangalore / Bengaluru
8-13 Yrs
Not Disclosed
Software Engineer
24.8k
salaries
| ₹2.7 L/yr - ₹8 L/yr |
Technical Lead
22.8k
salaries
| ₹10.8 L/yr - ₹21 L/yr |
Senior Software Engineer
16.8k
salaries
| ₹5.4 L/yr - ₹15.7 L/yr |
Lead Engineer
16.4k
salaries
| ₹5.3 L/yr - ₹12.4 L/yr |
Analyst
15.8k
salaries
| ₹2.3 L/yr - ₹6.5 L/yr |
TCS
Wipro
Accenture
Cognizant