Qa Automation Testing Engineer
100+ Qa Automation Testing Engineer Interview Questions and Answers
Q1. selenium: what are selenium components, what are the different locators in selenium, what is selenium web driver, write a xpath for a given element on a web page
Selenium components include Selenium IDE, Selenium RC, Selenium WebDriver. Different locators are ID, Name, Class Name, Tag Name, Link Text, Partial Link Text, CSS Selector and XPath. Selenium WebDriver is a tool used to automate web application testing. XPath is a language used to navigate through XML documents and web pages.
Selenium components: Selenium IDE, Selenium RC, Selenium WebDriver
Different locators: ID, Name, Class Name, Tag Name, Link Text, Partial Link Text, CSS ...read more
Q2. How do you convert json object to string and vice versa?
To convert JSON object to string, use JSON.stringify(). To convert string to JSON object, use JSON.parse().
JSON.stringify() method converts a JavaScript object or value to a JSON string.
JSON.parse() method parses a JSON string and returns a JavaScript object.
Example: var obj = {name: 'John', age: 30}; var jsonString = JSON.stringify(obj); var jsonObj = JSON.parse(jsonString);
Make sure the JSON string is valid, else it will throw an error.
Qa Automation Testing Engineer Interview Questions and Answers for Freshers
Q3. Robot Framework : what are standard libraries in Robot Framework? Explain robot framework architechture, what is setup and teardown, write a sample login script using robot framework?
Answering questions related to Robot Framework and its standard libraries, architecture, setup and teardown, and a sample login script.
Standard libraries in Robot Framework include BuiltIn, Collections, DateTime, Dialogs, OperatingSystem, Process, Screenshot, String, Telnet, and XML.
Robot Framework architecture consists of test cases, test suites, and keywords.
Setup and teardown are pre and post conditions for test cases.
Sample login script using Robot Framework:
Open Browser ...read more
Q4. Write a program to find the elements of a list that have least difference in python? input = [3,9,50,15,99,7,98,65] output = [98,99]
Program to find elements of a list with least difference in Python
Sort the list
Find the minimum difference between adjacent elements
Return the elements with minimum difference
Q5. what are the locators in selenium? what is the difference between driver.quit and drive.close? What is implicit wait and explicit wait ?
Answers to common Selenium interview questions.
Locators in Selenium are used to identify web elements on a web page. Examples include ID, class name, name, tag name, link text, and partial link text.
driver.quit() closes the entire browser window and ends the WebDriver session, while driver.close() only closes the current window or tab.
Implicit wait is a global wait that applies to all web elements and waits for a specified amount of time before throwing an exception if the el...read more
Q6. What are lists and its functions?
Lists are a collection of ordered and changeable elements. They have various functions to manipulate the data.
Lists are created using square brackets []
They can contain any data type such as strings, integers, or even other lists
Functions include append(), insert(), remove(), pop(), sort(), and reverse()
Example: my_list = ['apple', 'banana', 'cherry']
Example: my_list.append('orange') adds 'orange' to the end of the list
Share interview questions and help millions of jobseekers 🌟
Q7. 4- Selenium questions- list vs set, findelement vs findelements, Actions class, write syntax for actions class, implict wait and explict wait
Selenium questions covering list vs set, findelement vs findelements, Actions class, implicit wait, and explicit wait.
List vs Set: List allows duplicate elements and maintains insertion order, while Set does not allow duplicates.
findElement vs findElements: findElement returns the first matching element, findElements returns a list of all matching elements.
Actions class: Used for performing complex user interactions like drag-and-drop, mouse movements, etc.
Syntax for Actions ...read more
Q8. How to check if for every steps we have steps written in step definition file
To check if every step has a corresponding step definition, we can use a code coverage tool.
Use a code coverage tool to analyze the step definition file and identify any missing steps
Ensure that all steps in the feature file are covered by the step definition file
Regularly review and update the step definition file to ensure it stays up-to-date with the feature file
Qa Automation Testing Engineer Jobs
Q9. What is ARP? How it will work? Can we able to delete the ARP entry? And What is the command? How long the ARP entry will be there in table? What is ARP Poisoning?
ARP stands for Address Resolution Protocol. It is used to map IP addresses to MAC addresses on a local network.
ARP is used to resolve IP addresses to MAC addresses on a local network.
ARP works by broadcasting a request for the MAC address of a specific IP address on the network.
Yes, ARP entries can be deleted using the 'arp -d' command.
ARP entries have a timeout period, typically around 2 minutes, after which they are removed from the ARP table.
ARP Poisoning is a type of atta...read more
Q10. 8- agile process, what is user story, what is sprint
User story is a description of a feature from an end-user perspective, and sprint is a time-boxed iteration in Agile development.
User story is a short, simple description of a feature told from the perspective of the person who desires the new capability.
Sprint is a time-boxed iteration in Agile development, usually lasting 1-4 weeks, where a team works on a set of user stories.
User stories are written in a specific format: 'As a [type of user], I want [some goal] so that [so...read more
Q11. How to check network connectivity speed? And how will you debug? How can you increase the frames size and how to capture the frames?
To check network connectivity speed, use tools like speedtest.net. Debug by checking for network congestion or hardware issues. Increase frame size by adjusting MTU. Capture frames using tools like Wireshark.
Use tools like speedtest.net to check network connectivity speed
Debug by checking for network congestion, hardware issues, or misconfigured settings
Increase frame size by adjusting Maximum Transmission Unit (MTU)
Capture frames using tools like Wireshark for packet analysi...read more
Q12. What is the SQL query to select and display the name of person who have highest salary among employees?
SQL query to select and display the name of person with highest salary among employees.
Use the MAX() function to find the highest salary
Join the employee table with the salary table using a common key like employee_id
Select the name of the person with the highest salary
Q13. What is Severity and Priority if a logo was changed in the Application
Severity and Priority of changing a logo in an application
Severity refers to the impact of the logo change on the application's functionality
Priority determines the order in which the logo change should be addressed
Example: If the logo change affects the application's branding and user recognition, it may have high severity and priority
Q14. If you are not meeting the requirement in your testcase then what the documentation format you follow.
If not meeting requirement in testcase, follow documentation format like updating test case steps, expected results, and defect details.
Update the test case steps to accurately reflect the actual steps taken during testing
Update the expected results to reflect the actual results observed during testing
Document the defect details including steps to reproduce, screenshots, and any additional information
Assign a severity and priority to the defect based on its impact on the syst...read more
Q15. Java program to compare 2 strings and check if both matching Selenium Code for Drag and Drop images Selenium code for selecting all the elements from the dropdown Java concepts: OOPs, Inheritance(Multiple inher...
read moreThe interview question covers Java programming, Selenium automation, OOPs concepts, and testing concepts.
Use equals() method in Java to compare two strings for exact match
Use dragAndDrop() method in Selenium for drag and drop functionality
Use Select class in Selenium for handling dropdowns
OOPs concepts include encapsulation, inheritance, polymorphism, and abstraction
Selenium waits can be implemented using WebDriverWait class
Regression testing ensures that new code changes do ...read more
Q16. Python program. Input: lst = [12,83,0,17,0,71] Output = [12,83,17,71,0,0] Answer: lst=[12, 83,0,17,0,71] ls=[] l=[] for i in lst: if i! = 0: ls.append(i) else: l.append(i) print(ls+l)
Python program to move all zeros to the end of a list while maintaining the order of non-zero elements.
Iterate through the input list and separate non-zero elements into one list and zeros into another list.
Concatenate the non-zero list with the zero list to get the desired output.
Print the final list with zeros at the end.
Q17. What is VLAN a d how it will work? Explain with scenario
VLAN stands for Virtual Local Area Network, used to logically segment a network into multiple virtual networks.
VLANs help in improving network security by isolating traffic between different departments or groups.
They can also help in optimizing network performance by reducing broadcast traffic.
VLANs are configured at the switch level and allow devices in different VLANs to communicate with each other based on routing rules.
For example, in a company network, VLANs can be set ...read more
Q18. What is the difference between RIP and OSPF? Explain me OSPF?
RIP is a distance vector routing protocol while OSPF is a link-state routing protocol. OSPF uses Dijkstra algorithm for routing.
RIP stands for Routing Information Protocol and OSPF stands for Open Shortest Path First.
RIP uses hop count as the metric for path selection while OSPF uses cost.
OSPF is more scalable and efficient than RIP as it converges faster and supports VLSM.
OSPF uses areas to divide the network into smaller domains for better management and reduced routing tra...read more
Q19. Which estimate technique you follow , if fibonacci then why it is in 1 2 3 5 8 13 ?? Not in 12345678
Fibonacci sequence is a mathematical pattern where each number is the sum of the two preceding ones.
Fibonacci sequence is a series of numbers where each number is the sum of the two preceding ones.
The sequence starts with 1, 2, then each subsequent number is the sum of the two previous numbers (1+2=3, 2+3=5, 3+5=8, and so on).
This sequence is used in estimating because it reflects natural growth patterns found in nature.
Q20. Can you tell me how to fetch data from table row dynamically .
To fetch data from a table row dynamically, use a unique identifier to locate the row and extract the data.
Identify a unique identifier for the row, such as an ID or class name
Use a query selector or XPath to locate the row based on the identifier
Extract the data from the row using appropriate methods or functions
Q21. What is the difference between Cisco switch and other company switches? What is the difference between cisco switch and white box switch?
Cisco switches are known for their reliability, advanced features, and high price point compared to other company switches.
Cisco switches are known for their high quality and reliability.
Cisco switches offer advanced features such as VLAN support, QoS, and security options.
Cisco switches are typically more expensive than switches from other companies.
White box switches are generic, off-the-shelf switches that are not branded by a specific company.
White box switches are often ...read more
Q22. What modules have you worked on ERPs
I have worked on multiple modules of ERPs including finance, inventory, and human resources.
Finance module: Managed financial transactions, budgeting, and reporting.
Inventory module: Handled stock management, procurement, and order fulfillment.
Human resources module: Oversaw employee information, payroll, and performance management.
Q23. 30. Build an automated script that navigates to Facebook. Login with an invalid credential and verify the error message using the page object model.
Automate script to navigate to Facebook, login with invalid credentials, and verify error message using page object model.
Create a page object model for Facebook login page
Use automation tool like Selenium to navigate to Facebook and enter invalid credentials
Verify error message displayed on the page using assertions
Q24. What is ICMP and how it will work? How ping works?
ICMP stands for Internet Control Message Protocol. It is used for network troubleshooting and diagnostic purposes.
ICMP is a protocol used by network devices to communicate error messages or operational information.
Ping is a tool that uses ICMP to send echo requests to a target host and waits for an echo reply.
Ping works by sending an ICMP echo request packet to the target host, which then responds with an echo reply if it is reachable.
ICMP can also be used for other purposes ...read more
Q25. Have u created the testplan document when porject was started
Yes, I have created the test plan document at the start of the project.
Yes, I always create a test plan document at the beginning of a project to outline the testing approach and strategy.
The test plan document includes details on scope, objectives, resources, schedule, and test cases.
It helps in ensuring that all stakeholders are aligned on the testing process and expectations.
For example, in my previous project, I created a detailed test plan document that was reviewed and ...read more
Q26. Sorting of hashmap using keys without any method. xpath for list of webelements in PageFactory. TARGET folder in maven Data Table in cucumber.
Sorting a hashmap using keys without any method involves iterating through the keys and rearranging them in ascending order.
Iterate through the keys of the hashmap
Compare each key with the next key and swap them if they are in the wrong order
Continue this process until all keys are in ascending order
Q27. What are the technologies you used in your testcases.
I have used technologies like Selenium, JUnit, TestNG, Cucumber, and Jenkins in my testcases.
Selenium
JUnit
TestNG
Cucumber
Jenkins
Q28. Ready api groovy script code sample on how to retrieve test data
Using Ready API Groovy script to retrieve test data
Use the testRunner object to access test data
Retrieve test data using testRunner.testCase.getPropertyValue('propertyName')
Store the retrieved test data in a variable for further use
Q29. what is sdlc? what is the difference between sdlc and stlc?
SDLC stands for Software Development Life Cycle, while STLC stands for Software Testing Life Cycle.
SDLC is the process of developing software from planning to deployment, while STLC is the process of testing software within the SDLC.
SDLC includes phases like requirements gathering, design, development, testing, and deployment, while STLC focuses solely on testing activities.
SDLC is broader and encompasses the entire software development process, while STLC is specific to test...read more
Q30. How to handle Dropdowns using selenium?
Dropdowns in Selenium can be handled using Select class in Selenium WebDriver.
Use Select class from Selenium WebDriver to interact with dropdowns
Identify the dropdown element using its locator (id, name, class, etc.)
Create a Select object by passing the dropdown element as a parameter
Use Select object methods like selectByVisibleText(), selectByValue(), selectByIndex() to interact with dropdown options
Q31. 3-Java program to reverse string, check palindrome
Java program to reverse string and check if it is a palindrome.
Create a function to reverse the input string.
Compare the reversed string with the original string to check if it is a palindrome.
Use built-in functions like StringBuilder or StringBuffer for string manipulation.
Handle cases where input is null or empty.
Q32. what is cypress ,difference between cypress and selenium
Cypress is a JavaScript-based end-to-end testing framework. It differs from Selenium in terms of architecture, ease of use, and speed.
Cypress is a JavaScript-based testing framework for web applications.
It provides a simple and intuitive API for writing tests.
Cypress runs directly in the browser and can access everything on the page.
Unlike Selenium, Cypress does not use WebDriver and has a different architecture.
Cypress offers automatic waiting for elements and actions, makin...read more
Q33. Explain if we remove static keyword from main function what will happen.
Removing static keyword from main function will not have any impact on the program's functionality.
Removing static keyword from main function will not affect the program's execution.
The main function in C/C++ is always called by the operating system, regardless of whether it is static or not.
Static keyword in main function is optional and does not change the behavior of the program.
Q34. What do you mean by ERPs
ERPs stand for Enterprise Resource Planning systems.
ERPs are software systems that integrate and manage various business processes and functions.
They provide a centralized database and a suite of applications to streamline operations.
ERPs typically include modules for finance, human resources, supply chain management, and customer relationship management.
Examples of popular ERPs include SAP, Oracle ERP Cloud, and Microsoft Dynamics 365.
ERPs help organizations improve efficien...read more
Q35. Where you use Javasrcipt and why we use if we have web element method
JavaScript is used in QA automation testing for handling dynamic elements, performing validations, and interacting with APIs.
JavaScript is used to handle dynamic elements on a webpage that cannot be easily accessed using web element methods.
JavaScript can be used to perform validations and assertions on the webpage, such as checking for the presence of certain elements or text.
JavaScript is also commonly used to interact with APIs and perform API testing in QA automation.
For ...read more
Q36. Print the below mentioned pattern: * * * * * * * * * * * * * * *
Print a pattern of stars in a pyramid shape.
Use nested loops to print spaces and stars in the desired pattern.
Start with one star at the top and increase the number of stars in each row.
Adjust the spacing to create the pyramid shape.
Q37. From a list seperate elements based on data type and remove the duplicates Dictionary access Selecting elements from e-commerce website Write test cases example API related
To separate elements based on data type and remove duplicates from a list
Create separate lists for each data type (string, integer, etc.)
Iterate through the original list and add elements to respective lists based on data type
Remove duplicates from each list using a set or other data structure
Combine all lists into a single list without duplicates
Q38. WAP to print the occurrence of the character present in the given string.
The program will count and print the occurrence of each character in a given string.
Create an array to store the count of each character (initialize with 0)
Iterate through the string and increment the count of each character in the array
Print the count of each character along with the character itself
Q39. Git commands. What is git stash used for?
Git stash is used to temporarily store changes that are not ready to be committed.
Git stash is used to save changes that are not ready to be committed, allowing you to switch branches or work on something else.
It is useful when you want to temporarily store changes without committing them.
You can later apply the stashed changes back to your working directory.
Example: git stash save 'work in progress'
Example: git stash apply
Q40. Find duplicate numbers and its count from given list explain logic
Logic to find duplicate numbers and their count in a given list.
Iterate through the list and store each number in a hashmap with its count
If a number is already in the hashmap, increment its count
After iterating, check the hashmap for numbers with count greater than 1 to find duplicates
Q41. Find element find elements return types of it if no elements found
findElements method in Selenium returns a list of WebElements or an empty list if no elements are found.
findElements method returns a list of WebElements
If no elements are found, it returns an empty list
Return type is List
Q42. How cucumber know step defination file placed
Cucumber knows the step definition file based on the annotations provided in the feature files.
Cucumber uses annotations like @Given, @When, @Then to map steps in feature files to corresponding step definition methods.
Step definition files are typically placed in a separate package or directory within the project structure.
Cucumber scans the project directory for step definition files based on the package structure and annotations used in feature files.
Q43. Testing cycle when project was on initial level
During the initial testing cycle of a project, focus is on establishing test cases, setting up test environments, and identifying potential issues.
Creating test cases based on requirements
Setting up test environments
Identifying potential issues and risks
Executing test cases and reporting defects
Collaborating with developers to resolve issues
Q44. What is testing matrix and automation ROI
Testing matrix is a tool used to track test coverage and automation ROI is the return on investment from implementing automation testing.
Testing matrix is a visual representation of test cases, test scenarios, and their coverage across different platforms, browsers, devices, etc.
Automation ROI is the measure of the benefits gained from automation testing compared to the costs incurred in implementing and maintaining the automation framework.
Automation ROI can be calculated by...read more
Q45. Reverse a string code and sort the array in descending order
Reverse a string and sort an array of strings in descending order.
Create a function to reverse a string using built-in methods or loops.
Use a sorting algorithm like bubble sort or quicksort to sort the array in descending order.
Ensure the array contains strings for sorting to work properly. Example: ['apple', 'banana', 'cherry']
Q46. Compare array, prime number, second Highest salary, Validate the CSS value, Excel reading
Comparing different concepts in QA Automation Testing Engineer
Array - Data structure used to store multiple values of the same type
Prime number - A number that is only divisible by 1 and itself
Second Highest salary - Finding the second highest salary in a list of salaries
Validate the CSS value - Ensuring that the CSS value meets the specified criteria
Excel reading - Extracting data from an Excel file for testing purposes
Q47. What are the types of hooks present in bdd.
Types of hooks in BDD include Before, After, BeforeStep, AfterStep, BeforeFeature, AfterFeature, BeforeScenario, AfterScenario.
Before - runs before each scenario
After - runs after each scenario
BeforeStep - runs before each step in a scenario
AfterStep - runs after each step in a scenario
BeforeFeature - runs before each feature
AfterFeature - runs after each feature
BeforeScenario - runs before each scenario
AfterScenario - runs after each scenario
Q48. What is method overloading and overriding concept.
Method overloading is when multiple methods in the same class have the same name but different parameters. Method overriding is when a subclass provides a specific implementation of a method that is already provided by its superclass.
Method overloading involves creating multiple methods in the same class with the same name but different parameters.
Method overriding occurs when a subclass provides a specific implementation of a method that is already provided by its superclass...read more
Q49. What types of locators you used in ur project.
I have used various types of locators in my project, including ID, name, class name, xpath, and CSS selectors.
ID locator: Used to locate elements by their unique ID attribute.
Name locator: Used to locate elements by their name attribute.
Class name locator: Used to locate elements by their class name attribute.
XPath locator: Used to locate elements using XPath expressions.
CSS selector locator: Used to locate elements using CSS selectors.
Q50. What is the different types of draw back of selenium
Some drawbacks of Selenium include limited support for handling non-browser windows, lack of built-in reporting capabilities, and difficulty in testing mobile applications.
Limited support for handling non-browser windows (pop-ups, alerts, etc.)
Lack of built-in reporting capabilities, requiring integration with third-party tools like TestNG or JUnit
Difficulty in testing mobile applications due to the need for additional tools like Appium
Selenium scripts can be brittle and pron...read more
Interview Questions of Similar Designations
Top Interview Questions for Qa Automation Testing Engineer Related Skills
Interview experiences of popular companies
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/Month