Skip to main content

Test Scenarios Generation Using Combined Object-Oriented Models

  • Chapter
  • First Online:
Automated Software Engineering: A Deep Learning-Based Approach

Part of the book series: Learning and Analytics in Intelligent Systems ((LAIS,volume 8))

Abstract

Software Testing using the object-oriented approach is always a challenging job for the researchers in recent days. To produce quality software, Automation of Software Testing plays a vital role. This chapter concentrates on an innovative idea to produce test scenarios by combining UML sequence and state machine diagrams. First, the author designed the case study of the model into its sequence diagram (SD) and state machine diagram (SMD). Subsequently, the SD and SMD are converted into a sequence diagram graph (SDG) and state machine diagram graph (SMDG). Then these diagrams are combined to generate an intermediate graph known as a state-sequence intermediate graph (SSIG). To examine the active performance of the system and to generate the test scenarios, the graph was traversed using a depth-first search (DFS) method. Various coverage criteria like all transition paths, message sequence path coverage, all sate coverage, and an XML parser are used to generate the test scenarios. In this chapter, a case study of the Library book issue system is addressed and the above model is implemented in it. The authors observed that all transition path coverage shows better results in our proposed model.

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 119.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 159.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 159.99
Price excludes VAT (USA)
  • Durable hardcover 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. A. Abdurazik, J. Offutt, in Using UML Collaboration Diagrams for Static Checking and Test Generation. International conference on the unified modeling language (Springer, Berlin, Heidelberg, 2000), pp. 383–395

    Chapter  Google Scholar 

  2. R. Bruce Mall, Fundamentals of Software Engineering (PHI Learning Pvt. Ltd., India, 2018)

    Google Scholar 

  3. P.C. Jorgensen, Software Testing: A Craftsman’s Approach. (Auerbach Publications, 2013)

    Google Scholar 

  4. S. Pradhan, M. Ray, S.K. Swain, Transition coverage based test case generation from state chart diagram. J. King Saud Univ. Comput. Inf. Sci. (2019)

    Google Scholar 

  5. R.K. Sahoo, S.K. Nanda, D.P. Mohapatra, M.R. Patra, Model driven test case optimization of UML combinational diagrams using hybrid bee colony algorithm. Int. J. Intell. Syst. Appl. 9(6), 43 (2017)

    Google Scholar 

  6. B. Sahu, in Smart Techniques of Test Coverage of Object Oriented Program. National Conference on Recent Advances on Business Intelligence and Data Mining” IJCST, RABIDM (2013)

    Google Scholar 

  7. A.K. Jena, S.K. Swain, D.P. Mohapatra, in A Novel Approach for Test Case Generation from UML Activity Diagram. 2014 International Conference on Issues and Challenges in Intelligent Computing Techniques (ICICT) (IEEE, 2014), pp. 621–629

    Google Scholar 

  8. M. Shirole, R. Kumar, in Test Scenario Selection for Concurrency Testing from UML Models. 2015 Eighth International Conference on Contemporary Computing (IC3) (IEEE, 2015), pp. 531–536

    Google Scholar 

  9. S.K. Swain, D.P. Mohapatra, Test case generation from Behavioral UML Models. Int. J. Comput. Appl. 6(8), 5–11 (2010)

    Google Scholar 

  10. M. Prasanna, K.R. Chandran, Automatic test case generation for UML object diagrams using genetic algorithm. Int. J. Adv. Soft Comput. Appl. 1(1), 19–32 (2009)

    Google Scholar 

  11. I. Septian, R.S. Alianto, F.L. Gaol, Automated test case generation from UML activity diagram and sequence diagram using depth first search algorithm. Procedia Comput. Sci. 116, 629–637 (2017)

    Article  Google Scholar 

  12. J. Cvetković, M. Cvetković, Evaluation of UML diagrams for test cases generation: case study on depression of internet addiction. Phys. A 525, 1351–1359 (2019)

    Article  Google Scholar 

  13. Y.M. Choi, D.J. Lim, Automatic feasible transition path generation from UML state chart diagrams using grouping genetic algorithms. Inf. Softw. Technol. 94, 38–58 (2018)

    Article  Google Scholar 

  14. S. Vasilache, J. Tanaka, in Synthesis of State Machines from Multiple Interrelated Scenarios Using Dependency Diagrams. 8th World Multiconference on Systemics, Cybernetics and Informatics (SCI 2004), Orlando, FL (2004), pp. 49–54

    Google Scholar 

  15. R. Swain, V. Panthi, P.K. Behera, D.P. Mohapatra, Automatic test case generation from UML state chart diagram. Int. J. Comput. Appl. 42(7), 26–36 (2012)

    Google Scholar 

  16. V. Panthi, D.P. Mohapatra, in Automatic Test Case Generation Using Sequence Diagram. Proceedings of International Conference on Advances in Computing (Springer, New Delhi, 2013), pp. 277–284

    Google Scholar 

  17. S.S. Panigrahi, S. Shaurya, P. Das, A.K. Swain, A.K. Jena, in Test Scenarios Generation Using UML Sequence Diagram. 2018 International Conference on Information Technology (ICIT) (IEEE, 2018), pp. 50–56

    Google Scholar 

  18. P.K. Arora, R. Bhatia, Agent-based regression test case generation using class diagram, use cases and activity diagram. Procedia Comput. Sci. 125, 747–753 (2018)

    Article  Google Scholar 

  19. R.K. Sahoo, D. Ojha, D.P. Mohapatra, M.R. Patra, Automated test case generation and optimization: a comparative review. Int. J. Comput. Sci. Inf. Technol 8(5), 19–32 (2016)

    Google Scholar 

  20. P. Samuel, R. Mall, A.K. Bothra, Automatic test case generation using unified modeling language (UML) state diagrams. IET Softw. 2(2), 79–93 (2008)

    Article  Google Scholar 

  21. S.S. Priya, P.S.K. Malarchelvi, Test path generation using uml sequence diagram. Int. J. Adv. Res. Comput. Sci. Softw. Eng. 3(4) (2013)

    Google Scholar 

  22. M. Sarma, R. Mall, in Automatic Test Case Generation from UML Models. 10th International Conference on Information Technology (ICIT 2007) (IEEE, 2007), pp. 196–201

    Google Scholar 

  23. A.K. Jena, S.K. Swain, D.P. Mohapatra, Test case creation from UML sequence diagram: a soft computing approach, in Intelligent Computing, Communication and Devices (Springer, New Delhi, 2015), pp. 117–126

    Google Scholar 

  24. A.K. Jena, S.K. Swain, D.P. Mohapatra, Model based test case generation from uml sequence and interaction overview diagrams, in Computational Intelligence in Data Mining-Volume, vol. 2 (Springer, New Delhi, 2015), pp. 247–257

    Google Scholar 

  25. A.K. Jena, S.K. Swain, D.P. Mohapatra, Model-based test-suite minimization using modified condition/decision coverage (mc/dc). Int. J. Softw. Eng. Appl. 9(5), 61–74 (2015)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Satya Sobhan Panigrahi .

Rights and permissions

Reprints and permissions

Copyright information

© 2020 Springer Nature Switzerland AG

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Panigrahi, S.S., Jena, A.K. (2020). Test Scenarios Generation Using Combined Object-Oriented Models. In: Automated Software Engineering: A Deep Learning-Based Approach. Learning and Analytics in Intelligent Systems, vol 8. Springer, Cham. https://doi.org/10.1007/978-3-030-38006-9_4

Download citation

Publish with us

Policies and ethics