Home Corporate Contacts

TETware Knowledgebase


Products
Solutions

Information

Datasheet
Documentation
FAQ
Knowledgebase

Return to Knowledgebase Index

8. Relationship between TET_OUTPUT_CAPTURE and TET_API_COMPLIANT

 

Question

When I execute a test case I don't get any results in the journal.

Here is the start of the journal file:


0|3.2-lite 08:13:20 19970813|User: unknown TCC Start, \
	Command line: tcc -ep
5|Windows_95 WS1 4 0 586|System Information
20|c:/Tet3.2/suite/tetexec.cfg 1|Config Start
30||TET_OUTPUT_CAPTURE=true
30||TET_RESCODES_FILE=tet_code
30||TET_EXEC_IN_PLACE=true
30||TET_API_COMPLIANT=False
30||TET_PASS_TC_NAME=True
30||TET_VERSION=3.2-lite
40||Config End
700|3|Repeat Start, scenario ref 3-0
700|4|Repeat Start, scenario ref 6-0
10|0 /ts/tc1/tc1 08:13:20|TC Start, scenario ref 9-0
15|0 3.2-lite 1|TCM Start (auto-generated by TCC)
400|0 1 1 08:13:20|IC Start (auto-generated by TCC)
200|0 1 08:13:20|TP Start (auto-generated by TCC)
220|0 1 0 08:13:36|PASS (auto-generated by TCC)
410|0 1 1 08:13:36|IC End (auto-generated by TCC)
80|0 0 08:13:36|TC End, scenario ref 9-0

 

Answer

This journal contains a couple of clues as to what is going wrong:

  1. The part that reports the configuration variables shows that you have set TET_OUTPUT_CAPTURE=true in the execute mode configuration. This supplies a default value of TET_API_COMPLIANT=false.


  2. You will see that the TCM Start and the IC and TP Start and End lines are all marked ``auto-generated by TCC''. This shows that these lines were generated by tcc and not by the test case.

When you set TET_API_COMPLIANT=false (whether explicitly or by default), you are telling tcc that the test case or tool does not use the TETware API. So tcc doesn't copy output generated by API functions to the journal.

Normally you would set TET_OUTPUT_CAPTURE=false in the execute mode configuration when executing API-conforming test cases. If there is some reason why you want output capture mode enabled when executing API-conforming test cases, you should make the following assignments in the execute mode configuration:


TET_OUTPUT_CAPTURE=true
TET_API_COMPLIANT=true

 

See also

  • "Test case structure'' and "Configuration variables which modify TETware's operation'' in the TETware Programmers Guide.


  • "TETware journal lines'' in the TETware User Guide.

 


Home Contacts Legal Copyright Corporate News

Copyright © The Open Group 1995-2012, All Rights Reserved