tcases:copy

Full name:

org.cornutum.tcases:tcases-maven-plugin:4.0.5:copy

Description:

Copies a Tcases project.

Attributes:

  • Requires a Maven project to be executed.

Optional Parameters

Name Type Since Description
<contentType> String - Defines the default content type for project files. The contentType must be one of "json" or "xml". If omitted, the default content type is derived from the input definition file name.
User property is: contentType.
<destDir> String - Defines the path to the directory where copied project files are written. A relative path is applied relative to the inputDir of the project. If undefined, the default destination directory is the same as the inputDir.
User property is: destDir.
<destName> String - If defined, copied files use the given project name. Otherwise, the original project name is used.
User property is: destName.
<destType> String - If defined, copied files use the given content type. Otherwise, the original content type is used. The destType must be one of "json" or "xml".
User property is: destType.
<genDef> String - Defines the name for the generator definition file read by Tcases for an input definition file. This file name may contain at most one "*" wildcard character, in which case the "*" is replaced by the project name of the corresponding input definition file - see the inputDef parameter for details. The default value is "*-Generators.xml" or "*-Generators.json" (depending on the contentType).
User property is: genDef.
<inputDef> String - Defines a single pattern that matches the system input definition files read by Tcases, relative to the directory specified by the inputDir. If omitted, the default value matches all files of the form "*-Input.xml" or "*-Input.json". An input definition file defines a project name that is used to form the default names for other associated files. For an input definition file of the form "${prefix}-Input.xml", the project name is "${prefix}". Otherwise, the project name is the basename of the input definition file.
User property is: inputDef.
<inputDefs> Set - Defines a set of patterns that match the system input definition files read by Tcases. By default, Tcases uses the single pattern defined by the inputDef parameter.
User property is: inputDefs.
<inputDir> String - Defines the path to the directory where system input definition files are located. A relative path is applied relative to the ${basedir} of the project.
Default value is: ${basedir}/src/test/tcases.
User property is: inputDir.
<project> String - A short-hand form of the inputDefs parameter that makes it easier to select the system input definition for a specific project. Equivalent to setting inputDefs to ∗∗/${project}-Input.xml,∗∗/${project}.xml,∗∗/${project}-Input.json,∗∗/${project}.json.
User property is: project.
<testDef> String - Defines the name for the initial test case definition files read by Tcases for an input definition file. This file name may contain at most one "*" wildcard character, in which case the "*" is replaced by the project name of the corresponding input definition file - see the inputDef parameter for details. The default value is "*-Test.xml" or "*-Test.json" (depending on the contentType).
User property is: testDef.

Parameter Details

<contentType>

Defines the default content type for project files. The contentType must be one of "json" or "xml". If omitted, the default content type is derived from the input definition file name.
  • Type: java.lang.String
  • Required: No
  • User Property: contentType

<destDir>

Defines the path to the directory where copied project files are written. A relative path is applied relative to the inputDir of the project. If undefined, the default destination directory is the same as the inputDir.
  • Type: java.lang.String
  • Required: No
  • User Property: destDir

<destName>

If defined, copied files use the given project name. Otherwise, the original project name is used.
  • Type: java.lang.String
  • Required: No
  • User Property: destName

<destType>

If defined, copied files use the given content type. Otherwise, the original content type is used. The destType must be one of "json" or "xml".
  • Type: java.lang.String
  • Required: No
  • User Property: destType

<genDef>

Defines the name for the generator definition file read by Tcases for an input definition file. This file name may contain at most one "*" wildcard character, in which case the "*" is replaced by the project name of the corresponding input definition file - see the inputDef parameter for details. The default value is "*-Generators.xml" or "*-Generators.json" (depending on the contentType).
  • Type: java.lang.String
  • Required: No
  • User Property: genDef

<inputDef>

Defines a single pattern that matches the system input definition files read by Tcases, relative to the directory specified by the inputDir. If omitted, the default value matches all files of the form "*-Input.xml" or "*-Input.json". An input definition file defines a project name that is used to form the default names for other associated files. For an input definition file of the form "${prefix}-Input.xml", the project name is "${prefix}". Otherwise, the project name is the basename of the input definition file.
  • Type: java.lang.String
  • Required: No
  • User Property: inputDef

<inputDefs>

Defines a set of patterns that match the system input definition files read by Tcases. By default, Tcases uses the single pattern defined by the inputDef parameter.
  • Type: java.util.Set
  • Required: No
  • User Property: inputDefs

<inputDir>

Defines the path to the directory where system input definition files are located. A relative path is applied relative to the ${basedir} of the project.
  • Type: java.lang.String
  • Required: No
  • User Property: inputDir
  • Default: ${basedir}/src/test/tcases

<project>

A short-hand form of the inputDefs parameter that makes it easier to select the system input definition for a specific project. Equivalent to setting inputDefs to ∗∗/${project}-Input.xml,∗∗/${project}.xml,∗∗/${project}-Input.json,∗∗/${project}.json.
  • Type: java.lang.String
  • Required: No
  • User Property: project

<testDef>

Defines the name for the initial test case definition files read by Tcases for an input definition file. This file name may contain at most one "*" wildcard character, in which case the "*" is replaced by the project name of the corresponding input definition file - see the inputDef parameter for details. The default value is "*-Test.xml" or "*-Test.json" (depending on the contentType).
  • Type: java.lang.String
  • Required: No
  • User Property: testDef