Jabuti (Java Bytecode Understanding and Testing) : Topics To Be Discussed
Jabuti (Java Bytecode Understanding and Testing) : Topics To Be Discussed
TOPICS TO BE DISCUSSED
• JaBuTi
• Installation
• Using JaBuTi
• Assignment
24-01-2023
• It is composed
• by a coverage analysis tool,
• by a slicing tool, and
• by a complexity metric’s measure tool.
• The coverage tool can be used to assess the quality of a given test set or to
generate test set based on different control-flow and data-flow testing criteria.
• The slicing tool can be used to identify fault-prone regions in the code, being useful
for debugging and also for program understanding.
• The complexity metric’s measure tool can be used to identify the complexity and
the size of each class under testing, based on static information.
24-01-2023
REQUIREMENTS
• Install Java.
• Install NetBeans.
• Install Graphviz 2.26.
24-01-2023
INSTALLATION
INSTALLATION
USING NETBEANS
USING NETBEANS
USING NETBEANS
• Click Next.
• Give Project Name: Circle
• Give Project Location: D:\jab\Examples
24-01-2023
USING NETBEANS
USING NETBEANS
• Click Finish
24-01-2023
USING NETBEANS
USING NETBEANS
USING NETBEANS
USING NETBEANS
USING NETBEANS
USING NETBEANS
• Click Finish
24-01-2023
USING NETBEANS
USING NETBEANS
USING NETBEANS
• package circle;
• {
• return(area);
• }
• {
• return(perimeter);
• }
• }
USING NETBEANS
USING NETBEANS
USING NETBEANS
24-01-2023
USING NETBEANS
• Click Ok
USING NETBEANS
24-01-2023
USING NETBEANS
USING NETBEANS
USING NETBEANS
• package circle;
• import org.junit.After;
• import org.junit.AfterClass;
• import org.junit.Before;
• import org.junit.BeforeClass;
• import org.junit.Test;
• import static org.junit.Assert.*;
USING NETBEANS
USING NETBEANS
USING NETBEANS
• // TODO review the generated test code and remove the default call to fail.
• //fail("The test case is a prototype.");
• }
• }
24-01-2023
USING NETBEANS
USING NETBEANS
24-01-2023
USING NETBEANS
USING NETBEANS
USING NETBEANS
USING NETBEANS
24-01-2023
USING NETBEANS
USING JABUTI
USING JABUTI
USING JABUTI
• Expand Circle.
• Select CircleAreaPeri.class to Instrument.
• Click button >> under Classes to Instrument.
• Give Project name: circle (for example).
• Classpath: D:\jab\Examples\Circle\build\classes.
• Click OK.
24-01-2023
USING JABUTI
USING JABUTI
24-01-2023
USING JABUTI
USING JABUTI
24-01-2023
USING JABUTI
USING JABUTI
24-01-2023
USING JABUTI
USING JABUTI
24-01-2023
USING JABUTI
USING JABUTI
24-01-2023
USING JABUTI
USING JABUTI
24-01-2023
USING JABUTI
USING JABUTI
USING JABUTI
USING JABUTI
24-01-2023
USING JABUTI
USING JABUTI
24-01-2023
USING JABUTI
USING JABUTI
24-01-2023
USING JABUTI
USING JABUTI
24-01-2023
ASSIGNMENT