home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / tstngn.zip / DISK1.ZIP / tsthlpgb.hlp (.txt) < prev    next >
OS/2 Help File  |  1995-02-28  |  30KB  |  899 lines

  1.  
  2. ΓòÉΓòÉΓòÉ 1. Introduction ΓòÉΓòÉΓòÉ
  3.  
  4. Test Engine/2 is a programming tool designed for high level debugging and for 
  5. function, module and integration testing. 
  6.  
  7. Judicious use of Test Tracing within an application allows you to locate 
  8. functional and logical bugs quickly and efficiently. This allows you to reserve 
  9. the time consuming use of a debugger for tracking down complex problems such as 
  10. access violations, stack overflows etc.. 
  11.  
  12. Test Engine/2 is delivered as a multi-lingual product and can be started in any 
  13. of installed languages. The language can also be dynamically changed on-line. 
  14. The following languages are initially supplied : 
  15.  
  16.      o English 
  17.      o French 
  18.      o German 
  19.      lm margin=1. 
  20.  
  21.      The default start-up language can be set using the Options Notebook, from 
  22.      the command line by using the language parameter (see Startup 
  23.      Parameters)or from a program that starts Test Engine/2 through the C/C++ 
  24.      or REXX interface. 
  25.  
  26.      The programming interface for Test Engine/2 is described in the Test 
  27.      Engine/2 Programming Guide INF. file. The function and MACRO API for Test 
  28.      Engine/2 are included in TSTNGEN.NDX which makes them available to the 
  29.      on-line help for editors such as epm, Source Link etc. that support 
  30.      on-line help using VIEW.EXE. 
  31.  
  32.  
  33. ΓòÉΓòÉΓòÉ 2. Test Tracing ΓòÉΓòÉΓòÉ
  34.  
  35. Tracing of messages is configurable from both the Test Engine/2 program 
  36. interface and through the API. There are several possible modes of operation 
  37. for test tracing. 
  38.  
  39.       1. Each thread of a process can be registered independently with Test 
  40.          Engine/2 with a unique name that is meaningful to the programmer and 
  41.          can have its own trace file. 
  42.  
  43.       2. Each thread of a process can be registered independently with Test 
  44.          Engine/2 with a unique name that is meaningful to the programmer and a 
  45.          trace file can be opened for the process. 
  46.  
  47.       3. Traces can be sent using the API functions and/or Macros without 
  48.          registering any threads. In this case the destination of the traces is 
  49.          determined from within Test Engine/2 by setting the default trace file 
  50.          and enabling the Global trace on/off menu item. 
  51.  
  52.       4. A mix of the above tracing modes may be used, some threads being 
  53.          registered with trace files, others registered with no file and some 
  54.          that are not registered at all. 
  55.  
  56.  You can define the header that is inserted into the trace file at the 
  57.  beginning of a test run and the footer added to the end of a trace file using 
  58.  the Header and Footer entries in the Options Notebook. 
  59.  
  60.  You can also define the format of a message, time and date strings using the 
  61.  Options Notebook. 
  62.  
  63.  See Formatting Flags for a detailed description of formatting flags available 
  64.  for the message string, headers and footers. 
  65.  
  66.  
  67. ΓòÉΓòÉΓòÉ 3. Formatting Flags ΓòÉΓòÉΓòÉ
  68.  
  69. Special formatting flags, consisting of "$" followed by a Capital letter, are 
  70. supplied for creating message format, header and footer templates. These 
  71. templates can include any other literal characters or symbols. 
  72.  
  73. The following flags are available for defining the message format : 
  74.  
  75.      o $N : prints the registered name of the thread or process. 
  76.      o $P : prints the process id of the process that sent the trace 
  77.      o $T : prints the process related thread id of the thread that sent the 
  78.        message, the main thread of a process always has id = 1. 
  79.      o $D : prints the date the message was sent in the format defined in the 
  80.        Options Notebook. 
  81.      o $I : prints the time the message was sent in the format defined in the 
  82.        Options Notebook. 
  83.      o $M : prints the actual message that was sent. 
  84.  
  85.  Message Format Example 
  86.  
  87.     $N ($P:$T) [$D $I] > $M
  88.  
  89.   This might give the following output.
  90.  
  91.     TESTPROC (261:2) [93.11.22 11:12:34:45] > The return from TstFunction was 23
  92.  
  93.  The following flags are available for writing headers and footers : 
  94.  
  95.      o $D : prints the date the message was sent in the format defined in the 
  96.        Options Notebook. 
  97.      o $I : prints the time the message was sent in the format defined in the 
  98.        Options Notebook. 
  99.      o $F : prints the full path name of the trace file. 
  100.  
  101.  Header Example 
  102.  
  103.    **********************************************************************
  104.  
  105.   $F    $D ($I)
  106.  
  107.   ADD Consulting
  108.  
  109.   *********************************************************************
  110.  
  111.  giving an output 
  112.  
  113.    **********************************************************************
  114.  
  115.   D:\TESTPROJ\TESTTRACE\TEST.TRC    1993.11.22 (12:22:12:97)
  116.  
  117.   ADD Consulting
  118.  
  119.   **********************************************************************
  120.  
  121.  
  122. ΓòÉΓòÉΓòÉ 4. File Menu ΓòÉΓòÉΓòÉ
  123.  
  124. The file menu his used to control output from the Test Engine/2 window to files 
  125. and printers, to trace incoming messages and to exit the program. 
  126.  
  127. For more information see one of the following topics : 
  128.  
  129.      o Global trace on/off 
  130.      o Close global trace 
  131.      o Clear View 
  132.      o Save View 
  133.      o Print View 
  134.      o Choose Printer 
  135.      o Exit 
  136.  
  137.  
  138. ΓòÉΓòÉΓòÉ 4.1. Global trace on/off ΓòÉΓòÉΓòÉ
  139.  
  140. Hot Key <F5> 
  141.  
  142. Toggles the tracing of messages sent to Test Engine/2 into the global trace 
  143. file. The first time this menu item is selected the trace file is opened in the 
  144. Open files for append mode as defined in the Options Notebook. When tracing is 
  145. active the menu item is marked and the name of the trace file appears in the 
  146. title bar. 
  147.  
  148. To close the trace file use the menu item Close global trace 
  149.  
  150. The messages which are traced depend on the trace options set in the Options 
  151. Notebook. Either all incoming messages are traced or only messages from unknown 
  152. (un-registered) sources are traced. 
  153.  
  154.  
  155. ΓòÉΓòÉΓòÉ 4.2. Close global trace ΓòÉΓòÉΓòÉ
  156.  
  157. Hot Key <Shift-F5> 
  158.  
  159. Closes the global trace file and switches global tracing off. If no global 
  160. trace file has been opened this action has no effect. 
  161.  
  162.  
  163. ΓòÉΓòÉΓòÉ 4.3. Clear View ΓòÉΓòÉΓòÉ
  164.  
  165. Hot Key <F9> 
  166.  
  167. Clears the monitor window of all visible trace messages. This action does not 
  168. affect the tracing to either the global or local trace files. 
  169.  
  170. Note: a Save View action immediately following a clear view action will create 
  171. an empty file containing only the header and footer as defined in the Options 
  172. Notebook. 
  173.  
  174.  
  175. ΓòÉΓòÉΓòÉ 4.4. Save View ΓòÉΓòÉΓòÉ
  176.  
  177. Hot Key <F2> 
  178.  
  179. Saves the contents of the monitor buffer (up to 300 messages) to a file. You 
  180. will be shown the standard file dialog where you can select a file to dump the 
  181. contents of the Test Engine/2 monitor window. 
  182.  
  183.  
  184. ΓòÉΓòÉΓòÉ 4.5. Print View ΓòÉΓòÉΓòÉ
  185.  
  186. Hot Key <F4> 
  187.  
  188. Prints the contents of the monitor buffer (up to 300 messages) to the printer 
  189. chosen with the Choose Printer dialog. If no printer has been chosen the Choose 
  190. Printer dialog is popped up so that you can choose a printer. 
  191.  
  192. Note: All printing from Test Engine/2 is in PM_RAW mode. 
  193.  
  194.  
  195. ΓòÉΓòÉΓòÉ 4.6. Choose Printer ΓòÉΓòÉΓòÉ
  196.  
  197. Hot Key <F6> 
  198.  
  199. Displays the Choose Printer Dialog where you can select a printer from a list 
  200. of all the printers currently available to your work-station. All subsequent 
  201. print operations will then be sent to the chosen device. 
  202.  
  203. All the printers connected to you work-station including network devices can be 
  204. selected from this dialog. 
  205.  
  206. The Choose Printer Dialog is described in the Test Engine/2 Programming 
  207. reference as it forms part of the tools delivered with the Test Engine/2 
  208. package. 
  209.  
  210.  
  211. ΓòÉΓòÉΓòÉ 4.7. Exit ΓòÉΓòÉΓòÉ
  212.  
  213. Hot Key <F3> 
  214.  
  215. Displays the Exit Dialog so that you can quit Test Engine/2. 
  216.  
  217. WARNING: this action injects a message into the Test Engine/2 queue and there 
  218. may be a delay while Test Engine/2 reads any outstanding messages from it's 
  219. queue before the program actually terminates. 
  220.  
  221. DO NOT KILL Test Engine/2 until all activity has ceased. 
  222.  
  223.  
  224. ΓòÉΓòÉΓòÉ 5. Edit Menu ΓòÉΓòÉΓòÉ
  225.  
  226. Under this menu you can interactively edit the contents of the header file, 
  227. footer file or any trace file of your choice. The editor that is called is 
  228. defined in the Options Notebook. 
  229.  
  230. For more information, see one of the following topics : 
  231.  
  232.      o Edit header 
  233.      o Edit footer 
  234.      o Edit trace file 
  235.      o Print trace file 
  236.      o Edit global trace file 
  237.      o Print global trace file 
  238.  
  239.  
  240. ΓòÉΓòÉΓòÉ 5.1. Edit header ΓòÉΓòÉΓòÉ
  241.  
  242. Calls the default editor to edit the header file defined in the Options 
  243. Notebook. 
  244.  
  245. The header file is a block of text that is inserted into all trace files when 
  246. they are opened and can contain Formatting Flags. If the file is opened in 
  247. append mode, a Form Feed character is inserted preceding the header block. 
  248.  
  249.  
  250. ΓòÉΓòÉΓòÉ 5.2. Edit footer ΓòÉΓòÉΓòÉ
  251.  
  252. Calls the default editor to edit the footer file defined in the Options 
  253. Notebook. 
  254.  
  255. The footer file is a block of text that is appended to all trace files when 
  256. they are closed and can contain Formatting Flags. 
  257.  
  258.  
  259. ΓòÉΓòÉΓòÉ 5.3. Edit trace file ΓòÉΓòÉΓòÉ
  260.  
  261. Displays the standard file dialog to choose a file (usually a trace) and then 
  262. calls the default editor to view or modify the file (see Options Notebook). 
  263.  
  264.  
  265. ΓòÉΓòÉΓòÉ 5.4. Print trace file ΓòÉΓòÉΓòÉ
  266.  
  267. Displays the standard file dialog to choose a file (usually a trace) that can 
  268. then be printed on the default printer (see Choose Printer). If no printer has 
  269. been defined then the Choose Printer Dialog is presented before the file 
  270. dialog. If you do not choose a printer from this dialog then no file can be 
  271. chosen for printing. 
  272.  
  273.  
  274. ΓòÉΓòÉΓòÉ 5.5. Edit global trace file ΓòÉΓòÉΓòÉ
  275.  
  276. Calls the default editor with the global trace file. see the Options Notebook 
  277.  
  278.  
  279. ΓòÉΓòÉΓòÉ 5.6. Print global trace file ΓòÉΓòÉΓòÉ
  280.  
  281. Prints the global trace file. 
  282.  
  283. If no printer has been defined then the Choose Printer Dialog is opened before 
  284. calling the print function. If you do not choose a printer the global trace 
  285. file is not printed. 
  286.  
  287.  
  288. ΓòÉΓòÉΓòÉ 6. Options Menu ΓòÉΓòÉΓòÉ
  289.  
  290. Under this menu you can change the settings and save them to the program 
  291. profile. For more information see one of the following topics : 
  292.  
  293.      o Default settings 
  294.      o Save Settings 
  295.  
  296.  
  297. ΓòÉΓòÉΓòÉ 6.1. Default settings ΓòÉΓòÉΓòÉ
  298.  
  299. Hot Key <F7> 
  300.  
  301. Displays the Options Notebook where all default settings for Test Engine/2 can 
  302. be changed or viewed. 
  303.  
  304.  
  305. ΓòÉΓòÉΓòÉ 6.2. Save Settings ΓòÉΓòÉΓòÉ
  306.  
  307. Hot Key <F10> 
  308.  
  309. Saves all the settings from the Options Notebook in the profile TSTNGEN.INI 
  310.  
  311.  
  312. ΓòÉΓòÉΓòÉ 7. Actions Menu ΓòÉΓòÉΓòÉ
  313.  
  314. Under this menu you can manipulate child sessions and registered processes and 
  315. threads that are tracing to Test Engine/2. 
  316.  
  317. For more detailed help see one of the following topics : 
  318.  
  319.  o Processes and threads 
  320.  o Start sessions 
  321.  o Manage sessions 
  322.  
  323.  
  324. ΓòÉΓòÉΓòÉ 7.1. Processes and threads ΓòÉΓòÉΓòÉ
  325.  
  326. Hot Key <F8> 
  327.  
  328. Displays the Processes and Threads Dialog where you can control the processes 
  329. and threads that are registered with Test Engine/2. You can open, close and 
  330. change trace files for each registered thread or process, change the tracing 
  331. mode (append), start or stop tracing of messages to the Test Engine/2 monitor 
  332. window and kill any registered process. 
  333.  
  334.  
  335. ΓòÉΓòÉΓòÉ 7.2. Start sessions ΓòÉΓòÉΓòÉ
  336.  
  337. Displays the Start Sessions Dialog where you can start child sessions from Test 
  338. Engine/2. These child sessions can be controlled using the Manage Sessions 
  339. Dialog. 
  340.  
  341. Any programs that are started from Test Engine/2 using this dialog will be 
  342. terminated by the Operating system when Test Engine/2 terminates. 
  343.  
  344. Child sessions do NOT inherit any files, pipes or other resources from Test 
  345. Engine/2. However, a trace is made if they terminate and the termination code 
  346. is returned to Test Engine/2 by the Operating System. 
  347.  
  348. Child sessions may also register with Test Engine/2 in which case they cannot 
  349. be killed from the Manage Sessions Dialog only from the Processes and Threads 
  350. Dialog. 
  351.  
  352.  
  353. ΓòÉΓòÉΓòÉ 7.3. Manage sessions ΓòÉΓòÉΓòÉ
  354.  
  355. Displays the Manage Sessions Dialog which shows a list of the currently active 
  356. child sessions. From this dialog you can bring these child sessions to the 
  357. foreground or kill them. 
  358.  
  359.  
  360. ΓòÉΓòÉΓòÉ 8. Tools Menu ΓòÉΓòÉΓòÉ
  361.  
  362. For more detailed help see one of the following topics : 
  363.  
  364.      o OS/2 Window 
  365.      o Running Processes 
  366.  
  367.  
  368. ΓòÉΓòÉΓòÉ 8.1. OS/2 Window ΓòÉΓòÉΓòÉ
  369.  
  370. Hot Key <F11> 
  371.  
  372. Starts an OS/2 Command Window as an independent session. This command window 
  373. will not be terminated by the Operating System when Test Engine/2 terminates. 
  374.  
  375.  
  376. ΓòÉΓòÉΓòÉ 8.2. Running Processes ΓòÉΓòÉΓòÉ
  377.  
  378. Displays the Running Processes Dialog which shows a list of all processes 
  379. running on the work station. 
  380.  
  381. This list is sorted by PID and is extracted from the Operating System. By 
  382. selecting an item from the list it is possible to kill that process using the 
  383. Kill button. 
  384.  
  385. The list can be updated by pressing the Refresh button. 
  386.  
  387.  
  388. ΓòÉΓòÉΓòÉ 9. Exit Dialog ΓòÉΓòÉΓòÉ
  389.  
  390. Hot Keys <F3 (Alt-F4)> 
  391.  
  392. To terminate the Test Engine/2 session press the Exit button. The size of the 
  393. window will be saved if the Save Window Size check box is marked. 
  394.  
  395. To continue the Test Engine/2 session press the Continue  button. 
  396.  
  397.  
  398. ΓòÉΓòÉΓòÉ 9.1. Save Window Size ΓòÉΓòÉΓòÉ
  399.  
  400. If you want to save the size and screen position of the Test Engine/2 window, 
  401. you must ensure that this check box is marked. 
  402.  
  403.  
  404. ΓòÉΓòÉΓòÉ 10. Options Notebook ΓòÉΓòÉΓòÉ
  405.  
  406. Hot Key <F7> 
  407.  
  408. The Options Notebook allows you to choose and define the default settings for 
  409. Test Engine/2. The notebook is composed of six pages, for more information see 
  410. one of the following topics : 
  411.  
  412.      o Files Page 
  413.  
  414.         - Global Trace File 
  415.         - Choose Global Trace File 
  416.         - Header File Name 
  417.         - Choose Header File 
  418.         - Footer File Name 
  419.         - Choose Footer File 
  420.  
  421.      o Editor Page 
  422.  
  423.         - Default Editor 
  424.         - Editor Invocation String 
  425.  
  426.      o Formats Page 
  427.  
  428.         - Trace string mask 
  429.         - Date format mask 
  430.         - Time format mask 
  431.  
  432.      o Trace Page 
  433.  
  434.         - Trace by process 
  435.         - Trace by thread 
  436.         - Trace unregistered threads into process file 
  437.         - Use thread 1 file as process file 
  438.         - Global trace unregistered 
  439.         - Global trace all 
  440.         - Trace source changes 
  441.         - Open files for append 
  442.         - Monitor 
  443.  
  444.      o Language Page 
  445.  
  446.         - Languages 
  447.  
  448.      o Display Page 
  449.  
  450.         - Manual refresh only 
  451.         - Refresh rate 
  452.         - Choose monitor font 
  453.  
  454.  
  455. ΓòÉΓòÉΓòÉ 10.1. Global Trace File ΓòÉΓòÉΓòÉ
  456.  
  457. Enter the full path of the file that will be opened to receive global traces 
  458. into this field. You may select the file by pressing the Choose Global Trace 
  459. File button. 
  460.  
  461. This is the file that will be opened and traced to when Global trace on/off is 
  462. selected from the file menu. 
  463.  
  464.  
  465. ΓòÉΓòÉΓòÉ 10.2. Choose Global Trace File ΓòÉΓòÉΓòÉ
  466.  
  467. This button displays the standard file dialog to choose the global trace file. 
  468.  
  469. The name of the selected file is inserted into the Global Trace File entry 
  470. field. 
  471.  
  472.  
  473. ΓòÉΓòÉΓòÉ 10.3. Header File Name ΓòÉΓòÉΓòÉ
  474.  
  475. Enter the full path of the file that contains the header block that will be 
  476. inserted at the top of any trace file. see Formatting Flags. You may select the 
  477. file that will be used by pressing the Choose Header File button. 
  478.  
  479.  
  480. ΓòÉΓòÉΓòÉ 10.4. Choose Header File ΓòÉΓòÉΓòÉ
  481.  
  482. This button displays the standard file dialog to choose the header file. 
  483.  
  484. The name of the selected file is inserted into the Header File Name entry 
  485. field. 
  486.  
  487.  
  488. ΓòÉΓòÉΓòÉ 10.5. Footer File Name ΓòÉΓòÉΓòÉ
  489.  
  490. Enter the full path of the file that contains the footer block that will be 
  491. inserted at the end of any trace file. see also Formatting Flags. You may 
  492. select the file that will be used by pressing the Choose Footer File button. 
  493.  
  494.  
  495. ΓòÉΓòÉΓòÉ 10.6. Choose Footer File ΓòÉΓòÉΓòÉ
  496.  
  497. This button displays the standard file dialog to choose the footer file. 
  498.  
  499. The name of the selected file is inserted into the Footer File Name entry 
  500. field. 
  501.  
  502.  
  503. ΓòÉΓòÉΓòÉ 10.7. Default Editor ΓòÉΓòÉΓòÉ
  504.  
  505. Enter the name of the Editor program that should be called to edit header, 
  506. footer and trace files from Test Engine/2. 
  507.  
  508. If the editor is not in a directory that appears in the PATH statement of 
  509. CONFIG.SYS, then the full path name must be given. 
  510.  
  511.  
  512. ΓòÉΓòÉΓòÉ 10.8. Editor Invocation String ΓòÉΓòÉΓòÉ
  513.  
  514. Enter the invocation string for calling the editor. Use %s for the file name 
  515. and include any other switches you may need. 
  516.  
  517. DO NOT include the program name in this invocation string as it is included by 
  518. Test Engine/2. 
  519.  
  520. Example for epm : /o %s 
  521.  
  522.  
  523. ΓòÉΓòÉΓòÉ 10.9. Trace string mask ΓòÉΓòÉΓòÉ
  524.  
  525. Enter the trace string mask into this field. For more information about the 
  526. special characters that you can enter, see Formatting Flags. 
  527.  
  528.  
  529. ΓòÉΓòÉΓòÉ 10.10. Date format mask ΓòÉΓòÉΓòÉ
  530.  
  531. Enter the date format mask into this field. The available format characters for 
  532. a date are : 
  533.  
  534.      o Y : year character 
  535.      o M : month character 
  536.      o D : day character 
  537.  
  538.  Example : YY.MM.DD will give an output of 94.03.28, DD/MM/YYYY will give 
  539.  28/03/1994. 
  540.  
  541.  
  542. ΓòÉΓòÉΓòÉ 10.11. Time format mask ΓòÉΓòÉΓòÉ
  543.  
  544. Enter the time format mask into this field. The format of a time format is : 
  545.  
  546.      o h : hours character 
  547.      o m : minutes character 
  548.      o s : seconds character 
  549.      o t : hundredths character 
  550.  
  551.  Example : hh.mm.ss.tt will give an output of 12.32.45.23. 
  552.  
  553.  
  554. ΓòÉΓòÉΓòÉ 10.12. Trace by process ΓòÉΓòÉΓòÉ
  555.  
  556. Check this radio button if you want to have your traces grouped by process 
  557. rather than by thread. The choice made here is applicable to the whole test 
  558. session. 
  559.  
  560. You can only change the running mode of Test Engine/2 if there are no 
  561. registered processes or threads. 
  562.  
  563.  
  564. ΓòÉΓòÉΓòÉ 10.13. Trace by thread ΓòÉΓòÉΓòÉ
  565.  
  566. Check this radio button if you want to have your traces grouped by thread 
  567. rather than by process. The choice made here is applicable to the whole test 
  568. session. 
  569.  
  570. You can only change the running mode of Test Engine/2 if there are no 
  571. registered processes or threads. 
  572.  
  573.  
  574. ΓòÉΓòÉΓòÉ 10.14. Trace unregistered threads into process file ΓòÉΓòÉΓòÉ
  575.  
  576. Check this box if you wish any messages from unregistered threads to be traced 
  577. into the file opened by the owning process of the thread. 
  578.  
  579. This requires that a trace file is opened for the owning process in the 
  580. Processes and Threads Dialog. 
  581.  
  582.  
  583. ΓòÉΓòÉΓòÉ 10.15. Use thread 1 file as process file ΓòÉΓòÉΓòÉ
  584.  
  585. Check this box if you wish any messages from unregistered threads to be traced 
  586. into the file opened from the "main" function of the process (thread 1). 
  587.  
  588. This is only valid if Trace by thread is on. 
  589.  
  590.  
  591. ΓòÉΓòÉΓòÉ 10.16. Global trace unregistered ΓòÉΓòÉΓòÉ
  592.  
  593. Trace only messages from unregistered processes or threads to the Global Trace 
  594. file. 
  595.  
  596.  
  597. ΓòÉΓòÉΓòÉ 10.17. Global trace all ΓòÉΓòÉΓòÉ
  598.  
  599. Trace all incoming messages to the  Global Trace file. 
  600.  
  601.  
  602. ΓòÉΓòÉΓòÉ 10.18. Trace source changes ΓòÉΓòÉΓòÉ
  603.  
  604. If this box is checked, all changes in the source of the messages is noted in 
  605. the Global trace on/off file (if active) and in the view window. 
  606.  
  607.  
  608. ΓòÉΓòÉΓòÉ 10.19. Open files for append ΓòÉΓòÉΓòÉ
  609.  
  610. Check this box to open all trace files in append mode. 
  611.  
  612. If this box is not checked, any trace file that already exists will be 
  613. overwritten. 
  614.  
  615. This flag is off by default 
  616.  
  617.  
  618. ΓòÉΓòÉΓòÉ 10.20. Monitor ΓòÉΓòÉΓòÉ
  619.  
  620. Check this box if you want the messages from newly registered processes or 
  621. threads to be automatically shown in the view window. 
  622.  
  623. This flag is on by default 
  624.  
  625.  
  626. ΓòÉΓòÉΓòÉ 10.21. Languages ΓòÉΓòÉΓòÉ
  627.  
  628. The current language will be highlighted. If you select another, you will be 
  629. asked if you want to change to the new language on exiting the settings dialog. 
  630.  
  631.  
  632. ΓòÉΓòÉΓòÉ 10.22. Manual refresh only ΓòÉΓòÉΓòÉ
  633.  
  634. This check box allows you to disable the the atomatic refresh for the list 
  635. diplayed in the Running Processes Dialog. If this check box is marked, you will 
  636. only be able to refresh the display using the refresh button. 
  637.  
  638.  
  639. ΓòÉΓòÉΓòÉ 10.23. Refresh rate ΓòÉΓòÉΓòÉ
  640.  
  641. Using this spin button you can set the number of seconds between each refresh 
  642. of the list displayed in the Running Processes Dialog from 1 to 65 seconds 
  643. (maximum allowable delay for a window timer). 
  644.  
  645. Note: It is recommended to keep the refresh delay above 10 seconds, otherwise 
  646. the selection of items from the list will be difficult. 
  647.  
  648.  
  649. ΓòÉΓòÉΓòÉ 10.24. Choose monitor font ΓòÉΓòÉΓòÉ
  650.  
  651. This option allows you to change the font used to display traces in the monitor 
  652. window. The default is courier 8pt. 
  653.  
  654. Pressing the button will call the system font dialog where you can choose a 
  655. different font. 
  656.  
  657.  
  658. ΓòÉΓòÉΓòÉ 11. Running Processes Dialog ΓòÉΓòÉΓòÉ
  659.  
  660. Hot Key <F12)> 
  661.  
  662. A List of all the processes that are running on the work-station are shown in a 
  663. list box. 
  664.  
  665. The initial display is the state of the work-station when the dialog was opened 
  666. and will be refreshed periodically depending on the settings of the Refresh 
  667. rate spin button in the Options Notebook. 
  668.  
  669. The display can be refreshed manually by pressing the Refresh button. If the 
  670. Manual refresh only check box is marked you can only update the display with 
  671. the Refresh button. 
  672.  
  673. Any process running on the work-station can be killed by selecting it and then 
  674. pressing the Kill button. 
  675.  
  676.  
  677. ΓòÉΓòÉΓòÉ 12. Start Sessions Dialog ΓòÉΓòÉΓòÉ
  678.  
  679. From this dialog you can start child sessions from Test Engine/2. Note that any 
  680. sessions started in this way will be terminated by OS/2 when Test Engine/2 is 
  681. closed. 
  682.  
  683. For more information select one of the following topics : 
  684.  
  685.      o Session Name 
  686.      o Program Name 
  687.      o Program Parameters 
  688.      o Choose program button 
  689.      o Start button 
  690.  
  691.  
  692. ΓòÉΓòÉΓòÉ 12.1. Program Name ΓòÉΓòÉΓòÉ
  693.  
  694. Enter the name of the program that is to be started. This can be selected using 
  695. the Choose program button. If the program is not on the PATH for the system, 
  696. the full path must be given. 
  697.  
  698. Any operable program or command file may be given ( *.EXE, *.COM, *.CMD). 
  699.  
  700.  
  701. ΓòÉΓòÉΓòÉ 12.2. Choose program button ΓòÉΓòÉΓòÉ
  702.  
  703. Pressing this button displays the standard file dialog to select the program 
  704. that will run as a child session. The result is inserted into the Program Name 
  705. field. 
  706.  
  707.  
  708. ΓòÉΓòÉΓòÉ 12.3. Program Parameters ΓòÉΓòÉΓòÉ
  709.  
  710. Enter the parameters, if any, that should be passed to the program. 
  711.  
  712.  
  713. ΓòÉΓòÉΓòÉ 12.4. Session Name ΓòÉΓòÉΓòÉ
  714.  
  715. Enter the name that the session will known under for Test Engine/2. This name 
  716. will appear in the list of active sessions in the Manage Sessions Dialog. 
  717.  
  718. For a Command Window, this name is used for the title bar. 
  719.  
  720.  
  721. ΓòÉΓòÉΓòÉ 12.5. Start button ΓòÉΓòÉΓòÉ
  722.  
  723. Start the session defined in the fields of the dialog. If any of the required 
  724. fields is empty, Test Engine/2 will emit a beep and the cursor will be sent to 
  725. the first empty field. 
  726.  
  727.  
  728. ΓòÉΓòÉΓòÉ 13. Manage Sessions Dialog ΓòÉΓòÉΓòÉ
  729.  
  730. Use this dialog to control any sessions started with the Start Sessions Dialog. 
  731. The list box contains a list of the sessions that have been started from the 
  732. Start Sessions Dialog. When a session is selected in the list it can then be 
  733. killed (if it has not registered with Test Engine/2) with the Kill session 
  734. button. or brought to the foreground with the Select session button. 
  735.  
  736.  
  737. ΓòÉΓòÉΓòÉ 13.1. Kill session button ΓòÉΓòÉΓòÉ
  738.  
  739. If the child session has not registered with Test Engine/2, the selected 
  740. session can be killed by pressing this button. 
  741.  
  742.  
  743. ΓòÉΓòÉΓòÉ 13.2. Select session button ΓòÉΓòÉΓòÉ
  744.  
  745. Use this button to bring a session selected from the list box to the foreground 
  746. of the desktop. 
  747.  
  748.  
  749. ΓòÉΓòÉΓòÉ 14. Processes and Threads Dialog ΓòÉΓòÉΓòÉ
  750.  
  751. Hot Key <F8> 
  752.  
  753. This dialog shows all the processes and threads that are registered with Test 
  754. Engine/2. For more information on the fields and buttons please select one of 
  755. the following topics : 
  756.  
  757.      o Trace on/off 
  758.      o Monitor 
  759.      o View threads 
  760.      o View processes 
  761.      o Trace file name 
  762.      o Choose trace file 
  763.      o Open trace file 
  764.      o Close trace file 
  765.      o Append trace file 
  766.      o Kill process 
  767.  
  768.  
  769. ΓòÉΓòÉΓòÉ 14.1. View threads ΓòÉΓòÉΓòÉ
  770.  
  771. This is the default viewing mode if the trace mode is set to Thread Tracing 
  772. (see Options Notebook). It shows a list of the threads registered with Test 
  773. Engine/2. 
  774.  
  775. This option is deactivated if trace mode is set to Process Tracing. 
  776.  
  777.  
  778. ΓòÉΓòÉΓòÉ 14.2. View processes ΓòÉΓòÉΓòÉ
  779.  
  780. This is the default viewing mode if the trace mode is set to Process Tracing 
  781. (see the Options Notebook). It shows a list of the processes registered with 
  782. Test Engine/2. 
  783.  
  784. To select a process for killing you must activate this mode. 
  785.  
  786.  
  787. ΓòÉΓòÉΓòÉ 14.3. Trace on/off ΓòÉΓòÉΓòÉ
  788.  
  789. If this box is checked, all messages from the selected thread or process will 
  790. be traced to the file shown in the Trace file name entry field. 
  791.  
  792.  
  793. ΓòÉΓòÉΓòÉ 14.4. Monitor ΓòÉΓòÉΓòÉ
  794.  
  795. If this box is checked, all messages from the selected thread or process will 
  796. be shown in the view window. 
  797.  
  798.  
  799. ΓòÉΓòÉΓòÉ 14.5. Trace file name ΓòÉΓòÉΓòÉ
  800.  
  801. This field can be used to enter the name of a file for tracing from the thread 
  802. or process selected in the list box. 
  803.  
  804. If the selected thread or process has registered a trace file, its name will 
  805. appear in this entry field. 
  806.  
  807. You may select a file from the file dialog by pressing the Choose trace file 
  808. button. 
  809.  
  810.  
  811. ΓòÉΓòÉΓòÉ 14.6. Choose trace file ΓòÉΓòÉΓòÉ
  812.  
  813. This will display the standard file dialog where you can choose a trace file 
  814. for the selected process or thread. The chosen file name will be inserted into 
  815. the Trace file name entry field. 
  816.  
  817.  
  818. ΓòÉΓòÉΓòÉ 14.7. Open trace file ΓòÉΓòÉΓòÉ
  819.  
  820. To open the trace file shown in the Trace file name entry field, press this 
  821. button. 
  822.  
  823.  
  824. ΓòÉΓòÉΓòÉ 14.8. Close trace file ΓòÉΓòÉΓòÉ
  825.  
  826. To close the trace file shown in the Trace file name entry field, press this 
  827. button. 
  828.  
  829.  
  830. ΓòÉΓòÉΓòÉ 14.9. Append trace file ΓòÉΓòÉΓòÉ
  831.  
  832. If this button is checked the Trace file will be opened in append mode, 
  833. otherwise it will be overwritten. 
  834.  
  835.  
  836. ΓòÉΓòÉΓòÉ 14.10. Kill process ΓòÉΓòÉΓòÉ
  837.  
  838. This button is only active when in process view mode (see View processes). It 
  839. permits you to kill the selected process. 
  840.  
  841.  
  842. ΓòÉΓòÉΓòÉ 15. Accelerator Keys ΓòÉΓòÉΓòÉ
  843.  
  844. The following accelerator keys are available for use with Test Engine/2 : 
  845.  
  846.  o <F1> on-line context sensitive help 
  847.  o <F2> Save View 
  848.  o <F3> Exit 
  849.  o <F4> Print View 
  850.  o <F5> Global trace on/off 
  851.  o <F6> Choose Printer 
  852.  o <F7> Default settings 
  853.  o <F8> Processes and threads 
  854.  o <F9> Clear View 
  855.  o <F10> Save Settings 
  856.  o <F11> OS/2 Window 
  857.  o <F12> Running Processes 
  858.  o <Shift-F5> Close global trace 
  859.  o <Space> De-selects the selected line from the monitor window and causes Test 
  860.    Engine/2 to show incoming messages at the bottom of the window as they are 
  861.    traced. 
  862.  
  863.  
  864. ΓòÉΓòÉΓòÉ 16. Startup Parameters ΓòÉΓòÉΓòÉ
  865.  
  866. Test Engine/2 can be started in any of the languages supplied. The Options 
  867. Notebook will show a list of the available languages on the language page. To 
  868. start Test Engine/2 in a specific language from the command line the following 
  869. single character flags can be used 
  870.  
  871.      o E : English 
  872.      o F : French 
  873.      o S : Spanish 
  874.      o G : German 
  875.      o I : Italian 
  876.      o P : Portugues 
  877.      o D : Dutch 
  878.      o A : Danish 
  879.      o N : Norwegian 
  880.      o V : Swedish 
  881.      o U : Finnish 
  882.      o O : Polish 
  883.      o Z : Czech 
  884.      o K : Greek 
  885.      o H : Hungarian 
  886.      o C : Iceland 
  887.      o M : Romanian 
  888.      o R : Russian 
  889.      o Y : Serbo-Croat 
  890.      lm margin=1. 
  891.  
  892.      The character flag must be the first parameter on the command line and be 
  893.      preceded by a / 
  894.  
  895.      example 
  896.  
  897.      tstngen /s 
  898.  
  899.      this will start Test Engine/2 in Spanish.