Automation Engineer

300+ Automation Engineer Interview Questions and Answers

Updated 27 Feb 2025
search-icon

Q51. How many type of sensors have you used with PLC?

Ans.

I have used various types of sensors with PLC.

  • Proximity sensors

  • Temperature sensors

  • Pressure sensors

  • Level sensors

  • Flow sensors

  • Position sensors

  • Photoelectric sensors

  • Ultrasonic sensors

  • Humidity sensors

  • Gas sensors

Q52. What is the Java Selenium code to validate the new price and old price of mobile phones on Amazon?

Ans.

Use Java Selenium code to validate new and old prices of mobile phones on Amazon.

  • Use WebDriver to open Amazon website

  • Locate the elements for new and old prices using XPath or CSS selectors

  • Get the text of both elements and compare them to validate

Q53. 14) What are different protocols used

Ans.

Different protocols used in automation engineering

  • Modbus

  • Profibus

  • DeviceNet

  • Ethernet/IP

  • CANopen

  • AS-Interface

  • Foundation Fieldbus

  • HART

  • BACnet

  • LonWorks

Q54. Different use cases on Xceptor and Automation Anywhere

Ans.

Xceptor is used for data extraction and Automation Anywhere is used for automating repetitive tasks.

  • Xceptor is used in financial services for data extraction and processing.

  • Automation Anywhere is used for automating repetitive tasks like data entry, invoice processing, etc.

  • Xceptor can be used for reconciling trades and managing risk in financial services.

  • Automation Anywhere can be used for automating HR processes like onboarding and offboarding employees.

  • Xceptor can be used f...read more

Are these interview questions helpful?

Q55. How can you work on complex task if we have given

Ans.

I break down the complex task into smaller manageable parts, prioritize them, and use problem-solving skills to tackle each part effectively.

  • Break down the task into smaller components

  • Prioritize the components based on importance and dependencies

  • Utilize problem-solving skills to address each component effectively

  • Collaborate with team members for input and support

  • Regularly review progress and adjust strategies as needed

Q56. What are lists, tuples, and dictionaries in python programming?

Ans.

Lists, tuples, and dictionaries are data structures in Python used to store collections of items.

  • Lists are mutable and ordered collections of items, accessed by index. Example: my_list = [1, 2, 3]

  • Tuples are immutable and ordered collections of items, accessed by index. Example: my_tuple = (1, 2, 3)

  • Dictionaries are unordered collections of key-value pairs, accessed by key. Example: my_dict = {'key': 'value'}

Share interview questions and help millions of jobseekers 🌟

man-with-laptop

Q57. How to select a VFD according to motor ?

Ans.

VFD selection depends on motor voltage, current, and power rating.

  • Check motor nameplate data for voltage, current, and power rating

  • Select VFD with compatible voltage and current rating

  • Ensure VFD power rating is equal to or greater than motor power rating

  • Consider additional features such as overload protection and communication protocols

  • Consult manufacturer's specifications and guidelines

Q58. Which language use in plc program?

Ans.

PLC programs can be written in various languages such as ladder logic, structured text, function block diagram, and sequential function chart.

  • Ladder logic is the most commonly used language in PLC programming.

  • Structured text is similar to programming languages like C and Pascal.

  • Function block diagram uses graphical blocks to represent functions.

  • Sequential function chart is used for complex processes with multiple steps.

  • The choice of language depends on the application and the...read more

Automation Engineer Jobs

Automation Engineer - BPMS 2-7 years
Ericsson India Global Services Pvt. Ltd.
4.1
Noida
Automation Engineer 2-4 years
Ericsson India Global Services Pvt. Ltd.
4.1
Noida
Automation Engineer 10-15 years
IBM India Pvt. Limited
4.0
Bangalore / Bengaluru

Q59. How will you validate any API through Rest assure, write a script for it

Ans.

Validating APIs using Rest Assured involves writing scripts to send requests and verify responses.

  • Use Rest Assured library to send HTTP requests and validate responses

  • Write test scripts using given(), when(), then() methods to set up request, send request, and validate response

  • Verify status code, response body, headers, etc. in the script

  • Use assertions to check expected values against actual values

Q60. How would you locate the Xpath for the "Today's Deal" menu item on Amazon

Ans.

To locate the Xpath for the 'Today's Deal' menu item on Amazon, inspect the element using browser developer tools.

  • Open the Amazon website and right-click on the 'Today's Deal' menu item.

  • Select 'Inspect' to open the browser developer tools.

  • Look for the HTML code corresponding to the 'Today's Deal' menu item.

  • Right-click on the HTML code and choose 'Copy' > 'Copy XPath'.

  • The copied XPath can be used to locate the 'Today's Deal' menu item in automation scripts.

Q61. 9) Communication between SCADA / HMI & PLC

Ans.

Communication between SCADA/HMI & PLC is crucial for automation. It enables real-time monitoring and control of industrial processes.

  • SCADA/HMI sends commands to PLC for process control

  • PLC sends data to SCADA/HMI for real-time monitoring

  • Communication protocols like Modbus, Profibus, and Ethernet/IP are used

  • Redundancy and fault-tolerant systems are implemented for reliability

Q62. Difference in public static void main (String[] args) and public static void main ()

Ans.

The difference between public static void main (String[] args) and public static void main () is the presence of command line arguments.

  • public static void main (String[] args) is used when command line arguments are required

  • public static void main () is used when command line arguments are not required

  • String[] args is an array of strings that contains any command line arguments passed to the program

  • The absence of String[] args in public static void main () means that the prog...read more

Q63. How many hooks are there in the cucumber Framework

Ans.

There are 23 hooks in the Cucumber Framework.

  • Hooks are used to perform actions before or after scenarios or steps.

  • There are 7 types of hooks in Cucumber: Before, After, BeforeStep, AfterStep, BeforeAll, AfterAll, and Around.

  • Examples of hook usage include setting up test data, closing browser sessions, and logging test results.

Q64. How to automate hybrid and native mobile applications

Ans.

To automate hybrid and native mobile applications, use tools like Appium and Selenium for testing and UI automation.

  • Use Appium for automating native and hybrid mobile apps

  • Use Selenium for automating web views in hybrid apps

  • Identify elements using unique identifiers like resource-id, class name, etc.

  • Use XPath or CSS selectors to locate elements

  • Write test scripts in programming languages like Java, Python, etc.

  • Use emulators or real devices for testing

  • Perform functional, perform...read more

Q65. 1. What is SCADA? 2. What is the type of PLC logic Development? 3. Reporting Knowledge. 4. MSSQL Knowledge. 5. How many types of Motors? 6. Brief about communication protocol in PLC.

Ans.

SCADA stands for Supervisory Control and Data Acquisition. It is a system used for monitoring and controlling industrial processes.

  • SCADA is used in industries such as power plants, water treatment facilities, and manufacturing plants.

  • PLC logic development can be done using ladder logic, function block diagrams, and structured text.

  • Reporting knowledge involves generating reports on system performance and data analysis.

  • MSSQL knowledge is important for storing and retrieving dat...read more

Q66. What are the differences between JavaScript (JS) and TypeScript (TS)?

Ans.

JavaScript is a dynamically typed language, while TypeScript is a statically typed superset of JavaScript.

  • JavaScript is dynamically typed, allowing for flexibility but potentially leading to runtime errors.

  • TypeScript is statically typed, catching errors at compile time and providing better code quality.

  • TypeScript supports optional static typing, interfaces, and other features not available in JavaScript.

  • JavaScript code can be directly run in the browser, while TypeScript code...read more

Q67. What are the steps to perform parallel testing using Playwright?

Ans.

Steps to perform parallel testing using Playwright

  • Install Playwright and set up your project

  • Create multiple instances of browsers for parallel testing

  • Run tests in parallel using different browser instances

  • Use tools like Jest or Mocha for managing parallel test execution

Q68. What are the various types of fixtures available in Playwright?

Ans.

Playwright provides three types of fixtures: page, context, and browser.

  • Page fixtures are specific to a single page instance

  • Context fixtures are shared across all pages in a browser context

  • Browser fixtures are shared across all browser contexts

Q69. 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 type.

Q70. Write the program to take the input from the user as string array and remove all vowels from the string

Ans.

Program to remove vowels from string array input by user

  • Iterate through each string in the array

  • For each string, iterate through each character and remove vowels

  • Use a function to check if a character is a vowel (e.g. 'aeiouAEIOU')

Q71. What is the difference between Continuous Integration (CI) and Continuous Deployment (CD) ?

Ans.

CI is the practice of regularly integrating code changes into a shared repository, while CD is the automated process of deploying code changes to production.

  • CI focuses on integrating code changes frequently to detect and fix integration errors early on.

  • CD automates the deployment process to quickly and reliably release code changes to production.

  • CI is a part of the software development process, while CD is a part of the software delivery process.

  • Examples: Jenkins is a popular...read more

Q72. type script and java script arrow function loops if else condition

Ans.

Explaining type script and java script arrow function loops with if else condition.

  • TypeScript and JavaScript both support arrow functions for concise syntax.

  • Arrow functions can be used in loops to simplify code.

  • If-else conditions can be used with arrow functions to add logic.

  • Example: const numbers = [1, 2, 3]; numbers.forEach(num => {if(num % 2 === 0) {console.log(num + ' is even');} else {console.log(num + ' is odd');}});

Q73. What is the primary purpose of using selenium n automation testing?

Ans.

The primary purpose of using Selenium in automation testing is to automate web application testing.

  • Automate repetitive manual testing tasks

  • Increase test coverage and efficiency

  • Support multiple browsers and platforms

  • Integrate with continuous integration tools like Jenkins

  • Execute parallel testing to save time

  • Verify functionality and performance of web applications

Q74. what is the difference between throw and throws in Java?

Ans.

throw is used to throw an exception in Java, while throws is used to declare an exception that a method might throw.

  • throw is used to explicitly throw an exception within a method.

  • throws is used in the method signature to declare that the method might throw a specific type of exception.

  • Example: throw new Exception("An error occurred!");

  • Example: public void method() throws IOException {}

Q75. MHS , when man Power not then you will support team

Ans.

I will support the team by taking on additional responsibilities and tasks to ensure the project or task is completed successfully.

  • Take on additional responsibilities to fill in for the lack of manpower

  • Collaborate with team members to distribute workload effectively

  • Provide guidance and assistance to team members as needed

  • Prioritize tasks and deadlines to ensure project completion

  • Communicate effectively with team members and stakeholders

Q76. Give a setuation and how can I handle and fix the problem

Ans.

Handling a situation where a critical test case fails during automation testing

  • Identify the root cause of the failure by analyzing logs and error messages

  • Update the test case script to fix the issue

  • Re-run the test case to ensure it passes successfully

  • Document the issue and resolution for future reference

Q77. What will be the memory allocation for the code String str1 = "Automation"; String str2 = new String("Automation");

Ans.

str1 will be stored in the string pool while str2 will be stored in the heap memory.

  • str1 will be stored in the string pool, which is a part of the heap memory.

  • str2 will create a new String object in the heap memory, separate from the string pool.

Q78. 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

Q79. Coding: take your name as input. Print them letter by letter and print if vowels repeat in your name.

Ans.

The code takes a name as input, prints each letter, and checks if any vowels repeat in the name.

  • Create a function that takes a string input for the name

  • Iterate through each letter in the name and print them individually

  • Check for vowel repetition by keeping track of vowels encountered

Q80. 13) Unicast & multicating in produce consume tag

Ans.

Unicast and multicast are communication methods used in produce consume tag.

  • Unicast is a one-to-one communication method where a message is sent to a single recipient.

  • Multicast is a one-to-many communication method where a message is sent to multiple recipients.

  • Produce consume tag is a mechanism used in automation systems to communicate between producers and consumers.

  • Unicast is used when the producer needs to send a message to a specific consumer.

  • Multicast is used when the p...read more

Q81. 1.Different between plc&pc 2. Type of motor. 3. Plc i/o 4. instructions of PLC. 5. relay and contactor 6. Preventive maintenance and predicative maintenance.

Ans.

Questions related to PLC, motors, and maintenance in automation engineering.

  • PLC is a programmable logic controller used for automation, while PC is a personal computer used for general purposes.

  • Types of motors include AC, DC, servo, stepper, etc.

  • PLC I/O refers to the input/output modules used to connect sensors and actuators to the PLC.

  • PLC instructions include ladder logic, function block diagrams, structured text, etc.

  • Relays and contactors are used for switching high voltage...read more

Q82. What are the most used locators?

Ans.

The most used locators in automation testing are 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 XML document

  • CSS selector: Selector based on CSS attributes

Q83. How to get random mobile for 10 user using python in robot framework

Ans.

Use Python in Robot Framework to generate random mobile numbers for 10 users.

  • Use the Faker library in Python to generate random mobile numbers

  • Create a loop to generate mobile numbers for 10 users

  • Implement the logic in a Robot Framework test case

Q84. What is the different between IEC61850 & MODBUS

Ans.

IEC61850 is a communication protocol for power systems, while MODBUS is a general-purpose protocol for industrial automation.

  • IEC61850 is designed specifically for communication between devices in power systems, while MODBUS can be used in a variety of industrial applications.

  • IEC61850 uses a hierarchical data model, while MODBUS uses a flat data model.

  • IEC61850 supports peer-to-peer communication, while MODBUS uses a master-slave architecture.

  • IEC61850 has built-in support for t...read more

Q85. 5.Can you tell me how to find the dynamic Xpath

Ans.

To find dynamic Xpath, inspect the element and identify its unique attributes.

  • Inspect the element using browser developer tools

  • Identify unique attributes like class, id, name, etc.

  • Use these attributes to create a dynamic Xpath

  • Use functions like contains(), starts-with(), etc. to make the Xpath more dynamic

Q86. Are you ok with testing background as ur resume is of dev?

Ans.

Yes, I am comfortable with testing as well as development.

  • I have experience in both testing and development roles.

  • I believe that having a background in development can actually enhance my testing skills.

  • I am open to learning and adapting to new challenges in the testing field.

Q87. How many ports are available in ML1400?

Ans.

The ML1400 has 20 digital I/O ports and 2 analog I/O ports.

  • The ML1400 has a total of 22 ports.

  • There are 20 digital I/O ports that can be used for input or output of digital signals.

  • There are 2 analog I/O ports that can be used for input or output of analog signals.

  • These ports can be used to connect sensors, actuators, and other devices to the ML1400.

Q88. What are the different types of valves?

Ans.

Valves are devices used to control the flow of fluids or gases. There are several types of valves used in different applications.

  • Gate valves

  • Globe valves

  • Ball valves

  • Butterfly valves

  • Check valves

  • Diaphragm valves

  • Needle valves

  • Pinch valves

  • Pressure relief valves

  • Solenoid valves

Q89. What is the difference between str1==str2 and str1.equals(str2)

Ans.

str1==str2 compares the memory addresses of the two strings, while str1.equals(str2) compares the actual contents of the strings.

  • str1==str2 checks if the two string variables point to the same memory location.

  • str1.equals(str2) compares the actual characters in the strings for equality.

  • Example: String str1 = "hello"; String str2 = "hello"; str1==str2 will return false, but str1.equals(str2) will return true.

Q90. What is Ohm's Law? And definition What is the use of resister What is use of capacitor How many seasons do you know Working experience Skills

Ans.

Ohm's Law states that the current through a conductor between two points is directly proportional to the voltage across the two points.

  • Ohm's Law: V = I * R (Voltage = Current * Resistance)

  • Resistors are used to limit or control the flow of electric current in a circuit.

  • Capacitors store and release electrical energy in a circuit.

  • Four seasons: Spring, Summer, Fall, Winter

  • 5 years of working experience in automation engineering

  • Skills include PLC programming, HMI design, and troubl...read more

Q91. Puzzle on getting 3L of water when provided 2L and 5L of water bottles. something like that

Ans.

Using 2L and 5L water bottles, you can measure 3L of water.

  • Fill the 5L bottle completely.

  • Pour the water from the 5L bottle into the 2L bottle until it is full.

  • Now, the 5L bottle has 3L of water remaining.

  • Empty the 2L bottle.

  • Pour the 3L of water from the 5L bottle into the empty 2L bottle.

  • Fill the 5L bottle again.

  • Pour water from the 5L bottle into the 2L bottle until it is full.

  • Now, the 5L bottle has 4L of water remaining.

  • Transfer 1L of water from the 5L bottle to the 2L bottl...read more

Q92. What are the Central debouncing mechanisms in DEM?

Ans.

Central debouncing mechanisms in DEM are used to eliminate false triggering of signals.

  • DEM stands for Digital Engine Management.

  • Central debouncing mechanisms are used to filter out noise and eliminate false triggering of signals.

  • These mechanisms include hardware and software filters.

  • Hardware filters include capacitors and resistors.

  • Software filters include algorithms that analyze the signal and remove noise.

  • Examples of signals that require debouncing include throttle position...read more

Q93. How do you check the OS on which the selenium program is running

Ans.

You can check the OS on which the Selenium program is running by using the 'System.getProperty()' method in Java.

  • Use 'System.getProperty('os.name')' to get the name of the operating system

  • Use 'System.getProperty('os.version')' to get the version of the operating system

  • Use 'System.getProperty('os.arch')' to get the architecture of the operating system

Q94. What are the languague u know in plc programming.

Ans.

I am proficient in ladder logic and structured text programming languages for PLCs.

  • Ladder logic is a graphical programming language commonly used in PLCs.

  • Structured text is a high-level programming language used for complex logic and calculations.

  • I am also familiar with function block diagrams and sequential function charts.

  • I have experience with PLC programming software such as Siemens TIA Portal and Allen-Bradley Studio 5000.

  • I am constantly learning and staying up-to-date w...read more

Q95. How to run 50 test cases if we have 100 test cases

Ans.

You can divide the test cases into two batches and run them separately.

  • Divide the 100 test cases into two batches of 50 each

  • Run the first batch of 50 test cases

  • Once the first batch is completed, run the second batch of 50 test cases

Q96. What is difference between Selenium WebDriver Selenium RC?

Ans.

Selenium WebDriver is newer and more advanced than Selenium RC.

  • Selenium WebDriver is faster and more reliable than Selenium RC.

  • Selenium WebDriver supports multiple programming languages, while Selenium RC only supports Java.

  • Selenium WebDriver does not require a separate server to run tests, unlike Selenium RC.

  • Selenium WebDriver has a simpler and more user-friendly API compared to Selenium RC.

Q97. 10.Write a querry for second largest salary and nth salary

Ans.

Query for second largest and nth salary

  • Use ORDER BY and LIMIT to get second largest salary

  • Use OFFSET and LIMIT to get nth salary

  • Example: SELECT salary FROM employees ORDER BY salary DESC LIMIT 1,1

  • Example: SELECT salary FROM employees ORDER BY salary DESC LIMIT n-1,1

Q98. What is the purpose of a test automation framework?

Ans.

A test automation framework is a set of guidelines, coding standards, concepts, processes, practices, tools, and utilities that help to create automated tests.

  • Provides structure and organization for automated tests

  • Promotes reusability of code and components

  • Enhances test maintenance and scalability

  • Supports multiple test types such as functional, regression, and performance testing

  • Integrates with continuous integration tools for automated test execution

  • Examples: Selenium WebDri...read more

Q99. 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.

Q100. How do you manage the process of inputting files?

Ans.

I manage the process of inputting files by creating a structured system, using version control, and automating repetitive tasks.

  • Create a structured system for organizing files based on project, date, or type

  • Use version control to track changes and collaborate with team members

  • Automate repetitive tasks such as file renaming or moving using scripts or tools like Jenkins

Previous
1
2
3
4
5
6
7
Next
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Interview experiences of popular companies

3.7
 • 10.4k Interviews
3.8
 • 8.1k Interviews
3.6
 • 7.5k Interviews
3.7
 • 5.6k Interviews
3.8
 • 5.6k Interviews
3.7
 • 4.7k Interviews
4.1
 • 410 Interviews
3.1
 • 100 Interviews
View all

Calculate your in-hand salary

Confused about how your in-hand salary is calculated? Enter your annual salary (CTC) and get your in-hand salary

Automation Engineer Interview Questions
Share an Interview
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+

Reviews

4 L+

Interviews

4 Cr+

Salaries

1 Cr+

Users/Month

Contribute to help millions

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter