Registration examples

The examples in this topic show you how to register strings for content verification and built-in data sources.

Registering strings for content verification

The following example shows how to register strings for content verification:

<extension
point="com.ibm.rational.test.lt.models.behavior.contentVPData">

<category
label="Example protocol strings"
id=" examples.protocol.strings ">

<property
type="boolean"
name="Does value exist"
value="true"
id="com.ibm.rational.test.lt.exmaple.protocol.valueExist"/>
         
<content
label="Joe"
id="example.protocol.strings.1"/>
         
<content
label="Jane"
id="example.protocol.strings.2"/>


</category>

</extension>

Registering built-in data sources

A protocol extension can provide its own list of built-in data sources. A data source is used to mine data and hold it for later consumption. This is done using the following extension point.

The following example shows how to register built-in data sources:

<extension
point="com.ibm.rational.test.lt.models.behavior.builtInDataSource">
<dataSource typeId="protocol.buitindatasource"
className="com.ibm.rational.test.lt.example.protocol.BIDataSource">
         
<property name="database"/>
<property name="table"/>
<property name="column"/>

</dataSource>

</extension>

In the above example, a protocol extension can extract a value from a particular column in a table in a database.