Stqa Oral
Stqa Oral
• Answer: Software testing techniques are methods used to test software applications to
ensure they meet the required quality standards. These techniques help detect defects and
ensure functionality, reliability, and performance.
• Explanation: Software testing techniques are broadly categorized into two types:
o Dynamic Testing Techniques (e.g., black-box, white-box, and gray-box testing): Test
the software by executing the code.
• Diagram:
• Example: Black-box testing is often used to validate user interfaces without knowing the
underlying code.
• Key Points:
2. What are the phases involved in Software Testing Life Cycle (STLC)?
• Answer: The Software Testing Life Cycle (STLC) includes phases that outline the systematic
approach to testing, ensuring software meets requirements and quality standards.
• Explanation:
• Diagram:
o A flowchart of the STLC phases, showing the sequence from Requirement Analysis to
Test Closure.
• Key Points:
.
3. What is Black-box Testing?
• Answer: Black-box testing is a testing technique where the tester only checks the software’s
functionality without looking at the actual code.
• Explanation: In black-box testing, we treat the software like a “black box”—we only focus on
the input and output, not the internal workings. This type of testing is done from a user’s
perspective.
• Example: When testing a login form, the tester only checks if entering valid or invalid
credentials results in the correct response (e.g., login success or error message).
• Key Points:
• Answer: White-box testing is a testing technique where the tester examines the internal
structure of the code.
• Explanation: White-box testing requires understanding of the code and logic. Testers look at
specific paths, conditions, loops, and other parts within the code.
• Example: A tester might check each “if” condition in a code to see if all possible paths
produce the correct results.
• Diagram: A diagram showing code flow, with paths checked by the tester highlighted.
• Key Points:
• Answer: Gray-box testing is a mix of black-box and white-box testing, where the tester has
some understanding of the internal structure but tests mostly from the outside.
• Explanation: In gray-box testing, testers have partial knowledge of the code but focus on
testing from a user’s perspective. It helps in identifying issues that may not be visible with
only black-box or white-box testing.
• Example: A tester knows how certain functions work and checks if each function responds
correctly based on its known logic.
• Diagram: A diagram showing partial visibility into the system, representing gray-box testing.
• Key Points:
6. What is Unit Testing, Integration Testing, System Testing & Acceptance Testing?
• Unit Testing: Tests individual components (or units) of software to ensure they work on their
own. For example, checking if a specific function gives the expected result.
• Integration Testing: Tests how different units work together. For instance, testing if a login
function works with the user profile component.
• System Testing: Tests the entire software system to ensure it meets all requirements. It’s
done from start to end, like a user would use the software.
• Acceptance Testing: Final testing to check if the software is ready for release. It ensures the
software works well for users in real-world scenarios.
• Diagram: A pyramid or sequence showing the levels from Unit to Acceptance Testing.
• Key Points:
o Each level has a different focus, from individual parts (unit) to full system readiness
(acceptance).
• Sanity Testing: Quick checks to see if a specific part of the software is working correctly after
minor changes.
• Smoke Testing: Basic testing to ensure the main functions work, like “does the software
launch?”
• Regression Testing: Testing to make sure recent changes haven’t broken any existing
functionality.
• Retest: Re-testing specific cases where bugs were previously found, to ensure they’ve been
fixed.
• Example: After fixing a login bug, sanity and smoke tests might confirm the basic
functionality, while regression testing checks that other functions haven’t been affected.
• Key Points:
.
8. What is Functional & Non-Functional Testing?
• Functional Testing: Tests if each function in the software works as expected. It focuses on
what the software should do.
• Non-Functional Testing: Tests the performance, usability, and reliability of the software. It
focuses on how well the software performs.
• Example:
o Non-functional testing: Checking how fast the search results appear (performance).
• Key Points:
• Answer: Adhoc testing is an informal testing method where the tester tries to “break” the
software by exploring it randomly without following any test cases.
• Explanation: Adhoc testing doesn’t follow a plan or script. It’s done by exploring the
software in unpredictable ways to catch unusual bugs.
• Key Points:
• Answer: Automation testing is the process of using software tools to run tests automatically
instead of manually.
• Explanation: Automation testing saves time and reduces human error. It’s especially useful
for repetitive tasks, like running the same tests every time there’s a change.
• Example: Using a tool like Selenium to automatically test if the login page works correctly.
• Key Points:
• Verification: Checking if the product is being built correctly (are we following the right
steps?).
• Validation: Checking if the right product is built (does it meet user needs?).
• Explanation: Verification is done by reviewing documents and plans, while validation is
about testing the final product to make sure it works for users.
• Example: Verification might involve reviewing requirements, while validation involves testing
the software.
• Diagram: A diagram showing verification as an early phase (checking plans) and validation as
later (checking the product).
• Key Points:
• Answer: Selenium is popular because it’s free, supports many browsers, and works with
multiple programming languages.
• Explanation: Selenium allows testers to automate web applications, making it easier to test
across different browsers. It’s open-source, so it has a strong community and regular
updates.
• Example: Selenium can run tests in Chrome, Firefox, and other browsers automatically.
• Key Points:
1. Selenium IDE: A simple tool for recording and playing back tests.
3. Selenium Grid: Lets you run tests on multiple machines and browsers at the same
time.
• Key Points:
o IDE for recording, WebDriver for coding, Grid for parallel testing, and RC (outdated)
• Answer: Locators in Selenium help find elements on a webpage. Common locators include:
• Key Points:
o Different locators suit different situations, like IDs for unique elements and
CSS/XPath for complex structures.
• Answer:
o Absolute Path: A complete path to an element starting from the root (top) of the
document.
o Relative Path: A shorter path that starts from a certain point in the document, not
the root.
• Explanation: Absolute paths are more detailed but can break if there are changes in the
document structure. Relative paths are flexible and usually preferred for their stability.
• Example:
• Answer: Boundary Value Analysis (BVA) is a testing technique that focuses on values at the
edges of input ranges.
• Explanation: BVA helps identify potential bugs around minimum and maximum values. Since
bugs are more likely to appear at boundaries, testing these can improve quality.
• Example: If a system accepts values between 1 and 10, BVA would test values like 1, 10, 0,
and 11.
• Diagram: A range diagram showing test cases at boundary points.
• Key Points:
• Answer: Black-box test cases are usually written first because they are based on user
requirements and don’t need knowledge of the code.
• Explanation: Black-box tests focus on software functionality from a user’s perspective, while
white-box tests focus on code logic. Testing functionality often comes first.
• Key Points:
• Explanation: Selenium allows testers to write scripts that simulate user interactions with
web pages, helping ensure the website works as expected.
• Example: Automating the login process on a website by filling in the username, password,
and clicking the login button.
• Key Points:
• Answer: A test plan is a document that describes the testing strategy, objectives, schedule,
and resources for a testing project.
• Explanation: It provides a roadmap for the testing process and helps ensure that all testing
activities are well-organized and aligned with the project goals. A test plan typically includes:
• Key Points:
o Blueprint for testing.
• Answer: SDLC (Software Development Life Cycle) is a process for planning, creating, testing,
and deploying software.
• Explanation: SDLC provides a structure for developing software in steps, helping ensure
quality and efficiency. Phases include:
• Key Points:
• Answer: The defect life cycle, or bug life cycle, shows the stages a defect goes through from
discovery to resolution.
• Explanation: It helps track and manage defects effectively. Typical stages include:
• Key Points:
• Example: Running tests on both Chrome and Firefox across different devices simultaneously.
• Key Points:
• Answer: SRS (Software Requirements Specification) is a document that describes what the
software should do, including features, functionalities, and limitations.
• Explanation: SRS acts as a contract between clients and developers. It ensures everyone
agrees on what the software will provide before development begins.
• Example: SRS for an e-commerce site might specify that users should be able to browse
products, add items to cart, and complete purchases.
• Key Points:
• Functional Requirements: Define what the software should do (e.g., login functionality).
• Non-Functional Requirements: Define how well the software performs, such as speed,
security, and reliability.
• Key Points:
• Answer: Requirements Analysis is the process of understanding and documenting what the
users need from the software.
• Explanation: During this phase, developers and testers gather and analyze the requirements
to ensure they are clear, complete, and feasible.
• Key Points:
• Time: The deadline by which the project or part of the project must be completed.
• Scope: The boundaries or extent of the project, determining what will and won’t be
delivered.
• Actual Result: The observed outcome, which is compared to the expected result.
Test cases help ensure software behaves as intended and aids in identifying defects.
31. What is the difference between a Test Scenario and a Test Case?
A test scenario is a high-level idea of what to test, focusing on end-to-end functionality. It’s a broader
concept without specific steps.
A test case is a detailed document with specific instructions to execute and expected results. While
scenarios outline what to test, test cases provide the how-to steps to validate that scenario.