Extending a log
You can customize your log files by configuring the plug-ins to extend an extension point and writing a class that designs your log.
Procedure
- Create a new plug-in project.By default, the Eclipse environment displays the project Overview after you create the project.Note: If the project Overview is not displayed by default, right-click MANIFEST.MF under the
META-INF
folder, and click . - Click the Dependencies tab, and click Add under Required Plug-ins.
- Select com.ibm.rational.test.ft.playback from the Plug-in Selection list, and click OK.
- Save the plugin.xml file.
- Click the Extensions tab, and click Add.
- Select the com.rational.test.ft.playback.logExtension extension point from the list, and click Finish.
- Type the extension ID and Name.
- Right-click com.ibm.rational.test.ft.playback.logExtension in the left pane of Extensions window.
- Click .The log file is displayed under the extension file.Note: Customized or extended log files in formats other than the standard formats cannot be viewed in either the HCL OneTest™ UI Eclipse Integrated Development Environment or the Visual Studio IDE.
- In Extension Element Details, specify
the properties of the log.
- Type a unique ID for the log in LogID field. HCL OneTest™ UI uses this LogID to list the log type on the Preference Page.
- Type a class name in Class field. This class name extends the base class LogExtensionAdapter.
- Optional: Type a description of the log in Description field.
- Save the project.