Unit Testing the Online Application

In the previous step, Unit Testing the Batch Application, you used the Bankdemo enterprise server. You are going to use it again for online testing.

As with JCL, execution of the jobs requires a previously configured Micro Focus enterprise server.

Important: You need Enterprise Developer or Enterprise Developer for z Systems to execute the application as running applications is not supported in Enterprise Developer Connect.

Starting the Bankdemo enterprise server

If the enterprise server is not yet started, you need to start it as follows:

  1. Click the Server Explorer tab.

    If the tab is not visible, click Window > Show View > Other. Select Micro Focus > Server Explorer and then click OK.

  2. In the Server Explorer window, right-click the Bankdemo server and then click Start.

    Wait until the server has started. In the list of servers in Server Explorer, BANKDEMO still has a red square next to it. This is a refresh delay.

  3. In Server Explorer window, right-click and click Refresh to confirm the server has started.

Executing the CICS application

The CICS application requires that you use a 3270 terminal emulator. The installation of Enterprise Developer includes the Micro Focus Rumba emulator. Rumba is available as a standalone application, Rumba Desktop, and is also available as a TN3270 Mainframe Display embedded within the IDE. As part of this tutorial, you are going to use the embedded display to run the application.

Configuring the TN3270 settings in the IDE

To check the IDE preferences and ensure that the embedded Rumba display is selected:

  1. In the IDE, click Window > Preferences.
  2. Expand Micro Focus > Enterprise Server, and click TN3270.
  3. Ensure that Enable display, Rumba (Embedded) and Connect automatically are all selected.
  4. Click OK.

Starting the Rumba Mainframe Display view

  1. Right-click the BANKDEMO server in Server Explorer, and click Show TN3270 Display.

    This opens the Rumba Mainframe Display view and automatically establishes a 3270 terminal connection to the BANKDEMO server. You can see the starting page of the ES/MTO region BANKDEMO.

  2. You can drag the Rumba Mainframe Display view to reposition it.

Executing the Enterprise Server Demonstration

  1. Press Ctrl+Shift+Z to clear this window.
  2. Type in the transaction id BANK and press Enter to navigate to an application logon window.
  3. Type your logon details and press Enter.

    A suitable User Id is b0001. You can type anything as a Password - the field must not be empty though.

    Bankdemo login screen

  4. Type / against Display your account balances and press Enter to see the details for this customer.

    Bankdemo application options

    GUID-6B57A276-0A2B-42EE-9779-BF7D812F243B-low.png

  5. You can explore this application further if you wish or press F3 to terminate it.

If the Rumba Mainframe Display view disconnects from the server, you can connect again manually as follows:

  1. Click the New Rumba Mainframe Display button, New Rumba Mainframe Display, in the toolbar of the Rumba Mainframe Display view.
  2. Specify the host name and the TN3270 port number for the Bankdemo server as follows:

    Bakdemo tutorial - new TN3270 connection

  3. Click Connect.

    This connects the display to the Bankdemo server and loads the start screen of the application.

  4. Follow the steps described earlier in this topic to execute the application in the Rumba Mainframe Display view.

Stopping the enterprise server

You can stop the Bankdemo server from within Server Explorer. You can leave it running though, if you wish to continue this tutorial.

Note: In production, enterprise servers are long-running processes that are usually run for many months without stopping and starting.