Create HOST Modules

Tosca can detect and interact with Labels, TextBoxes, and Tables in HOST applications. To make this possible, you need to first scan your HOST application. This chapter describes how to scan HOST applications to create Modules.

Prepare for HOST scan

This section explains extra steps you need to take before you scan HOST controls with XScan.

Choose your session mode

HOST Engine 3.0 supports the following session modes:

  • HOST emulator sessions. An emulator session uses an active HOST emulator connection to navigate your mainframe application via your emulator. Emulator sessions support ASCII, as well as and Japanese character sets if you enable Japanese character support in your project settings. It is possible that the Scan may display characters that aren't visible in the emulator.

  • HOST headless sessions. A headless session uses an active HOST headless connection to navigate your mainframe application via the Host Scan window. Headless sessions only support the ASCII character set.

Choose your use case:

Enable Japanese character support

To use the Japanese character support for HOST emulator sessions, follow these steps: 

  1. Go to Project->Settings.

  2. Create a new category named Host in the Settings->TBox->Engines.

  3. Create a new setting with the name CodePage and the value 932.

Start the scan

To create HOST Modules, scan an active and connected HOST session with Tosca  XScan.

To do so, right-click a Module folder and select Scan->Remote Terminal. Alternatively, you can go to the dynamic menu Modules and select  Scan->Remote Terminal or use the keyboard shortcut Ctrl + Shift + T.

Choose your controls

Tosca measures all heights and widths of HOST controls in characters.

When you select a control area in the Host Scan window, avoid separating double-width characters. A double-width character occupies two character units instead of the standard one. To ensure a correct scan of Host controls, it is important to pay attention to this. To do so, follow these steps:

  1. In the ribbon menu of XScan, select the type of control you want to add to your Module: Label, TextBox, or Table.

  2. Create your control.

    Choose your use case:

  3. To add additional controls to your Module, repeat this process.

  4. If you're scanning HOST and you want to add controls from another screen, we recommend that you select Finish screen before you navigate to the new screen. Tosca saves each Module with a screenshot according to the Content Preview when you select Finish screen. We recommend that you use Refresh to update the Content Preview when you create separate modules for separate screens. This keeps Module screenshots consistent with the controls in HOST and avoids confusion later on.

  5. Once you've selected all controls you want to add to the Module, select Finish screen. This saves the Module to your workspace. Then, select Close.

You can now steer HOST controls, create a TestCase with HOST modules from the Standard Subset.