Skip to main content

Tool for Metamorphic Testing

  • Conference paper
  • First Online:
Theory and Applications of Dependable Computer Systems (DepCoS-RELCOMEX 2020)

Part of the book series: Advances in Intelligent Systems and Computing ((AISC,volume 1173))

Included in the following conference series:

Abstract

Metamorphic testing is an approach to test case generation and also to the test result verification. It is a testing technique that can be successfully used in many domains e.g. web services, computer graphics, simulation and even embedded systems. In metamorphic testing checks are performed to verify whether multiple executions of the program under test fulfil certain necessary properties, called metamorphic relations. Since its first publication, many papers on different aspects of metamorphic appeared in the literature but only one tool for this type of testing was described. We decided to design and implement our own tool and with this tool to examine some properties and challenges of metamorphic testing. In this paper we briefly review metamorphic relations and describe our tool. We also present an example of metamorphic testing with our tool.

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

Access this chapter

Subscribe and save

Springer+ Basic
$34.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or eBook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 129.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 169.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

Similar content being viewed by others

References

  1. Chen, T.Y., Cheung, S.C., Yiu, S.: Metamorphic testing: a new approach for generating next test cases. In: Technical Report HKUST-CS98-01, Department of Computer Science, Hong Kong University of Science and Technology (1998)

    Google Scholar 

  2. Chan, W.K., Chen, T.Y., Lu, H., Tse, T.H., Yau, S.S.: Integration testing of context-sensitive middleware-based applications: A metamorphic approach. Int. J. Softw. Eng. Know. Eng. 16(5), 677–704 (2006)

    Article  Google Scholar 

  3. Chen, T.Y.: Metamorphic testing: a simple method for alleviating the test oracle problem. In: 2015 IEEE/ACM 10th International Workshop on Automation of Software Test, pp. 53–54 (2015)

    Google Scholar 

  4. Hui, Z., Huang, S., Chen, T.Y., Lau, M.F., Ng, S.: Identifying failed test cases through metamorphic testing. In: 2017 IEEE International Symposium on Software Reliability Engineering Workshops (ISSREW), pp. 90–91 (2017)

    Google Scholar 

  5. Chen, L., Cai, L., Liu, J., Liu, Z., Wei, S., Liu, P.: An optimized method for generating cases of metamorphic testing. In: 2012 6th International Conference on New Trends in Information Science, Service Science and Data Mining (ISSDM 2012), pp. 439–443 (2012)

    Google Scholar 

  6. Segura, S., Parejo, J.A., Troya, J., Ruiz-Cortés, A.: Metamorphic testing of RESTful Web APIs. IEEE Trans. Softw. Eng. 44(11), 1083–1099 (2018)

    Article  Google Scholar 

  7. Segura, S., Fraser, G., Sanchez, A.B., Ruiz-Cortés, A.: A survey on metamorphic testing. IEEE Trans. Softw. Eng. 42(9), 805–824 (2016)

    Article  Google Scholar 

  8. Segura, S., Durán, A., Troya, J., Ruiz-Cortés, A.R.: A template-based approach to describing metamorphic relations. In: 2017 IEEE/ACM 2nd International Workshop on Metamorphic Testing (MET), pp. 3–9 (2017)

    Google Scholar 

  9. Lijun, S., Hong, Z.: Generating structurally complex test cases by data mutation: a case study of testing an automated modelling tool. Comput. J. 52(5), 571–588 (2009)

    Article  Google Scholar 

  10. Sun, C., Wang, G., Mu, B., Liu, H., Wang, Z., Chen, T.Y.: Metamorphic testing for web services: framework and a case study. In: 2011 IEEE International Conference on Web Services, pp. 283–290 (2011)

    Google Scholar 

  11. Zhu, H.: JFuzz: a tool for automated java unit testing based on data mutation and metamorphic testing methods. In: Second International Conference on Trustworthy Systems and Their Applications, pp. 8–15 (2015)

    Google Scholar 

  12. Introducing json. http://www.json.org/. Accessed Jan 2020

  13. Junit 5 user guide. https://junit.org/junit5/docs/current/user-guide/. Accessed Jan 2020

  14. Fxml documentation. https://docs.oracle.com/javafx/2/api/javafx/fxml/doc-files/introduction_to_fxml.html. Accessed May 2019

  15. Kamiński, P.: Metamorphic testing. Bachelor thesis, Institute of Computer Science, Warsaw University of Technology (2019). (in Polish)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Ilona Bluemke .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2020 The Editor(s) (if applicable) and The Author(s), under exclusive license to Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Bluemke, I., Kamiński, P. (2020). Tool for Metamorphic Testing. In: Zamojski, W., Mazurkiewicz, J., Sugier, J., Walkowiak, T., Kacprzyk, J. (eds) Theory and Applications of Dependable Computer Systems. DepCoS-RELCOMEX 2020. Advances in Intelligent Systems and Computing, vol 1173. Springer, Cham. https://doi.org/10.1007/978-3-030-48256-5_12

Download citation

Publish with us

Policies and ethics