Skip to main content

An Automated Test Suite Generating Approach for Stateful Web Services

  • Conference paper
  • First Online:
Software Analysis, Testing, and Evolution (SATE 2018)

Part of the book series: Lecture Notes in Computer Science ((LNPSE,volume 11293))

Included in the following conference series:

  • 607 Accesses

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  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. 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. 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. 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)

    Article  Google Scholar 

  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. 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. 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_7

    Chapter  Google Scholar 

  8. Ma, C.Y., Zhou, Y., Lu, W.: Automatic test for web services. Comput. Sci. 39(2), 162–169 (2012)

    Google Scholar 

  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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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_4

    Chapter  Google Scholar 

  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. 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. 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. 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. 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. 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. 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. 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. 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. Belhajjame, K., Embury, S.M.: Verification of semantic web service annotations using ontology-based partitioning. IEEE Trans. Serv. Comput. 7(3), 515–528 (2014)

    Article  Google Scholar 

  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)

    Article  Google Scholar 

  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. 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. Horrocks, I.: SWRL: a semantic web rule language combining owland ruleML. W3C [EB/OL], May 2004. Accessed 23 May 2016

    Google Scholar 

  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. Ostrand, T.J., Baiter, M.J.: The category-partition method for specifying and generating functional tests. Commun. ACM 31(6), 676–686 (1988)

    Article  Google Scholar 

  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)

    Article  Google Scholar 

  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 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Yin Li .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2018 Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Li, Y., Sun, ZG., Jiang, TT. (2018). An Automated Test Suite Generating Approach for Stateful Web Services. In: Bu, L., Xiong, Y. (eds) Software Analysis, Testing, and Evolution. SATE 2018. Lecture Notes in Computer Science(), vol 11293. Springer, Cham. https://doi.org/10.1007/978-3-030-04272-1_12

Download citation

  • DOI: https://doi.org/10.1007/978-3-030-04272-1_12

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-030-04271-4

  • Online ISBN: 978-3-030-04272-1

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics