Test Data Generation From Hibernate Constraints

被引:0
|
作者
Marin, Krittaya [1 ]
Doungsa-ard, Chartchai [1 ]
机构
[1] Chiang Mai Univ, Coll Arts Media & Technol, Chiang Mai, Thailand
关键词
Hibernate; Search-based software testing; Test data generation;
D O I
暂无
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
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.
引用
收藏
页数:6
相关论文
共 50 条
  • [21] Automated test-data generation from formal models of software
    Rayadurgam, S
    16TH ANNUAL INTERNATIONAL CONFERENCE ON AUTOMATED SOFTWARE ENGINEERING (ASE 2001), PROCEEDINGS, 2001, : 438 - 438
  • [22] Scalable satisfiability checking and test data generation from modeling diagrams
    Smaragdakis, Yannis
    Csallner, Christoph
    Subramanian, Ranjith
    AUTOMATED SOFTWARE ENGINEERING, 2009, 16 (01) : 73 - 99
  • [23] Scalable satisfiability checking and test data generation from modeling diagrams
    Yannis Smaragdakis
    Christoph Csallner
    Ranjith Subramanian
    Automated Software Engineering, 2009, 16
  • [24] AUTOMATED SOFTWARE TEST DATA GENERATION
    KOREL, B
    IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 1990, 16 (08) : 870 - 879
  • [25] THE AUTOMATIC-GENERATION OF TEST DATA
    INCE, DC
    COMPUTER JOURNAL, 1987, 30 (01): : 63 - 69
  • [26] Novel approach to test data generation
    1600, IE Aust, Barton, Aust
  • [27] Study on test data generation approach
    Lu, Wang
    Ma, Guo-Fu
    Cao, Li-Pei
    Information Technology Journal, 2013, 12 (23) : 7669 - 7672
  • [28] A FRAMEWORK FOR INTELLIGENT TEST DATA GENERATION
    CHANG, KH
    CROSS, JH
    CARLISLE, WH
    BROWN, DB
    JOURNAL OF INTELLIGENT & ROBOTIC SYSTEMS, 1992, 5 (02) : 147 - 165
  • [29] Test Data Generation for Database Applications
    Agrawal, Pooja
    Chandra, Bikash
    Emani, K. Venkatesh
    Garg, Neha
    Sudarshan, S.
    2018 IEEE 34TH INTERNATIONAL CONFERENCE ON DATA ENGINEERING (ICDE), 2018, : 1621 - 1624
  • [30] Evolutionary generation of regression test data
    Ren, L.-N. (qianjie180@126.com), 1600, Science Press (37):