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 IBM zEnterprise 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. In the IDE, open the Server Explorer window.

    If the window is not visible, click View > Server Explorer (or View > Other Windows > Server Explorer).

  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 Micro Focus Servers 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 Tools > Options.
  2. Expand Micro Focus, and click TN3270 Display.
  3. Ensure that Enable Display is checked and that the Rumba (Embedded) display option is selected.
  4. Ensure that Connect Automatically is checked.
  5. Click OK.

Starting the embedded Rumba display

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

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

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.

    GUID-AB3EC29B-B2F2-4C82-9F9F-C8D70F8996BA-low.png

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

    Bankdemo application options

    GUID-29A4D04B-F65A-4AB7-8C5A-DA8E8ECD3197-low.png

  5. You can explore this application further if you wish or press F3 to terminate it.
  6. You can close the embedded Rumba display.

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.