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
unlimitedghee
Verified Icon
9h
currently not working
Is anyone getting hired here?
Is there any hiring going on here or not
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. Apigee
  • Q2. Interal architecture

Interview Questionnaire 

1 Question

  • Q1. Where do you see yourself in 5 years.

Interview Questionnaire 

3 Questions

  • Q1. Java script
  • Q2. Ai
  • Q3. Machine learning

Interview Preparation Tips

Interview preparation tips for other job seekers - Prepare with faceprep
Are these interview questions helpful?

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

Interview Questionnaire 

1 Question

  • Q1. Tell us about yourself. What are some of your achievments

Interview Preparation Tips

Interview preparation tips for other job seekers - Look for good communciation skills. Have a cheerful attitude

I applied via Company Website and was interviewed in Dec 2020. There was 1 interview round.

Interview Questionnaire 

1 Question

  • Q1. Self introduction

Interview Preparation Tips

Interview preparation tips for other job seekers - say individual ideas,plans, story's.say different opinions,speek confidentially, correctly answer Yes or no questions, correctly say interested and confidential job,

I applied via Campus Placement and was interviewed before Nov 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 - Technical 

(2 Questions)

  • Q1. Python and Java questions
  • Q2. Oops basic interview questions

Interview Preparation Tips

Interview preparation tips for other job seekers - Easily we can Just Practice basic interview questions

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 164 salaries
₹4.8 L/yr - ₹11 L/yr
14% more than 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
25k salaries
unlock blur

₹2.7 L/yr - ₹8.1 L/yr

Technical Lead
23k salaries
unlock blur

₹10.7 L/yr - ₹21 L/yr

Senior Software Engineer
16.8k salaries
unlock blur

₹5.4 L/yr - ₹15.7 L/yr

Lead Engineer
16.4k salaries
unlock blur

₹5.3 L/yr - ₹12.5 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