You are on page 1of 25

Use Case Name Investment Portfolio

Domain Insurance
Complexity Low

Investment Portfolio
Liberty Groups - Insurance

Sensitivity: Internal & Restricted


Table of Contents
1. Business Objective...............................................................................................................................3
2. Functionality........................................................................................................................................3
3. Scope and Limitations..........................................................................................................................3
4. Design Considerations / Assumptions:................................................................................................3
5. UI Screens / Pages...............................................................................................................................9
a. Agent Login page...........................................................................................................................10
b. Home page....................................................................................................................................12
c. Add Proposal page.........................................................................................................................18
d. Customer Portfolio Details page....................................................................................................20
a. Illustration page.............................................................................................................................22
6. Application Flow................................................................................................................................25

Investment Portfolio
Liberty Groups - Insurance

Sensitivity: Internal & Restricted


1. Business Objective
The objective of this use case is to create a proposal for the investment portfolio by the Agent in the
Insurance company website. Registered Agent will have access to application and there able to create a
Proposal for the customers.

Note: The use case does not support creating new agent. The existing agent can able to create new
proposal for a customer in the application.

Below are the functionalities that the user/customer is enabled with:

 Login
 Home Page
o List of Customer Investment Policy sold by Agent
o Create a New Customer Investment policies.
 View Policy Details

2. Functionality
The application provides a facility to create a new investment polices by the Agent for a customer and
view the list of policy created by Agent. The application gives the snapshot of the details of the
investment policies of a customer held by the agent.

3. Scope and Limitations


This application is only to create a proposal for the investment policy by an agent on behalf of a
customer. It does not support underwriting to convert the proposal to a Policy.

Creating new agent is not supported by this application.

4. Design Considerations / Assumptions:


1. You can store the data in Http Session or Cache or in-memory database
2. Agent should be already created in the application with below mentioned credentials.

Investment Portfolio
Liberty Groups - Insurance

Sensitivity: Internal & Restricted


3. Please use below credentials to agent login.

Agent ID Password
Agent01 Pa55word
Agent02 Pa55word

4. Populate the dropdown fields with below mentioned master data.


Product Name:
Product 1
Product 2

Default selection:

Do not select any value. Leave it blank.

Title:
Mr.
Mrs.

Default selection:

Do not select any value. Leave it blank.

Gender:
Male
Female

Default selection:

Do not select any value. Leave it blank.

5. Follow these formats for the mentioned fields.


i. For all Date fields, format should be in dd-mm-yyyy (Ex: 07-10-2019)

Investment Portfolio
Liberty Groups - Insurance

Sensitivity: Internal & Restricted


All the text fields format (Policy Number, First Number, Last Name, Investment Amount,
effective Date, creation Date, DOB and Preferred retirement age) should be entered with values
without space
ii. First Name should be alphanumeric with 5 to 12 characters in length
iii. Last Name should be alphanumeric with 5 to 12 characters in length
iv. Policy Number format: 12 characters length with first 3 characters as Alphabets followed by
9 digits. Ex: INS000000001

First 3 Characters should always be fixed as INS and an incremental policy number to be
generated by incrementing the last digit

1st Policy Number = INS000000001

2nd Policy Number = INS000000001+1 =INS000000002

3rd Policy Number = INS000000002 +1 = INS000000003

10th Policy Number = INS000000009+1 = INS000000010

11th Policy Number = INS000000004+1 = INS000000011

v. Investment Amount format: Whole number with a maximum of six digits where value
should be greater than 99 and less than or equal to 100000. Ex: 100000 and minimum
length of three digits Example: 100
vi. Preferred Retirement Age: Whole number with minimum of 2 digits where value should be
greater than 55 and less than 65. For example:56
vii. Proposal Year: Should be a running number from 1 to premium paying term
Ex: Premium paying term is 5 then Proposal year should be 1,2,3,4,5
viii. Illustration Details are given below:
Sample Data:
Customer Name: Ramakrishnan Subramanian
Preferred retirement age = 65
DOB = 23.03.1979
Current Date = 05.11.2019
Current Age in years = Current year – DOB year

Investment Portfolio
Liberty Groups - Insurance

Sensitivity: Internal & Restricted


Current Age in years = 2019 - 1979 = 40
Premium paying term: Preferred retirement age – Current Age
Premium paying term: 65 - 40 = 25 Years
Investment Amount = 10000

If the agent selects “Product 1”:


Product Name = Product 1
Note: This table will have 25 rows (premium paying term is 25 years) based on
the sample data mentioned above and below example is just an illustration
shown only for 3 years.

Proposal year Yearly Product Fund value


1 10938
2 12312
3 14251

In the above table, yearly product fund values are calculated as per the below
business logic.

Business Logic Calculations:

For 1st Year:


Constant P1 growth = 6.2% = 6.2/100 = 0.062
Yearly Growth Value = (Investment Amount * Constant P1 growth) + Investment Amount
Yearly Product Fund Value = Yearly Growth Value + (Proposal year * Yearly Growth Value*3%)

Example:
Yearly Growth Value = (10000 * 0.062) + 10000 = 10620
Yearly Product Fund Value = 10620 + (1*10620*0.03) = 10938
Note: Please ignore decimal values after calculations
For e.g., the actual value is: 10938.6, but we consider it as 10938

Investment Portfolio
Liberty Groups - Insurance

Sensitivity: Internal & Restricted


For 2nd Year:
Yearly Growth Value = (Previous Year Fund Value * Constant P1 growth) + Previous Year Fund
Value
Yearly Product Fund Value = Yearly Growth Value + (Proposal year * Yearly Growth Value*3%)

Example:
Previous Year Fund Value = 10938
Yearly Growth Value = (10938*0.062) + 10938 = 11616
Yearly Product Fund Value = 11616 + (2*11616*0.03) = 12312
Note: Please ignore decimal values after calculations
For 3rd Year:
Yearly Growth Value = (Previous Year Fund Value * Constant P1 growth) + Previous Year Fund
Value
Yearly Product Fund Value = Yearly Growth Value + (Proposal year * Yearly Growth Value*3%)

Example:
Previous Year Fund Value = 12312
Yearly Growth Value = (12312*0.062) + 12312 = 13075
Yearly Product Fund Value = 13075 + (3*13075*0.03) = 14251

Note: Please ignore decimal values after calculations

If the agent selects “Product 2”:


Product Name = Product 2
Note: This table will have 25 rows and below example is just an illustration
shown only for 3 years

Proposal year Yearly Product Fund value


1 11002
2 12790
3 15665

Investment Portfolio
Liberty Groups - Insurance

Sensitivity: Internal & Restricted


In the above table, yearly product fund values are calculated as per the below
business logic.

Business Logic Calculations:


For 1st Year:
Constant P2 growth = 3.8% = 3.8/100 = 0.038
Yearly Growth Value = (Investment Amount * Constant P2 growth) + Investment Amount
Yearly Product Fund Value = Yearly Growth Value + (Proposal year * Yearly Growth Value * 6%)

Example:
Yearly Growth Value = (10000*0.038) + 10000 = 10380
Yearly Product Fund Value = 10380 + (1*10380*0.06) = 11002
Note: Please ignore decimal values after calculations
For 2nd Year:
Yearly Growth Value = (Previous Year Fund Value * Constant P2 growth) + Previous Year Fund
Value
Yearly Product Fund Value = Yearly Growth Value + (Proposal year * Yearly Growth Value * 6%)
Example:
Last Year Fund Value = 11002
Yearly Growth Value = (11002*0.038) + 11002 = 11420
Yearly Product Fund Value = 11420 + (2*11420*0.06) = 12790
Note: Please ignore decimal values after calculations
For 3rd Year:
Last Year Fund Value = 12790
Yearly Growth Value = (12790*0.038) + 12790= 13276
Yearly Product Fund Value = 13276+ (3*13276*0.06) = 15665
Note: Please ignore decimal values after calculations

Investment Portfolio
Liberty Groups - Insurance

Sensitivity: Internal & Restricted


6. http://host:port/contextroot/{path}
In the above URL, contextroot is the context root of the application. You can use any value for
context root in your local environment during development but do not hardcode it in the
application source code, as the system will replace it with the dynamically generated name as
context root and deploy in the application server to validate the functional test cases using
selenium web driver API. In case if you are not using the context root (say for example, Dot Net
core and NodeJS applications may not really have the context root), it will be replaced with
blank.
For example:

Java: http://localhost:8080/investmentportfolio/login

Dot Net: http://localhost:5001/login

Node JS: http://localhost:3000/login


(PORT number will be provided as an environment variable, use
process.env.PORT)
7. Do not refer any third-party libraries (CSS/JS libraries) directly from internet in the UI code,
instead download them and use as local reference.
8. Variable Identifier of HTML should be id/name for input types, id for <div> and anchor text for
<a> tags. It should be followed strictly.
9. Do not hard code port number and context root anywhere in the code

5. UI Screens / Pages
Please read the below points carefully before you start the development of the use case.

Each page should have the following:

- Title of the page


- All the input elements to capture the user input
- Buttons/Links for any action like submit, cancel, etc.,
- All the HTML elements should have id or name attribute

Investment Portfolio
Liberty Groups - Insurance

Sensitivity: Internal & Restricted


- Element id or name should be unique and is case sensitive. If you use different names, the
automated functional test cases will fail.
- All Links should have the same Link Text as mentioned in this use case document. Else the
automated test cases will fail.
- Success or Error message to be displayed should be wrapped in a <div> tag with the
documented id/name. Please note the div id/name is case sensitive.
- Please use the success / error messages documented as is, otherwise the automated
functional test cases will fail.
Please refer the design considerations / assumptions section to configure the master data like
drop down values for Policy Term, Premium Pay Frequency and also for the data format for
fields like Policy Start Date, Policy Creation Date etc., without which the functional tests will
fail.
- The colors that appear in the sample screenshots of the views below are only indicative. You can
choose to ignore using background colors for pages as it is Optional and in no way effects the
functionality or evaluation of the application

a. Agent Login page


This page allows the agent to login to the Investment Portfolio application. Agent should be able to login
into the application by providing all the data in mandatory fields. An error message should be displayed
when the mandatory field is missing. On successful login, take the user to Home page of the application.

Investment Portfolio
Liberty Groups - Insurance

Sensitivity: Internal & Restricted


Error message:

HTML
Field / Page Validation
Element Required Identifier Remarks
attribute Message
Type
URL http://host:port/contextroot/Login
Title of the page Investment Portfolio - Login
Agent Id Label
Please refer the Design
Invalid
Agent Id Text Box Yes id=”agentID” considerations/Assumptions section for
Credentials
Sample Agent Id.
Password Label

Investment Portfolio
Liberty Groups - Insurance

Sensitivity: Internal & Restricted


Invalid
Password Text Box Yes id=”password”
Credentials
Click on the button should validate the
provided credentials and on successful
Invalid
Login Button id=”btnLogin” validation, the page should navigate to
Credentials
Home Page, otherwise display the error
message as “Login Failed”.
DIV tag to display the error message:
Error Message div id=”error”
Invalid Credentials

b. Home page

On page load, if there are customers with proposals exists for the logged-in agent, home page will
display the customer list in the Ascending Order based on the Policy Number.

Home page is shown with no customers when the agent logs-in for the first time or if there are no
proposals/customers exists for the logged-in agent.

Investment Portfolio
Liberty Groups - Insurance

Sensitivity: Internal & Restricted


Customer Investment Portfolio – Home
Add Proposal Agent ID Logout

Policy Search

Policy Number

Search
First Name Last Name

No Customers Found

Investment Portfolio
Liberty Groups - Insurance

Sensitivity: Internal & Restricted


Customer Investment Portfolio – Home
Add Proposal Agent ID Logout

Policy Search

Policy Number

Policy Number First Last Name DOB Gende Search


First Name Last Name
Name r

INS123456789 Aravind Arulmozh 23-09-1983 Male Customer Portfolio Details Illustrate

17-03-1986 Customer Portfolio Details


INS123456790 Anand Arulmozh Male Illustrate

INS123456791 Ajay Aravind 26-01-1996 Male Customer Portfolio Details Illustrate

Investment Portfolio
Liberty Groups - Insurance

Sensitivity: Internal & Restricted


HTML
Field / Page Requir
Element Identifier Remarks
attribute ed
Type
URL http://host:port/contextroot/Home
Title of the page Customer Investment Portfolio – Home
AgentID Label Yes Id=”agentID” This label displays the logged-in Agent ID.
Click on this link should kill the current session
Logout Link Yes Link Text = ”LogOut”
and navigate back to the Login page.
Table displaying Customer Policies details.
Policy Number Column Header Text Header row with column heading.
First Name Column Header Text
Last Name Column Header Text
DOB Column Header Text
Gender Column Header Text
Column for
Customer
Portfolio Details
button
For e.g.:
<label id=”policyNumber1”>
Id=”policyNumber1” for row 1
INS000000001</label>
Id=”policyNumber2” for row 2
Policy Number Label Yes <label id=”policyNumber2”>
Etc.,
INS000000002</label>

FirstName Label Yes Id=”firstName1” for row 1 For e.g.:


Id=”firstName2” for row 2 <label id=”firstName1”>Aravind</label>
<label id=”firstName2”>Anand</label>

Investment Portfolio
Liberty Groups - Insurance

Sensitivity: Internal & Restricted


For e.g.:
Id=”lastName1” for row 1 <label id=”lastName1”>ArulMozhi</label>
LastName Label Yes
Id=”lastName2” for row 2 <label id=”lastName2”>Srinivasan</label>

For e.g.:
Id=”dob1” for row 1 <label id=”dob1”>12-11-1976</label>
DOB Label Yes
Id=”dob2” for row 2 <label id=”dob2”>25-10-2005</label>

For e.g.:
Id=”gender1” for row 1 <label id=”gender1”>Male</label>
Gender Label Yes
Id=”gender2” for row 2 <label id=”gender2”>Male</label>

Id=”btnCustomerDetails1” for
Customer row 1 Click on this button should navigate to
Button Yes
Portfolio Details Id=” btnCustomerDetails2” for Customer Portfolio details page.
row 2
Id=”btnIllustrate1” for row 1 Click on this button should navigate to
Illustrate Button Yes
Id=” btnIllustrate2” for row 2 Illustrate the proposal for the customer.
Show this div with message “No Customers
No customers Div Id=”noCustomers”
Found”
Click on this button should navigate to Add
AddProposal Button Yes Id=”btnAddProposal”
proposal page for a customer.
Label /
Policy Search
heading
Policy number Label
Policy number Text Box Yes Id=”policyNumber” Please refer design consideration /
assumptions section for Policy Number format
If user enter partial Policy Number, it should
not return the matching results of a customer

Investment Portfolio
Liberty Groups - Insurance

Sensitivity: Internal & Restricted


and user should enter the full Policy Number

FirstName Label
Please refer design consideration /
assumptions section for FirstName format
If user enter partial Customer First name it
FirstName TextBox Yes Id=”firstName” should return the matching results.
E.g.: “Ramki” should not return results with
Ramakrishnan or Ramachandran but “Rama”
should return Ramakrishnan
LastName Label
Please refer design consideration /
assumptions section for Last Name format
If user enter partial Last Name, it should
return the matching results.
LastName Text Box Yes Id=”lastName”
E.g.: “Chandi” should not return results with
Chandrasekaran or Chandrakanth but search
on “Chand” should return Chandrasekaran or
Chandrakanth
Click on the button should display the results
based on matching search criteria where
values are not blank as defined in the fields
above. If user enters multiple search fields, it
Search Button Yes Id=”btnSearch” does an “AND” operation returns matching
data only which matches all the search
criteria. If no records found it should display a
message “No Customers Found” in div
tag/element.
DIV tag to display the error message:
Error Message div id=”error”
No Customers Found

Investment Portfolio
Liberty Groups - Insurance

Sensitivity: Internal & Restricted


c. Add Proposal page
This page is used to add a proposal (Investment product) to create a policy for a customer

HTML Re Validation
Field / Page
Element qui Identifier Message Remarks
attribute
Type red
URL http://host:port/contextroot/AddProposal
Title of the page Customer Investment Portfolio – Add Proposal
Product Name Label

Investment Portfolio
Liberty Groups - Insurance

Sensitivity: Internal & Restricted


Invalid Details Please refer design consideration /
Product Name Dropdown Yes Id=”productName”
assumptions section for dropdown values
Creation Date Label
Invalid Details Please refer design consideration /
Creation Date Text Box Yes Id=”creationDate” assumptions section for Creation Date
format
Effective Date Label
Invalid Details Please refer design consideration /
Effective Date Text Box Yes Id=”effectiveDate” assumptions section for Effective Date
format
InvestmentAmou
Label
nt
Invalid Details Please refer design consideration /
InvestmentAmou Id=”investmentAmo
Text Box Yes assumptions section for Investment Amount
nt unt”
format.
Invalid Please refer design consideration /
Title Dropdown Yes Id=”title”
Details assumptions section for Title
FirstName Label
Invalid Please refer design consideration /
FirstName TextBox Yes Id=”firstName” Details assumptions section for FirstName
format
LastName Label
Invalid Please refer design consideration /
LastName Text Box Yes Id=”lastName”
Details assumptions section for Last Name format

DOB Label
Invalid Details Please refer design consideration /
DOB Text Box Yes Id=”dob”
assumptions section for DOB format
Gender Label
Gender Dropdown Yes Id=”gender” Invalid Details Please refer design consideration /

Investment Portfolio
Liberty Groups - Insurance

Sensitivity: Internal & Restricted


assumptions section for Gender format
Preferred
Label
Retirement Age
Invalid Details Please refer design consideration /
Preferred
Text Box Yes Id=”pra” assumptions section Preferred Retirement
Retirement Age
Age format
Invalid Details Click on this button should validate the
details entered.
On successful validation, save the details and
Add Proposal Button Yes Id=”btnAddProposal”
navigate to Home Page. If it is not successful,
display the error message and stay back on
the same page
Click on this should navigate to the Home
Back Button Yes Id =”btnBack”
page
Div tag to display the error message on the
same page:
Error message Div Id=”error”
Invalid Details

d. Customer Portfolio Details page


This page shows the details of the selected Customer Portfolio.

Investment Portfolio
Liberty Groups - Insurance

Sensitivity: Internal & Restricted


Customer Investment Portfolio – Customer Portfolio Details

Agent ID Logout

Product Selection

10000
Product Name Product 1 Investment Amount
22-10-2019 22-10-2019
Creation Date Effective Date

Client Details
Mr Aravind Arulmozhi
Title First Name Last Name

DOB 23-09-1983 Male


Gender

Back Illustrate

HTML
Field / Page Requir
Element Identifier Remarks
attribute ed
Type
URL http://host:port/contextroot/CustomerPortfolioDetails
Title Customer Investment Portfolio – Customer Portfolio Details
FirstName Label
FirstName Label Yes Id=”firstName” Display the first name
LastName Label
LastName Label Yes Id=”lastName” Display last name
Investment
Label
Amount
Investment Label Yes Id=”investmentAmount” Display Investment Amount format

Investment Portfolio
Liberty Groups - Insurance

Sensitivity: Internal & Restricted


Amount
ProductName Label
ProductName Label Yes Id=”productName” Display Product Name
Effective Date Label
Please refer design consideration / assumptions
Effective Date Label Yes Id=”effectiveDate”
section for Effective Date format
Creation Date Label
Please refer design consideration / assumptions
Creation Date Label Yes Id=”creationDate”
section for Creation Date format
Gender Label
Gender Label Yes Id=”gender” Display Gender value
DOB Label
DOB Label Yes Id=”dob” Display DOB
Click on this button should navigate to the
Back Button Yes Id=”btnBack”
home page.
Click on this button should navigate to the
Illustrate Button Yes Id=”btnIllustrate” Illustration page to illustrate the product details
for customer.

a. Illustration page

This page shows the Illustration details for a customer. We are showing only few rows in the below
screenshot as a mock-up. The actual number of rows depends on the premium paying term which
depends on the retirement age and date of birth. The complete details are provided in design
considerations / assumptions section.

Investment Portfolio
Liberty Groups - Insurance

Sensitivity: Internal & Restricted


Customer Investment Portfolio – Illustration Details

Agent ID Logout

Aravind Arulmozhi 25
Customer Name Premium Paying Term
10000
Product Name Product 1 Investment Amount

Proposal Year Year Product Fund Value

1 10938

2 12312

3 14251

4 16240

5 17236

6 19235
Back

HTML
Field / Page Requir
Element Identifier Remarks
attribute ed
Type
URL http://host:port/contextroot/IllustrationDetails
Title Customer Investment Portfolio – Illustration Details
Customer Name Label
Customer Name Label Yes Id=”customerName”
Premium Paying
Label
Term
Premium Paying Label Yes Id=”premiumPayingTerm” Please refer design consideration /
Term assumptions section for Premium paying

Investment Portfolio
Liberty Groups - Insurance

Sensitivity: Internal & Restricted


term calculation
Investment Amount Label
Investment Amount Label Yes Id=”investmentAmount” Display the value
ProductName Label
Please refer design consideration /
ProductName Label Yes Id=”productName”
assumptions section for ProductName
Table displaying Yearly Product Fund Value details.
Proposal Year Column Header Text Header row with column heading.
Year Product Fund
Column Header Text Header row with column heading.
Value
Id=”proposalYear1” for row
1 For e.g.:
Id=”proposalYear2” for row <label id=”proposalYear1”>1</label>
Proposal Year Label Yes
2 <label id=”proposalYear2”>2</label>
Etc., Etc.,

Please refer to design/assumptions section


for Yearly Product Fund Value calculation.
Yearly Product Fund Id=”fundValue1” for row 1 For e.g.:
Label Yes
Value Id=”fundValue2” for row 2 <label id=”fundValue1”>10620</label>
<label id=”fundValue2”>11898</label>

Click on this button should navigate to the


home page or Customer portfolio details
Back Button Yes Id=”btnBack”
page depends on where they have navigated
from.

Investment Portfolio
Liberty Groups - Insurance

Sensitivity: Internal & Restricted


6. Application Flow
Current Page Action Next / Landing Page
Login Submit - Success Home page
Login Submit – Failure Login page
Click on Customer Portfolio Details
Home Customer Portfolio Details Page
button
Home Click on Illustrate button Illustration Page
Customer Portfolio
Click on Back Button Home page
Details Page
Click on Create Investment Proposal
Home Add Proposal Page
button
Add Proposal Add Proposal button - Success Home Page
Add Proposal Add Proposal button – Failure Add Proposal Page
Add Proposal Click on Back button Home Page
Home Page or Customer Portfolio
Illustration Page Click on the Back button Details Page depends on the where
they have navigated from

Investment Portfolio
Liberty Groups - Insurance

Sensitivity: Internal & Restricted

You might also like