Feature-Based Test Focus Selection Technique Using Classes Connections Weight

Feature-Based Test Focus Selection Technique Using Classes Connections Weight

Iyad Alazzam (Yarmouk University, Irbid, Jordan), Mohammed Akour (Department of Computer Information Systems, Yarmouk University, Irbid, Jordan), Shadi Banitaan (University of Detroit Mercy, Detroit, MI, USA) and Feras Hanandeh (Hashemite University, Zarqa, Jordan)
DOI: 10.4018/IJORIS.2016010103
OnDemand PDF Download:
$30.00
List Price: $37.50

Abstract

Testing could cost more than fifty percent of all development cost, particularly integration testing consumes around eighty percent of testing cost. Integration testing aims to discover errors in the connections among classes which are collaborate and communicate in order to provide specific services. Though, testing all connections among classes is impractical because of the cost, effort and time constraints. Test focus selection might help testers to concentrate on the main and vital connections among classes which it could be the most error prone ones. The authors proposed approach amalgamates the static and dynamic analysis in order to detect, trace, and weight the connections among classes through method level communications. Their approach harnessed an open source tracing tool (MUTT). The MUTT allows them to return all the methods in all classes that have been called respecting to any specific feature which has triggered by the system user. The experimental results reveal how the proposed approach achieves good mutation testing score on the systems under study.
Article Preview

Introduction

Software testing is a practice and procedure of running software against test cases in order to reveal and discover errors. Software testing is one of the main processes in the software development process, it is considered one of the vital factors that achieve and enhance quality assurance. Software testing is so costly; the testing cost consumes about fifty percent of the development cost (DeMillo, Lipton, & Sayward, 1978). Software testing has three main levels, unit testing, integration testing, and system testing. Unit testing seeks to ensure that each module or class individually in the system under test is working as it should be without any problem; unit testing is usually done by the developers. Integration testing aims to ensure that the connections among two or more classes or modules are valid and the components are interacting with each other probably.

Software S is a system written using object oriented language. S consists of classes C={c1, c2,…cn} where n=|C|. a class C consists of methods. For every class c ϵ C, let Mc{m1,m2,..mi} is the group of implemented methods in class c, where i= |Mc| is the total number of methods in class c. the set of the whole methods in software S is identified as Ms. A feature is a functional requirement. Service, action or functionality explained in the user specification of particular software. A software S consists of a set of features F= {f1, f2,… fn} where n =|F|. A feature f is constructed by collections of methods where Mf ⊂ Ms. Feature f is represented by collection of methods Mf in the physical source code.

A method could be related to many classes, a method could be related to many features, and a feature could include methods that are related to other different features. The types of errors that are revealed at the unit level are different than the types of errors that are reveled at integration error. System testing tries to validate the system as a whole is working correctly and usually it focuses on the properties of the system. Integration testing considered being from the most expensive in the software area testing the cost of integration testing is almost eighty percent of the total cost of the testing process. Integration testing is very important in increasing the quality of the software since the majority of errors is discovered are integration testing level, forty percent of the errors are found at integration level of testing. Integration testing mainly focuses on interfaces and the connections among modules and classes. Testing all connections and interfaces at the same level is indisputable not practical and not worthy especially if the system under test is huge and has huge number of connections. Therefore, we propose new approach in integration testing to enhance the process of integration and testing by assessing and evaluating the connections among classes or modules, and focusing on the connections which have the highest strength. The connection with high strength tends to be error prone more than the connection with the low strength. Three common types of automated tests are located in the literature, 1) unit test, where we test only a solo of the source code (i.e. module, class), to double check that whether its behavior is expected and desirable. 2) Integration test, where we test the communication and collaboration between software modules and components. 3) System test, where we test the whole system. Although unit testing assures the components in isolation are functioning correctly, the process of components integration might introduce new errors. However, testing all interaction between components is costly and time consuming. Determining the most error prone connections is not an easy duty, moreover, one of the general dilemmas in inter-class integration testing of object-oriented software is to decide the order in which classes are integrated and tested (Sommerville, 2010).

Pelliccione et al. (Pelliccione, Muccini, Bucchiarone, & Facchini, 2005) proposed an approach refer to as TeStor. The TEst Sequence generaTOR algorithm allows extracting test sequences from both state machine and scenario diagrams. The state diagrams provide the behaviors of component while the sequence diagrams determine what the included test is. The outcome of their approach is the test sequences, the test sequence generation process in TeStor does not compute the parallel composition of the state machine models, it does not require any additional formalism, and it is completely tool supported.

Complete Article List

Search this Journal:
Reset
Open Access Articles: Forthcoming
Volume 9: 4 Issues (2018): 1 Released, 3 Forthcoming
Volume 8: 4 Issues (2017)
Volume 7: 4 Issues (2016)
Volume 6: 4 Issues (2015)
Volume 5: 4 Issues (2014)
Volume 4: 4 Issues (2013)
Volume 3: 4 Issues (2012)
Volume 2: 4 Issues (2011)
Volume 1: 4 Issues (2010)
View Complete Journal Contents Listing