Automatic generation of basis set of paths for white box unit testing

dc.contributor.authorKarki, Suraj
dc.date.accessioned2023-05-21T09:26:09Z
dc.date.available2023-05-21T09:26:09Z
dc.date.issued2010
dc.description.abstractSoftware testing is defined as the process of executing the program with the intent of finding an error that ensures the correctness, completeness and quality of the developed software. Black-box and white-box testing are the two major techniques for software testing. In black-box testing, no information about the internal structure of the program under testing is available. However, in white-box testing, a complete source code or the internal structure is available. Unit testing of conventional or object-oriented software makes heavy use of white-box testing techniques, specifically basis path testing. Basis path testing is a white-box testing technique that uses a Control Flow Graph (CFG) of a program under test to generate a basis set of independent paths .Different techniques have been proposed in this thesis to generate basis set of independent paths. In this thesis, we implemented an algorithm to develop a software tool that performs the following three tasks: • Constructs a control flow graph of a given program based on the pseudocode. • Computes the cyclomatic complexity of the control flow graph. • Generates a basis set of independent paths of the control flow graph. Experiments on our tool show that the algorithms implemented for control flow graph construction, computation of cyclomatic complexity and generation of basis set of independent paths for a program under test gives acceptable results and yield results in a reasonable time. It has been observed that the algorithm implemented in our program generates a basis set of paths for a given control flow graph in O (max (n, e)) time complexity where n is the number of nodes and e is the number of edges in the control flow graph.en_US
dc.identifier.urihttps://hdl.handle.net/20.500.14540/17211
dc.language.isoen_USen_US
dc.publisherDepartment of Computer Science and Information Technologyen_US
dc.subjectSoftware testingen_US
dc.subjectCode inspectionen_US
dc.titleAutomatic generation of basis set of paths for white box unit testingen_US
dc.typeThesisen_US
local.academic.levelMastersen_US
local.institute.titleCentral Department of Computer Science and Information Technologyen_US
Files
Original bundle
Now showing 1 - 2 of 2
Loading...
Thumbnail Image
Name:
Cover page.pdf
Size:
78.94 KB
Format:
Adobe Portable Document Format
Description:
Loading...
Thumbnail Image
Name:
chapter page.pdf
Size:
427.11 KB
Format:
Adobe Portable Document Format
Description:
License bundle
Now showing 1 - 1 of 1
No Thumbnail Available
Name:
license.txt
Size:
1.71 KB
Format:
Item-specific license agreed upon to submission
Description: