Object Oriented Information Systems

Working with Design Patterns to Structure Code

Define the test cases for the following system development: Oracle. (n.d.) Cruise Ship Management and Cruise Software.

Several test cases can be defined for this system. We name the most important top level cases and present the format using the login test cases as examples.

  • Register
  • Login
  • View trips
  • Search trips
  • Book cruise
  • Pay for cruise

ID Description Steps Test Data Expected Results Actual Results Status
LC1 Test valid login Enter user
Enter password
Click submit
user=test-user
password=test_pass
User logs in
LC1 Test invalid login Enter user
Enter password
Click submit
user=test-user
password=test_pass
User can't logs in


Read Zhang & Budgen (2012). Which design patterns are used most commonly, and why?

Factory, Composite, Observer, and Visitor are most used in the studies.

The authors assume that the use of composite, although it needs some knowledge in recursion, its application does not produce any particular problems.

The most used patterns offered a good opportunity for triangulation, which is because they are studied using more than one form.


References
Zhang, C. & Budgen, D. (2012) What Do We Know about the Effectiveness of Software Design Patterns?. IEEE Access 38: 1213 - 1231. DOI: https://doi-org.uniessexlib.idm.oclc.org/10.1109/TSE.2011.79