Automation Test Engineer
70+ Automation Test Engineer Interview Questions and Answers for Freshers

Asked in Infosys

Q. Introduce yourself 1.What is STLC 2. difference between Test plan,test case,test scanario 3.Positive and negative scanarion on pen. 4.selenium framework. 5.how to write selenium test cases.
I am an Automation Test Engineer with knowledge of STLC, test plan, test case, test scenario, Selenium framework, and writing Selenium test cases.
STLC stands for Software Testing Life Cycle and is a process followed to ensure quality in software testing.
Test plan is a document that outlines the testing strategy, objectives, and scope of testing.
Test case is a set of steps and conditions that are executed to verify the functionality of a software application.
Test scenario is a...read more

Asked in Accenture

Q. 1.types of wait, 2. Locators in selenium 3.grid vs webdriver 4.css selector vs xpath 5.types of list 6. What is use of action class 7.java script executor 8.interfaces 9.oops concepts 10.windows/alert nagivatio...
read moreInterview questions for Automation Test Engineer
Types of wait - implicit, explicit, fluent
Locators in Selenium - ID, Name, Class Name, Tag Name, Link Text, Partial Link Text, CSS Selector, XPath
Grid vs WebDriver - Grid allows parallel execution on multiple machines, WebDriver executes tests on a single machine
CSS Selector vs XPath - CSS Selector is faster, XPath is more powerful
Types of list - ArrayList, LinkedList, Vector
Use of Action Class - performing advanced user interac...read more

Asked in Globant

Q. 1.Difference Between Const,Var,Char. 2.Oop's concept with example 3.JavaScript is async or sync language and explain the reason. 4.How to create a simple object in JavaScript. 5.Find element and Find Elements d...
read moreAnswers to common interview questions for Automation Test Engineer position.
Const is used for constant values that cannot be reassigned, var is used for variable declaration, and char is a data type for storing characters in programming languages.
OOPs concepts include inheritance, encapsulation, polymorphism, and abstraction. Example: Inheritance allows a class to inherit properties and methods from another class.
JavaScript is an asynchronous language, meaning it can execute ...read more

Asked in IAMOPS

Q. what is selenium grid?, what frame work u use, explain?, what is web driver ?methods ,What is your daily activity ? Asked to write a mail to a client addressing about task completed .
Selenium grid is a tool used for parallel execution of test cases on multiple machines. WebDriver is a tool for automating web applications.
Selenium grid allows for distributed testing across multiple machines and browsers
WebDriver is a tool for automating web applications and supports multiple programming languages
Daily activities include writing and executing test cases, debugging issues, and reporting results
Framework used depends on project requirements and can vary from ...read more

Asked in Infosys

Q. What are the challenges of using Selenium?
Challenges in Selenium include browser compatibility, dynamic elements, and test maintenance.
Browser compatibility issues can arise due to differences in browser versions and configurations.
Dynamic elements can cause tests to fail if not handled properly.
Test maintenance can be challenging due to changes in the application under test.
Synchronization issues can occur when the test script runs faster than the application.
Handling pop-ups and alerts can be tricky.
Cross-domain te...read more

Asked in AlphaSense

Q. How would you implement login functionality with multiple credentials stored in an Excel sheet?
Multiple credentials can be logged in using data from an excel sheet.
Read the excel sheet using a library like Apache POI
Iterate through the rows and columns to get the data
Use a loop to login with each set of credentials
Assert the login success or failure for each set of credentials
Automation Test Engineer Jobs




Asked in Varian Medical Systems

Q. What is the process for reading from or writing to a file in Java? Please provide a sample code snippet for writing to a file.
Java provides various classes for file handling, allowing reading and writing operations using streams.
Use FileWriter for writing text files: FileWriter writer = new FileWriter('file.txt');
Use BufferedWriter for efficient writing: BufferedWriter bufferedWriter = new BufferedWriter(writer);
Always close the writer using bufferedWriter.close() to free resources.
Handle exceptions using try-catch blocks to manage IOExceptions.

Asked in Oracle Cerner

Q. What are the different methods to identify an object using Eggplant?
Different methods to identify an object using eggplant
Using text recognition
Using image recognition
Using coordinates
Using attributes
Using tags
Share interview questions and help millions of jobseekers 🌟

Asked in Capgemini

Q. What is automation testing?
Automation testing uses software tools to execute tests automatically, improving efficiency and accuracy in the testing process.
Reduces manual effort: Automation testing can run tests without human intervention, saving time and resources.
Increases test coverage: Automated tests can execute a large number of test cases across different environments quickly.
Enhances accuracy: Automated tests eliminate human errors, providing consistent and reliable results.
Supports regression t...read more

Asked in Testrig Technologies

Q. How would you transition from manual to automation testing?
I would start by identifying the most repetitive and time-consuming manual tests and prioritize them for automation.
Identify the most repetitive and time-consuming manual tests
Prioritize the tests based on their importance and frequency
Select the appropriate automation tool and framework
Create test scripts and automate the identified tests
Execute the automated tests and analyze the results
Gradually increase the automation coverage and reduce manual testing

Asked in Varian Medical Systems

Q. What is the process for creating a collection from a given string?
Creating a collection from a string involves splitting the string into elements and storing them in a data structure.
Use the split() method to divide the string into an array. Example: 'a,b,c'.split(',') results in ['a', 'b', 'c'].
Choose a collection type based on requirements: Array, List, Set, etc.
For unique elements, consider using a Set. Example: new Set('aabb') results in ['a', 'b'].
If order matters, use an Array or List. Example: ['apple', 'banana', 'cherry'] maintains ...read more

Asked in Synechron

Q. In API testing using Postman, when do we receive a 408 status code?
A 408 status in API testing in Postman is received when the server times out while waiting for a request.
408 status code indicates that the server did not receive a complete request within the time that it was prepared to wait.
This can happen if the client takes too long to send the request or if the server is overloaded.
It is important to adjust timeout settings in Postman to avoid receiving 408 status codes.
Example: If the server expects a request to be completed within 10 ...read more

Asked in Oracle Cerner

Q. Write a program to read and write data using Eggplant.
Eggplant can read/write data using its built-in scripting language SenseTalk.
Use the 'put' command to write data to a file or variable.
Use the 'read' command to read data from a file or variable.
Eggplant also supports reading/writing data to databases and spreadsheets.
Example: put "Hello World" into myVariable; read myVariable
Example: put "123" into file "myFile.txt"; read file "myFile.txt"

Asked in Varian Medical Systems

Q. How can you read inputs from command line arguments and execute functions based on those inputs?
Read command line arguments in Python to execute functions based on user input.
Use the 'sys' module to access command line arguments: `import sys`.
Access arguments via `sys.argv`, which is a list of command line inputs.
Example: `sys.argv[0]` is the script name, `sys.argv[1]` is the first argument.
Define functions and use conditional statements to execute based on input.
Example: `if sys.argv[1] == 'test': run_test_function()`.

Asked in Varian Medical Systems

Q. Is it possible to create a private constructor in a Java class?
Yes, a private constructor in Java restricts instantiation and is often used in singleton patterns or utility classes.
Singleton Pattern: A class can have a private constructor to ensure that only one instance of the class is created. Example: public class Singleton { private static Singleton instance; private Singleton() {} public static Singleton getInstance() { if (instance == null) { instance = new Singleton(); } return instance; }}
Utility Classes: Classes that contain sta...read more

Asked in Varian Medical Systems

Q. What would be the sample process for creating an automation that can persist after a system restart?
Creating persistent automation involves ensuring scripts run after system restarts using services or scheduled tasks.
Use a service manager (e.g., systemd on Linux) to run automation scripts on startup.
Create a scheduled task in Windows Task Scheduler to trigger automation scripts after reboot.
Implement a watchdog mechanism to restart automation if it fails unexpectedly.
Store automation state in a database or file to resume from the last checkpoint after a restart.
Utilize cont...read more

Asked in Cognizant

Q. How do you identify objects in Selenium?
To identify objects in Selenium, we use locators such as ID, Name, Class Name, XPath, CSS Selector, etc.
Locators are used to identify web elements on a page
ID and Name are the most commonly used locators
XPath and CSS Selector are more powerful but slower
Class Name is useful for identifying multiple elements with the same class
Locators can be used with findElement() and findElements() methods
Example: driver.findElement(By.id("username"));

Asked in Cognizant

Q. What are feature files and step definitions in Cucumber BDD?
Feature files contain high-level description of the functionality to be tested, while step definitions are the implementation of the steps in the feature file using code.
Feature files are written in Gherkin syntax and describe the behavior of the application in plain text.
Step definitions are written in programming languages like Java, Ruby, etc., and map the steps in the feature file to automation code.
Feature files and step definitions together form the basis of Behavior Dr...read more

Asked in RSM India

Q. What is Inheritance? Polymorphism?
Inheritance is a mechanism in object-oriented programming where a class inherits properties and behaviors from another class. Polymorphism allows objects of different classes to be treated as objects of a common superclass.
Inheritance allows for code reusability by defining a new class based on an existing class.
Polymorphism enables flexibility in programming by allowing objects to be treated as instances of their parent class.
Example of inheritance: Class B inheriting from C...read more

Asked in Varian Medical Systems

Q. What is the alternative for the @Test annotation in Playwright?
In Playwright, the alternative for @Test annotation is using the test function from the Playwright Test framework.
Playwright uses the 'test' function to define test cases, similar to @Test in other frameworks.
Example: 'test('should load the homepage', async () => { ... });'
You can group tests using 'describe' blocks: 'describe('Homepage tests', () => { ... });'
Playwright supports various assertions through the 'expect' function, e.g., 'expect(page).toHaveTitle('Home');'

Asked in Varian Medical Systems

Q. What is the process for implementing assertions in Playwright?
Assertions in Playwright validate expected outcomes in automated tests, ensuring application behavior meets requirements.
Use 'expect' from Playwright's test library to create assertions.
Example: expect(page.title()).toBe('Expected Title');
Assertions can check various conditions like visibility, text content, and element states.
Example: expect(await page.isVisible('selector')).toBe(true);
Assertions can be chained for more complex validations.
Example: expect(element).toHaveText...read more

Asked in Indigen Technologies

Q. Selenium waits and different locators and exception handling with alert and frame concepts with TestNG too
The question is about Selenium waits, locators, exception handling, alerts, frames, and TestNG.
Selenium waits are used to synchronize the test script with the application under test
Locators are used to identify web elements on a web page
Exception handling is used to handle errors and exceptions that occur during test execution
Alerts are used to handle pop-up windows that appear during test execution
Frames are used to handle web pages that contain multiple frames
TestNG is a te...read more

Asked in Infosys

Q. List all WebDriver exceptions.
List of common WebDriver exceptions
NoSuchElementException - When an element is not found in the DOM
TimeoutException - When a command takes too long to complete
StaleElementReferenceException - When an element is no longer attached to the DOM
ElementNotVisibleException - When an element is present in the DOM but not visible
ElementNotInteractableException - When an element is present in the DOM but not interactable
InvalidElementStateException - When an element is in an invalid st...read more

Asked in Hexaware Technologies

Q. WAP for reverse string. array vs arraylist. map and hashmap. what are the explicit wait expected conditions. how to perform mouse over on webelement.
This question covers topics like reversing a string, array vs ArrayList, map and HashMap, explicit wait expected conditions, and performing mouse over on a WebElement.
To reverse a string, you can use the StringBuilder class and its reverse() method.
An array is a fixed-size data structure, while an ArrayList is a dynamic-size data structure.
Map is an interface that represents a mapping between a key and a value, while HashMap is an implementation of the Map interface.
Explicit ...read more

Asked in Cognizant

Q. What is Test case, Test plan and Test Secenarios
Test case is a set of conditions or variables under which a tester will determine whether a system under test satisfies requirements. Test plan is a document outlining the scope, approach, resources, and schedule of testing activities. Test scenarios are detailed descriptions of possible interactions with the system.
Test case: specific conditions to be tested, expected results, steps to execute
Test plan: overall strategy for testing, including objectives, resources, schedule
T...read more

Asked in Cognizant

Q. What will be returned if multiple tabs are open?
The return would be the number of tabs open in the browser.
The return value would be an integer representing the count of open tabs.
For example, if there are 5 tabs open, the return value would be 5.

Asked in Infosys

Q. How do you take a screenshot when a test case fails?
Use Selenium WebDriver to capture screenshot on test case failure
Use Selenium WebDriver's getScreenshotAs method to capture screenshot
Save the screenshot to a specified location on the system
Include the screenshot capture code in the test case failure handling logic

Asked in Mphasis

Q. Write the code in notepad by sharing your screen.
Code writing task for Automation Test Engineer position
Open Notepad
Write code for the given task
Share screen to show the code
Ensure code is well-structured and follows best practices

Asked in Globant

Q. What is Type coercion?
Type coercion is the process of converting one data type to another in programming.
Type coercion can happen implicitly or explicitly in programming languages.
Implicit type coercion occurs when the language automatically converts data types during operations.
Explicit type coercion occurs when the programmer manually converts data types using functions or operators.
Example: In JavaScript, the addition operator (+) can perform implicit type coercion by converting a number to a s...read more

Asked in PwC

Q. Write a program to find character occurrences in "Hello World".
Program to find character occurances in 'Hello World'
Create a map to store character occurrences
Iterate through each character in the string and update the map
Print the character occurrences from the map
Interview Questions of Similar Designations
Interview Experiences of Popular Companies





Top Interview Questions for Automation Test Engineer Related Skills

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


Reviews
Interviews
Salaries
Users

