5adf19852c0d5af7188664bcb9d9e6175b46c7aevboxsync * CDDL HEADER START
5adf19852c0d5af7188664bcb9d9e6175b46c7aevboxsync * The contents of this file are subject to the terms of the
5adf19852c0d5af7188664bcb9d9e6175b46c7aevboxsync * Common Development and Distribution License, Version 1.0 only
5adf19852c0d5af7188664bcb9d9e6175b46c7aevboxsync * (the "License"). You may not use this file except in compliance
1c94c0a63ba68be1a7b2c640e70d7a06464e4fcavboxsync * with the License.
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync * You can obtain a copy of the license at
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync * trunk/opends/resource/legal-notices/OpenDS.LICENSE
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync * See the License for the specific language governing permissions
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync * and limitations under the License.
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync * When distributing Covered Code, include this CDDL HEADER in each
c790218a6fe2b6d004a5ba933eecc24552c463aevboxsync * file and include the License file at
1c94c0a63ba68be1a7b2c640e70d7a06464e4fcavboxsync * trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
1c94c0a63ba68be1a7b2c640e70d7a06464e4fcavboxsync * add the following below this CDDL HEADER, with the fields enclosed
1c94c0a63ba68be1a7b2c640e70d7a06464e4fcavboxsync * by brackets "[]" replaced with your own identifying information:
1c94c0a63ba68be1a7b2c640e70d7a06464e4fcavboxsync * Portions Copyright [yyyy] [name of copyright owner]
a3adfb382510ac27c1eb1c76fec0d801e8cfeb2avboxsync * CDDL HEADER END
a93baf6a4dd93fefbb91dbc1cc45a4ae1bcd18eevboxsync * Copyright 2008 Sun Microsystems, Inc.
a93baf6a4dd93fefbb91dbc1cc45a4ae1bcd18eevboxsync * Portions Copyright 2013 ForgeRock AS
a93baf6a4dd93fefbb91dbc1cc45a4ae1bcd18eevboxsyncThe purpose of the parsing tool is to parse comments from the functional test xml files.
a93baf6a4dd93fefbb91dbc1cc45a4ae1bcd18eevboxsyncThe comments must have preset tags in order for the them to be properly captured by the
a93baf6a4dd93fefbb91dbc1cc45a4ae1bcd18eevboxsyncparsing tool. This README files will describe what is needed in the comments of
a93baf6a4dd93fefbb91dbc1cc45a4ae1bcd18eevboxsyncthe functional test xml files, and how to build and run the parsing tool.
de4157257515400c2c25373591135f110227b68cvboxsyncEach directory will be assumed to contain the tests within a test group.
de4157257515400c2c25373591135f110227b68cvboxsyncEach test group needs to have the following tags.......
65acc9a737d682ad726d06327bf6f6ecc6eb7e83vboxsync#@TestSubgroupName [only necessary for some test groups, like Security]
65acc9a737d682ad726d06327bf6f6ecc6eb7e83vboxsyncIt is not critical in which xml file or where in the xml file these tags are located,
65acc9a737d682ad726d06327bf6f6ecc6eb7e83vboxsyncas long as the xml file is in the proper directory for the test group. For convenience,
65acc9a737d682ad726d06327bf6f6ecc6eb7e83vboxsyncthe tags for the test group should be near the top of the xml file which is used
ab50347e9a302448690793ae65f61272c491b012vboxsyncThe following is an example for the test group, functional-tests/testcases/security/pwd_storage,
ab50347e9a302448690793ae65f61272c491b012vboxsyncand is located in file, security_setup_pwd_storage.xml
ab50347e9a302448690793ae65f61272c491b012vboxsync #@TestGroupPurpose To test the security functionality.
5adf19852c0d5af7188664bcb9d9e6175b46c7aevboxsyncSome test groups will not have the tag, #@TestSubgroupName.
27537ffef7291d0bb3a24e459a6b94c65586defevboxsyncFor instance, the test group tags for the Backend group are
#@TestName
#@TestStep
Three parameters are required to run the parsing tool from the command line, directory-to-testcase-files,
java -cp [path-to-class-files] GenerateOpenDSTestSpecs [directory-to-testcase-files] [directory-for-output-files] [file format]