Skip to main content

Test Case Generation of Composite Web Services Based on Semantic Matching and Condition Recognition

  • Conference paper
  • First Online:
Web Information Systems and Applications (WISA 2020)

Part of the book series: Lecture Notes in Computer Science ((LNISA,volume 12432))

Included in the following conference series:

  • 1763 Accesses

Abstract

With the rapid development of Internet technology, the application of Web service and their combinations is spreading widely as a vital role. However, due to the black box feature of Web services, test cases of Web service can be obtained only from the perspective of users, which is more challenging than traditional tests. We propose a method based on semantic matching and condition recognition, combined with document parsing to generate test cases of composite Web services. In this method, the first step is to parse the relevant XML documents, then to obtain the parameter types, keywords, as well as conditions and orders in the control flow. The following step is to match the parameter instances according to the conditions in the process or the semantic knowledge base. The last is to encapsulate them into test cases. Experimental results show that our method can generate test cases with low redundancy and high coverage, which can cover more than 85% nodes and paths in BPEL.

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 84.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 109.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. Yan, J., Li, Z., Yuan, Y., Sun, W., Zhang, J.: BPEL4WS unit testing: test case generation using a concurrent path analysis approach. In: 2006 17th International Symposium on Software Reliability Engineering, pp. 75–84. IEEE (2006). https://doi.org/10.1109/issre.2006.16

  2. Krafzig, D., Banke, K., Slama, D.: Enterprise S.O.A. Service-Oriented Architecture Best Practices. Prentice Hall PTR, Indiana (2004)

    Google Scholar 

  3. Wurth, E., Delpiroux, J.: Web service testing (Google Patents, 2018). http://www.freepatentsonline.com/y2016/0127409.html

  4. Mei, L., Chan, W., Tse, T.: Data flow testing of service choreography. In: Proceedings of the 7th Joint Meeting of the European Software Engineering Conference and the ACM SIGSOFT Symposium on the Foundations of Software Engineering, pp. 151–160 (2009). https://doi.org/10.1145/1595696.1595720

  5. Mei, L., Chan, W., Tse, T.: Data flow testing of service-oriented workflow applications. In: Proceedings of the 30th International Conference on Software Engineering, pp. 371–380 (2008). https://doi.org/10.1145/1368088.1368139

  6. Hou, S.-S., Zhang, L., Lan, Q., Mei, H., Sun, J.-S.: Generating effective test sequences for BPEL testing. In: 2009 Ninth International Conference on Quality Software, pp. 331–340. IEEE (2009). https://doi.org/10.1109/qsic.2009.50

  7. Wu, C.-S., Huang, C.-H.: The web services composition testing based on extended finite state machine and UML model. In: 2013 Fifth International Conference on Service Science and Innovation, pp. 215–222. IEEE (2013). https://doi.org/10.1109/icssi.2013.46

  8. Ni, Y., et al.: Effective message-sequence generation for testing BPEL programs. IEEE Trans. Serv. Comput. 6, 7–19 (2013). https://doi.org/10.1109/TSC.2011.22

    Article  Google Scholar 

  9. Zhou, L., Xu, L., Xu, B., Yang, H.: Generating test cases for composite web services by parsing XML documents and solving constraints. In: 2015 IEEE 39th Annual Computer Software and Applications Conference (2015). https://doi.org/10.1109/compsac.2015.51

  10. Zheng, Y., Zhang, X., Ganesh, V.: Z3-str: a z3-based string solver for web application analysis. In: Proceedings of the 2013 9th Joint Meeting on Foundations of Software Engineering, pp. 114–124 (2013). https://doi.org/10.1145/2491411.2491456

  11. Estero-Botaro, A., García-Domínguez, A., Domínguez-Jiménez, J.J., Palomo-Lozano, F., Medina-Bulo, I.: A framework for genetic test-case generation for WS-BPEL compositions. In: Merayo, M.G., de Oca, E.M. (eds.) ICTSS 2014. LNCS, vol. 8763, pp. 1–16. Springer, Heidelberg (2014). https://doi.org/10.1007/978-3-662-44857-1_1

    Chapter  Google Scholar 

  12. Sun, C., Zhao, Y., Pan, L., Liu, H., Chen, T.Y.: Automated testing of WS-BPEL service compositions: a scenario-oriented approach. IEEE Trans. Serv. Comput. 11, 616–629 (2018). https://doi.org/10.1109/TSC.2015.2466572

    Article  Google Scholar 

  13. Mei, L., et al.: A subsumption hierarchy of test case prioritization for composite services. IEEE Trans. Serv. Comput. 8, 658–673 (2015). https://doi.org/10.1109/TSC.2014.2331683

    Article  Google Scholar 

  14. Zhao, H., Chen, J., Xu, L.: Semantic web service discovery based on LDA clustering. In: Ni, W., Wang, X., Song, W., Li, Y. (eds.) WISA 2019. LNCS, vol. 11817, pp. 239–250. Springer, Cham (2019). https://doi.org/10.1007/978-3-030-30952-7_25

    Chapter  Google Scholar 

  15. Jordan, D., et al.: Web services business process execution language version 2.0. OASIS Stand. 11, 5 (2007). http://docs.oasis-open.org/wsbpel/2.0/OS/wsbpel-v2.0-OS.html

  16. Weather Web Service. http://ws.webxml.com.cn/WebServices/WeatherWebService.asmx

  17. MobileCode Web Service. http://ws.webxml.com.cn/WebServices/MobileCodeWS.asmx

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Hongquan Zhu .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2020 Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Zhang, H. et al. (2020). Test Case Generation of Composite Web Services Based on Semantic Matching and Condition Recognition. In: Wang, G., Lin, X., Hendler, J., Song, W., Xu, Z., Liu, G. (eds) Web Information Systems and Applications. WISA 2020. Lecture Notes in Computer Science(), vol 12432. Springer, Cham. https://doi.org/10.1007/978-3-030-60029-7_3

Download citation

  • DOI: https://doi.org/10.1007/978-3-030-60029-7_3

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-030-60028-0

  • Online ISBN: 978-3-030-60029-7

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics