Advertisement

An Automated Test Suite Generating Approach for Stateful Web Services

  • Yin LiEmail author
  • Zhi-Guang Sun
  • Ting-Ting Jiang
Conference paper
Part of the Lecture Notes in Computer Science book series (LNCS, volume 11293)

Abstract

Web Services are the W3C-endorsed realization of the Service-Oriented Architecture (SOA). How to automatically generate effective test suites is a key problem in Web services testing. At present, the existing testing methods may cause the redundancy of test suite and the decrease of fault detecting ability. So this paper proposes an automated test suite generation approach based on EFSM (Extended Finite State Machine) model and operation interface contract. The operation tree model is firstly constructed according to the standard WSDL (Web Services Description Language) document. By appending semantic annotation to standard WSDL, the EFSM model is then built to generate operation sequences automatically. Finally, the optimal test suite can be obtained according to the operation interface contract. Moreover, the experiment shows that the proposed approach can generate reasonable test suites for stateful Web services effectively, while enhancing the fault detection ability and optimality on the size of existing approach.

Keywords

Web services Operation tree model Behavior information Operation interface contract Extended Finite State Machine 

References

  1. 1.
    Mei, H., Zhang, L.: A framework for testing web services and its supporting tool. In: Proceedings of International Workshop on Service-Oriented System Engineering, pp. 199–206. IEEE Computer Society, Washington (2005)Google Scholar
  2. 2.
    Bartolini, C., Bertolino, A., Marchetti, E., et al.: WS-TAXI: a WSDL-based testing tool for web services. In: Proceedings of the International Conference on Software Testing Verification and Validation, pp. 326–335. IEEE Computer Society, Washington (2009)Google Scholar
  3. 3.
    Xu, L., Li, Y.H., Chen, L., et al.: A testing method for web services focusing on user requirements. Chin. J. Comput. 37(3), 512–521 (2014)Google Scholar
  4. 4.
    Elia, I.A., Laranjeiro, N., Vieira, M.: A practical approach towards automatic testing of web services interoperability. Int. J. Web Serv. Res. 12(3), 103–129 (2015)CrossRefGoogle Scholar
  5. 5.
    Brenner, D., Atkinson, C., Hummel, O., et al.: Strategies for the run-time testing of third party web services. In: Proceedings of International Conference on Service-Oriented Computing an Applications, pp. 114–121. IEEE, Piscataway (2007)Google Scholar
  6. 6.
    Sinha, A., Paradkar, A.: Model based functional conformance testing of web services operating on persistent data. In: Proceeding of 2006 Workshop on Testing, Analysis, and Verification of Web Services and Application, pp. 17–22. ACM, New York (2006)Google Scholar
  7. 7.
    Keum, C., Kang, S., Ko, I.-Y., Baik, J., Choi, Y.-I.: Generating test cases for web services using extended finite state machine. In: Uyar, M.Ü., Duale, A.Y., Fecko, M.A. (eds.) TestCom 2006. LNCS, vol. 3964, pp. 103–117. Springer, Heidelberg (2006).  https://doi.org/10.1007/11754008_7CrossRefGoogle Scholar
  8. 8.
    Ma, C.Y., Zhou, Y., Lu, W.: Automatic test for web services. Comput. Sci. 39(2), 162–169 (2012)Google Scholar
  9. 9.
    Li, Z., Jie, S., Wei, J., et al.: BPEL4WS unit testing: framework and implementation. In: Proceedings of the 2005 International Conference on Web Services (ICWS 2005), pp. 103–110. IEEE Computer Society, Washington (2005)Google Scholar
  10. 10.
    Tsai, W.T., Paul, R., Wang, Y., et al.: Extending WSDL to facilitate web services testing. In: Proceedings of the 7th IEEE International Symposium on High Assurance Systems Engineering, pp. 171–172. IEEE Computer Society, Washington (2002)Google Scholar
  11. 11.
    Xu, W.Z., Offutt, J., Luo, J.: Testing web services by XML perturbation. In: Proceedings of the 16th IEEE International Symposium on Software Reliability Engineering, pp. 256–266. IEEE Computer Society, Washington (2005)Google Scholar
  12. 12.
    Hanna, S., Munro, M.: An approach for specification-based test case generation for Web services. In: Proceedings of 2007 IEEE ACS International Conference on Computer Systems and Application, pp. 16–23. IEEE Computer Society, Washington (2007)Google Scholar
  13. 13.
    Ma, C.Y., Du, C.L., Zhang, T., et al.: WSDL-based automated test case generation for web service. In: Proceedings of the Computer Science and Software Engineering, pp. 731–737. IEEE Computer Society, Washington (2008)Google Scholar
  14. 14.
    Siblini, R., Mansour, N.: Testing web services. In: Proceedings of IEEE International Conference on Computer Systems and Applications, p. 135-vii. IEEE Computer Society, Washington (2005)Google Scholar
  15. 15.
    Jiang, Y., Xin, G.M., Shan, J.H., et al.: A method of automated test data generation for web service. Chin. J. Comput. 28(4), 568–577 (2005)Google Scholar
  16. 16.
    Bai, X.Y., Dong, W.L., Tsai, W.T., et al.: WSDL-based automatic test case generation for web services testing. In: Proceedings of the 2005 IEEE International Workshop on Service-Oriented System Engineering, pp. 207–212. IEEE Computer Society, Washington (2005)Google Scholar
  17. 17.
    Li, L., Wu, C.: Automatic message flow analyses for web services based on WSDL. In: Proceedings of 2007 IEEE International Conference, pp. 25–28. IEEE Computer Society, Washington (2007)Google Scholar
  18. 18.
    Bertolino, A., Polini, A.: The audition framework for testing web services interoperability. In: Proceedings of the 31st EUROMICRO Conference on Software Engineering and Advanced Application, pp. 134–142. IEEE Computer Society, Washington (2005)Google Scholar
  19. 19.
    Heckel, R., Mariani, L.: Automatic conformance testing of web services. In: Cerioli, M. (ed.) FASE 2005. LNCS, vol. 3442, pp. 34–48. Springer, Heidelberg (2005).  https://doi.org/10.1007/978-3-540-31984-9_4CrossRefGoogle Scholar
  20. 20.
    Belli, F., Linschulte, M.: Event-driven modeling and testing of web services. In: Computer Software and Applications Conference, pp. 1163–1173. IEEE Computer Society, Washington (2008)Google Scholar
  21. 21.
    Paradkar, A., Sinha, A., Williams, C., et a1.: Automated functional conformance test generation for semantic web services. In: Proceedings of IEEE International Conference on Web Services, pp. 110–117. IEEE Computer Society, Washington (2007)Google Scholar
  22. 22.
    Sinha, A., Paradkar, A.: Model-based functional conformance testing of web services operating on persistent data. In: Proceedings of the 2006 Workshop on Testing Analysis and Verification of Web Services and Applications, pp. 17–22. IEEE Computer Society, Washington (2006)Google Scholar
  23. 23.
    Paradkar, A.M.: Automated functional conformance test generation for semantic web services. In: Proceedings of 2007 IEEE International Conference on Web Services, pp. 110–117. IEEE Computer Society, Washington (2007)Google Scholar
  24. 24.
    Ma, C.Y., Wu, J.S., Zhang, T.: Web services sequence testing based on stream X-machine. In: Proceedings of the 10th International Conference on Quality Software, pp. 232–239. IEEE Computer Society, Washington (2010)Google Scholar
  25. 25.
    Bai, X.Y., Lu, H., Zhang, Y., et al.: Interface-based automated testing for open software architecture. In: Proceedings of the Computer and Applications Conference Workshops, pp. 149–154. IEEE Computer Society, Washington (2011)Google Scholar
  26. 26.
    Petrova, A., Dessislava, I., et al.: TASSA: testing framework for web service orchestrations. In: Proceedings of the 10th International Workshop on Automation of Software Test, pp. 8–12. IEEE Computer Society, Washington (2015)Google Scholar
  27. 27.
    Vanderveen, P., Janzen, M., Tappenden, A.F.: A web service test generator. In: Proceedings of 2014 IEEE International Conference on Software Maintenance and Evolution, pp. 516–520. IEEE Computer Society, Washington (2014)Google Scholar
  28. 28.
    W3C.Web service description language (WSDL) version 2.0 part1: core language [EB/OL], 26 June 2007. http://www.w3.org/TR/wsdl20/. Accessed 23 May 2016
  29. 29.
    Belhajjame, K., Embury, S.M.: Verification of semantic web service annotations using ontology-based partitioning. IEEE Trans. Serv. Comput. 7(3), 515–528 (2014)CrossRefGoogle Scholar
  30. 30.
    He, L.J., Liu, L.C., Wu, C.: A modified operation similarity measure method based on WSDL description. Chin. J. Comput. 31(8), 1331–1339 (2008)CrossRefGoogle Scholar
  31. 31.
    Kunal, M.: WSDL-S: Adding Semantics to WSDL- WhitePaper [EB/OL], 26 June 2007. http://www.w3.org/TR/2003/,2003-04-01John. Accessed 23 May 2016
  32. 32.
    Miller, J., Verma, K., Rajasekaran, P., et al.: WSDL-S: Adding semantics to WSDL - White paper [EB/OL], January 2004. http://lsdis.cs.uga.edu/library/download/wsdl-s.pdf. Accessed 23 May 2016
  33. 33.
    Horrocks, I.: SWRL: a semantic web rule language combining owland ruleML. W3C [EB/OL], May 2004. Accessed 23 May 2016Google Scholar
  34. 34.
    Hou, K.J., Bai, X.Y., Lu, H., et al.: Web service test data generation using interface semantic contract. J. Softw. 24(9), 2020–2041 (2013)Google Scholar
  35. 35.
    Ostrand, T.J., Baiter, M.J.: The category-partition method for specifying and generating functional tests. Commun. ACM 31(6), 676–686 (1988)CrossRefGoogle Scholar
  36. 36.
    Chen, T.Y., Poon, P., Tse, T.H.: A choice relation framework for supporting category-partition test ease generation. IEEE Trans. Softw. Eng. 29(7), 577–593 (2003)CrossRefGoogle Scholar
  37. 37.
    Xu, W., Offutt, J., Luo, J.: Testing web services by XML perturbation. In: International Symposium on Software Reliability Engineering, pp. 257–266. IEEE Computer Society, Washington (2005)Google Scholar

Copyright information

© Springer Nature Switzerland AG 2018

Authors and Affiliations

  1. 1.Jiangsu Automation Research InstituteLianyungangChina

Personalised recommendations