0% found this document useful (0 votes)
15 views2 pages

Advanced Software Testing and Quality Assurance Assignmnet by Ravi Raj

The document describes test cases for a quadratic equation using boundary value analysis and robust analysis. For boundary value analysis, test cases are designed to test minimum, maximum, and nominal values of coefficients a, b, and c. For robust analysis, test cases test zero coefficients, imaginary roots, divide by zero scenarios, large coefficients, non-numeric input, and missing coefficients to uncover vulnerabilities in handling unexpected inputs. The test cases aim to thoroughly test the quadratic equation under different conditions.

Uploaded by

ravi raj
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views2 pages

Advanced Software Testing and Quality Assurance Assignmnet by Ravi Raj

The document describes test cases for a quadratic equation using boundary value analysis and robust analysis. For boundary value analysis, test cases are designed to test minimum, maximum, and nominal values of coefficients a, b, and c. For robust analysis, test cases test zero coefficients, imaginary roots, divide by zero scenarios, large coefficients, non-numeric input, and missing coefficients to uncover vulnerabilities in handling unexpected inputs. The test cases aim to thoroughly test the quadratic equation under different conditions.

Uploaded by

ravi raj
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

1. Design test cases using Boundary value analysis by taking quadratic equation problem.

let's consider the quadratic equation \(ax^2 + bx + c = 0\). We'll use Boundary Value Analysis
to design test cases for the coefficients \(a\), \(b\), and \(c\).

1. **Test Case 1: Minimum values for coefficients**


- \(a = -1000\), \(b = -1000\), \(c = -1000\)
- Purpose: Check how the quadratic equation handles very large negative coefficients.

2. **Test Case 2: Just above the minimum values**


- \(a = -999\), \(b = -999\), \(c = -999\)
- Purpose: Verify if the quadratic equation behaves appropriately when coefficients are
slightly increased from their minimum values.

3. **Test Case 3: Nominal values**


- \(a = 1\), \(b = 1\), \(c = 1\)
- Purpose: Ensure the quadratic equation works correctly with typical coefficients, testing
its basic functionality.

4. **Test Case 4: Maximum values for coefficients**


- \(a = 1000\), \(b = 1000\), \(c = 1000\)
- Purpose: Assess how the quadratic equation handles very large positive coefficients.

5. **Test Case 5: Just below the maximum values**


- \(a = 999\), \(b = 999\), \(c = 999\)
- Purpose: Check if the quadratic equation still functions correctly when coefficients are
slightly below their maximum values.

These test cases are designed to explore the boundaries of the input space for the quadratic
equation, helping identify and address potential issues with extreme or edge values.

2. Design test cases using Robust analysis by taking quadratic equation problem.

Robust Analysis involves testing the system's ability to handle invalid or unexpected inputs.
Let's design test cases for the quadratic equation \(ax^2 + bx + c = 0\) using Robust Analysis:

1. **Test Case 1: Zero coefficients**


- \(a = 0\), \(b = 0\), \(c = 0\)
- Purpose: Check if the system handles the case where all coefficients are zero, which
results in a linear equation.

2. **Test Case 2: Imaginary roots**


- \(a = 1\), \(b = 1\), \(c = 1\)
- Purpose: Verify the system's response when the quadratic equation has no real roots but
complex roots.
3. **Test Case 3: Divide by zero scenario**
- \(a = 0\), \(b = 2\), \(c = 1\)
- Purpose: Check if the system properly handles the situation where the coefficient \(a\) is
zero, resulting in a division by zero scenario.

4. **Test Case 4: Large coefficients**


- \(a = 10^{10}\), \(b = 10^{10}\), \(c = 10^{10}\)
- Purpose: Assess the system's robustness against very large coefficients, checking for
potential overflow or precision issues.

5. **Test Case 5: Non-numeric input**


- \(a = \text{"abc"}\), \(b = \text{"def"}\), \(c = \text{"ghi"}\)
- Purpose: Test the system's ability to handle non-numeric input for coefficients.

6. **Test Case 6: Missing coefficients**


- \(a = 1\), \(b = 2\) (missing \(c\))
- Purpose: Check how the system responds when one of the coefficients is missing.

These test cases aim to uncover vulnerabilities in the system's handling of unexpected or
invalid inputs, ensuring robustness and preventing potential issues in real-world scenarios.

You might also like