citrus:create-test-from-xsd

Full name:

com.consol.citrus.mvn:citrus-maven-plugin:1.2.M2:create-test-from-xsd

Description:

Creates new Citrus test cases with empty XML test file and executable Java class. Mojo offers an interactive mode, where the plugin prompts for parameters during execution. In non-interactive mode the parameters are given as command line arguments.

Attributes:

  • Requires a Maven 2.0 project to be executed.

Optional Parameters

Name Type Since Description
author String - The test author
Default value is: Unknown.
description String - Describes the test case and its actions
Default value is: TODO: Description.
framework String - Which unit test framework to use for test execution (default: testng; options: testng, junit3, junit4)
Default value is: testng.
interactiveMode boolean - Whether to run this command in interactive mode. Defaults to "true".
Default value is: true.
name String - The name of the test case (must start with upper case letter).
pathToXsd String - Path of the xsd from which the sample request and response are get from
targetPackage String - Which package (folder structure) is assigned to this test. Defaults to "com.consol.citrus"
Default value is: com.consol.citrus.
xsdRequestElem String - Name of the xsd-element used to create the xml-sample-request
xsdResponseElem String - Name of the xsd-element used to create the xml-sample-response

Parameter Details

author:

The test author
  • Type: java.lang.String
  • Required: No
  • Expression: ${author}
  • Default: Unknown

description:

Describes the test case and its actions
  • Type: java.lang.String
  • Required: No
  • Expression: ${description}
  • Default: TODO: Description

framework:

Which unit test framework to use for test execution (default: testng; options: testng, junit3, junit4)
  • Type: java.lang.String
  • Required: No
  • Expression: ${framework}
  • Default: testng

interactiveMode:

Whether to run this command in interactive mode. Defaults to "true".
  • Type: boolean
  • Required: No
  • Expression: ${interactiveMode}
  • Default: true

name:

The name of the test case (must start with upper case letter).
  • Type: java.lang.String
  • Required: No
  • Expression: ${name}

pathToXsd:

Path of the xsd from which the sample request and response are get from
  • Type: java.lang.String
  • Required: No
  • Expression: ${pathToXsd}

targetPackage:

Which package (folder structure) is assigned to this test. Defaults to "com.consol.citrus"
  • Type: java.lang.String
  • Required: No
  • Expression: ${targetPackage}
  • Default: com.consol.citrus

xsdRequestElem:

Name of the xsd-element used to create the xml-sample-request
  • Type: java.lang.String
  • Required: No
  • Expression: ${xsdRequestElem}

xsdResponseElem:

Name of the xsd-element used to create the xml-sample-response
  • Type: java.lang.String
  • Required: No
  • Expression: ${xsdResponseElem}