< Previous | Next >

Invoking the test cases

Test the loan application by interacting with it through a Web browser using two user interfaces: one for customers and one for loan officers.

To test the application, open the CustomerUI and the ManualApprovalUI user interfaces by completing the following steps:
  1. In the Business Integration view, navigate to CustomerUI -> WebContent -> Index.jsp.
  2. Right-click Index.jsp and select Run As > 1 Run on server. The Run on Server window opens.
  3. Select WebSphere Process Server and click Finish.
  4. After the server is synchronized you will be asked to log in. The default username is admin and the default password is admin. After you have logged in, you see the Web page that the customer would see.
    CustomerUI
    Alternatively, you can open a browser and enter http://localhost:<portnumber>/CustomerUI, where the port number can be found in the console output.
  5. Similarly, open a browser window for ManualApprovalUI.

Test the first use case by invoking the automatic loan approval:

  1. In the CustomerUI, click New then Receive, enter the information below, and click Create.
    Table 1. CustomerUI information
    Field Value
    Name Joe Loanee
    EmailAddress joe.loanee@us.ibm.com
    TaxPayerId 123456789
    LoanAmount 20000
  2. Check the status of the loan application by clicking Status then click Status again and then click LoanApprovalProcess.
  3. Click the Process Instance Name to see the status of the application. You will be shown a page similar to the following image:
    Loan approved

To test the second and third use cases, complete the following steps:

  1. Repeat the steps that you completed for the first test case, but in this case enter an amount greater than $50 000 and click Create.
  2. Return to the ManualApproverUI and click Open. You see that there is a task waiting for the loan officer to investigate.
    Task waiting to be investigated
  3. Click the task name to see more details about the task. To process the task, click Claim in the detailed view.
  4. In the ManualApprovalResponse, type Approved and click Complete. The customer can view the response by going through the steps mentioned previously.
    Approving the loan
To test the case when the loan officer rejects the loan, complete the same steps as you did for the second and third use cases but replace the response with Rejected.

Feedback

(C) Copyright IBM Corporation 2005, 2008. All Rights Reserved.

< Previous | Next >