z-logo
open-access-imgOpen Access
A Force-Directed Program Graph Visualizer for Teaching White-Box Testing Techniques
Author(s) -
Weifeng Xu,
Aqeel Raza Syed,
Qing Hua Zheng
Publication year - 2015
Language(s) - English
Resource type - Conference proceedings
DOI - 10.18260/p.23383
Subject(s) - bytecode , computer science , white box testing , java bytecode , call graph , graph , java , visualization , programming language , unit testing , graph layout , graph drawing , theoretical computer science , source code , software , data mining , software system , java applet , software construction , java annotation
White-box testing is a critical validation technique commonly used to examine if a unit under the test works as expected. However, students taking software testing related courses often find that studying and practicing white-box testing technique is tedious and error prone, e.g., manually derived paths for a given coverage. In this paper, we demonstrate an automated testing visualization tool to help software engineering students study white-box testing technique. First, we use Java bytecode to represent the Java method source code so that a compound condition can be decomposed to several simple predicates. The control structure of the bytecode is depicted by a program graph. To visualize the program graph and generated paths for a given coverage, we extend a force-directed graph auto-layout algorithm to compute the positions of vertices and edges of the program graph. The visualization tool is used to demonstrate the control structures of several legacy programs. The empirical study (includes three subjects) results show that the average number missing and incorrect test cases drops from 16% to 5.8% when the tool is utilized for generating test cases.

The content you want is available to Zendy users.

Already have an account? Click here to sign in.
Having issues? You can contact us here
Accelerating Research

Address

John Eccles House
Robert Robinson Avenue,
Oxford Science Park, Oxford
OX4 4GP, United Kingdom