Using the test drive  Addition test drive control panel options

Chapter 3: Building Production Objects

Test Drive menu and control panel options

The following options are available from the Production Object Information window Test Drive menu. When the same option is available from the Test Drive control panel, the equivalent option is listed in the second column.

Test Drive menu option

Test Drive control panel option

Description

Start Test Drive

Field Value

Starts the test drive for the current production object. Four windows display:

  • Test Drive control panel – opens the Test Drive window. This windows options allow you to control the testing input, output, and parameters. See

  • Input Value window – when you enter data in the Test Drive control panel’s Field Value to test a production rule, the this window displays the value you entered. When you use a data file to test a production rule, it displays the content of the input transaction. The maximum display of the Input Value window is 256 characters. The data displays in character format on the top line and in hexadecimal on the second line with a position notation on the third line.

  • Output Value window – displays the value produced by a single selected production rule or by all of a production object’s rules depending upon whether you used run rule or run all. Like the Input. The maximum display of is 256 characters. The data displays in character format on the top line and in hexadecimal on the second line. The third line has position notation.

  • Input Field Parsed Data window (Input Field Dump) – displays parsed results. Click Dump to save the results to a text file.

Toggle Window

none

Allows you to toggle between, open and close, the four test drive windows (Test Drive, Input/Output Value, Input Field Parsed Data).

Load

Load File

Load First

Load Next

Load the data to test drive:

  • Whole File – loads a file that contains a complete input transaction. When you load a data file, TRAN-IDE clears the datalink objects and places the appropriate data into each field object’s datalink, when defined.

  • First Trxn – loads a data file that contains multiple transactions, then loads the first transaction in the data file.

  • Next Trxn – loads the next transaction in the data file selected using First Trxn.

  • Set Trxn Delimiter – opens the Multi-Record Detail window:

    • Transaction Separator – if using a transaction separator character as a delimiter, select one from the drop-down list of common separators, or type the separator in the entry field.

    • Fixed Record Length – if the records have a fixed length, enter that value.

Run

Run All Rules

Run Rule

Run Until

Select the data to run:

  • All Output Rules – once a file is loaded, select this option to run the transaction through the entire set of production rules in the Production Rules list, in the order presented in that list.

  • Current Output Rule – test the currently selected output rule.

  • Until Current Output Rule – once a file is loaded, select this option to run the transaction through the production rules up to and including the rule currently selected in the Production Rules list. All production rules after the selected rule are not run on the transaction.

View Datalinks

View Datalinks

Opens the View Datalinks window and displays the production object’s datalinks and their contents. The top pane displays all datalinks. The bottom pane displays the contents of the datalink selected in the top pane. Click Done to exit and close the window.

Find Rule

Find Rule

Use this option after testing a complete production object with all rules. Highlight a portion of data in the Output Value window and select this option. TRAN-IDE moves the selection bar in the production rule list to the production rule that generated the data. If you do not select any data in the Output Value window and select this option, TRAN-IDE selects the production rule that generated the data that starts at the far left position in the window.

End Test Drive

none

Stops the test drive.

Window Geography

none

Select from the following options:

  • Save Current Geo – saves the current geography of the test drive windows so that the next time you use the test drive, the windows are in the same position on the screen.

  • Load Custom Geo – restorers the test drive windows to the position on the screen they were in the last time Save Current Geo was selected.

  • Load Default Geo – restores the test drive windows to the TRAN-IDE default location.

  • Reset Geography – resets the test drive windows to the position where they were located when the test drive was started.





Copyright © 2005. Sybase Inc. All rights reserved. Addition test drive control panel options

View this book as PDF