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 条
  • [1] Efficient Generation of Test Data with Extended Cardinality Constraints
    Larouche, Michael
    Halle, Sylvain
    2019 IEEE 19TH INTERNATIONAL CONFERENCE ON SOFTWARE QUALITY, RELIABILITY AND SECURITY (QRS 2019), 2019, : 386 - 393
  • [2] Prioritized constraints with data sampling scores for automatic test data generation
    Ma, Xiao
    Li, J. Jenny
    Weiss, David M.
    SNPD 2007: EIGHTH ACIS INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING, ARTIFICIAL INTELLIGENCE, NETWORKING, AND PARALLEL/DISTRIBUTED COMPUTING, VOL 3, PROCEEDINGS, 2007, : 1129 - 1134
  • [3] The Algorithm to Solve Equation Constraints in Automatic Test Data Generation
    1740, Institute of Computing Technology (29):
  • [4] Search-Based MC/DC Test Data Generation With OCL Constraints
    Sartaj, Hassan
    Iqbal, Muhammad Zohaib
    Jilani, Atif Aftab Ahmed
    Khan, Muhammad Uzair
    SOFTWARE TESTING VERIFICATION & RELIABILITY, 2025, 35 (01):
  • [5] Specification analysis and test data generation by solving Boolean combinations of numeric constraints
    Zhang, J
    FIRST ASIA-PACIFIC CONFERENCE ON QUALITY SOFTWARE, PROCEEDINGS, 2000, : 267 - 274
  • [6] Functional Test Generation with Distribution Constraints
    Moss, Anna
    Gutkovich, Boris
    HARDWARE AND SOFTWARE: VERIFICATION AND TESTING, 2011, 6405 : 34 - 51
  • [7] Generating Test Data from OCL Constraints with Search Techniques
    Ali, Shaukat
    Iqbal, Muhammad Zohaib
    Arcuri, Andrea
    Briand, Lionel C.
    IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2013, 39 (10) : 1376 - 1402
  • [8] Test Data Generation for Complex Data Types Using Imprecise Model Constraints and Constraint Solving Techniques
    Packevicius, Sarunas
    Krivickaite, Greta
    Guogis, Evaldas
    Barisas, Dominykas
    Jasaitis, Robertas
    Blazauskas, Tomas
    INFORMATION TECHNOLOGY AND CONTROL, 2013, 42 (02): : 191 - 204
  • [9] Test data generation for web application using a UML class diagram with OCL constraints
    Fujiwara, Shoichiro
    Munakata, Kazuki
    Maeda, Yoshiharu
    Katayama, Asako
    Uehara, Tadahiro
    INNOVATIONS IN SYSTEMS AND SOFTWARE ENGINEERING, 2011, 7 (04) : 275 - 282
  • [10] Test generation in the presence of timing exceptions and constraints
    Goswami, Dhiraj
    Tsai, Kun-Han
    Kassab, Mark
    Rajski, Janusz
    2007 44TH ACM/IEEE DESIGN AUTOMATION CONFERENCE, VOLS 1 AND 2, 2007, : 688 - +