[Collapse]TestComplete/viewarticle/63445/
 [Expand]General Information/viewarticle/63445/
 [Expand]Using Help System/viewarticle/55799/
 [Expand]Getting Started Tutorial/viewarticle/56246/
 [Collapse]Using TestComplete/viewarticle/57875/
  [Expand]TestComplete User Interface, Projects and Settings/viewarticle/57876/
  [Collapse]Creating, Recording and Running Tests/viewarticle/56646/
   [Expand]Naming Objects/viewarticle/56265/
   [Expand]Creating Tests/viewarticle/57373/
   [Expand]Managing Tested Applications/viewarticle/57435/
   [Expand]Checkpoints and Stores/viewarticle/56266/
   [Expand]Running Tests/viewarticle/56462/
   [Expand]Handling Playback Errors/viewarticle/56641/
   [Collapse]Keyword Testing/viewarticle/55462/
     Keyword Testing in TestComplete - Overview/viewarticle/55568/
     Creating and Recording Keyword Tests/viewarticle/56528/
     Running Keyword Tests/viewarticle/56538/
     Getting Keyword Test Result/viewarticle/59461/
     Keyword Test Parameters/viewarticle/56869/
     Keyword Test Variables/viewarticle/56810/
     Converting Keyword Tests to Scripts/viewarticle/55497/
    [Expand]Creating Keyword Tests - Common Tasks/viewarticle/57285/
    [Collapse]Operations Reference/viewarticle/56529/
     [Expand]Checkpoints Category/viewarticle/55382/
     [Collapse]Logging Category/viewarticle/56294/
       Append Log Folder Operation/viewarticle/56301/
       Log Attributes Operation/viewarticle/55457/
       Log Message Operation/viewarticle/55472/
       Pop Log Folder Operation/viewarticle/56299/
       Post Screenshot Operation/viewarticle/56289/
     [Expand]Miscellaneous Category/viewarticle/62703/
     [Expand]Mobile/viewarticle/62688/
     [Expand]Statements Category/viewarticle/56298/
     [Expand]Test Actions Category/viewarticle/56282/
      Frequently Used Category/viewarticle/55723/
     [Expand]Web Category/viewarticle/55679/
      Selecting Objects for Keyword Test Operations/viewarticle/56430/
   [Expand]Scripting/viewarticle/56245/
   [Expand]Test Visualizer/viewarticle/55007/
   [Expand]Exploring Applications/viewarticle/55055/
   [Expand]Debugging Tests/viewarticle/56567/
  [Expand]Test Results/viewarticle/55010/
  [Expand]Enhancing Tests/viewarticle/56964/
  [Expand]Teamwork and Integration Into QA Process/viewarticle/57266/
  [Expand]Extending TestComplete/viewarticle/57655/
  [Expand]Automating TestComplete/viewarticle/57438/
  [Expand]Best Practices/viewarticle/64008/
 [Expand]Testing Types/viewarticle/62721/
 [Expand]Applications Testing/viewarticle/62606/
 [Expand]Working With Application Objects and Controls/viewarticle/55815/
 [Expand]Samples and Tutorials/viewarticle/56239/
 [Expand]References/viewarticle/57878/
 [Expand]Other Tools That Help You Test Better/viewarticle/63442/
 [Expand]TestComplete 10 Licensing Guide/viewarticle/63451/
Updated: 7/15/2014 Applies To: TestComplete 10 Rating: ExcellentExcellentExcellentExcellentExcellent 1 vote(s) Click to rate: PoorNot badAverageGoodExcellent
Keyword Testing Operations: Logging Category

Append Log Folder Operation

Description

The Append Log Folder operation creates a new folder in the test log and makes this folder active so that all messages that are posted to the log, go to this folder.

Operation Result

The operation returns an integer value that specifies the identifier of the created folder.

Scripting Analogue

The action, which the operation performs, is analogue to the Log.AppendFolder scripting method.

Operation Parameters

The operation parameters are organized into the following pages:

Folder Caption

On this page you can specify the most frequently used parameters of the operation:

Caption

String that contains the caption of the created folder. This string will be displayed in the Message column of the test log.

Additional Info

String that specifies additional information to be associated with the folder. This information will be shown in the Additional Info pane of the test log when the folder is selected.
Operation Parameters

On this page you can specify all of the parameters of the operation:

MessageText

Folder caption. This is the value that you specified in the Caption edit box of the Folder Caption page. Str can hold data of any OLE-compatible type. If it cannot be converted to text, its value is ignored.

AdditionalText

Additional text to be displayed in the Additional Info pane of the test log (this is the same value that you specified in the Additional Information edit box of the Folder Caption page). AdditionalText can hold data of any type compatible with OLE. If it cannot be converted to text, its value is ignored.

Priority

Folder priority. You can use any integer number or any of the following constants:

Constant Value Description
pmLowest 100 The lowest priority of the folder.
pmLower 200 The folder priority which is lower than normal.
pmNormal 300 The normal (default) priority of the folder.
pmHigher 400 The folder priority which is higher than normal.
pmHighest 500 The highest priority of the folder.

For information on specifying the Priority parameter value, see Specifying Enumeration Values in Parameters.

Attr

The LogAttributes object that contains the font and color attributes to be applied to the folder in the test log.

You can create this object by using the Log Attributes operation or by using script code. In the latter case, to specify the parameter, you should use a script expression that returns a reference of the LogAttributes object or use a variable, test parameter or [Last Operation Result] value that contains the object reference.

If this parameter is omitted, default attributes will be applied.

OwnerFolderID

An integer value that specifies the identifier of the test log’s folder, to which the new folder will be added as a subfolder. If this parameter refers to a non-existent folder, is omitted or is set to -1 (the default value), the operation will create the folder in the currently active folder.

The active folder is the folder that is currently at the top of the folder stack which is populated during the test execution. The Append Log Folder operation makes the newly created folder the active folder. To restore the active folder, you can use the Pop Log Folder operation or call the Log.PopLogFolder method.

See also
Logging Category | Specifying Operation Parameters | Checking Operation Result | Using Folders | AppendFolder Method | Pop Log Folder Operation | Log Attributes Operation


© 2014 SmartBear Software. All rights reserved.
Email Send feedback on this document