< Previous | Next >

Testing the loan application using the JSPs

To test the loan application, you will interact with it through a Web browser using JSPs.

To test the loan application, you use the imported JSPs and EJBs because the JSPs provide an input interface for you to enter the loan application data. The CreditCheck and LoanLimits components direct the loan application through the process with their implementation. Depending on the user's credit score and the amount of the loan, the process will generate three possible responses. Explore the responses by entering the following data:
  1. Use Case 1: Bank customer inserts any loan amount value, but their credit score happens to be below 750 (it is randomly chosen). This application will be declined.

    Your Name: John Smith
    Email: john@smith.com
    Taxpayer Number: 12345
    Loan Amount: 5000 (or any other valid amount)

    Response: "Thank you for your application. You will be contacted shortly to verify your information."

    Click Back to the previous page in the navigation bar of the Web Browser and then Refresh the current page to display the Your Bank Loan Application window with empty input fields. The result of this request is determined on a random basis due to the credit score evaluation.

  2. Use Case 2: Bank customer inserts a loan amount value of $50 000 or lower, and their credit score is 750 or higher. This application will be automatically approved.

    Your Name: John Smith
    Email: john@smith.com
    Taxpayer Number: 888
    Loan Amount: 1000

    Response: "Your application has been approved and is awaiting completion."

    Return to the previous page and refresh it as you did before to display the Your Bank Loan Application window with empty input fields. The Taxpayer Number 888 is not random, and will always result in an approval.

  3. Use Case 3: Bank customer inserts a loan amount value greater than $50 000, and their credit score is 750 or higher. This application will be manually approved.

    Your Name: John Smith
    Email: john@smith.com
    Taxpayer Number: 888
    Loan Amount: 65000

    Response: "Your application has been received and is under review."

    Return to the previous page and refresh it as you did before to display the Your Bank Loan Application window with empty input fields. The Taxpayer Number 888 is not random, and will always result in an approval.

Feedback
(C) Copyright IBM Corporation 2005, 2006. All Rights Reserved.
< Previous | Next >