Running your web application using the Rational Application Developer test environment

You can test your application using the test environment in Rational Application Developer.

Rational Application Developer includes a number of optional test environments. For example, you can include test environment for WebSphere Application Server Version 6.0 and test environments for legacy application servers such as, WebSphere Application Server Version 5.1 and WebSphere Application Server Version 5.0.

The test environment that you use to run your web application depends on how the application is generated. For example, if you selected servlet version 2.4 (J2EE Version 1.4) when you defined the dynamic web project for your application, you must select WebSphere Application Server Version 6.0 as your target server and you must test your application using the WebSphere Application Server Version 6.0 Test Environment.

To run your application using the Rational Application Developer test environment, complete the following steps:

  1. In the Project Explorer view, expand Dynamic Web Projects > PhoneBookWeb > WebContent.
  2. Right-click PBookF.jsp in the Web Content folder and select Run > Run on server.
  3. In the Server Selection wizard, select Choose an existing server.
  4. Select the server instance you configured. For example, WebSphere 6.0 Server@localhost and then click Next.
  5. In the Add and Remove Projects page, ensure that your new EAR project, PhoneBookWebEAR, is in the list of Configured projects and then click Finish.
  6. The faces JSP, PBookF.jsp, displays in the web browser. Enter values in the input fields; for example:
    • In__trcd: IVTNO
    • In__zz: 0
    • In__name1: LAST1
    • In__cmd: DISPLAY
    • In__ll: 59
  7. For all the remaining input fields, ensure that trailing blanks are removed and then click Submit.
  8. The following output is displayed:
    Out__ll:		93
    Out__zz:		768
    Out__msg:		ENTRY WAS DISPLAYED
    Out__name1:	LAST1
    Out__name2:	FIRST1
    Out__extn:		8-111-1111
    Out__zip:		D01/R01
    Note: If you exposed IMSInteractionSpec output properties such as:
    • convEnded
    • asyncOutputAvailable
    • mapName
    as data, they will also display in the output.
You have completed testing your application in the test environment of the Rational Application Developer.
Related tasks
Running your application in a standalone WebSphere Application Server
Terms of use | Feedback
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.