LAB 1 - ECP
LAB 1 - ECP
Lab 1 - ECP
Course Title: Software Testing Course Code: CSE 363 Credit Hours: 3(2,1)
Course Instructor Yella Mehroze Theory/Lab Lab
Semester: 8th Batch: -BSE Section: Depart CS
Outline
Software Testing
Types of Software Testing o Black Box Testing
Equivalence Partitioning (LAB 1)
Boundary Value Analysis ( BVA )
Transition Testing
Decision Trees
Task 1
Consider that you are filling an online application form for a gym membership. What are the most
important criteria for getting a membership? Of course, the age! Most of the gyms have age criteria of 16-60,
where you can independently get the membership without any supervision needed. If you look at below
membership form, you will need to fill age first. After that, depending on whether you are between 16-60, you
can go further. Otherwise, you will get a message that you cannot get a membership.
Methodology
Yella Mehroze
Test Condiions:
Number Line:
Yella Mehroze
Yella Mehroze
Software Testing
A process of executing a program with the aim of finding error.
To make our software perform well i.e. it should be error free.
If testing is done successfully, it will remove all the errors from the software.
Advantages
It is common for black box testers to find bugs that were not traced during program execution.
Black box testing involves validating the system without knowing its internal design.
Testing a black-box way is a more natural way to test
Disadvantages
The tester will not be aware even if some part of the code has not been tested.
It brings its complexity that the number of test conditions can have several hundred variations.
Point to ponder
Definition
Equivalence partitioning is a technique of software testing in which input data is divided into
partitions of valid and invalid values, and it is mandatory that all partitions must exhibit the same
behavior.
Discussion
The system will handle all the test input variations within a partition in the same way.
If one of the input condition passes, then all other input conditions within the partition will pass as
well.
If one of the input conditions fails, then all other input conditions within the partition will fail as well.
It may results into good amount of decrease in the redundant test cases, if implemented properly.
It may not work well with the boolean or logical types variables.
It is suitable when the input data is available in terms of intervals and sets of discrete values.
Yella Mehroze
Valid Equivalence Partition
Valid Partitions are values that should be accepted by the component or system under test.
Invalid Partitions are values that should be rejected by the component or system under test.
Principle
The principle of equivalence partitioning is, test cases should be designed to cover each partition at
least once. Each value of every equal partition must exhibit the same behavior as other.
Advantage of Partitioning
Disadvantages of Partitioning
Conclusion
It is the process of taking all possible test cases and placing them into classes. One test value is picked
from each class while testing. Along with, it’s the ability to generate greater testing coverage, without
compromising time and efforts, making Equivalence Class Testing a popular testing technique
worldwide.
Yella Mehroze
For any queries
Office: H-Block
Yella Mehroze