  Software test cases can be defined as a set of condition where a tester needs
to test and determine that the System Under Test (SUT) satisfied with the
expected result correctly. This paper discusses the optimization technique in
generating cases automatically by using EpiT (Eclipse Plug-in Tool). EpiT is
developed to optimize the generation of test cases from source code in order to
reduce time used for conventional manually creating test cases. By using code
smell functionality, EpiT helps to generate test cases automatically from Java
programs by checking its line of code (LOC). The implementation of EpiT will
also be presented based on several case studies conducted to show the
optimization of the test cases generated. Based on the results presented, EpiT
is proven to solve the problem for software tester to generate test case
manually and check the optimization from the source code using code smell
technique.
