• DocumentCode
    3585737
  • Title

    Test data generation from Hibernate constraints

  • Author

    Marin, Krittaya ; Doungsa-ard, Chartchai

  • Author_Institution
    Coll. of Arts, Media & Technol., Chiang Mai Univ., Chiang Mai, Thailand
  • fYear
    2014
  • Firstpage
    1
  • Lastpage
    6
  • Abstract
    Hibernate framework is one the most widely used object-relational mapping framework in open source world. The framework extremely helps developers on working with the software development with databases. However, the persistence has to be implemented manually. Also, software testing is a way to make sure that defects should be found as many as possible. Nevertheless, it is not possible to do unit testing without test data. If test data can be generated automatically, the cost of software development should be reduced significantly. In this work, we proposed a method to generate the test data from a Java bean from Hibernate constraints annotations using search techniques. The search space has been generated by applying Feed4j according to each field constraint. The violation cases from Hibernate validator has been used as a Fitness function. The evaluation was done by the comparison analysis between the proposed approach i.e. genetic algorithm and a local search technique i.e. random search. The results showed that, our approach was more effective than the random search.
  • Keywords
    Java; constraint handling; program testing; search problems; Feed4j; Hibernate constraints annotations; Hibernate framework; Hibernate validator; Java bean; fitness function; genetic algorithm; local search technique; object-relational mapping framework; open source world; search space; search techniques; software development; test data generation; Biological cells; Databases; Genetic algorithms; Java; Sociology; Statistics; Testing; Hibernate; Search-based software testing; Test data generation;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Software, Knowledge, Information Management and Applications (SKIMA), 2014 8th International Conference on
  • Type

    conf

  • DOI
    10.1109/SKIMA.2014.7083566
  • Filename
    7083566