Table of Contents

  1. Acknowledgements
  2. Setting up, getting started
  3. Design
    1. Architecture
    2. UI component
    3. Logic component
    4. Model component
    5. Storage component
    6. Common classes
  4. Implementation Highlights
    1. Checkout Feature
    2. View Feature
    3. Import Feature
    4. Export Feature
    5. Find Feature Improvements
  5. Documentation, logging, testing, configuration, dev-ops
  6. Appendix A: Requirements
    1. Product scope
    2. User stories
    3. Use cases
    4. Non-Functional Requirements
    5. Glossary
  7. Appendix B: Instructions for Manual Testing
    1. Launch and shutdown
    2. Adding an applicant
    3. Viewing the detail of an applicant
    4. Editing an applicant
    5. Deleting an applicant
    6. Locating applicants by field
    7. Importing applicants from an external JSON file
    8. Exporting displayed list to a JSON file
    9. Checkout a new or existing list

1. Acknowledgements

2. Setting up, getting started

Refer to the guide Setting up and getting started.

3. Design

:bulb: Tip: The .puml files used to create diagrams in this document can be found in the diagrams folder. Refer to the PlantUML Tutorial at se-edu/guides to learn how to create and edit diagrams.

3.1 Architecture

The Architecture Diagram given above explains the high-level design of the App.

Given below is a quick overview of main components and how they interact with each other.

Main components of the architecture

Main has two classes called Main and MainApp. It is responsible for,

  • At app launch: Initializes the components in the correct sequence, and connects them up with each other.
  • At shut down: Shuts down the components and invokes cleanup methods where necessary.

Commons represents a collection of classes used by multiple other components.

The rest of the App consists of four components.

  • UI: The UI of the App.
  • Logic: The command executor.
  • Model: Holds the data of the App in memory.
  • Storage: Reads data from, and writes data to, the hard disk.

How the architecture components interact with each other

The Sequence Diagram below shows how the components interact with each other for the scenario where the user issues the command delete 1.

Each of the four main components (also shown in the diagram above),

  • defines its API in an interface with the same name as the Component.
  • implements its functionality using a concrete {Component Name}Manager class (which follows the corresponding API interface mentioned in the previous point.)

For example, the Logic component defines its API in the Logic.java interface and implements its functionality using the LogicManager.java class which follows the Logic interface. Other components interact with a given component through its interface rather than the concrete class (reason: to prevent outside component’s being coupled to the implementation of a component), as illustrated in the (partial) class diagram below.

The sections below give more details of each component.

3.2 UI component

API : Ui.java

Structure of the UI Component

The UI consists of a MainWindow that is made up of parts e.g.CommandBox, ResultDisplay, PersonListPanel, PersonViewPanel, StatusBarFooter etc. All these, including the MainWindow, inherit from the abstract UiPart class which captures the commonalities between classes that represent parts of the visible GUI.

The UI component uses the JavaFx UI framework. The layout of these UI parts are defined in matching .fxml files that are in the src/main/resources/view folder. For example, the layout of the MainWindow is specified in MainWindow.fxml

The UI component,

  • executes user commands using the Logic component.
  • listens for changes to Model data so that the UI can be updated with the modified data.
  • keeps a reference to the Logic component, because the UI relies on the Logic to execute commands.
  • depends on some classes in the Model component, as it displays Person object residing in the Model.

The Graphical UI that will be displayed to user upon launching InternConnect is depicted below.

3.3 Logic component

API : Logic.java

Here’s a (partial) class diagram of the Logic component:

How the Logic component works:

  1. When Logic is called upon to execute a command, it uses the AddressBookParser class to parse the user command.
  2. This results in a Command object (more precisely, an object of one of its subclasses e.g., AddCommand) which is executed by the LogicManager.
  3. The command can communicate with the Model when it is executed (e.g. to add an applicant).
  4. The result of the command execution is encapsulated as a CommandResult object which is returned from Logic.

The Sequence Diagram below illustrates the interactions within the Logic component for the execute("delete 1") API call.

Interactions Inside the Logic Component for the `delete 1` Command

:information_source: Note: The lifeline for DeleteCommandParser should end at the destroy marker (X) but due to a limitation of PlantUML, the lifeline reaches the end of diagram.

Here are the other classes in Logic (omitted from the class diagram above) that are used for parsing a user command:

How the parsing works:

  • When called upon to parse a user command, the AddressBookParser class creates an XYZCommandParser (XYZ is a placeholder for the specific command name e.g., AddCommandParser) which uses the other classes shown above to parse the user command and create a XYZCommand object (e.g., AddCommand) which the AddressBookParser returns back as a Command object.
  • All XYZCommandParser classes (e.g., AddCommandParser, DeleteCommandParser, …) inherit from the Parser interface so that they can be treated similarly where possible e.g, during testing.

3.4 Model component

API : Model.java

The Model component,

  • stores the address book data i.e., all Person objects (which are contained in a UniquePersonList object).
  • stores the currently ‘selected’ Person objects (e.g., results of a search query) as a separate filtered list which is exposed to outsiders as an unmodifiable ObservableList<Person> that can be ‘observed’ e.g. the UI can be bound to this list so that the UI automatically updates when the data in the list change.
  • stores a UserPref object that represents the user’s preferences. This is exposed to the outside as a ReadOnlyUserPref objects.
  • does not depend on any of the other three components (as the Model represents data entities of the domain, they should make sense on their own without depending on other components)
:information_source: Note: An alternative (arguably, a more OOP) model is given below. It has a Tag list in the AddressBook, which Person references. This allows AddressBook to only require one Tag object per unique tag, instead of each Person needing their own Tag objects.

3.5 Storage component

API : Storage.java

The Storage component,

  • can save both address book data and user preference data in json format, and read them back into corresponding objects.
  • inherits from both AddressBookStorage and UserPrefStorage, which means it can be treated as either one (if only the functionality of only one is needed).
  • depends on some classes in the Model component (because the Storage component’s job is to save/retrieve objects that belong to the Model)

3.6 Common classes

Classes used by multiple components are in the seedu.addressbook.commons package.

4. Implementation Highlights

This section describes some noteworthy details on how certain features are implemented.

4.1 Checkout Feature

Implementation

The checkout mechanism is facilitated by CheckoutCommand that extends Command. It is supported by CheckoutCommandParser and AddressBookFile.

It implements the following operations:

  • CheckoutCommand#execute() — Executes the command to switch to a particular list stored in the data folder parsed from the userInput using CheckoutCommandParser#parse().
  • CheckoutCommand#equals() — Checks whether an instance of a CheckoutCommand is equal to another, by checking:
    • Whether they are the same instance
    • Whether the specified list is the same in two different instances

Given below is an example usage scenario and how the checkout mechanism behaves at each step.

Step 1. The user launches the application for the first time. The Model and Storage will be initialized with the default list.

CheckoutState0

Step 2. The user executes checkout june-2022 command to load the JSON june-2022.json to the storage. The checkout command calls CheckoutCommandParser#parse(), which checks if the user input is valid, which in turn calls CheckoutCommand#execute() if it is valid. If the list does not exist in the data folder, the list be created and populated with sample data. Model and Storage are then loaded with the specified list and the call returns a CommandResult to Logic.

CheckoutState1

Step 3. The user executes checkout addressbook command to load the default JSON addressbook.json to the storage. The checkout command calls CheckoutCommandParser#parse(), which checks if the user input is valid, which in turn calls CheckoutCommand#execute() if it is valid. If the list does not exist in the data folder, the list be created and populated with sample data. Model and Storage are then loaded with the specified list and the call returns a CommandResult to Logic.

CheckoutState2

The following sequence diagram shows how the checkout operation works:

CheckoutSequenceDiagram

The following activity diagram summarizes what happens when a user executes a checkout command:

CheckoutActivityDiagram

Design considerations

Aspect: How checkout executes:

  • Alternative 1 (current choice): Tell the instance of Storage and Model to load the specified AddressBook.
    • Pros: Will use less memory (e.g. for each AddressBook, just reuse the current instance of Storage and Model).
    • Cons: We must ensure that there are no unintended side effects to the modification of both instances. (e.g. Coupling and Dependencies)
  • Alternative 2 (previous choice): Create a new instance of Storage and Model that loads the specified AddressBook and set it to be used by the application.
    • Pros: Faster to switch between AddressBook since they are already loaded into memory.
    • Cons: May have performance issues in terms of memory usage because a new instance is created for every new AddressBook.

4.2 View Feature

Implementation

To allow users to view the details of an applicant, a new class ViewCommand is added that extends Command.

It implements the following operations:

  • ViewCommand#execute() — Executes the command to view a particular applicant in the address book based on the Index that was parsed from the user input using the parse method of ViewCommandParser.
  • ViewCommand#equals() — Checks whether an instance of a ViewCommand is equal to another, by checking:
    • Whether they are the same instance
    • Whether the viewed applicant is the same in two different instances

Another FilteredList<Person> is created in ModelManager to facilitate listening of the viewed applicant. Additionally, PersonViewPanel.java, PersonViewCard.java, and their respective .fxml files are also created.

To view the details of an applicant, the user can run the view command from the command box. The input is parsed and handled by the following classes:

  • AddressBookParser, that parses the input and checks whether it contains the word view, which then proceeds to call ViewCommandParser#parse().
  • ViewCommandParser, that parses the input to create Index of the applicant to be viewed, and returns a ViewCommand to be executed by the LogicManager.
    • If the index provided is invalid (e.g. more than that of the displayed list), it will be handled by ViewCommand upon execution.

Given below is an example success scenario and how the view mechanism behaves at each step.

  1. The user executes view INDEX
  2. LogicManager calls AddressBookParser#parseCommand(userInput)
  3. LogicManager calls ViewCommand#execute(model, storage)
  4. ViewCommand retrieves currently displayed list from Model by calling Model#getFilteredPersonList()
  5. ViewCommand creates a new personToView by retrieving the applicant at the current Index
  6. ViewCommand creates a new SamePersonPredicate to check if the Person to be viewed is the same as personToView
  7. ViewCommand updates the FilteredList<Person> in Model to reflect personToView by evaluating the SamePersonPredicate
  8. A CommandResult object indicating that the view is successful will be created

The following sequence diagram shows how the view command works:

ViewSequenceDiagram

:information_source: Note: The lifeline for ViewCommandParser should end at the destroy marker (X) but due to a limitation of PlantUML, the lifeline reaches the end of diagram.

Design considerations

Aspect: How the UI window is split to show a panel of list of all applicants and another panel to view details of an applicant:

  • Alternative 1 (current implementation): Window is split into half below the result display box.
    • Pros: Symmetrical and looks more regular.
    • Cons: Pane to view details of an applicant is smaller. guiDesignConsideration1
  • Alternative 2: Window is split from the top, so both command box and result display box are halved.
    • Pros: Can have a larger pane to view details of an applicant.
    • Cons: Need to scroll more to see typed command and result displayed. guiDesignConsideration2

4.3 Import Feature

The import feature allows the user to append their list with another list imported from an external JSON file, instead of asking them to write the applicants one by one into the command line.

Implementation

The import feature is done through a ImportCommand that extends Command. It is supported by ImportCommandParser and JsonAddressBookStorage.

Given below is an example success scenario and how the import mechanism behaves at each step.

  1. The user executes import fileName.json.
  2. LogicManager calls AddressBookParser#parseCommand(userInput).
  3. LogicManager calls ImportCommand#execute(model, storage).
  4. ImportCommand creates aJsonAddressBookStorage object using the specified file, and calls JsonAddressBookStorage#readAddressBook() to create the AddressBook that is going to be appended.
  5. ImportCommand then calls Model#appendAddressBook(toAppend) to append it to the original list.
  6. A CommandResult object indicating that the import command is successful will be created.

The following sequence diagram shows how the import command works:

ImportSequenceDiagram

:information_source: Note: The lifeline for ImportCommandParser should end at the destroy marker (X) but due to a limitation of PlantUML, the lifeline reaches the end of diagram.

Design Considerations

Aspect: What format should the imported file be

  • Alternative 1 (current implementation): We use the current addressbook.json format.
    • Pros:
      • Same format as the data file, meaning 1 less format to remember.
      • Can be read with current methods.
      • Consistent file formatting across the app’s files.
    • Cons:
      • It may take some time for user to get used to the format.
  • Alternative 2: We use a txt file with a new format
    • Pros:
      • The format may be easier to remember, as it does not have JSON file restrictions.
    • Cons:
      • We need to implement new methods to read the txt file.
      • The format is not consistent with the rest of the app’s files.

4.4 Export Feature

The export feature allows the user to export the displayed list in InternConnect to a JSON file.

Implementation

exportCommand class is used in the execution of export command. Storage#exportDisplayedListAddressBook(displayedListAddressBook, filePath) is called to save the JSON file in data/export/ folder.

Given below is an example success scenario and how the export mechanism behaves at each step.

  1. The user executes export
  2. LogicManager calls AddressBookParser#parseCommand(userInput)
  3. LogicManager calls ExportCommand#execute(model, storage)
  4. ExportCommand gets current DateTime and use it for the output JSON file name
  5. ExportCommand retrieves the displayedList from model by calling Model#getFilteredPersonList()
  6. ExportCommand calls Storage#exportDisplayedListAddressBook(displayedListAddressBook, filePath)
  7. The displayed list is stored as a JSON file in data/export/<currentDateTime>.json
  8. A CommandResult object indicating that the export command is successful will be created

The following sequence diagram shows how the export command works:

ExportSequenceDiagram

Design Considerations

Aspect: Where to save the exported JSON file

  • Alternative 1 (current implementation): We save the files in the data/export/ folder and use <currentDateTime>.json as the file name.
    • Pros:
      • Location for all exported JSON files is in a single folder.
      • Naming format for all exported JSON files is fixed.
    • Cons:
      • Users will not be able to save the files where they like.
      • Users will be able to name the JSON file as they wish.
  • Alternative 2: User specifies where to save the JSON file and what to name the file.
    • Pros:
      • Users will be able to save the JSON file where they like.
      • Users will be able to name the JSON file as they wish.
    • Cons:
      • Harder to implement since there will be a lot of cases to cover, e.g. if the specified path is not in JSON format or not a valid file path or file already exists etc.
      • Quite messy since the users can specify a completely different file path/directory everytime they execute export command.
  • Alternative 3: We save the files in the data/export/ folder and user specifies only the file name.
    • Pros:
      • Location for all exported JSON files is in a single folder.
      • Users will be able to name the JSON file as they wish.
    • Cons:
      • Harder to implement since there will be a lot of cases to cover, e.g. if the specified file name is not in JSON format or file already exists etc.
      • Users will not be able to save the files where they like.

4.5 Find Feature Improvements

The find feature currently allows the user to search by name among all applicants in store by InternConnect. We want to improve onto this feature to allow Users to search by any possible field of choice

Implementation

Currently, the findCommand class is used in the execution of find command. The command is then parsed accordingly, with a NameContainsKeywordsPredicate as an argument to the command. We now want to extend this with 2 changes:

  1. Add a predicate for each appropriate attribute
  2. Modify the Parser to appropriately choose the predicates based on a set syntax for its arguments
  3. Modify the FindCommand to take in the list of chosen predicates instead of a single predicate
  4. Combine the predicates into a single predicate to filter the displayed list by

Given below is an example success scenario and how the find mechanism behaves at each step.

  1. The user executes find.
  2. LogicManager calls AddressBookParser#parseCommand(userInput).
  3. AddressBookParser calls FindCommandParser#parse(userInput).
  4. FindCommandParser parses the arguments and creates a find command with its associated list of predicates to search by
  5. LogicManager calls FindCommand#execute(model, storage).
  6. FindCommand combines the list of predicates into a single predicate, and calls Model#updateFilteredPersonList(predicate).
  7. FindCommand updates the displayedList from model to display only the Applicants that match the predicate.

The following sequence diagram shows how the find command works:

FindSequenceDiagram

:information_source: Note: The lifeline for FindCommandParser should end at the destroy marker (X) but due to a limitation of PlantUML, the lifeline reaches the end of diagram.

Design Considerations

Aspect: Dealing with multiple predicates

  • Alternative 1 (Current Implementation): Combines all the predicates into a single predicate
    • Pros:
      • Consistent with the current implementation of find, which uses a single predicate
      • Creation of specific predicate for each field type, allows for customization of each field’s search implementation
      • Can combine the predicates by OR or AND search as the developer intends for
      • Modular design reduces coupling, and allows for easy extension and testing of the find command
    • Cons:
      • Requires creation of predicate for each field type, can be tedious to implement and test
      • Requires the developer to decide how to combine the predicates and to decide the search type for each field, which reduces customizability of the search query for the user.
  • Alternative 2: Empower user to create predicates themselves, and how they want to combine and search the list with their created predicates
    • Pros:
      • Allows for greater customizability of the search query for the user
      • Allows for greater flexibility of the search query for the user
    • Cons:
      • Unintuitive for a first time user to use. Requires the user to know the syntax creating a predicate, and requires the user to know how to combine predicates as they intend for which can be tedious to learn
      • Security of program will go down, as we allow user to input functions that will be evaluated by the program. Malicious input may be able to compromise the program.

Aspect: Different search types

  • Alternative 1: we create a new command for each type of search
    • Pros:
      • All commands current follow this design, allows for consistency in code structure, and follows current OOP design conventions.
      • Naming format for all commands are fixed.
    • Cons:
      • Users will expect the find command to be under the same category/usage scenario as a findAll command and a findSubstring command
  • Alternative 2: flag is used within the find command to allow usage to select the type of search they want to perform
    • Pros:
      • Users who are already familiar with the find command can extend further its power and functionality with flags without “relearning” a new syntax for a different command.
      • Users will find it intuitive that a find command is the main overlying command, and within its syntax they can change the way its used, similar to how current CLI commands are implemented
      • Future commands which want to use flags can build onto the newly restructured code
    • Cons:
      • Harder to implement since a flag is a brand-new functionality which other commands do not have. Coupled classes have to be modified accordingly, such as the relevant parser classes and argumentTokenizer/Multimap
      • Flags introduce the possibility for more input types to consider, and these affects the inputs that users can use in all commands
      • Requires restructuring old code, which will increase testing time and possibility of introducing bugs into existing code
  • Alternative 3 (current implementation): Choose a search type for each field type
    • Pros:
      • Allow for multiple field searches where the search within each field is curated to best search the available field values
      • Intuitive and easy for Users to use
      • Less syntax and user input required in comparison to alternative 2
    • Cons:
      • Search type for the field may not be how the User wants to search

5. Documentation, logging, testing, configuration, dev-ops

6. Appendix A: Requirements

6.1 Product scope

Target user profile:

  • is an internship campus recruiter
  • has a need to manage a significant number of applicants
  • prefer desktop apps over other types
  • can type fast
  • prefers typing to mouse interactions
  • is reasonably comfortable using CLI apps

Value proposition: a one-stop, convenient, and efficient platform to manage and empower how internship campus recruiters work with their applicants’ data. Say goodbye to opening multiple windows to retrieve the information you need and focus on what matters more: matching the right people for the right job.

6.2 User stories

Priorities: High (must have) - * * *, Medium (nice to have) - * *, Low (unlikely to have) - *

Priority As a … I want to … So that I can …
* * * new user ask for instructions on how to use the app by inputting a command to the query learn how to use the app fully
* * * new user start the list with a sample data play around and see how the app works
* * * user add new applicants  
* * * user edit an applicant keep my list updated
* * * user view the details of the applicant I am interested in  
* * * user list all my current applicants  
* * * user delete an applicant remove entries that I no longer need
* * * experienced user edit the data file manually efficiently edit numerous data at once
* * user ready to start using the app clear all current data get rid of sample/experimental data I used for exploring the app or quickly erase all of my applicant’s data
* * user search for applicants by fields quickly find the applicants that I need without having to go through the entire list
* * user import applicants’ data from a human editable file mass-add my data quickly and conveniently without hassle
* * user export the current list of applicants that I have share my data with others
* * user have multiple lists of applicant and checkout between them work with different sets of data
* user give customised tag to applicants label them accordingly
* user close the app  

6.3 Use cases

(For all use cases below, the System is the InternConnect and the Actor is the user, unless specified otherwise)

Use case: UC01 - List all applicants

MSS

  1. User requests to list all applicants
  2. InternConnect shows all applicants

    Use case ends.

Use case: UC02 - Add an applicant

MSS

  1. User requests to add an applicant with its parameters
  2. InternConnect adds the applicant
  3. InternConnect shows newly added applicant, as well as the updated list of applicants

    Use case ends.

Extensions

  • 1a. The given format is invalid.

    • 1a1. InternConnect shows an error message.

      Use case ends.

  • 1b. The specified applicant is a duplicate to another applicant in the list.

    • 1b1. InternConnect shows an error message.

      Use case ends.

  • 1c. The specified applicant has an invalid data value.

    • 1c1. InternConnect shows an error message.

      Use case ends.

Use case: UC03 - Edit an applicant

MSS

  1. User requests to list all applicants (UC01) or find applicants by field (UC06)
  2. User requests to modify an applicant at a certain index with its parameters
  3. InternConnect modifies the applicant
  4. InternConnect shows the updated applicant

    Use case ends.

Extensions

  • 1a. The list is empty.

    Use case ends.

  • 2a. The given format is invalid.

    • 2a1. InternConnect shows an error message.

      Use case ends.

  • 2b. The given index is not a positive integer or is out of bounds.

    • 2b1. InternConnect shows an error message.

      Use case ends.

  • 2c. The specified applicant is a duplicate to another applicant in the list.

    • 2c1. InternConnect shows an error message.

      Use case ends.

  • 2d. The specified applicant has an invalid data value.

    • 2d1. InternConnect shows an error message.

      Use case ends.

  • 2e. No valid parameters were given.

    • 2e1. InternConnect shows an error message.

      Use case ends.

Use case: UC04 - Delete an applicant

MSS

  1. User requests to list all applicants (UC01) or find applicants by field (UC06)
  2. User requests to delete an applicant at a certain index in the list
  3. InternConnect deletes the applicant
  4. InternConnect shows the updated list of applicants

    Use case ends.

Extensions

  • 1a. The list is empty.

    Use case ends.

  • 2a. The given format is invalid.

    • 2a1. InternConnect shows an error message.

      Use case ends.

  • 2b. The given index is not a positive integer or is out of bounds.

    • 2b1. InternConnect shows an error message.

      Use case ends.

Use case: UC05 - View an applicant

MSS

  1. User requests to list all applicants (UC01) or find applicants by field (UC06)
  2. User requests to view an applicant at a certain index in the list
  3. InternConnect shows the detailed data of the applicant

    Use case ends.

Extensions

  • 1a. The list is empty.

    Use case ends.

  • 2a. The given format is invalid.

    • 2a1. InternConnect shows an error message.

      Use case ends.

  • 2b. The given index is not a positive integer or is out of bounds.

    • 2b1. InternConnect shows an error message.

      Use case ends.

Use case: UC06 - Find applicants by field

MSS

  1. User requests to list all applicants (UC01)
  2. User requests to find all applicants with matching keywords in its specified fields
  3. InternConnect lists all applicants who match the request

Use case ends.

Extensions

  • 1a. The list is empty.

    Use case ends.

  • 2a. The given format is invalid.

    • 2a1. InternConnect shows an error message.

      Use case ends.

  • 2b. No valid parameters were given.

    • 2b1. InternConnect shows an error message.

      Use case ends.

Use case: UC07 - Import applicants from an external JSON file

MSS

  1. User requests to import applicants from a JSON file
  2. InternConnect adds all applicants
  3. InternConnect shows the updated list of applicants

    Use case ends.

Extensions

  • 1a. The given format is invalid.

    • 1a1. InternConnect shows an error message.

      Use case ends.

  • 1b. The given file name does not exist, is invalid or is not a file in JSON format.

    • 1b1. InternConnect shows an error message.

      Use case ends.

  • 1c. The given file has invalid value, incorrect format, and/or duplicate applicants.

    • 1c1. InternConnect shows an error message and creates a template file.

      Use case ends.

Use case: UC08 - Export displayed list to a JSON file

MSS

  1. User requests to list all applicants (UC01) or find applicants by field (UC06)
  2. User requests to export displayed list to a JSON file
  3. InternConnect exports displayed list to a JSON file

    Use case ends.

Use case: UC09 - Checkout a JSON file

MSS

  1. User requests to checkout a JSON file
  2. InternConnect loads all applicants from the file.
  3. InternConnect displays the loaded applicants.

    Use case ends.

Extensions

  • 1a. The given format is invalid.

    • 1a1. InternConnect shows an error message.

      Use case ends.

  • 1b. The given file name does not exist, is invalid or is not a file in JSON format..

    • 1b1. InternConnect creates a new JSON file with the given file name.
    • 1b2. InternConnect fills the data with sample data.

      Use case resumes from step 2.

  • 1c. The given file has invalid value, incorrect format, and/or duplicate applicants.

    • 1c1. InternConnect wipes all data from the file.
    • 1c2. InternConnect fills the data with an empty data.

      Use case resumes from step 2.

Use case: UC10 - Exit

MSS

  1. User requests to exit from InternConnect
  2. InternConnect is closed

    Use case ends.

Use case: UC11 - Help

MSS

  1. User requests for help
  2. InternConnect shows a pop-up window with the link to the User Guide

    Use case ends.

6.4 Non-Functional Requirements

  1. Should work on any mainstream OS as long as it has Java 11 or above installed.
  2. Should be able to hold up to 1000 applicants without a noticeable sluggishness in performance for typical usage.
  3. A user with above average typing speed for regular English text (i.e. not code, not system admin commands) should be able to accomplish most of the tasks faster using commands than using the mouse.
  4. GUI should be color-blind friendly
  5. Data should be stored locally and not use any database management system.
  6. The application should work with a single JAR file, and should work without requiring an installer.
  7. The application size should not exceed 100MB.
  8. Application should not use more than 4GB of RAM.
  9. The product should be for a single user i.e. (not a multi-user product).
  10. The data should be stored locally and should be in a human editable text file.
  11. The GUI should work well (i.e., should not cause any resolution-related inconveniences to the user) for standard screen resolutions 1920x1080 and higher, and for screen scales 100% and 125%.
  12. In addition, the GUI should be usable (i.e., all functions can be used even if the user experience is not optimal) for resolutions 1280x720 and higher, and for screen scales 150%.

6.5 Glossary

  • Applicant: An applicant refers to a person who has applied for a job.
  • Job: A job opening the applicant applied for
  • Command Line Interface (CLI): Text-based user interface
  • Graphical User Interface (GUI): Graphic-based user interface
  • Mainstream OS: Windows, Linux, Unix, OS-X
  • Main Success Scenario (MSS): Describes the most straightforward interaction for a given use case, which assumes that nothing goes wrong

7. Appendix B: Instructions for manual testing

Given below are instructions to test the app manually.

:information_source: Note: These instructions only provide a starting point for testers to work on; testers are expected to do more exploratory testing.

7.1 Launch and shutdown

  1. Initial launch

    1. Download the jar file and copy into an empty folder

    2. Double-click the jar file expected: Shows the GUI with a set of sample applicants.

  2. Saving window preferences

    1. Resize the window to an optimum size. Move the window to a different location. Close the window.

    2. Re-launch the app by double-clicking the jar file.
      Expected: The most recent window size and location is retained.

7.2 Adding an applicant

  1. Adding an applicant to InternConnect

    1. Prerequisites: No applicant with the email johnd@example.com

    2. Test case: add n/John Doe p/98765432 e/johnd@example.com a/311, Clementi Ave 2, #02-25 c/3.50/4.00 g/male u/Nanyang Polytechnic gd/05-2024 m/Computer Science ji/J12300 jt/Software Engineer Intern t/rejected t/KIV
      Expected: An applicant named John Doe is added. Details of the added applicant shown in the view panel. Success message shown in the status message.

  2. Adding a duplicate applicant to InternConnect

    1. Prerequisites: There exists an applicant with email johndoe@example.com and jobID J12300

    2. Test case: add n/John Doe p/98765432 e/johndoe@example.com a/311, Clementi Ave 2, #02-25 c/3.50/4.00 g/male u/Nanyang Polytechnic gd/05-2024 m/Computer Science ji/J12300 jt/Software Engineer Intern t/rejected t/KIV
      Expected: No applicant is added. Error details shown in the status message.

  3. Adding an applicant with not all parameter specified

    1. Prerequisites: None

    2. Test case: add n/John Doe
      Expected: No applicant is added. Error details shown in the status message.

  4. Other incorrect add commands to try: add, add 1
    Expected: No applicant is added. Error details shown in the status message.

7.3 Viewing the detail of an applicant

  1. Viewing an existing applicant in the currently displayed list

    1. Prerequisites: The displayed list contains at least one applicant

    2. Test case: view 1
      Expected: Details of the first applicant in the list shown in the view panel. Success message shown in the status message.

  2. Viewing an empty displayed list

    1. Prerequisites: The displayed list is empty

    2. Test case: view 1
      Expected: No applicant is viewed. Error details shown in the status message.

  3. Viewing a non-positive index

    1. Prerequisites: List all applicants using the list command. Multiple applicants in the list.

    2. Test case: view 0
      Expected: No applicant is viewed. Error details shown in the status message.

  4. Other incorrect view commands to try: view, view john, view x(where x is larger than the list size)
    Expected: No applicant is viewed. Error details shown in the status message.

7.4 Editing an applicant

  1. Editing at least one parameter of an applicant on InternConnect

    1. Prerequisites: One applicant in the application.

    2. Test case: edit 1 u/NUS
      Expected: The university of the applicant in the first index is changed to NUS. Details of the first applicant in the list shown in the view panel. Success message shown in the status message.

    3. Test case: edit 1 u/NUS p/12345678 g/male
      Expected: The university, phone number, and gender of the applicant in the first index is changed to NUS, 12345678, and male respectively. Details of the first applicant in the list shown in the view panel. Success message shown in the status message.

7.5 Deleting an applicant

  1. Deleting an applicant while all applicants are being shown

    1. Prerequisites: List all applicants using the list command. Multiple applicants in the list.

    2. Test case: delete 1
      Expected: First applicant is deleted from the list. Details of the deleted applicant shown in the status message. Success message shown in the status message.

  2. Deleting a non-positive index

    1. Prerequisites: List all applicants using the list command. Multiple applicants in the list.

    2. Test case: delete 0
      Expected: No applicant is deleted. Error details shown in the status message.

  3. Other incorrect delete commands to try: delete, delete john, delete x(where x is larger than the list size)
    Expected: No applicant is deleted. Error details shown in the status message.

7.6 Locating applicants by field

  1. Finding all applicants with specified fields

    1. Prerequisites: There exists a valid list of applicants in InternConnect that is not empty

    2. Test case: find n/Alex
      Expected: All applicants with the name Alex are listed in the left panel. Number of applicants found shown in the status message.

    3. Test case: find g/Male m/Computer Science
      Expected: All male applicants who have majors with either Computer or Science in their major are listed in the left panel. Number of applicants found shown in the status message.

  2. No applicants to search for

    1. Prerequisites: There is an empty list of applicants in InternConnect

    2. Test case: find n/Bobby
      Expected: No applicants will be listed in the left display panel. 0 persons listed! shown in the status message.

7.7 Importing applicants from an external JSON file

  1. Importing several applicants from an external JSON file

    1. Prerequisites: There exists a valid file named test.json with the correct formatting, no duplicate applicants, and valid data values.

    2. Test case: import test.json
      Expected: All applicants inside test.json will be appended to the list. Success message shown in the status message.

  2. Importing an external JSON file with invalid format, duplicate applicant, or invalid data values

    1. Prerequisites: There exists a file named format.json with incorrect formatting, duplicate.json with duplicate applicants, and invalid.json with invalid data values.

    2. Test case: import format.json
      Expected: No applicant is added. Template file created in data/template/template.json. Error details shown in the status message.

    3. Test case: import duplicate.json
      Expected: No applicant is added. Template file created in data/template/template.json. Error details shown in the status message.

    4. Test case: import invalid.json
      Expected: No applicant is added. Template file created in data/template/template.json. Error details shown in the status message.

  3. Other incorrect import commands to try: import, import folderName(where folderName is a folder)
    Expected: No applicant is added. Error details shown in the status message.

7.8 Exporting displayed list to a JSON file

  1. Exporting empty displayed list

    1. Test case: find g/nonbinary followed by export
      Expected: JSON file created in data/export/ folder with a key-value pair where the key is “persons” and value is an empty array. Success message shown in the status message.

    2. Test case: find g/nonbinary followed by export 1
      Expected: JSON file created in data/export/ folder with a key-value pair where the key is “persons” and value is an empty array. Success message shown in the status message.

  2. Exporting non-empty displayed list

    1. Prerequisite: currently displayed list is not empty

    2. Test case: export
      Expected: JSON file created in data/export/ folder with a key-value pair where the key is “persons” and value is a non-empty array. Success message shown in the status message.

    3. Test case: export a
      Expected: JSON file created in data/export/ folder with a key-value pair where the key is “persons” and value is a non-empty array. Success message shown in the status message.

7.9 Checkout a new or existing list

  1. Checkout to an existing file with valid data and valid format.

    1. Prerequisites: One JSON file with valid data and valid format in data/ folder.

    2. Test case: checkout FILE_NAME
      Expected: The data in the file FILE_NAME.json located at data/ folder is loaded into the application. Success message shown in the status message.

  2. Checkout to a non-existent file.

    1. Prerequisites: No file with the name FILE_NAME in data/ folder.

    2. Test case: checkout FILE_NAME
      Expected: The file FILE_NAME.json is created at data/ folder and its sample data is loaded into the application. Success message shown in the status message.

  3. Checkout to an existing file with invalid data or invalid format.

    1. Prerequisites: One JSON file with invalid data or invalid format in data/ folder.

    2. Test case: checkout FILE_NAME
      Expected: The data in the file FILE_NAME.json located at data/ folder is wiped. The application will not contain any applicants. Success message shown in the status message.