Abstract
To improve the effectiveness of generating test case for algebraic specification, an approach for generating test cases based on tabu search and genetic algorithm (Tabu GA) is presented. A prototype tool CASCATT (Common Algebraic Specification-based Class, Component and Web service Automatic Testing Tool) is implemented based on Tabu GA, which tests Class, Component and Web Service based on algebraic specification described by CASOCC-WS (Common Algebraic Specification of Components, Classes and Web service) language. The experiments results show the testing method is better effective, comparing with the existed random method in algebraic testing tool CASCAT (Common AS-based Component Automatic Testing) which generated test case from random data rewriting technology.
Similar content being viewed by others
References
Bernot, G., Gaudel, M.C., Marre, B.: Software testing based on formal specifications: a theory and a tool. Softw. Eng. J. 6(6), 387–405 (1991)
Le Gall, P., Arnould, A.: Formal specification and test: correctness and oracle. In: 11th WADT/9th COMPASS Workshop. LNCS 1130. Springer, Berlin, pp. 342–358 (1996)
Gonnon, J., McMullin, P., Hamlet, R.: Data-abstraction implementation, specification and testing. ACM TOPLAS 3(3), 211–223 (1981)
Hong, Z.: A note on test oracles and semantics of algebraic specifications. In: Proceedings of QSIC’03, November 2003, pp. 91–99
Doong, K., Frankl, P.: The ASTOOT approach to testing object-oriented programs. ACM TSEM 3(2), 101–130 (1994)
Machado, P., Sannella, D.: Unit Testing for CASL Architectural Specifications, Mathematical Foundations of Computer Science. LNCS 2420. Springer, Berlin, pp. 506–518 (2002)
Chen, H.Y., Tse, T.H., Chan, F.T., Chen, T.Y.: In black and white: an integrated approach to class-level testing of object-oriented programs. ACM TSEM 7(3), 250–295 (1998)
HuoYan, C., Tse, T.H., Chen, T.Y.: TACCLE: a methodology for object-oriented software testing at the class and cluster levels. ACM TSEM 10(1), 56–109 (2001)
Hughes, M., Stotts, D.: Daistish: systematic algebraic testing for OO programs in the presence of side-effects. In: Proceedings of ISSTA’96, January 1996, pp. 53–61
Liang, K., Hong, Z., Bin, Z.: Automated testing EJB components based on algebraic specifications. In: Proceedings of COMPSAC’07 (2), pp. 717–722 (2007)
Bo, Y., Liang, K., Yufeng, Z., Hong, Z.: Testing Java components based on algebraic specifications. In: Proceedings of ICST’08, pp. 190–199 (2008)
Hong, Z., Xudong, H.: An observational theory of integration testing for component-based software development. In: COMPSAC’01 (2001)
Hong, Z., Xudong, H.: A methodology of component integration testing. In: Beydeda, S., Gruhn, V. (eds.) Testing Commercial-Off-The-Shelf Components and Systems, pp. 239–269. Springer, Berlin (2005)
Hong, Z., Bo, Y.: An experiment with algebraic specifications of software components. In: Proceedings of the 10th International Conference on Quality Software (QSIC 2010), pp. 190–199
Hong, Z., Bo, Y.: Algebraic specification of web services. In: Proceedings of the 10th International Conference on Quality Software (QSIC 2010), IEEE Computer Society Press, Los Alamitos, pp. 457–464 (2010)
Dongmei, L., Xian, W., Xin Z., Hong, Z., Ian. B.: Monic testing of web services based on algebraic specifications. In: Proceedings of the 10th IEEE International Conference on Service Oriented System Engineering (SOSE 2016), Oxford, 29 March–1 April 2016
Liu, Dongmei, Zhu, Hong, Bayley, Ian: Transformation of algebraic specifications into ontological semantic descriptions of web services. Int. J. Serv. Comput. (IJSC) 2(1), 58–71 (2014)
Xu, Z., et al.: Generating temporal semantic context of concepts using web search engines. J. Netw. Comput. Appl. 43, 42–55 (2014)
Xu, Z., et al.: Mining temporal explicit and implicit semantic relations between entities using web search engines. Future Gener. Comput. Syst. 37, 468–477 (2014)
Ye, J., Xu, Z., Ding, Y.: Secure outsourcing of modular exponentiations in cloud and cluster computing. Cluster Comput. 19(2), 811–820 (2016)
Xu, Z., Luo, X., Mei, L., Hu, C.: Measuring the semantic discrimination capability of association relations. Concurr. Comput. Pract. Exp. 26(2), 380–395 (2014)
Jamoussi, A.: An Automated Tool for Efficiently Generating a Massive Number of Random Test Cases. IEEE, Washington, DC (1997)
Pargas, R.P., Harrold, M.J., Peck, R.R.: Test-data generation using genetic algorithms. Softw. Test. Verif. Reliab. 9(4), 263–282 (1999)
Michael, C.C., McGraw, G., Schatz, M.A.: Generating software test data by evolution. IEEE Trans. Softw. Eng. 27(12), 1085–1110 (2001)
Glover, F.: Tabu search for nonlinear and parametric optimization (with links to genetic algorithms). Discret. Appl. Math. 49(1–3), 231–231 (1994)
Janosek, M., Volna, E., Kotyrba, M.: Knowledge discovery in dynamic data using neural networks. Cluster Comput. 18, 1411–1421 (2015)
Kianpisheh, S., Charkari, N.M., Kargahi, M.: Ant colony based constrained workflow scheduling for heterogeneous computing systems. Cluster Comput. 19, 1053–1070 (2016)
Bo, Y., Yemei, Q.: Tabu search and genetic algorithm for generating test data of class testing. In: International Conference on Information Engineering and Computer Science, 11–13 December 2009
Bo, Y., Yemei, Q., Feng-ye, L.: Tabu search and genetic algorithm for generating test data of class testing. In: International Conference on Information Engineering and Computer Science, 11–13 December 2009
Goguen, J., Malcolm, G.: A hidden agenda. Theor. Comput. Sci. 245(1), 55–101 (2000)
Sannellla, D., Tarlecki, A.: On observational equivalence and algebraic specification. J. Comput. Syst. Sci. 34, 150–178 (1987)
Machado, P.: On oracles for interpreting test results against algebraic specifications. In: AMAST’98. LNCS 1548. Springer, Berlin, pp. 502–518 (1998)
Ma, Y.-S., Offutt, J., Kwon, Y.R.: MuJava: an automated class mutation system. STVR 15(2), 97–133 (2005)
Mukhar, K., Zelenak, C., Weaver, J.L., Crume, J.: Beginning Java EE 5 From Novice to Professional. Apress, Berkely (2005)
Rima Patel, S., Gerald, B., Micah, S.: Mastering Enterprise Java Beans 3.0. Wiley, New York (2006)
Fleury, M., Stark, S., Richards, N.: JBoss 4.0—The Official Guide. Pearson Education, London (2005)
Bodoff, S., Green, D., Haase, K., Stearns, B.: The J2EE Tutorial, 2nd edn. Pearson Education, Upper Saddle River (2004)
Kumar, B.V., Sangeetha, S., Subrahmanya, S.V.: J2EE Architecture. Apress, Berkeley (2003)
Henkel, J.: Discovering and debugging algebraic specifications for Java classes. PhD Thesis, University of Colorado at Boulder (2004)
Sannellla, D., Tarlecki, A.: On observational equivalence and algebraic specification. J. Comput. Syst. Sci. 34, 150–178 (1987)
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
About this article
Cite this article
Yu, B., Qin, Y. Generating test case for algebraic specification based on Tabu search and genetic algorithm. Cluster Comput 20, 277–289 (2017). https://doi.org/10.1007/s10586-016-0681-7
Received:
Revised:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s10586-016-0681-7