Test data generation from Hibernate constraints
© 2014 IEEE. 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...
Saved in:
Main Authors: | , |
---|---|
Format: | Conference or Workshop Item |
Published: |
2015
|
Online Access: | http://www.scopus.com/inward/record.url?partnerID=HzOxMe3b&scp=84928555188&origin=inward http://cmuir.cmu.ac.th/handle/6653943832/39262 |
Tags: |
Add Tag
No Tags, Be the first to tag this record!
|
Institution: | Chiang Mai University |
id |
th-cmuir.6653943832-39262 |
---|---|
record_format |
dspace |
spelling |
th-cmuir.6653943832-392622015-06-16T08:19:44Z Test data generation from Hibernate constraints Marin,K. Doungsa-Ard,C. © 2014 IEEE. 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. 2015-06-16T08:19:44Z 2015-06-16T08:19:44Z 2014-01-01 Conference Paper 2-s2.0-84928555188 10.1109/SKIMA.2014.7083566 http://www.scopus.com/inward/record.url?partnerID=HzOxMe3b&scp=84928555188&origin=inward http://cmuir.cmu.ac.th/handle/6653943832/39262 |
institution |
Chiang Mai University |
building |
Chiang Mai University Library |
country |
Thailand |
collection |
CMU Intellectual Repository |
description |
© 2014 IEEE. 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. |
format |
Conference or Workshop Item |
author |
Marin,K. Doungsa-Ard,C. |
spellingShingle |
Marin,K. Doungsa-Ard,C. Test data generation from Hibernate constraints |
author_facet |
Marin,K. Doungsa-Ard,C. |
author_sort |
Marin,K. |
title |
Test data generation from Hibernate constraints |
title_short |
Test data generation from Hibernate constraints |
title_full |
Test data generation from Hibernate constraints |
title_fullStr |
Test data generation from Hibernate constraints |
title_full_unstemmed |
Test data generation from Hibernate constraints |
title_sort |
test data generation from hibernate constraints |
publishDate |
2015 |
url |
http://www.scopus.com/inward/record.url?partnerID=HzOxMe3b&scp=84928555188&origin=inward http://cmuir.cmu.ac.th/handle/6653943832/39262 |
_version_ |
1681421622766993408 |