Handling SQL Databases in Automated System Test Generation

Author:

Arcuri Andrea1,Galeotti Juan P.2

Affiliation:

1. Kristiania University College, Oslo, Norway

2. Depto. de Computación, FCEyN-UBA, and ICC, CONICET-UBA, Argentina

Abstract

Automated system test generation for web/enterprise systems requires either a sequence of actions on a GUI (e.g., clicking on HTML links and form buttons) or direct HTTP calls when dealing with web services (e.g., REST and SOAP). When doing white-box testing of such systems, their code can be analyzed, and the same type of heuristics (e.g., the branch distance ) used in search-based unit testing can be employed to improve performance. However, web/enterprise systems do often interact with a database. To obtain higher coverage and find new faults, the state of the databases needs to be taken into account when generating white-box tests. In this work, we present a novel heuristic to enhance search-based software testing of web/enterprise systems, which takes into account the state of the accessed databases. Furthermore, we enable the generation of SQL data directly from the test cases. This is useful when it is too difficult or time consuming to generate the right sequence of events to put the database in the right state. Also, it is useful when dealing with databases that are “read-only” for the system under test, and the actual data are generated by other services. We implemented our technique as an extension of E VO M ASTER , where system tests are generated in the JUnit format. Experiments on six RESTful APIs (five open-source and one industrial) show that our novel techniques improve coverage significantly (up to +16.5%), finding seven new faults in those systems.

Funder

PICT

Norges Forskningsråd

Secretaría de Ciencia y Técnica, Universidad de Buenos Aires

Publisher

Association for Computing Machinery (ACM)

Subject

Software

Reference49 articles.

1. [n.d.]. Antlr. Retrieved from https://www.antlr.org/. [n.d.]. Antlr. Retrieved from https://www.antlr.org/.

2. [n.d.]. EclipseLink. Retrieved from http://www.eclipse.org/eclipselink/. [n.d.]. EclipseLink. Retrieved from http://www.eclipse.org/eclipselink/.

3. [n.d.]. Hibernate. Retrieved from http://hibernate.org. [n.d.]. Hibernate. Retrieved from http://hibernate.org.

4. [n.d.]. JDBI. Retrieved from http://jdbi.org/. [n.d.]. JDBI. Retrieved from http://jdbi.org/.

5. [n.d.]. JOOQ. Retrieved from https://www.jooq.org/. [n.d.]. JOOQ. Retrieved from https://www.jooq.org/.

Cited by 30 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3