Test Analyst

100+ Test Analyst Interview Questions and Answers

Updated 4 Jul 2025
search-icon

Asked in TCS

1w ago

Q. Which is better, star schema or snowflake schema?

Ans.

Both have their own advantages and disadvantages depending on the use case.

  • Star schema is simpler and easier to understand, but may not be suitable for complex data relationships.

  • Snowflake schema is more normalized and can handle complex data relationships, but can be more difficult to understand and maintain.

  • The choice between the two depends on the specific requirements of the project and the data being analyzed.

  • For example, a data warehouse for a retail company may benefit...read more

Asked in Infosys

2w ago

Q. We capture screenshots using the TakesScreenshot method. The syntax for it is File file = ((TakesScreenshot)driver).getScreenshotAs(outputType.FILE);

Ans.

The TakesScreenshot method captures screenshots in Selenium WebDriver for testing purposes.

  • TakesScreenshot is an interface in Selenium WebDriver.

  • It allows capturing screenshots during test execution.

  • Example: File file = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);

  • The screenshot can be saved to a desired location using FileUtils.

  • Useful for debugging and verifying UI elements.

Asked in Infosys

1w ago

Q. what is oops? its characteristics. Collection classes.

Ans.

OOPs stands for Object-Oriented Programming. It is a programming paradigm based on the concept of objects.

  • OOPs focuses on creating objects that contain data and methods to manipulate that data.

  • Characteristics of OOPs include encapsulation, inheritance, polymorphism, and abstraction.

  • Collection classes in OOPs are used to store and manipulate groups of objects, such as lists, sets, and maps.

2w ago

Q. What is basic API testing, and can you explain what Swagger is?

Ans.

Basic API testing ensures that APIs function correctly, while Swagger is a tool for documenting and testing APIs.

  • API testing verifies the functionality, reliability, and performance of APIs.

  • It involves sending requests to the API and validating responses.

  • Common methods include GET, POST, PUT, and DELETE requests.

  • Swagger is an open-source tool that helps design, build, document, and test APIs.

  • It provides a user-friendly interface to interact with API endpoints.

  • Swagger UI allow...read more

Are these interview questions helpful?

Asked in FNZ

1w ago

Q. What is Test Coverage? What is the formula

Ans.

Test coverage measures the extent of testing performed on a software application, ensuring all requirements are validated.

  • Test coverage is typically expressed as a percentage of the total requirements or code that has been tested.

  • Formula: Test Coverage = (Number of Test Cases Executed / Total Number of Test Cases) * 100.

  • Example: If you have 80 test cases and executed 60, the coverage is (60/80) * 100 = 75%.

  • High test coverage indicates thorough testing, but it doesn't guarante...read more

3d 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

Test Analyst Jobs

Pfizer logo
Manager, Senior Central Testing Analyst 6-9 years
Pfizer
3.9
Chennai
IQVIA logo
Big Data Testing Analyst 2-7 years
IQVIA
3.8
Bangalore / Bengaluru
Allianz logo
Senior Analyst - Testing (3-4 yrs) 3-4 years
Allianz
4.4

Asked in Cognizant

1w ago

Q. What tools have you used for test automation?

Ans.

I have used Selenium, Appium and JMeter for test automation.

  • Selenium for web application testing

  • Appium for mobile application testing

  • JMeter for performance testing

  • Created test scripts using Java programming language

  • Integrated with CI/CD tools like Jenkins

  • Used Page Object Model design pattern for maintainability

  • Implemented data-driven and keyword-driven testing

  • Executed tests on multiple browsers and devices

Asked in Infosys

3d ago

Q. What are the different types of frameworks that you have implemented as part of automation?

Ans.

I have implemented data-driven, keyword-driven, and hybrid frameworks for automation testing.

  • Data-driven framework: Used to separate test data from test scripts, allowing for easy maintenance and scalability.

  • Keyword-driven framework: Utilizes keywords to represent actions or operations, making test scripts more readable and reusable.

  • Hybrid framework: Combines elements of data-driven and keyword-driven frameworks for flexibility and efficiency.

Share interview questions and help millions of jobseekers 🌟

man-with-laptop

Asked in TCS

1w ago

Q. What is STLC?

Ans.

STLC stands for Software Testing Life Cycle.

  • STLC is a systematic approach to testing software applications.

  • It consists of various phases such as requirement analysis, test planning, test design, test execution, and test closure.

  • Each phase has specific objectives and deliverables.

  • STLC ensures that the software is thoroughly tested and meets the quality standards.

  • It helps in identifying defects early in the development cycle, reducing the cost of fixing them later.

  • STLC is an in...read more

Q. What is black box testing and white box testing?

Ans.

Black box testing is testing without knowledge of the internal workings of the system, while white box testing is testing with knowledge of the internal workings of the system.

  • Black box testing focuses on the functionality of the system.

  • White box testing focuses on the internal structure of the system.

  • Black box testing is often used for user acceptance testing.

  • White box testing is often used for unit testing.

  • Black box testing is performed without access to the source code.

  • Whi...read more

Asked in Coforge

2w ago

Q. Coding questions of java 1.balanced parenthesis program 2. Find no of occurrence of each character in a string

Ans.

1. Balanced parenthesis program - check if a string of parentheses is balanced. 2. Find no of occurrence of each character in a string.

  • For balanced parenthesis program, use a stack to keep track of opening and closing parentheses.

  • For finding occurrence of each character in a string, use a HashMap to store character counts.

  • Example for balanced parenthesis program: Input: "((()))", Output: true

  • Example for finding occurrence of each character: Input: "hello", Output: {h=1, e=1, ...read more

Asked in Infosys

1w 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

Asked in Infosys

2w ago

Q. How are OOPS concepts implemented in the framework?

Ans.

OOPS concepts are implemented in the framework to ensure code reusability, modularity, and maintainability.

  • Encapsulation: Data hiding and restricting access to certain data members

  • Inheritance: Reusing code and extending functionality from parent classes

  • Polymorphism: Ability to perform different actions based on the object type

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

Asked in FNZ

2w ago

Q. Write 5 System Test Cases and 5 System Integration test cases for the Passport Seva site.

Ans.

Test cases for the Passport Seva site focusing on system and integration testing.

  • Test Case 1: Verify user registration with valid details.

  • Test Case 2: Validate login functionality with correct credentials.

  • Test Case 3: Check password recovery process with registered email.

  • Test Case 4: Ensure appointment booking works with available slots.

  • Test Case 5: Validate payment processing for passport fees.

  • Integration Test Case 1: Verify integration with payment gateway for transactions....read more

Asked in FirstCry

2w ago

Q. What is QA Artifacts What are methods of API testing , Explain each one. Explain all API Error codes

Ans.

QA artifacts are documents or deliverables that are created during the QA process to support testing activities.

  • QA artifacts include test plans, test cases, test scripts, test data, and test reports.

  • These artifacts help in organizing and documenting the testing process.

  • They provide a reference for test execution, tracking defects, and reporting test results.

  • Examples of QA artifacts are test plans that outline the testing approach, test cases that describe the steps to be exec...read more

Asked in Infosys

1w 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

3d 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()

Asked in HSBC Group

1w ago

Q. What is testing? why is important

Ans.

Testing is the process of evaluating a system or component to ensure it meets specified requirements.

  • Testing helps identify defects or errors in software or systems.

  • It ensures that the software or system functions as intended.

  • Testing helps improve the quality and reliability of the software or system.

  • It provides confidence to stakeholders that the software or system is ready for use.

  • Testing helps in identifying and mitigating risks.

  • Examples of testing include functional testi...read more

Asked in CGI Group

3d ago
Q. What are annotations in Cucumber?
Ans.

Annotations in Cucumber are tags that can be added to feature files or step definitions to provide additional information or functionality.

  • Annotations in Cucumber start with the '@' symbol.

  • Annotations can be used to organize and categorize feature files or step definitions.

  • Annotations can also be used to control the execution flow of scenarios.

  • Examples of annotations in Cucumber include @Before, @After, @Given, @When, @Then, etc.

1w ago

Q. Explain briefly what you did as part of the Agile methodology.

Ans.

Agile methodology involves iterative development, collaboration, and flexibility in responding to change.

  • Iterative development: Work is broken down into small increments and delivered in short cycles.

  • Collaboration: Cross-functional teams work together closely throughout the project.

  • Flexibility: Requirements and solutions evolve through the collaborative effort of self-organizing teams.

  • Examples: Daily stand-up meetings, sprint planning, backlog grooming, and retrospectives.

Asked in Infosys

1w ago

Q. What function is used in Selenium to access certified websites?

Ans.

The function used in Selenium to access certified websites is 'acceptSslCerts()'.

  • Use the 'acceptSslCerts()' function in Selenium to access certified websites

  • This function is used to bypass SSL certificate errors while accessing secure websites

  • Example: driver = new ChromeDriver(); driver.manage().acceptSslCerts();

Asked in Infosys

1w ago
Q. What are triggers in SQL?
Ans.

Triggers in SQL are special stored procedures that are automatically executed when certain events occur in a database.

  • Triggers can be used to enforce business rules, maintain referential integrity, and automate tasks.

  • There are two main types of triggers: DML triggers (executed in response to data manipulation language events) and DDL triggers (executed in response to data definition language events).

  • Examples of triggers include automatically updating a timestamp when a record...read more

Asked in Mercer

2w 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 Fujitsu

2w ago
Q. When is automation testing useful?
Ans.

Automation testing is useful when repetitive tests need to be executed quickly and efficiently.

  • Useful for regression testing to ensure previous functionality still works

  • Helps in executing tests on multiple configurations quickly

  • Useful for load testing to simulate multiple users accessing the system simultaneously

6d ago

Q. What are your career plans for the next five years?

Ans.

To gain experience in software testing and advance my career in the field.

  • I plan to continue learning and improving my skills in software testing.

  • I hope to take on more challenging projects and responsibilities.

  • I would like to eventually become a senior test analyst or move into a management role.

  • I am open to exploring new technologies and methodologies in the field.

  • I plan to attend industry conferences and networking events to stay up-to-date on industry trends and best prac...read more

Asked in FNZ

4d ago

Q. What is the difference between UAT and System testing?

Ans.

UAT is user acceptance testing where end users validate the system, while system testing is done by testers to validate the system against requirements.

  • UAT is done by end users to ensure the system meets their requirements and is ready for production.

  • System testing is done by testers to validate the system against functional and non-functional requirements.

  • UAT focuses on user scenarios and real-world usage, while system testing focuses on technical aspects and system behavior...read more

Asked in Nagarro

2w ago

Q. How do you retrieve the placeholder value of an input box?

Ans.

Use JavaScript to get the placeholder value of an input box

  • Use the 'getAttribute' method to get the 'placeholder' attribute value of the input box element

  • Example: var placeholderValue = document.getElementById('inputBox').getAttribute('placeholder');

Asked in Accenture

2w ago

Q. In which testing phase is traceability prepared?

Ans.

Traceability is prepared during the requirements phase to ensure all requirements are tested.

  • Traceability is established during the requirements gathering phase.

  • It ensures that all requirements are linked to corresponding test cases.

  • For example, if a requirement states 'User must log in', a test case will verify this functionality.

  • Traceability matrices are often used to document these links.

  • This process helps in identifying any missing test cases related to requirements.

Asked in Accenture

6d ago

Q. 1. OOPS concepts 2. Different types of waits 3. Locator types 4. String manipulation program

Ans.

The interview questions cover OOPS concepts, types of waits, locator types, and string manipulation programs.

  • OOPS concepts include inheritance, polymorphism, encapsulation, and abstraction.

  • Different types of waits in testing include implicit, explicit, and fluent waits.

  • Locator types in Selenium testing include ID, Name, XPath, CSS Selector, etc.

  • String manipulation programs involve tasks like reversing a string, finding substring, etc.

Asked in Cognizant

6d ago

Q. What version of Tosca are you using?

Ans.

We are currently using Tosca version 13.3.2.

  • Our team has been using this version for the past year.

  • It has proven to be stable and reliable for our testing needs.

  • Some of the new features we have been utilizing include the improved reporting capabilities and the enhanced test case design.

  • We have also found the integration with JIRA to be seamless and efficient.

  • Overall, we are very satisfied with our experience using Tosca version 13.3.2.

Previous
1
2
3
4
5
6
Next

Interview Experiences of Popular Companies

TCS Logo
3.6
 • 11.1k Interviews
Accenture Logo
3.8
 • 8.6k 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

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

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