Bird
Raised Fist0
Testing Fundamentalstesting~8 mins

Why testing approaches guide strategy in Testing Fundamentals - Framework Benefits

Choose your learning style10 modes available
Framework Mode - Why testing approaches guide strategy
Folder Structure of a Testing Project
testing-strategy-project/
├── docs/
│   └── testing-approaches.md
├── test-plans/
│   ├── functional-tests.md
│   ├── exploratory-tests.md
│   └── automation-tests.md
├── tests/
│   ├── automated/
│   │   ├── unit/
│   │   ├── integration/
│   │   └── e2e/
│   └── manual/
│       └── exploratory/
├── utilities/
│   └── helpers.js
├── config/
│   ├── environments.json
│   └── strategy-config.yaml
└── reports/
    └── test-results/
Test Framework Layers
  • Strategy Layer: Defines testing approaches like manual, automated, exploratory, and regression testing guiding what tests to run.
  • Test Design Layer: Creates test cases and plans based on the chosen approaches.
  • Test Execution Layer: Runs tests manually or with automation tools depending on the approach.
  • Utilities Layer: Supports test execution with helper functions and data management.
  • Configuration Layer: Holds environment settings and strategy parameters to adapt tests to different contexts.
  • Reporting Layer: Collects and presents results to evaluate if the strategy meets quality goals.
Configuration Patterns
  • Environment Profiles: Use config files (e.g., JSON, YAML) to switch between dev, test, and production environments easily.
  • Strategy Flags: Enable or disable testing approaches (e.g., run exploratory tests only on nightly builds) via config parameters.
  • Credentials Management: Store sensitive data securely and reference them in configs to allow tests to authenticate properly.
  • Browser and Platform Settings: Define which browsers or devices to test on, supporting cross-platform strategy.
Test Reporting and CI/CD Integration
  • Test Reports: Generate clear pass/fail summaries and detailed logs showing which approaches were executed and their outcomes.
  • Dashboards: Visualize testing coverage and results by approach to help stakeholders understand quality status.
  • CI/CD Pipelines: Integrate tests into automated build and deployment pipelines, triggering different approaches as per strategy (e.g., quick smoke tests on every commit, full regression nightly).
  • Alerts and Notifications: Send test results to teams to quickly respond to failures detected by any testing approach.
Best Practices for Testing Approaches Guiding Strategy
  • Align Testing Approaches with Business Goals: Choose approaches that best reduce risks important to the project.
  • Mix Manual and Automated Testing: Use manual exploratory tests to find unknown issues and automation for repeatable checks.
  • Keep Strategy Flexible: Allow changing approaches as the project evolves or new risks appear.
  • Document Approaches Clearly: Make sure everyone understands why and when each testing approach is used.
  • Measure Effectiveness: Track defects found by each approach to improve the strategy over time.
Self-Check Question

In the folder structure shown, where would you add a new test plan document describing a risk-based testing approach?

Key Result
Testing approaches shape the strategy by guiding which tests to run, how to run them, and when, ensuring focused and effective quality checks.

Practice

(1/5)
1. Why is it important to choose a testing approach before starting testing?
easy
A. It reduces the number of developers needed.
B. It makes the software run faster.
C. It helps decide what to test and how to test it effectively.
D. It guarantees no bugs will be found.

Solution

  1. Step 1: Understand the role of testing approaches

    Testing approaches guide the selection of test cases and methods to ensure important parts are tested.
  2. Step 2: Connect approach to testing effectiveness

    Choosing the right approach helps focus efforts and improves test coverage and quality.
  3. Final Answer:

    It helps decide what to test and how to test it effectively. -> Option C
  4. Quick Check:

    Testing approach guides strategy = C [OK]
Hint: Testing approach plans what and how to test [OK]
Common Mistakes:
  • Thinking testing approach speeds software
  • Believing it reduces team size
  • Assuming it removes all bugs
2. Which of the following is the correct syntax to describe a testing approach in a test plan?
easy
A. Use a clear description like 'Black-box testing focusing on input-output behavior.'
B. Write 'Test everything randomly without plan.'
C. Mention only the programming language used.
D. Skip describing the approach to save time.

Solution

  1. Step 1: Identify proper test plan content

    A test plan should clearly state the testing approach to guide testers.
  2. Step 2: Evaluate options for clarity and relevance

    The option stating 'Use a clear description like "Black-box testing focusing on input-output behavior."' describes a valid, clear testing approach; others are vague or irrelevant.
  3. Final Answer:

    Use a clear description like 'Black-box testing focusing on input-output behavior.' -> Option A
  4. Quick Check:

    Clear approach description = B [OK]
Hint: Describe approach clearly in test plan [OK]
Common Mistakes:
  • Writing vague or irrelevant details
  • Ignoring approach description
  • Confusing approach with programming language
3. Consider this code snippet representing a test strategy selection:
approach = 'risk-based'
if approach == 'risk-based':
    tests = ['critical features', 'security']
else:
    tests = ['all features']
print(tests)

What will be the output?
medium
A. Error: approach not defined
B. ['all features']
C. []
D. ['critical features', 'security']

Solution

  1. Step 1: Check the value of 'approach'

    The variable 'approach' is set to 'risk-based'.
  2. Step 2: Follow the if condition logic

    Since approach equals 'risk-based', the code assigns tests to ['critical features', 'security'].
  3. Final Answer:

    ['critical features', 'security'] -> Option D
  4. Quick Check:

    Approach 'risk-based' selects critical tests = A [OK]
Hint: Match variable value to if condition [OK]
Common Mistakes:
  • Confusing else branch output
  • Assuming empty list output
  • Thinking variable is undefined
4. A test plan states: approach = 'exploratory' but the code uses if approach = 'exploratory':. What is the error and how to fix it?
medium
A. SyntaxError due to '=' instead of '==' in if condition; fix by using '=='
B. Logical error; no fix needed
C. Runtime error because 'approach' is undefined
D. No error; code runs fine

Solution

  1. Step 1: Identify the error in the if statement

    The code uses '=' (assignment) inside the if condition, which is invalid syntax in Python.
  2. Step 2: Correct the syntax for comparison

    Replace '=' with '==' to compare values properly.
  3. Final Answer:

    SyntaxError due to '=' instead of '==' in if condition; fix by using '==' -> Option A
  4. Quick Check:

    Use '==' for comparison in conditions [OK]
Hint: Use '==' for comparisons, '=' for assignments [OK]
Common Mistakes:
  • Using '=' in if condition
  • Ignoring syntax errors
  • Confusing assignment with comparison
5. A team wants to improve their testing strategy by combining 'risk-based' and 'exploratory' approaches. Which plan best describes this combined strategy?
hard
A. Focus only on automated tests for all features.
B. Test critical areas based on risk, then explore unexpected issues interactively.
C. Test features randomly without any priority.
D. Skip testing low-risk features entirely.

Solution

  1. Step 1: Understand risk-based testing

    Risk-based testing targets critical or risky features first to reduce major failures.
  2. Step 2: Understand exploratory testing

    Exploratory testing involves testers exploring the software to find unexpected issues.
  3. Step 3: Combine both approaches logically

    The best plan tests high-risk areas first, then uses exploratory testing to find other problems.
  4. Final Answer:

    Test critical areas based on risk, then explore unexpected issues interactively. -> Option B
  5. Quick Check:

    Combine risk focus + exploration = A [OK]
Hint: Combine risk focus with interactive exploration [OK]
Common Mistakes:
  • Ignoring exploratory testing benefits
  • Testing randomly without priority
  • Skipping low-risk features without checks
Recommended

Ready to prove it?

Pass the test and this pattern moves unknown strong while earning +1 Grip toward your certificate.

10 questions~5 mineasy hard