0% found this document useful (0 votes)
29 views1 page

NodeJS CLI Tool Assignment

The document outlines a use case scenario for a library system where a librarian can log in, add, and view books using a single table. It specifies that all logs should be recorded in Sentry and that at least 50% of the code must be covered with unit tests. The main success scenario includes steps for logging in, adding a new book, and viewing the list of books.

Uploaded by

Deshani
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views1 page

NodeJS CLI Tool Assignment

The document outlines a use case scenario for a library system where a librarian can log in, add, and view books using a single table. It specifies that all logs should be recorded in Sentry and that at least 50% of the code must be covered with unit tests. The main success scenario includes steps for logging in, adding a new book, and viewing the list of books.

Uploaded by

Deshani
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Use Case Scenario: Library System with Single Table to Add and Manage Books

Title: Managing Library Books

Primary Actor: Librarian

Goal: Develop a BE Application to Add and View books in the library system using a single table.

* All the logs should be recorded in Sentry.


* At least 50% of the code should be covered with unit tests.

Main Success Scenario:

1. Librarian Logs into the Library System:


o Action: The librarian navigates to the library system login page and enters their username and
password.
o System Response: The system authenticates the user and grants access if the credentials are valid.
If the credentials are invalid, an error message is displayed.
o Precondition: The librarian has a registered account in the system.
o Postcondition: The librarian is logged in and can access the system's features.

2. Librarian Adds a New Book:


o Action: The librarian selects the "Add Book" option and inputs the book details (Title, Author,
ISBN, Publication Year, Genre).
o System Response: The system adds the book to the single table and confirms the addition.
o Postcondition: The book is now listed in the library's collection.

3. Librarian Views the List of Books:


o Action: The librarian selects the "View Books" option.
o System Response: The system displays a list of all books in the library with their details (ID,
Title, Author, ISBN, Publication Year, Genre).

You might also like