DB states, and validating after the test case
execution the outputs and the final DB state.
(Neufeld et al., 1993) generate DB states according
to the integrity restrictions of the relational schema,
using a constraint solver. As far as we know, many
proposals for test data generation exist, but none of
them focuses on automated test model generation
using model transformations.
5 CONCLUSIONS
In this article a novel approach to test IS with DB
was presented, with focus in the coverage of the
structures found by test patterns in the data model.
This test generation methodology takes into account
the fact that, in this kind of systems, one of the most
important things is the correctness of the data, which
implies testing the operations over the data
structures. As the framework is almost completely
based on standards, it can be adopted with almost
any UML-compliant tool. Therefore no tools are
needed to be developed to support the methodology.
This is the first step towards the construction of a
test generation environment specifically for IS that
uses DB, which will facilitate the empirical
validation of the proposed ideas.
ACKNOWLEDGEMENTS
This work has been partially funded by ANII, Uruguay,
and by DIMITRI (TRA2009_0131) and MAGO/Pegaso
(TIN2009-13718-C0201) Spanish projects.
REFERENCES
Alalfi, M. H., Cordy, J. R. & Dean, T. R. 2008.
SQL2XMI: Reverse Engineering of UML-ER
Diagrams from Relational Database Schemas.
Working Conference on Reverse Engineering. IEEE
Computer Society.
Andrews, A., France, R., Ghosh, S. & Craig, G. 2003. Test
adequacy criteria for UML design models. Software
Testing, Verification and Reliability, 13, 95-127.
Arasu, A., Kaushik, R. & Li, J. 2011. Data generation
using declarative constraints. International conference
on Management of data. ACM.
Cornett. 2004. Code Coverage Analysis [Online].
Available: www.bullseye.com/coverage.html
[Accessed 2012].
Chays, D. & Deng, Y. 2003. Demonstration of AGENDA
tool set for testing relational database applications.
IEEE Computer Society.
Chilenski, J. J. & Miller, S. P. 1994. Applicability of
modified condition/decision coverage to software
testing. Software Engineering Journal, 9, 193-200.
Emmi, M., Majumdar, R. & Sen, K. 2007. Dynamic test
input generation for database applications. ISSTA'07:
Software Testing and Analysis.
Fewster, M. & Graham, D. 1999. Software test
automation: effective use of test execution tools, ACM
Press/Addison-Wesley Publishing Co.
García-Rodríguez, I., Polo, M. & Piattini, M. 2007. Using
Model-Driven Pattern Matching to derive
functionalities in Models. SEKE - Software
Engineering and Knowledge Engineering
García Rodríguez De Guzmán, I. 2007. Pressweb: un
proceso para la reingeniería de sistemas heredados
hacia servicios web. UCLM.
Gornik, D. 2002. UML Data Modeling Profile. IBM,
Rational Software.
Haller, K. 2009. White-box testing for database-driven
applications: A requirements analysis. ACM.
Koomen, T., Van Der Aalst, L., Broekman, B. & Vroon,
M. 2006. TMap Next, for result-driven testing, UTN
Publishers.
Neufeld, A., Moerkotte, G. & Loekemann, P. C. 1993.
Generating consistent test data: Restricting the search
space by a generator formula. The VLDB Journal, 2,
173-213.
Omg 2005. Meta Object Facility 2.0
Query/View/Transformation Specification.
Omg 2008. MOF Model to Text Transformation Language
(MOFM2T), 1.0.
Pérez-Castillo, R., García-Rodríguez De Guzmán, I.,
Caballero, I. & Piattini, M. 2012. Software
Modernization by Recovering Web Services from
Legacy Databases. Journal of Software: Evolution and
Process, In Press.
Pérez Lamancha, B., Mateo, P. R., Polo Usaola, M. &
Caivano, D. 2011. Model-driven Testing -
Transformations from Test Models to Test Code.
ENASE. SciTePress.
Polo, M., García-Rodríguez, I. & Piattini, M. 2007a. An
MDA-based approach for database re-engineering.
Journal of Software Maintenance and Evolution:
Research and Practice, 19, 383-417.
Polo, M., Tendero, S. & Piattini, M. 2007b. Integrating
techniques and tools for testing automation. Software
Testing Verification and Reliability, 17, 3-39.
Sparks, G. 2001. Database modeling in UML. Methods &
Tools.
Tuya, J., Suárez-Cabal, M. J. & De La Riva, C. 2010. Full
predicate coverage for testing SQL database queries.
Software Testing Verification and Reliability, 20, 237-
288.
Yin, S. & Ray, I. 2005. Relational database operations
modeling with UML. AINA'05: Advanced Information
Networking and Applications.
Zielinski, K. & Szmuc, T. 2005. Data Modeling with
UML 2.0. Frontiers in Artificial Intelligence and
Applications, 63.
Towards a Framework for Information System Testing - A Model-driven Testing Approach
177