An efficient code coverage technique for UML StateChart Diagram
Arpita Dutta, Sangharatna Godboley, Durga Prasad Mohapatra · 2017
In the proposed work, we present our developed tool to compute code coverages such as Branch Coverage and MC/DC of UML StateChart diagram. It is a chain integration of three public available tools (IBM RSA, JAXB, and jCUTE) and two tools developed by us. First, we design the UML StateChart diagram using IBM RSA and generate the XML code. Then, we convert this XML code into Java code using JAXB. But the generated Java code is not compatible with the concolic tester. So, we develop a module to generate compatible Java code for the concolic tester and named as JCJCG (jCUTE Compatible Java Code Generator). Subsequently, we run the compatible Java code on jCUTE and generate test cases and branch coverage percentage. We compute MC/DC% of the diagram through our developed tool COPECA (Coverage Percentage Calculator) by passing the Java code and generated test cases from the jCUTE. We have experimented with eighteen StateChart diagram present in ten different case study projects. On an average, we achieved 81.66% of branch Coverage and 46.48% of MC/DC.