Test Analyst

20+ Test Analyst Interview Questions and Answers for Freshers

Updated 12 Jul 2025
search-icon

Asked in Fujitsu

5d ago

Q. What is the difference between automation testing and manual testing?

Ans.

Automation testing is the use of tools and scripts to execute test cases, while manual testing is performed manually by human testers.

  • Automation testing involves the use of automation tools and scripts to execute test cases.

  • Manual testing is performed manually by human testers without the use of automation tools.

  • Automation testing is faster and more efficient for repetitive tasks.

  • Manual testing allows for exploratory testing and human intuition.

  • Automation testing is suitable ...read more

Asked in Infosys

1d ago

Q. Write a program where the input 'demo' returns the output 'deemmmoooo'.

Ans.

Program to repeat characters in a string based on their position

  • Iterate through each character in the input string

  • Repeat each character based on its position in the string

  • Concatenate the repeated characters to form the output string

1d ago

Q. What is smoke testing, sanity testing, black box testing, test cases.

Ans.

Smoke testing, sanity testing, black box testing, and test cases are all important concepts in software testing.

  • Smoke testing is a preliminary test to check if the basic functionalities of the software are working without any major issues.

  • Sanity testing is a subset of regression testing and focuses on testing specific functionalities after changes have been made.

  • Black box testing is a testing technique where the internal workings of the software are not known to the tester, w...read more

Asked in Infosys

3d ago

Q. Write a program to count the occurrences of a specific character in a string.

Ans.

Program to count occurrences of specific character in a String

  • Iterate through each character in the string

  • Check if the character matches the specific character

  • Increment a counter if there is a match

Are these interview questions helpful?

Asked in Infosys

4d ago

Q. Write a program to calculate the sum of all digits in a given string (e.g., "5g556fdf").

Ans.

Program to get sum of all digits from a string

  • Iterate through each character in the string

  • Check if the character is a digit using Character.isDigit() method

  • If it is a digit, convert it to integer and add it to a running sum

Asked in Infosys

6d ago

Q. Write Selenium code to close all windows except one.

Ans.

Use Selenium logic to close all windows except one.

  • Get all window handles using driver.getWindowHandles()

  • Iterate through each window handle and close it except for the desired window

  • Switch to the desired window using driver.switchTo().window()

Test Analyst Jobs

Pfizer logo
Manager, Senior Central Testing Analyst 6-9 years
Pfizer
3.9
Chennai
Infosys Limited logo
Test Analyst 4-5 years
Infosys Limited
3.6
₹ 5 L/yr - ₹ 9 L/yr
(AmbitionBox estimate)
Coimbatore
Tech Mahindra Ltd. logo
Tech Mahindra - MDM Test Analyst (4-6 yrs) 4-6 years
Tech Mahindra Ltd.
3.5
₹ 3 L/yr - ₹ 15 L/yr
(AmbitionBox estimate)

Asked in Mercer

2d ago

Q. what is white box and black box testing

Ans.

White box testing is testing the internal structure of the system while black box testing is testing the external behavior of the system.

  • White box testing is also known as clear box testing or structural testing.

  • It involves testing the code, architecture, and design of the system.

  • Examples include unit testing, integration testing, and code coverage analysis.

  • Black box testing is also known as functional testing or behavioral testing.

  • It involves testing the system's functionali...read more

Asked in FNZ

4d ago

Q. What are the differences between system testing and UAT testing?

Ans.

System testing is done by testers to ensure the system meets requirements, while UAT is done by end users to validate the system's functionality.

  • System testing is performed by testers to identify defects and ensure the system meets specified requirements.

  • UAT (User Acceptance Testing) is conducted by end users to validate the system's functionality and ensure it meets business needs.

  • System testing focuses on technical aspects like performance, security, and functionality, whil...read more

Share interview questions and help millions of jobseekers 🌟

man-with-laptop
4d ago

Q. Write a program to find duplicate characters in a string.

Ans.

Program to find duplicate characters in string

  • Iterate through each character in the string

  • Use a hashmap to store the count of each character

  • Identify characters with count greater than 1 as duplicates

Asked in TCS

2d ago

Q. Write a C program to print a pyramid pattern.

Ans.

Pyramid program in C language

  • Use nested loops to print the pyramid pattern

  • The number of rows in the pyramid can be taken as input from the user

  • Example: for a pyramid with 5 rows, the pattern would be: * *** ***** ******* *********

Asked in Cognizant

6d ago

Q. Write a program to reverse a string.

Ans.

Program to reverse a string using array of characters

  • Create a character array from the input string

  • Use two pointers to swap characters from start and end of the array

  • Repeat until the pointers meet in the middle

Asked in Amazon

6d ago

Q. What is regression testing?

Ans.

Regression testing is the process of testing changes made to a software application to ensure that existing functionality still works as expected.

  • It is performed after making changes to the software

  • It ensures that existing functionality is not affected by the changes

  • It helps to identify any defects or issues that may have been introduced by the changes

  • It can be automated to save time and effort

  • Examples include testing after bug fixes, new feature additions, and software updat...read more

Asked in Vuram

3d ago

Q. What is POM?

Ans.

POM stands for Page Object Model, a design pattern used in test automation to create reusable and maintainable test scripts.

  • POM separates the test scripts from the page objects, making the code more organized and easier to maintain.

  • Each page in the application has its own corresponding page object class, which contains the locators and methods to interact with that page.

  • By using POM, changes to the UI can be easily managed by updating the page object classes without impacting...read more

Asked in Infosys

6d ago

Q. Work flow explanation

Ans.

Work flow explanation is the process of describing the steps involved in completing a task or project.

  • Work flow explanation involves breaking down a task or project into smaller steps

  • Each step is described in detail, including who is responsible for completing it and when it should be done

  • Work flow explanation helps to ensure that tasks are completed efficiently and effectively

  • Examples of work flow explanation include project management software, flowcharts, and written proce...read more

Asked in Synechron

1d ago

Q. Tell me about your framework.

Ans.

My framework is a robust automation framework designed to efficiently test software applications.

  • My framework is built using Selenium for web application testing.

  • It includes reusable functions and libraries to streamline test case development.

  • I have incorporated data-driven testing to easily test multiple test scenarios.

  • The framework also integrates with CI/CD tools like Jenkins for continuous testing.

  • I have implemented reporting features to track test results and identify is...read more

Asked in Infosys

3d ago

Q. What collections are used in your framework?

Ans.

We use various collections like lists, maps, and sets in our framework for storing and manipulating data.

  • We use lists to store test data or test steps

  • Maps are used for key-value pairs like test data and expected results

  • Sets are used for storing unique elements like test cases

2d ago

Q. What are the different types of locators in Selenium?

Ans.

Locators in Selenium are used to identify web elements on a web page. There are several types of locators available.

  • Types of locators include ID, Name, Class Name, Tag Name, Link Text, Partial Link Text, CSS Selector, and XPath.

  • ID is the most commonly used locator and is unique to each element.

  • Name is used to identify elements by their name attribute.

  • Class Name is used to identify elements by their class attribute.

  • Tag Name is used to identify elements by their HTML tag name.

  • L...read more

Q. What is the bug life cycle?

Ans.

Bug life cycle refers to the stages a bug goes through from discovery to resolution.

  • Bug is discovered and reported

  • Bug is assigned to a developer

  • Developer fixes the bug

  • Bug is retested by the tester

  • If the bug is fixed, it is closed. If not, it is reopened

  • Bug is verified as fixed and closed

Asked in Infosys

1d ago

Q. Explain OOP concepts.

Ans.

Oops concepts are the principles of Object-Oriented Programming, including inheritance, encapsulation, polymorphism, and abstraction.

  • Inheritance: Allows a class to inherit properties and behavior from another class.

  • Encapsulation: Bundling data and methods that operate on the data into a single unit.

  • Polymorphism: Ability to present the same interface for different data types.

  • Abstraction: Hiding the complex implementation details and showing only the necessary features.

Asked in Qualitest

5d ago

Q. Explain the defect life cycle.

Ans.

The defect life cycle outlines the stages a defect goes through from identification to resolution.

  • 1. **Identification**: A defect is discovered during testing. Example: A bug is found in the login functionality.

  • 2. **Reporting**: The defect is documented in a defect tracking tool. Example: A tester logs the defect with steps to reproduce.

  • 3. **Triage**: The defect is reviewed and prioritized based on severity and impact. Example: Critical defects are addressed first.

  • 4. **Assign...read more

Asked in Sapiens

5d ago

Q. Given an integer, reverse the digits of the number.

Ans.

Reverse a number by converting it to a string and then reversing the characters

  • Convert the number to a string

  • Reverse the characters of the string

  • Convert the reversed string back to a number

Asked in TCS

6d ago

Q. Reverse a String

Ans.

Reverse a given string

  • Create a character array from the input string

  • Use two pointers to swap characters from start and end of the array

  • Continue swapping until the pointers meet in the middle

Interview Experiences of Popular Companies

TCS Logo
3.6
 • 11.1k Interviews
Accenture Logo
3.7
 • 8.7k Interviews
Infosys Logo
3.6
 • 7.9k Interviews
Cognizant Logo
3.7
 • 5.9k Interviews
Capgemini Logo
3.7
 • 5.1k Interviews
View all
interview tips and stories logo
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories
Test Analyst Interview Questions
Share an Interview
Stay ahead in your career. Get AmbitionBox app
play-icon
play-icon
qr-code
Trusted by over 1.5 Crore job seekers to find their right fit company
80 L+

Reviews

10L+

Interviews

4 Cr+

Salaries

1.5 Cr+

Users

Contribute to help millions

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

Follow Us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter
Profile Image
Hello, Guest
AmbitionBox Employee Choice Awards 2025
Winners announced!
awards-icon
Contribute to help millions!
Write a review
Write a review
Share interview
Share interview
Contribute salary
Contribute salary
Add office photos
Add office photos
Add office benefits
Add office benefits