Testing Techniques with examples…

Mohanraj M
3 min readOct 23, 2023

--

There are various testing techniques used in different organizations based on their product, but there are four testing techniques that are most important and commonly used in major companies, let us understand with some possible test cases examples of the testing techniques….

Boundary Value Analysis

It is a black box testing process, based on testing the range of input data values of minimum and maximum input values are the boundary values of the partition. Mainly focused on the given input values boundaries or edges. Here are some examples of BVA:

Boundary Value Analysis example

Pnuematic Cylinder stroke range from 10mm to 50mm

The minimum boundary value given is 10mm.

The maximum boundary value given is 50mm.

The valid stroke length is 10, 11, 49, and 50.

The invalid stroke length is 9 and 51.

Decision table testing

It is a process used for complex software testing to test different inputs of combination. To check all possible combinations of conditions for testing this process helps to check whether the condition by True or false values. It also comes under black box testing. Let’s learn with an example.

Decision Table example

In a jewellary shop there is free offer is given for the different membership users. let us find out what decisions are made in the free offer.

The conditions are if the gold membership user's purchase value is more than 50K they will be offered 5K of silver products, if they had spent less than 50K there won’t any free offer is given. Similarly for the silver membership users if the purchase value is more than 25K they will be offered 2K of silver products, if they have spent less than 25K there won’t be any free offer given.

Use case testing

In this test case, it is a user-oriented test case that will cover the entire system process from start to finish. Based on the user experience, system response, system behavior, and it has the capability to identify the gaps in the system. It is also a black-box testing process.

Use case Example:

‘Log in’ to an ‘Employee portal system’.

LCSAJ (Linear Code Sequence and Jump) Testing

Basically, it is a white box testing, that focuses on different sequence codes (linear code) followed by the control flow Jump. whenever the code has a true or false sequence it will check on both conditions to make it more safe. It helps to achieve high quote coverage, which is essential to identify the potential issues and ensure all the code paths are tested.

LCSAJ Example

Age eligibility check for UPSC exam application:

The Python program below checks whether the user age is under the age limit or not for applying for the UPSC exams.

Age = int(input())

if (Age < 32):
print (“You are eligible to apply”)
else:
print (“you are not eligible to apply”)

Run

26
You are eligible to apply

If the age is less than 32 the input value is true. It will print the true statement as “You are eligible to apply”.

36
you are not eligible to apply

If the age is not less than 32 the input value is true. It will print the false statement “You are not eligible to apply”.

--

--