Components in Eclipse


The repository is available in Eclipse through the Repository view and you have the same possibilities to define a component as you have in the browser. In Eclipse there is also a possibility to define the data from the linkage section by selecting source files directly in eclipse and not depending on parsing the source file on the mainframe which is how the web client parses the source code.

The repository view has a filter based on the name, platform, category and tags. A component can be dragged and dropped into a Total Test Scenario file. Right-click on a component makes it possible to create a stub of the component as a plain file, create a test Scenario, modify it or delete it.

image2021-8-17_15-52-22.png

Add a component by clicking the Plus icon on the Repository view. It will open a wizard that will allow you to enter and extract the same data as in the web client.

Appendix E: Tutorial – Add a Component to the Repository with the Eclipse Client contains a tutorial for adding a component to the repository from Eclipse.

COBOL and PL/I Parsers

If you have access to source code of your COBOL or PL/I programs, Non-virtualized Test for Eclipse also comes with a parser that can parse the source code directly in Eclipse and add a component to the repository. This parser can be used inside the Repository wizard at the page where metadata/data structure for the component is defined, or it can be used directly at a source file by right-clicking on it.

Complete the following steps in order to analyze a source file and add a component definition to the repository:

  1. Right-click the source file(s) and select Topaz for Total Test > Parse Source Code. This will open a wizard.
  2. In the first wizard page, optionally add any directories containing source code referenced by the source file. It is only necessary to add additional directories if referenced files are not located in the same directory as the program source code. Click Next, to parse the source code.
  3. The second wizard page lists the components found by the parser. By selecting a component, you will be able to see the Non-virtualized Test representation of the input/output data structure. Click Next.
  4. In the third wizard page, you must select a System and an Environment for the component. The System and Environment sets the runtime parameters for the component. You have to create a new System and/or environment if none are available for your program. (A later version will provide possibility to define runtime parameters directly in this wizard instead of require a system.)
  5. In the fourth wizard page, you see a summary of the components to be added to the repository. If a Warning symbol shows for a component, select the component to view the message describing the warning. Often it will state that the component already exists in the repository.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

BMC Compuware Topaz Workbench 20.07