Once you have created a test hierarchy, defined it using the XML files
and built your tests into a repository, you have the option to create a test
package. A test package is a zip file that combines the XML structure and the
data in the built repository into one file, .tpkg
.
This means that all items that are needed to run a test are stored in this package file, enabling you to run the test independently. This feature useful when distributing the built tests and that they can be run straightaway, without having to build them again.
The built package file is stored under the specified test folder in your
repository, using the same name as the test suite + the extension
.tpkg
, for example, test1.tpkg
.
The command line syntax for building a test package is similar to that
of building test suites. However, instead of using the build command, a command
called package
is used, as shown below:
> testdriver package -p <platform> -b <build> -s test [--tp <package>]
For more build options, see package command.