ExportToXML Method

Description

Exports the specified object repository to the specified XML file.

Important Information

  • This method can be used only to export shared object repositories (*.tsr files).  Local object repositories cannot be exported.
  • The object repository you want to export must be in QuickTest version 9.0 or later or UFT format. If the object repository is in an earlier format, you can use the Convert method to convert it before exporting it.

Syntax

object.ExportToXML(SourceFile, TargetFile)

Syntax Details

ArgumentDescription
objectAn expression evaluating to an object of type ObjectRepositoryUtil.
SourceFileRequired. A String value. The full name and path of the object repository you want to export to XML.
TargetFileRequired. A String value. The full name and path of the XML file to which you want to export the object repository. The XML file must be a new file (one that does not already exist). The folder path must be an existing one.

Return Type

A Variant value.  The full name of the new XML file.