The Java Demo




Introduction

The Java Demonstration provides a quick and easy way to demonstrate the capabilities of TETware professional. It forms the basis for the examples in the rest of this manual. If you encounter difficulties with the demonstration, please refer, in the first instance, to the relevant part of this manual for help.

The demonstration comprises a Test Run file and a scenario file that are used to manage the execution of three tests (provided):

IntegerTC This is a Test Case Class to test java.lang.Integer. It tests to see if intValue, toString and parseInt work according to their specification in the Java Documentation.
StackTC This is a Test Case Class to test java.util.stack.. It tests the 'java.util.stack' to ensure that the methods pop, push and search work according to their specification in the Java Documentation.
SystemTC This is a Test Case Class to test java.lang.system. It tests to see if Java method 'exit' of the 'java.lang.system' correctly terminates the running Java process and returns the given status code.


You must have installed TETware professional Lite to run this demonstration, i.e. it will run those tests on your local machine. You can vary the selection of the Tests and Modes of Operation during the demonstration.

Opening the Java Demo Test Run File

Once you have launched the TETware professional, you must open the Java Demo Test Run File that is provided with the TETware professional distribution. To do this use the "Open Test Run" item in the File menu (for alternative ways of opening a Test Run file please click here). Users will then be presented with a file selection dialog box that allows them to browse until the file java_demo1.trf is found, it should be in your TET_ROOT directory (i.e. the directory in which you installed TETware professional). Select the file so that it appears in the File Name box and click Open. The Java Demo Test Run will then appear as the first node in the Test Runs tree. Double click on Java Demo to open the Test Run tree.

Configuring the Java Demo

If you accepted the default directory names when you installed TETware professional you may now proceed the next section. If you changed the path to the TETware professional components, you must now re-configure the Test Run before you can execute it. To do this you must ensure that the correct path is set in the following places:
  1. Underneath the Java Demo Test Run double click on Configuration and then single click on Local System
  2. Next, click on the Local Environment tab. In the TET_ROOT box at the top of this tab, you must specify the location of the TETware professional software on your system. If you did not changed the drive or directory in which this software is installed you must now select the Browse button. This opens a Set value of: TET_ROOT message box. Select the directory in which you instructed the installer to place the software. (more . . .)
  3. Next click on the Local: Build Mode tab. On this tab, you must specify the location of the Build Tool for this demonstration in the TET_BUILD_TOOL box. The tool is called jet-build.exe. It is located in the bin directory under TET_ROOT. Now browse and select it. (more . . .)
  4. Next click on the Local: Execute Mode tab. On this tab, you must specify the location of the Execute Tool for this demonstration in the TET_EXECUTE_TOOL box. The tool is called jet-exec.exe. It is located in the bin directory under TET_ROOT. Now browse and select it. (more . . .)
  5. Next click on the Local: Clean Mode tab. On this tab, you must specify the location of the Clean Tool for this demonstration in the TET_CLEAN_TOOL box. The tool is called jet-clean.exe. It is located in the bin directory under TET_ROOT. Now browse and select it. (more . . .)
  6. Next click on the Reporting icon in the tree on the left hand side and then click on the TETware professional Report Writer tab. On this tab, you should specify the location of the Report Writer in the Report Generator box. The Report Writer is called grw.exe and is located in the bin directory under TET_ROOT. Browse and select it. (more . . .)
  7. Scroll down to the Output File box and specify the location and name of the file that you to write the report. Note that it is important that the file have the suffix ".html". (more . . .)
  8. Next, right click on the No scenario text at the bottom of the tree .  Select the Add Scenario File option. The Chose Scenario File message box will open at the TET_ROOT level. You need to double click on the directory jdemo to open it, and then double click on the file tet_scen to open it. That file is now displayed in the Scenario File Text screen. (N.B. This file is editable, it is important that you do not edit it or save it, as this may mean that the demo will not execute). Double click on the tet_scen and select at least one of the four scenarios listed. Once selected the red cross will change to a green tick. You must have at least one green tick visible before you can execute the Test Run. (more . . .)
You have now completed the configuration of the Java Demo and can proceed to carry out the demo.

Executing the Java Demo

Press the Execute Test Run button on the toolbar.

A Confirm execution start message box opens. Select 'Yes' to proceed. A no-entry sign will appear on the Execution Output on the Node Tree and will remain there as long as the tests are executing. Once these sign disappears, the demo has run.

Click on the Execution Output icon   in the tree. You should see text in the Execution Output window that provides the path to the journal file for that Test Run execution and confirms that the scenario tests that you selected have been performed in the modes of operation that were specified. Make a note of the number of the directory in which the Journal file is placed.

If you have text in the Error Output window please copy it into an email and send it to tetware_manager@opengroup.org.

Handling the Results

View the Journal File

Click on the Journal in the tree.

You can now view the text of the Journal File that was generated when you executed the Test Run. Look at the first line of the Journal. It gives you the time and date that the Test Run was executed, (the date is in the format yyyymmdd) so you can confirm that it is your Test Run.

Report Writer

Click on the Reporting tab, and the TETware professional Report Writer. Scroll down to the foot of this pane. You should see that the Journal name has been updated to the file that you have just generated. (more . . .)

Select the Run TETware Report Writer button on the toolbar.

Using your browser you can locate and view the output file. It will be in the location that you specified while carrying out item 7 in Configuring the Java Demo.

Database

Select the Start Extract to Database button on the toolbar.

A file Open box will appear. You should see that the directory specified at Look in is the directory number for your Journal file. Click on Open. Once the extraction is finished a Database Extract finished message box will open. Click on OK to close it. Now go and find the Journal file parameters in your Database.

Conclusion

That concludes the TETware professional Java Demonstration.



© The Open Group 1995-2002