Win a copy of Serverless Applications with Node.js this week in the NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Stephan van Hulst
  • Ron McLeod
  • Tim Moores
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Vijitha Kumara

[HELP] : Creating an object model and establishing test cases.  RSS feed

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A library has a large collection of books organized in different rooms, rows and book-shelves that are all
numbered.
The local librarian is working on an application in which he can register the books and make inventory lists
for a given room, row, or book-shelf. Also, it must be possible to locate a given book by its ISBN number.

Task is to:
- Create an object model that represents the necessary entities.
- Establish a small set of test data.
- Add necessary object collections to enable efficient creation of the inventory lists and locating
books.
- Create objects and populate collections with the test data. Insertion speed of new books is not relevant.
- Establish a set of test cases that verifies the solution against the test data.

How do i create an object model an establish a small set of test data? and establish a set of test cases ?
can someone help me with this?  
 
Sheriff
Posts: 13394
221
Android Debian Eclipse IDE IntelliJ IDE Java Linux Mac Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Joe Farmer wrote:How do i create an object model an establish a small set of test data? and establish a set of test cases ?
can someone help me with this?


My approach would be somewhat backwards: start by identifying tasks / things you want to be able to do (e.g. register books, make inventory lists, find by ISBN, etc.) then look at what information you have that would be related to these activities, then identify ways to test whether a user is able complete a task. Only when that context has been established would I start trying to figure out how to organize the information around objects that would be used to complete a task.

Give that a shot and see what you can come up with then come back and ask detailed questions.
 
Willie Smits increased rainfall 25% in three years by planting trees. Tiny ad:
global solutions you can do in your home or backyard
https://coderanch.com/t/708587/global-solutions-home-backyard
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!