DEV Community

Cover image for Software Testing Technique
Sujitha
Sujitha

Posted on

Software Testing Technique

Software Testing Technique:

Software Testing Technique is used to design your test cases in a better way. Even though completing testing is not possible, this test technique helps you to reduce the number of test cases by increasing test coverage. This testing technique makes you to identify test condition easier at the time of difficult to recognize.

Types of Test Case Design Technique:

  • Boundary Value Analysis
  • Equivalence Class Partitioning
  • Decision Table
  • State Transition
  • Error Guessing

Boundary Value Analysis:

  • Boundary Value Analysis is one the testing techniques in Black Box testing which is used to test the values on the boundaries. It usually focused between both the extreme ends or between both the extreme boundary values.
  • Boundary values like Start-End, Lower- Upper, Maximum-Minimum, Just Inside-Just Outside values.
  • The basic idea to select input variable values at their:
    1. Just below the Minimum
    2. Minimum
    3. Just above the minimum
    4. A nominal value
    5. Just below the maximum
    6. Maximum
    7. Just above the maximum.
    Example:
    One form that have age field which accepts the person’s age group between 18 to 35. While testing this field as a tester we should write a greater number of test cases to test. With the help of boundary value analysis technique, it reduces the number of test cases with more test coverage.

                    Application Form
    
         Name: _____________(_Accepts alpha-numeic_)
         Age: ______________(_must above 18 and below 35_)
    

For the above case, if we apply Boundary Value Testing technique which would involve testing the following values:

Test Case 1: Test a value just below the minimum boundary (17).
Test Case 2: Test the minimum boundary value (18).
Test Case 3: Test a value just above the minimum boundary (19).
Test Case 4: Test a nominal value (22).
Test Case 5: Test a value just below the maximum boundary (34).
Test Case 6: Test the maximum boundary value (35).
Test Case 7: Test a value just beyond the maximum boundary (36).

Decision Table Testing:

Decision Table is one the testing techniques in Black Box testing which is used to test system behaviour for various input combinations. In this technique, the several input combinations and their corresponding system behaviour are picturized in tabular form. It is also known as a cause-effect table.

Use of decision table testing?

Decision tables are an effective tool for managing multiple combinations of conditions and actions, allowing for a comprehensive analysis of all possible scenarios. This inclusive approach minimizes the risk of overlooking critical test cases. Software applications encompass various possible inputs and outputs.

This technique is used to pick the test cases in a systematic manner

Example:

  • Let’s take a login page with user name and password. If both user name and password are correctly matched, the user will be directed to the landing page; otherwise, it will come back to the login page with an error message like "Incorrect User Name" or "Incorrect Password."
  • Decision table for the login functionality in which we can log in by using user name and password. Both the user name and the password are the conditions, and the expected result is action.

Image description

  • In the table, there are four conditions or test cases to test the login function. In the first condition if both user name and password are correct, then the user should be directed to Landing page.
  • In the second, third and final condition if both user name and password are in correct or either user name/password is incorrect, then it should display Incorrect user name or password.
  • In order to find the number of all possible conditions, tester uses 2n formula where n denotes the number of inputs; in the example there is the number of inputs is 2 (one is true and second is false).

Number of possible conditions = 2^ Number of Values of the second condition
Number of possible conditions =2^2 = 4

Use Case Testing:

Use Case Testing is a functional black box testing technique that helps testers to identify test scenarios that exercise the whole system on each transaction basis from start to finish. Test cases are the interactions between users and software application.

Benefits of Use Case Testing:

  • Helps manage complexity.
  • Testing from the user’s perspective.
  • Reduced complexity of test cases.
  • Test functional requirements.
  • Starts from a simple view of the system.

Drawbacks of Use Case Testing:

  • Missing use case.
  • Cover only functional requirements.
  • Use cases are from the user’s perspective.

Use Case Example:

Case for ‘Login’ to a ‘School Management System’.

Image description

LCSAJ Testing:

LCSAJ means Linear Code Sequence and Jump. LCSAJ testing is a white-box testing technique used to determine the code coverage.

Top comments (0)