Software Quality Assurance Engineer
40+ Software Quality Assurance Engineer Interview Questions and Answers

Asked in ivy

Q. Write code to remove duplicate letters from a string and print the remaining letters. If there are no repeated letters, print 0.
Code to remove duplicate letters from a string and print remaining letters or 0 if no duplicates.
Iterate through the string and keep track of seen characters using a set
If a character is not in the set, add it to the set and append it to the result string
If a character is already in the set, do not append it to the result string
If the result string is empty, print 0

Asked in Cognizant

Q. What is the difference between the get and quit methods?
The get method is used to retrieve a value from a data structure, while the quit method is used to terminate a program or session.
The get method is commonly used in programming languages to access elements from arrays, lists, dictionaries, etc.
The quit method is typically used to gracefully exit a program or session, closing any open resources or connections.
Example: In Python, the get method is used to retrieve values from dictionaries, while the quit method is used to exit ...read more

Asked in Neeyamo Enterprise Solutions

Q. How can you swap two numbers without using a temporary variable or the + or - operators?
Use bitwise XOR operation to swap two numbers without using extra variables or arithmetic operators.
Use bitwise XOR operation to swap two numbers without using extra variables or arithmetic operators.
Example: a = 5, b = 7. a ^= b; b ^= a; a ^= b; Now a = 7, b = 5.

Asked in Amazon

Q. What are the test scenarios for end-to-end testing of the concert or WhatsApp status feature?
Test scenarios for end-to-end testing of concert or WhatsApp status feature include user interactions, notifications, and data integrity checks.
User uploads a status: Verify that the status is uploaded successfully and visible to contacts.
User views a status: Check that the status is displayed correctly for all contacts.
User deletes a status: Ensure that the status is removed from the user's profile and not visible to others.
Notifications: Test that contacts receive notificat...read more

Asked in Convin

Q. Can you explain the framework you used in your last project?
I used the Selenium framework in my last project for automated testing.
Utilized Selenium WebDriver for automating test cases
Implemented Page Object Model design pattern for better code organization
Used TestNG for test case management and reporting

Asked in Cognizant

Q. How do you skip a specific test case in TestNG?
How to skip a specific test case in TestNG?
Use @Test(enabled = false) annotation to skip a test case
Use @Test(groups = {"skip"}) annotation and exclude the group from test execution
Use ITestResult.SKIP status to skip a test case programmatically
Software Quality Assurance Engineer Jobs




Asked in Cognizant

Q. Explain the exception handling process in your project?
Exception handling process involves identifying, catching, and handling errors in the software.
Identify potential exceptions and define exception classes
Catch exceptions using try-catch blocks
Handle exceptions appropriately, either by logging or displaying error messages
Implement a fallback mechanism to handle unexpected exceptions
Test exception handling scenarios thoroughly

Asked in Cognizant

Q. Explain the order of TestNG annotations execution flow.
TestNG annotations are executed in a specific order to ensure proper test execution.
BeforeSuite
BeforeTest
BeforeClass
BeforeMethod
Test
AfterMethod
AfterClass
AfterTest
AfterSuite
Share interview questions and help millions of jobseekers 🌟

Asked in ivy

Q. How do you use tags to run specific test cases?
Tags can be used to categorize test cases and run specific groups of tests.
Add tags to test cases in the test management tool or test automation framework
Use the tags to filter and select specific test cases to run
Run tests based on tags using command line options or configuration settings

Asked in Accenture

Q. What is the difference between absolute XPath and relative XPath?
Absolute Xpath is the complete path from the root element while relative Xpath is the path from the current element.
Absolute Xpath starts with a single forward slash (/) and is used to locate an element from the root node.
Relative Xpath starts with a double forward slash (//) and is used to locate an element from the current node.
Absolute Xpath is more specific and less flexible while relative Xpath is more flexible and less specific.
Example of Absolute Xpath: /html/body/div[...read more


Q. What would you do if you had less time for testing?
Prioritize testing tasks, focus on critical areas, and communicate effectively to ensure quality within time constraints.
Identify critical functionalities: Focus on high-risk areas that impact user experience, like payment processing in an e-commerce app.
Use risk-based testing: Allocate more time to test features that are more likely to fail or have a higher impact on the system.
Leverage automation: Automate repetitive test cases to save time, such as regression tests that ne...read more

Asked in S&P Global

Q. How do you perform actions on a website using Selenium?
Performing actions using Selenium on a website
Identify the element using locators such as ID, class, name, etc.
Perform the desired action using Selenium commands like click(), sendKeys(), etc.
Handle any pop-ups or alerts that may appear during the action
Use explicit or implicit waits to ensure the element is loaded before performing the action

Asked in ivy

Q. Write an XPath to locate elements on the Amazon website.
Xpath for locating elements in Amazon website.
Use // to start the Xpath expression
Use @attribute='value' to specify the attribute and its value
Use text()='text' to specify the text of the element
Use [index] to specify the index of the element if there are multiple matching elements

Asked in Infosys

Q. What is the difference between a scenario and a scenario outline?
Scenario outlines are templates for scenarios with placeholders for input values.
Scenario outlines are used in BDD frameworks like Cucumber.
They allow for the creation of multiple scenarios with different input values.
Scenario outlines use placeholders like
to represent input values. Example: Given a
with , when they log in, then they should see the . Scenario outlines are more flexible and reusable than regular scenarios.

Asked in Cognizant

Q. Explain the execution flow of the Cucumber framework.
Cucumber framework executes feature files using step definitions and generates reports.
Cucumber reads feature files written in Gherkin syntax
Step definitions are written in programming language
Cucumber matches steps in feature file with step definitions
Cucumber generates reports after execution

Asked in Cognizant

Q. How do you select a check box in Selenium?
To select a checkbox in Selenium, locate the checkbox element and use the 'click' method.
Locate the checkbox element using any of the available locators in Selenium
Use the 'click' method to select the checkbox
Verify that the checkbox is selected using the 'isSelected' method

Asked in Josh Technology Group

Q. Introduction test cases of various objects near you
Introduction test cases for objects near me
Test case for testing a chair: verify stability, check for any damages, test weight capacity
Test case for testing a computer: check if it powers on, test functionality of keyboard and mouse, verify internet connectivity
Test case for testing a pen: check if it writes smoothly, test ink flow, verify if cap fits securely

Asked in Amazon

Q. What are the test scenarios for uploading a file?
Test scenarios for file uploading ensure functionality, security, and performance across various conditions.
Verify file upload with valid file types (e.g., .jpg, .pdf).
Check error handling for unsupported file types (e.g., .exe).
Test file size limits (e.g., upload a 10MB file if limit is 20MB).
Validate upload progress indicator for large files.
Ensure multiple file uploads work simultaneously.
Test upload with special characters in file names (e.g., 'test@file!.jpg').
Check for ...read more

Asked in S&P Global

Q. Write a Java program that demonstrates your understanding of strings and arrays.
Java program for manipulating arrays of strings.
Declare an array of strings using String[] arrayName = new String[length];
Access individual elements using arrayName[index];
Use loops to iterate through the array and perform operations on each element.
Use built-in methods like length() and split() to manipulate strings within the array.

Asked in ivy

Q. How do you use runner or configuration files in a test framework?
Runner/Config file is used in test frameworks to manage test execution and configuration settings.
Runner file is used to execute test cases in a specific order or grouping.
Config file is used to store configuration settings like browser type, environment variables, etc.
Separating runner and config files helps in better organization and maintenance of test suites.

Asked in Matellio

Q. How do you handle working on 2-3 projects in parallel?
Prioritize tasks, communicate effectively, use project management tools
Prioritize tasks based on deadlines and importance
Communicate effectively with team members and stakeholders to ensure alignment
Utilize project management tools like Jira or Trello to track progress and manage tasks

Asked in TCS

Q. What is the difference between Overloading and Overriding?
Overloading is having multiple methods with the same name but different parameters. Overriding is having a method in a subclass with the same name and parameters as a method in its superclass.
Overloading is compile-time polymorphism while overriding is runtime polymorphism.
Overloading is used to provide different implementations of the same method for different input parameters.
Overriding is used to provide a specific implementation of a method that is already provided by its...read more

Asked in Cognizant

Q. Explain the pseudo code for taking a screenshot.
TakescreenShot sudo code captures the screen and saves it as an image file.
Import necessary libraries for capturing the screen and saving images
Define a function to capture the screen
Specify the file format and location to save the screenshot
Call the function to capture and save the screenshot

Asked in Matellio

Q. Define bug release? verification and validation
Bug release verification and validation ensure that identified bugs are fixed and the software meets quality standards.
Bug release verification involves checking if the reported bugs have been fixed in the new release.
Bug release validation involves testing the new release to ensure it meets quality standards and functions correctly.
Verification ensures that the bugs are fixed, while validation ensures the overall quality of the software.
Examples: Running test cases to verify...read more

Asked in Matellio

Q. How do you create a test plan?
Creating a test plan involves defining objectives, scope, resources, schedule, and test cases.
Define the objectives and scope of the testing
Identify the resources needed for testing
Establish a schedule for testing activities
Create detailed test cases based on requirements
Assign responsibilities for executing tests and reporting results

Asked in Matellio

Q. How do you perform regression testing on a product?
Regression testing is the process of retesting a product to ensure that new changes have not negatively impacted existing functionality.
Identify the scope of the regression testing based on the changes made to the product
Create a regression test suite that includes test cases covering all critical functionalities
Execute the regression test suite after each new release or change to the product
Automate regression tests to save time and ensure consistency
Compare the results of t...read more

Asked in DEPT

Q. Explain your current framework.
Our current framework is a hybrid framework combining data-driven and keyword-driven approaches.
Combines data-driven and keyword-driven testing
Uses Excel sheets for test data and keywords
Utilizes Selenium WebDriver for automation
Includes reusable functions for common actions
Supports parallel execution for faster testing

Asked in EPAM Systems

Q. Given two strings s and t, return true if t is an anagram of s, and false otherwise.
Check if two words are anagrams
Convert both words to lowercase
Remove any spaces or special characters
Sort the characters in both words and compare them

Asked in TCS

Q. What is Fibonacci series
Fibonacci series is a sequence of numbers where each number is the sum of the two preceding ones.
Fibonacci series starts with 0 and 1, and each subsequent number is the sum of the two preceding numbers.
The series goes like: 0, 1, 1, 2, 3, 5, 8, 13, 21, and so on.
It is a common mathematical sequence used in various algorithms and applications.

Asked in ivy

Q. Explain the difference between the 'finally' keyword and the 'final' keyword.
The 'finally' and 'final' keywords in Java serve different purposes in exception handling and variable declaration.
The 'final' keyword is used to declare constants. Example: 'final int MAX_VALUE = 100;'
A 'final' class cannot be subclassed. Example: 'final class MyClass {}'
'finally' is used in exception handling to execute code regardless of whether an exception occurred.
Example of 'finally': 'try { ... } catch (Exception e) { ... } finally { cleanup(); }'
'final' methods canno...read more
Interview Questions of Similar Designations
Interview Experiences of Popular Companies





Top Interview Questions for Software Quality Assurance 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

