Importing predefined BTT elements

In BTT definition files, you can import the predefined BTT elements.

Before you begin

You must have predefined elements stored in BTT definition files. To import predefined BTT elements, you can:

Procedure

  1. Create a new BTT definition file.
  2. Use a <import/> tag in the form of <import file="BTT definition file"> in the new definition file. BTT definition file is the file which you want to import.
    Note:
    • The best practise is to put all the <import/> tags in the beginning of the definition file.
    • When there are duplicated elements defined in both the reusable file and the local definition file, the elements in the local definition file will be effective.
  3. Use the elements defined in the imported file. For more information, see .

Example

Here's an example of how to import reusable BTT definition file.
<data.xml>
	<!-- data import file -->	
  <import file="data-import.xml">
	<import file="nestedElem.xml">
	<import file="gvt.xml">
	<!-- data import file from sub folder-->	
  <importfile="\filder1\folder2\datafile.txt">

  <field id="" value="">	
  <kColl id="signInData">
		<field id="userId" value="">
		<field id="pw" value="">
		<field id="float" refType="Float">
		<!-- field refId="signInData"/-->	</field></field></field></kColl>
	<iColl id="customeriColl" size="3" description="customericoll">
		<refData refId="signInData">
</data.xml>
In this example, file data-import.xml, nestedElem.xml,gvt.xml, and \filder1\folder2\datafile.txt are imported. Note that you can use relative path to import file in different folders.

What to do next

After the predefined elements are imported, you can reuse these elements in your new BTT definition files. See Using predefined reusable elements after importing.