[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to main content

Model-Based Test Cases Generation for Extended Data Flow Coverage Criteria

  • Conference paper
  • First Online:
Software Engineering Methods Design and Application (CSOC 2024)

Abstract

The paper presents methods and algorithms for automatic design of test cases from the formal models of transition systems. Certain specific extended data flow coverage criteria are used as a test goal targets. Particular attention is paid to the problem of infeasible coverage targets, which in fact are unreachable, nevertheless are required for static analysis. Such cases interfere with statistics and make it difficult to measure the completeness of the coverage results obtained. We describe a method for specifying data flow chains and propose algorithms that combine dynamic refinement of the coverage targets with the search for paths satisfying them. In many practical cases, our approach achieves a combinatorial reduction in the number of coverage targets and, if the algorithm is successfully terminated, the completeness of the desired coverage.

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

Access this chapter

Subscribe and save

Springer+ Basic
£29.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
GBP 19.95
Price includes VAT (United Kingdom)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
GBP 139.99
Price includes VAT (United Kingdom)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
GBP 179.99
Price includes VAT (United Kingdom)
  • 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. Odarushchenko O., et al.: Application of formal verification methods in a safety-oriented software development life cycle. In: 13th International Conference on Dependable Systems, Services and Technologies, pp. 1–6 (2023). https://doi.org/10.1109/DESSERT61349.2023.10416448

  2. Paul, S., et al.: Formal verification of safety-critical aerospace systems. IEEE Aeros. Electron. Syst. Mag. 38(5), 72–88 (2023)

    Article  Google Scholar 

  3. Fremont, D., et al.: Formal scenario-based testing of autonomous vehicles: from simulation to the real world. In: IEEE 23rd International Conference on Intelligent Transportation Systems, pp. 1–8 (2020). https://doi.org/10.1109/ITSC45102.2020.9294368

  4. Liu, S., Nakajima, S.: Automatic test case and test oracle generation based on functional scenarios in formal specifications for conformance testing. IEEE Trans. Softw. Eng. 48(2), 691–712 (2022). https://doi.org/10.1109/TSE.2020.2999884

    Article  Google Scholar 

  5. Weigert, T., et al.: Generating test suites to validate legacy systems. In: Fonseca i Casas, P., Sancho, MR., Sherratt, E. (eds.) SAM 2019. Lecture Notes in Computer Science, vol. 11753, pp. 3–23. Springer, Cham (2019). https://doi.org/10.1007/978-3-030-30690-8_1

  6. Gay, G., Staats, M., Whalen, M., Heimdahl, M.: The risks of coverage-directed test case generation. IEEE Trans. Softw. Eng. 41, 803–819 (2015)

    Article  Google Scholar 

  7. Kolchin, A., Potiyenko, S.: Extending data flow coverage to test constraint refinements. In: ter Beek, M.H., Monahan, R. (eds.) Integrated formal methods. IFM 2022. Lecture Notes in Computer Science, vol. 13274. Springer, Cham (2022). https://doi.org/10.1007/978-3-031-07727-2_17

    Chapter  Google Scholar 

  8. Kolchin, A., Potiyenko, S., Weigert, T.: Extending data flow coverage with redefinition analysis. In: IEEE International Conference on Information and Digital Technologies (IDT), Zilina, Slovakia, pp. 293–296 (2021). https://doi.org/10.1109/IDT52577.2021.9497535

  9. Su, T., Ke, W., Miao, W., et al.: A survey on data-flow testing. ACM Comput. Surv. 50, 35 (2017)

    Google Scholar 

  10. Rapps, S., Weyuker, E.: Data flow analysis techniques for test data selection. In: Proceedings of International Conference of Software Engineering, pp. 272–277 (1982)

    Google Scholar 

  11. Ntafos, S.: On required element testing. IEEE Trans. Softw. Eng. 10, 795–803 (1984)

    Article  Google Scholar 

  12. Hong, H., Ural, H.: Dependence testing: extending data flow testing with control dependence. In: Khendek, F., Dssouli, R. (eds.) Testing of Communicating Systems. Lecture Notes in Computer Science, vol. 3502. Springer, Cham (2005). https://doi.org/10.1007/11430230_3

    Chapter  Google Scholar 

  13. Su, T., et al.: Combining symbolic execution and model checking for data flow testing. In: IEEE/ACM 37th IEEE International Conference on Software Engineering, pp. 654–665 (2015). https://doi.org/10.1109/ICSE.2015.81

  14. Martin, T., Kosmatov, N., Prevosto, V., Lemerre, M.: Detection of polluting test objectives for dataflow criteria. In: Dongol, B., Troubitsyna, E. (eds.) Integrated Formal Methods. IFM 2020. Lecture Notes in Computer Science, vol. 12546. Springer, Cham (2020). https://doi.org/10.1007/978-3-030-63461-2_18

    Chapter  Google Scholar 

  15. Marashdih, A., Zaaba, Z., Almufti, S.: The problems and challenges of infeasible paths in static analysis. Int. J. Eng. Technol. 7(4.19), 412–417 (2018)

    Google Scholar 

  16. Lange, T., Neuhäußer, M.R., Noll, T., et al.: IC3 software model checking. Int. J. Softw. Tools Technol. Transf. 22, 135–161 (2020). https://doi.org/10.1007/s10009-019-00547-x

    Article  Google Scholar 

  17. Hessel, A., Petterson, P.: A global algorithm for model-based test suite generation. Electr. Notes Theor. Comput. Sci. 190, 47–59 (2007)

    Article  Google Scholar 

  18. Su, T., et al.: Towards efficient data-flow test data generation. In: Bowen, J.P., Li, Q., Xu, Q. (eds.) Theories of Programming and Formal Methods. Lecture Notes in Computer Science, vol. 14080. Springer, Cham (2023)

    Google Scholar 

  19. Dssouli, R., Khoumsi, A., et al.: Testing the control-flow, data-flow, and time aspects of communication systems: a survey. Adv. Comput. 107, 95–155 (2017)

    Article  Google Scholar 

  20. Trabish, D., Mattavelli, A., Cadar, C.: Chopped symbolic execution. In: Proceedings of ICSE 2018, pp. 350–360 (2018). https://doi.org/10.1145/3180155.3180251

  21. Beyer, D., Gulwani, S., Schmidt, D.: Combining Model Checking and Dataflow Analysis. Handbook of Model Checking, pp. 493–540. Springer, Cham (2018). https://doi.org/10.1007/978-3-319-10575-8

    Book  Google Scholar 

  22. Kolchin A.: A novel algorithm for attacking path explosion in model-based test generation for data flow coverage. In: Proceedings of IEEE 1st International Conference on System Analysis and Intelligent Computing, SAIC, pp. 226–231 (2018). https://doi.org/10.1109/SAIC.2018.8516824

  23. Boonstoppel, P., Cadar, C., Engler, D.: RWset: attacking path explosion in constraint-based test generation. In: Ramakrishnan, C.R., Rehof, J. (eds.) TACAS 2008. LNCS, vol. 4963, pp. 351–366. Springer, Heidelberg (2008). https://doi.org/10.1007/978-3-540-78800-327

    Chapter  Google Scholar 

  24. Kolchin, A.V.: An automatic method for the dynamic construction of abstractions of states of a formal model. Cybernet. Syst. Anal. 46(4), 583–601 (2010). https://doi.org/10.1007/s10559-010-9235-9

    Article  MathSciNet  Google Scholar 

  25. Gallardo, M.M., Merino, P., Panizo, L.: The role of abstraction in model checking. In: Lopez-Garcia, P., Gallagher, J.P., Giacobazzi, R. (eds.) Analysis, Verification and Transformation for Declarative Programming and Intelligent Systems. Lecture Notes in Computer Science, vol. 13160. Springer, Cham (2023). https://doi.org/10.1007/978-3-031-31476-6_8

    Chapter  Google Scholar 

  26. Mariano, M., et al.: Comparing graph-based algorithms to generate test cases from finite state machines. J. Electron. Test. 35, 867–885 (2019). https://doi.org/10.1007/s10836-019-05844-6

    Article  Google Scholar 

  27. Yadzhak, M.: Parallel algorithms for data digital filtering. Cybernet. Syst. Anal. 59, 39–48 (2023). https://doi.org/10.1007/s10559-023-00540-y

    Article  MathSciNet  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Oleksandr Kolchyn .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2024 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

Kolchyn, O., Potiyenko, S. (2024). Model-Based Test Cases Generation for Extended Data Flow Coverage Criteria. In: Silhavy, R., Silhavy, P. (eds) Software Engineering Methods Design and Application. CSOC 2024. Lecture Notes in Networks and Systems, vol 1118. Springer, Cham. https://doi.org/10.1007/978-3-031-70285-3_43

Download citation

Publish with us

Policies and ethics