Bluetooth Special Interest Group Inc. BTSIG15A Manual Do Utilizador

Página de 162
Printed Documentation 
82 
The corresponding character strings passed to the Log() function would be: 
szTime 
szLogType: pszMessage 
The szTime string starts with a blank line that is used in the User Interface to provide a visual break between logged 
events. 
pszMessage includes leading spaces for each line after the first one. This is used to provide the indentation of the 
message information in the PTS User Interface. 
The values for the logType parameter are found in PTSControl.h and are listed here: 
logType Value 
Usage 
PTS_LOGTYPE_INFRASTRUCTURE 
This type is used for log messages from the PTS Control API that normally 
would not appear in the Test Case Execution log. 
PTS_LOGTYPE_START_TEST 
The "Start Test Case" event that is logged when a Test Case begins 
executing. 
PTS_LOGTYPE_END_TEST 
The "Test Case ended” event that is logged when a Test Case has 
completed execution. 
PTS_LOGTYPE_IMPLICIT_SEND 
Not currently used in PTS. The value however is used in the 
PTSControlClient sample program. 
PTS_LOGTYPE_ERROR 
An “Error” event logged when an executing Test Case has encountered an 
internal problem. 
PTS_LOGTYPE_SEND_EVENT 
“Send event”s are used to log data being sent from the PTS to the 
Implementation Under Test (IUT) or to an internal component of the currently 
executing Test Case. 
PTS_LOGTYPE_RECEIVE_EVENT 
"Receive event"s are used to log data received from the Implementation 
Under Test (IUT) or from an internal component of the currently executing 
Test Case. 
PTS_LOGTYPE_FINAL_VERDICT 
The “Final Verdict” of the Test Case execution. The result of the Test Case 
execution – PASS, FAIL, etc – can be found in the pszMessage string. 
PTS_LOGTYPE_PRELIMINARY_VERDICT 
At various points during Test Case execution, a Test Case will issue a 
“Preliminary Verdict”. The most negative verdict issued becomes the “Final 
Verdict” of the Test Case. 
  
“Preliminary Verdict” messages can be used to determine at what point 
during execution that a Test Case failed. 
PTS_LOGTYPE_EVENT_SUMMARY 
At various points during Test Case execution, a Test Case will issue a 
“Verdict Description” that is placed in the both the execution log and Output 
window in the lower left hand corner of the PTS User Interface. 
  
PTS_LOGTYPE_EVENT_SUMMARY is used to indicate those messages. 
PTS_LOGTYPE_MESSAGE 
This type is used for any log data that is not covered by one of the above. 
This is the majority of the output in the Test Case execution log.