Upload Button Icon Add office photos
Engaged Employer

i

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

HCLTech Verified Tick

Compare button icon Compare button icon Compare

Filter interviews by

HCLTech Automation Engineer Interview Questions and Answers

Updated 8 Oct 2024

10 Interview questions

An Automation Engineer was asked 8mo ago
Q. Write a program to sort the input in descending order without using built-in methods/functions.
Ans. 

Sort input array of strings in descending order without using inbuilt functions

  • Iterate through the array and compare each element with the rest to find the largest element

  • Swap the largest element with the first element, then repeat the process for the remaining elements

  • Continue this process until the array is sorted in descending order

An Automation Engineer was asked 8mo ago
Q. What is the difference between String and StringBuilder?
Ans. 

String is immutable, while StringBuilder is mutable and more efficient for concatenating strings.

  • String is immutable, meaning its value cannot be changed once it is created.

  • StringBuilder is mutable, allowing for modifications to the string without creating a new object.

  • StringBuilder is more efficient for concatenating multiple strings as it does not create new objects each time.

  • Example: String str = "Hello"; Strin...

Automation Engineer Interview Questions Asked at Other Companies

asked in GEA Group
Q1. 16) What is modbus ? Types of modbus? How many slaves we can conn ... read more
Q2. 1. Explain oops concepts in coding. 2. Write a program to find mi ... read more
asked in Blue Yonder
Q3. What is the difference between Absolute and Relative XPaths?
asked in GEA Group
Q4. What is the ASI protocol? How many slaves can be connected to one ... read more
Q5. Write a program to find the number of palindrome words in a given ... read more
An Automation Engineer was asked 8mo ago
Q. What is the output of the following code? class Animal{ Animal(){ System.out.println("animal is created"); } } class Dog extends Animal{ Dog(){ System.out.println("Dog is created");} } class TestSuper4{ pub...
Ans. 

The output of the code will be 'animal is created' followed by 'Dog is created'.

  • The code defines a class Animal with a constructor that prints 'animal is created'.

  • It also defines a class Dog that extends Animal, with a constructor that prints 'Dog is created'.

  • In the main method, an instance of Dog is created, which will trigger the constructors of both Animal and Dog classes.

An Automation Engineer was asked 8mo ago
Q. What will be the output of the following code snippet? StringBuffer buffer = new StringBuffer("Hello"); buffer.append("There"); System.out.println(buffer);
Ans. 

The code creates a StringBuffer object with 'Hello' and appends 'There' to it before printing the final string.

  • StringBuffer is mutable, so the original 'Hello' string can be modified

  • The append() method adds the specified string to the end of the buffer

  • The final output will be 'HelloThere'

What people are saying about HCLTech

View All
carefulmatcha
Verified Icon
2w
works at
Cognizant
DXC or HCL for Mainframe Dev? Help me decide!
Hey everyone 👋 I’m at a crossroads with offers from HCLTech and DXC for a Mainframe Developer role. I’ve got 3.7 years in COBOL, DB2, JCL, VSAM, and IMS, and I’m aiming for technical growth, solid projects, and leadership potential. 👉 I want to sharpen my IMS and VSAM skills, build a strong career, and move into tech leadership. If you’re at either company (especially in mainframe), your insights would be awesome! Which place is best for learning, recognition, and long-term stability? Thanks a bunch! 🙏
Got a question about HCLTech?
Ask anonymously on communities.
An Automation Engineer was asked 8mo ago
Q. What is the difference between findElement and findElements?
Ans. 

findElement returns the first matching element on the page, while findElements returns a list of all matching elements.

  • findElement returns a single WebElement matching the locator provided

  • findElements returns a list of WebElements matching the locator provided

  • findElement will throw NoSuchElementException if no element is found, while findElements will return an empty list

An Automation Engineer was asked 8mo ago
Q. What is the difference between getWindowHandle and getWindowHandles(), and what is the output type of each?
Ans. 

getwindowhandle returns the handle of the current window, getwindowhandles() returns handles of all open windows

  • getwindowhandle returns a single window handle, while getwindowhandles() returns a set of window handles

  • getwindowhandle is used to switch between windows in Selenium WebDriver

  • Output type of getwindowhandle is String, while output type of getwindowhandles() is Set<String>

An Automation Engineer was asked 12mo ago
Q. Write Java programs demonstrating OOP concepts.
Ans. 

Java programs utilize OOP concepts like inheritance, encapsulation, polymorphism, and abstraction for modular and reusable code.

  • Encapsulation: Use private variables and public methods. Example: class Employee { private String name; public String getName() { return name; }}

  • Inheritance: Create a subclass that inherits from a superclass. Example: class Manager extends Employee {}

  • Polymorphism: Use method overriding. E...

Are these interview questions helpful?
An Automation Engineer was asked
Q. Find the combined characters in the given testing example: "Testing Testing Testing". The combined text is "te".
Ans. 

The combined characters in the given testing example 'Testing Testing Testing' is 'te'.

  • Iterate through the text and check for consecutive characters 'te'.

  • Combine the characters 'te' whenever they are found together.

  • Return the combined text 'te' as the result.

An Automation Engineer was asked
Q. Find the 2nd largest number in the given array
Ans. 

Find the 2nd largest number in the given array

  • Sort the array in descending order

  • Get the element at index 1, which will be the 2nd largest number

An Automation Engineer was asked 8mo ago
Q. Which is valid or invalid a. ChromeDriver driver=new ChromeDriver(); b. WebDriver driver=new ChromeDriver(); c. WebDriver driver2=new WebDriver(); driver2=new ChromeDriver();
Ans. 

Option a is valid, option b is valid, option c is invalid.

  • Option a is valid because ChromeDriver is a subclass of WebDriver, so it can be assigned to a WebDriver reference.

  • Option b is valid because ChromeDriver is a subclass of WebDriver, so it can be instantiated using a WebDriver reference.

  • Option c is invalid because WebDriver is an interface and cannot be instantiated directly. It can only be used as a referenc...

HCLTech Automation Engineer Interview Experiences

4 interviews found

Interview experience
3
Average
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
-

I applied via Naukri.com and was interviewed in Sep 2024. There was 1 interview round.

Round 1 - Technical 

(10 Questions)

  • Q1. What is the output of below code class Animal{ Animal(){ System.out.println("animal is created") } class Dog extends Animal{ Dog(){ System.out.println("Dog is created")} class TestSuper4{ pub...
  • Ans. 

    The output of the code will be 'animal is created' followed by 'Dog is created'.

    • The code defines a class Animal with a constructor that prints 'animal is created'.

    • It also defines a class Dog that extends Animal, with a constructor that prints 'Dog is created'.

    • In the main method, an instance of Dog is created, which will trigger the constructors of both Animal and Dog classes.

  • Answered by AI
  • Q2. Output of this : System.out.println(10+20+"Hello"+30+40) - Explain
  • Ans. 

    The output combines integers and strings, resulting in a concatenated string due to Java's type handling.

    • Java evaluates expressions from left to right.

    • The first operation is 10 + 20, which equals 30 (an integer).

    • Next, '30' is concatenated with 'Hello', resulting in '30Hello'.

    • Then, '30Hello' is concatenated with 30, resulting in '30Hello30'.

    • Finally, '30Hello30' is concatenated with 40, resulting in '30Hello3040'.

  • Answered by AI
  • Q3. Output of this : String name="Hello"; name=name+"There"; system.out.println(name)
  • Ans. 

    The output will be 'HelloThere'

    • Concatenation of 'Hello' and 'There' results in 'HelloThere'

    • The final string is printed using System.out.println()

  • Answered by AI
  • Q4. StringBuffer buffer=new StringBuffer("Hello") buffer.append("There"); System.out.println(buffer);
  • Ans. 

    The code creates a StringBuffer object with 'Hello' and appends 'There' to it before printing the final string.

    • StringBuffer is mutable, so the original 'Hello' string can be modified

    • The append() method adds the specified string to the end of the buffer

    • The final output will be 'HelloThere'

  • Answered by AI
  • Q5. Which is valid or invalid a. ChromeDriver driver=new ChromeDriver(); b. WebDriver driver=new ChromeDriver(); c. WebDriver driver2=new WebDriver(); driver2=new ChromeDriver();
  • Ans. 

    Option a is valid, option b is valid, option c is invalid.

    • Option a is valid because ChromeDriver is a subclass of WebDriver, so it can be assigned to a WebDriver reference.

    • Option b is valid because ChromeDriver is a subclass of WebDriver, so it can be instantiated using a WebDriver reference.

    • Option c is invalid because WebDriver is an interface and cannot be instantiated directly. It can only be used as a reference typ...

  • Answered by AI
  • Q6. Program to sort the input in descending order without using inbuild method/functions
  • Ans. 

    Sort input array of strings in descending order without using inbuilt functions

    • Iterate through the array and compare each element with the rest to find the largest element

    • Swap the largest element with the first element, then repeat the process for the remaining elements

    • Continue this process until the array is sorted in descending order

  • Answered by AI
  • Q7. Difference between findElement and findElements
  • Ans. 

    findElement returns the first matching element on the page, while findElements returns a list of all matching elements.

    • findElement returns a single WebElement matching the locator provided

    • findElements returns a list of WebElements matching the locator provided

    • findElement will throw NoSuchElementException if no element is found, while findElements will return an empty list

  • Answered by AI
  • Q8. Difference between getwindowhandle and getwindowhandles() and what is output type
  • Ans. 

    getwindowhandle returns the handle of the current window, getwindowhandles() returns handles of all open windows

    • getwindowhandle returns a single window handle, while getwindowhandles() returns a set of window handles

    • getwindowhandle is used to switch between windows in Selenium WebDriver

    • Output type of getwindowhandle is String, while output type of getwindowhandles() is Set<String>

  • Answered by AI
  • Q9. Question on finding the xpaths on website
  • Q10. Difference between String and StringBuilder?
  • Ans. 

    String is immutable, while StringBuilder is mutable and more efficient for concatenating strings.

    • String is immutable, meaning its value cannot be changed once it is created.

    • StringBuilder is mutable, allowing for modifications to the string without creating a new object.

    • StringBuilder is more efficient for concatenating multiple strings as it does not create new objects each time.

    • Example: String str = "Hello"; StringBuil...

  • Answered by AI

Skills evaluated in this interview

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

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

Round 1 - Technical 

(2 Questions)

  • Q1. Find the 2nd largest number in the given array
  • Ans. 

    Find the 2nd largest number in the given array

    • Sort the array in descending order

    • Get the element at index 1, which will be the 2nd largest number

  • Answered by AI
  • Q2. Find the combained charected in the given testing exmple : " Testing Testing Testing" , cobained text is "te"
  • Ans. 

    The combined characters in the given testing example 'Testing Testing Testing' is 'te'.

    • Iterate through the text and check for consecutive characters 'te'.

    • Combine the characters 'te' whenever they are found together.

    • Return the combined text 'te' as the result.

  • Answered by AI

Skills evaluated in this interview

Interview experience
1
Bad
Difficulty level
Hard
Process Duration
-
Result
Not Selected
Round 1 - Technical 

(1 Question)

  • Q1. Java programs with oops concept in it
  • Ans. 

    Java programs utilize OOP concepts like inheritance, encapsulation, polymorphism, and abstraction for modular and reusable code.

    • Encapsulation: Use private variables and public methods. Example: class Employee { private String name; public String getName() { return name; }}

    • Inheritance: Create a subclass that inherits from a superclass. Example: class Manager extends Employee {}

    • Polymorphism: Use method overriding. Exampl...

  • Answered by AI

I applied via Naukri.com and was interviewed before Jul 2021. There were 2 interview rounds.

Round 1 - Resume Shortlist 
Pro Tip by AmbitionBox:
Keep your resume crisp and to the point. A recruiter looks at your resume for an average of 6 seconds, make sure to leave the best impression.
View all tips
Round 2 - One-on-one 

(3 Questions)

  • Q1. Tell me about yourself
  • Q2. Explain about current project
  • Q3. Asked questions based on skills mentioned in resume

Interview Preparation Tips

Interview preparation tips for other job seekers - Always prepare most common interview technical questions.

Interview questions from similar companies

Interview Questionnaire 

2 Questions

  • Q1. Self introduction
  • Q2. What is java
  • Ans. 

    Java is a high-level programming language known for its platform independence and object-oriented approach.

    • Java is widely used for developing desktop, web, and mobile applications.

    • It is known for its robustness, security, and scalability.

    • Java programs are compiled into bytecode that can run on any Java Virtual Machine (JVM).

    • It supports multithreading, exception handling, and automatic memory management.

    • Popular framewor...

  • Answered by AI

Skills evaluated in this interview

I applied via Campus Placement and was interviewed before Aug 2020. There were 4 interview rounds.

Interview Questionnaire 

4 Questions

  • Q1. What is collections
  • Ans. 

    Collections are data structures that store and manipulate groups of objects.

    • Collections provide a way to organize and manage large amounts of data

    • They can be used to perform operations on groups of objects, such as sorting or searching

    • Examples of collections include arrays, lists, sets, and maps

  • Answered by AI
  • Q2. What are the new features in java 8
  • Ans. 

    Java 8 introduces lambda expressions, functional interfaces, streams, and default methods.

    • Lambda expressions allow functional programming in Java

    • Functional interfaces enable the use of lambda expressions

    • Streams provide a concise way to perform operations on collections

    • Default methods allow interfaces to have implementation

    • Date and Time API improvements

    • Nashorn JavaScript engine

  • Answered by AI
  • Q3. What is the use of spring boot
  • Ans. 

    Spring Boot is a framework for building standalone, production-grade Spring-based applications.

    • Spring Boot simplifies the process of creating and deploying Spring-based applications.

    • It provides a pre-configured environment with a set of opinionated defaults.

    • It includes embedded servers like Tomcat, Jetty, and Undertow.

    • It supports a wide range of data sources and data access technologies.

    • It enables easy integration with...

  • Answered by AI
  • Q4. What is JPA
  • Ans. 

    JPA stands for Java Persistence API, a specification for object-relational mapping in Java applications.

    • JPA is used to map Java objects to relational database tables.

    • It provides a set of annotations to define the mapping between Java classes and database tables.

    • JPA also supports querying data using the Java Persistence Query Language (JPQL).

  • Answered by AI

Interview Preparation Tips

Interview preparation tips for other job seekers - It will be easy interview

Skills evaluated in this interview

I applied via Referral and was interviewed before Jun 2020. There were 3 interview rounds.

Interview Questionnaire 

1 Question

  • Q1. Technical questions.

Interview Preparation Tips

Interview preparation tips for other job seekers - Good job security but do not expect projects with latest technologies or development side.

If you are lucky you will get project with new technologies and you can learn.
Are these interview questions helpful?

I applied via Company Website and was interviewed in Dec 2020. There were 3 interview rounds.

Interview Questionnaire 

1 Question

  • Q1. Apti & programming

Interview Preparation Tips

Interview preparation tips for other job seekers - Be specific

I applied via Company Website and was interviewed before Dec 2020. There were 4 interview rounds.

Interview Questionnaire 

1 Question

  • Q1. 1. Data structure questions

Interview Preparation Tips

Interview preparation tips for other job seekers - Good experience all total

I applied via Company Website and was interviewed before Oct 2021. There were 5 interview rounds.

Round 1 - Resume Shortlist 
Pro Tip by AmbitionBox:
Keep your resume crisp and to the point. A recruiter looks at your resume for an average of 6 seconds, make sure to leave the best impression.
View all tips
Round 2 - Aptitude Test 

Basic Aptitude with some difficult questions

Round 3 - Coding Test 

3 set of coding question were asked 1 easy ,1 medium ,1 hard

Round 4 - One-on-one 

(1 Question)

  • Q1. This was personal technical interview asking all related to my cv and the one they are looking for
Round 5 - HR 

(1 Question)

  • Q1. Basic personality questions

Interview Preparation Tips

Interview preparation tips for other job seekers - Prepare everything basic and from the CV and you will be good to go.Research about the company a bit that will add cherry on top.

HCLTech Interview FAQs

How many rounds are there in HCLTech Automation Engineer interview?
HCLTech interview process usually has 1-2 rounds. The most common rounds in the HCLTech interview process are Technical, Resume Shortlist and One-on-one Round.
How to prepare for HCLTech Automation 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 HCLTech. The most common topics and skills that interviewers at HCLTech expect are Python, Selenium, Automation Engineering, Java and Automation Testing.
What are the top questions asked in HCLTech Automation Engineer interview?

Some of the top questions asked at the HCLTech Automation Engineer interview -

  1. what is the output of below code class Animal{ Animal(){ System.out.println(...read more
  2. Which is valid or invalid a. ChromeDriver driver=new ChromeDriver(); b. WebDriv...read more
  3. difference between getwindowhandle and getwindowhandles() and what is output ty...read more

Tell us how to improve this page.

Overall Interview Experience Rating

3/5

based on 4 interview experiences

Difficulty level

Moderate 67%
Hard 33%

Duration

Less than 2 weeks 100%
View more
HCLTech Automation Engineer Salary
based on 153 salaries
₹4.3 L/yr - ₹9.3 L/yr
At par with the average Automation Engineer Salary in India
View more details

HCLTech Automation Engineer Reviews and Ratings

based on 9 reviews

3.4/5

Rating in categories

3.2

Skill development

3.4

Work-life balance

3.1

Salary

3.3

Job security

3.0

Company culture

2.8

Promotions

3.3

Work satisfaction

Explore 9 Reviews and Ratings
Automation Engineer - Python & UFT

Noida,

Chennai

+1

8-12 Yrs

Not Disclosed

Explore more jobs
Software Engineer
24.9k salaries
unlock blur

₹2.7 L/yr - ₹8.1 L/yr

Technical Lead
22.9k salaries
unlock blur

₹10.9 L/yr - ₹21 L/yr

Senior Software Engineer
16.8k salaries
unlock blur

₹5.4 L/yr - ₹15.8 L/yr

Lead Engineer
16.4k salaries
unlock blur

₹5.3 L/yr - ₹12.4 L/yr

Analyst
15.9k salaries
unlock blur

₹2.3 L/yr - ₹6.5 L/yr

Explore more salaries
Compare HCLTech with

TCS

3.6
Compare

Wipro

3.7
Compare

Accenture

3.7
Compare

Cognizant

3.7
Compare
write
Share an Interview