International Journal of Computer Networks and Communications Security

Volume 5, Issue 6, June 2016

 

 

 

A Fitness Function for Search-Based Testing of Java Classes, which is based on the States Reached by the Object under Test

Pages: 97-107 (11) | [Full Text] PDF (825 KB)
I Papadhopulli and E Mece
Department of Computer Engineering, Polytechnic University of Tirana, Tirana, Albania

Abstract -
Genetic Algorithms are among the most efficient search-based techniques to automatically generate unit test cases today. The search is guided by a fitness function which evaluates how close an individual is to satisfy a given coverage goal. There exists several coverage criteria but the default criterion today is branch coverage. Nevertheless achieving high or full branch coverage does not imply that the generated test suite has good quality. In object oriented programs the state of the object affects its behavior. Thereupon, test cases that put the object under test, in new states are of interest in the testing context. In this article we propose a new fitness function which takes into consideration three factors for evaluation: the approach level, the branch distance and the new states reached by a test case. The coverage targets are still the branches, but during the search, the state of the object under test evolves with the scope to produce individuals that discover interesting features of the class and as a consequence can discover errors. We implemented this fitness function in the eToc tool. In our experiments the usage of the proposed fitness function towards the original fitness function results in a relative increase of 15.6% in the achieved average mutation score with the cost of a relative increase of 12.6% in the average test suite size.
 
Index Terms - Structural Testing, Test Case Generation, Search Based Software Testing, Fitness Function, Object State, Coverage Criteria, Mutation Score

Citation - I Papadhopulli and E Mece. "A Fitness Function for Search-Based Testing of Java Classes, which is based on the States Reached by the Object under Test." International Journal of Computer Science and Software Engineering 5, no. 6 (2016): 97-107.

 

Comparison of Two Fuzzy Skyhook Control Strategies Applied to an Active Suspension

Pages: 108-113 (6) | [Full Text] PDF (696 KB)
R Cardoso, MEM Meza
Center of Engineering, Modeling and Applied Social Sciences (CECS), Federal University of ABC (UFABC), Av. dos Estados 5001, Block A, 7th Floor, Bangu, Santo André - SP09210-580, São Paulo, Brazil

Abstract -
This work focuses on simulation and comparison of two control skyhook techniques applied to a quarter-car of the active suspension. The objective is to provide comfort to the driver. The main idea of skyhook control is to imagine a damper connected to an imaginary sky, thus, the feedback is performed with the resultant force between the imaginary and the suspension damper. The first control technique is the Mandani fuzzy skyhook and the second control technique is a Takagi-Sugeno fuzzy skyhook controller, in both controllers the inputs are the relative velocity between the two masses and the vehicle body velocity, the output of the Mandani fuzzy skyhook is the coefficient of imaginary damper viscous-friction and the Takagi-Sugeno fuzzy skyhook is the force. Finally, we compared the techniques. The Mandani fuzzy skyhook showed a more comfortable response to the driver, followed closely by the Takagi- Sugeno fuzzy skyhook.
 
Index Terms - Active suspension, Mandani, Quarter-car, Skyhook, Takagi-Sugeno

Citation - R Cardoso, MEM Meza. "Comparison of Two Fuzzy Skyhook Control Strategies Applied to an Active Suspension." International Journal of Computer Science and Software Engineering 5, no. 6 (2016): 108-113.

 

A Survey on Bad Smells in Codes and Usage of Algorithm Analysis

Pages: 114-118 (5) | [Full Text] PDF (461 KB)
A GUZEL and O AKTAS
Dokuz Eylul University, Computer Engineering Department Tınaztepe Campus, Buca izmir Turkey

Abstract -
Bad smells are indications of potential problems in the system. Bad smells in the code reduce the quality of the software. They occur in some cases, such as, wrong analysis, incorrect integration new modules into the system, ignoring the software development principles, writing codes in complex way, etc. Design problems in the codes are seen as a bad smell. This survesy focuses on the definition of bad smell in codes, types of bad smells and occurence reasons. Also, some sorting algorithms periods were compared and their relationships with bad smells in code were explained. Additionally, the relationship between algorithm analysis and bad smells in code has been described. Performances of some sorting algorithms were compared by using runtime calculations. Finally, in this article, comparison of the certain recursive and iterative sorting algorithms was made.
 
Index Terms - Bad smell, Refactoring, Software Engineering, Algorithm Analysis, Code Review, Good Code, Optimization

Citation - A GUZEL and O AKTAS. "A Survey on Bad Smells in Codes and Usage of Algorithm Analysis ." International Journal of Computer Science and Software Engineering 5, no. 6 (2016): 114-118.