operations_basic.xml revision eef18571250bbe04cbeb42b8ff6d47753b14af7f
5541N/A<?xml version="1.0" encoding="UTF-8" standalone="no"?>
5541N/A<!DOCTYPE stax SYSTEM "/shared/stax.dtd">
5541N/A<!--
5541N/A ! CDDL HEADER START
5541N/A !
5541N/A ! The contents of this file are subject to the terms of the
5541N/A ! Common Development and Distribution License, Version 1.0 only
5541N/A ! (the "License"). You may not use this file except in compliance
5541N/A ! with the License.
5541N/A !
5541N/A ! You can obtain a copy of the license at
5541N/A ! trunk/opends/resource/legal-notices/CDDLv1_0.txt
5541N/A ! or http://forgerock.org/license/CDDLv1.0.html.
5541N/A ! See the License for the specific language governing permissions
5541N/A ! and limitations under the License.
5541N/A !
5541N/A ! When distributing Covered Code, include this CDDL HEADER in each
5541N/A ! file and include the License file at
5541N/A ! trunk/opends/resource/legal-notices/CDDLv1_0.txt. If applicable,
5541N/A ! add the following below this CDDL HEADER, with the fields enclosed
5541N/A ! by brackets "[]" replaced with your own identifying information:
5541N/A ! Portions Copyright [yyyy] [name of copyright owner]
5541N/A !
5541N/A ! CDDL HEADER END
5541N/A !
5541N/A ! Copyright 2011-2013 ForgeRock AS.
5541N/A ! -->
5541N/A<stax>
5541N/A <defaultcall function="main_operations_basic"/>
5541N/A <function name="main_operations_basic" scope="local">
5541N/A <sequence>
5541N/A <block name="'main_operations_basic'">
5562N/A <try>
5562N/A <sequence>
5562N/A <script>
5562N/A CurrentTestPath['group']='operations'
5562N/A CurrentTestPath['suite']='basic'
5562N/A
5562N/A __group=CurrentTestPath['group']
5562N/A __groupdir='%s/testcases/%s' % (TESTS_DIR,__group)
5562N/A </script>
5562N/A
5562N/A <!--- Test Suite information
5562N/A #@TestSuiteName Basic operations suite
5562N/A #@TestSuitePurpose Verify basic operations
5562N/A #@TestSuiteID Suite
5562N/A #@TestSuiteGroup Basic
5562N/A #@TestGroup Basic
5562N/A #@TestScript operations.xml
5562N/A #@TestHTMLLink http://www.forgerock.org/
5562N/A -->
5562N/A <call function="'testSuite_Preamble'"/>
5541N/A
5548N/A <try>
5548N/A <sequence>
5562N/A
5541N/A <call function="'common_setup'">
5548N/A {
5548N/A 'quickStart' : False ,
5548N/A 'startServer' : False
5546N/A }
5546N/A </call>
5546N/A
5546N/A <!-- List of Import of Test Functions -->
5546N/A <script>
5548N/A importList=[]
5546N/A importList.append('basic/operations_basic_tests')
5541N/A </script>
5541N/A
5562N/A <!-- Import the files for this test suite -->
5548N/A <iterate var="__import" in="importList">
5546N/A <import machine="STAF_LOCAL_HOSTNAME"
5546N/A file="'%s/%s.xml' % (__groupdir,__import)"/>
5546N/A </iterate>
5546N/A
5546N/A <!-- Specific to basic operations tests -->
5546N/A <script>
5546N/A timerDuration = '2h'
5546N/A numberOfEntries = 100000
5546N/A addTemplate = '%s/operations/add_template.ldif' % remote.data
5548N/A ldifFile = '%s/import_Entries_100k.ldif' % remote.temp
5548N/A </script>
5548N/A
5548N/A <!-- List of Test Cases -->
5571N/A <script>
5571N/A testsList=[]
5571N/A testsList.append('basic_operations_000')
5548N/A testsList.append('basic_operations_001')
5548N/A testsList.append('basic_operations_002')
5548N/A testsList.append('basic_operations_003')
5548N/A testsList.append('basic_operations_004')
5548N/A </script>
5548N/A
5548N/A <!-- Execute the Tests -->
5548N/A <iterate var="__test" in="testsList">
5548N/A <sequence>
5548N/A <call function="'%s' % (__test)" />
5548N/A </sequence>
5548N/A </iterate>
5548N/A
5548N/A </sequence>
5548N/A <catch exception="'STAFException.TestSuite.SetupException'">
5548N/A <sequence>
5548N/A <message log="1" level="'fatal'">
5548N/A 'Setup of test suite failed.'
5548N/A </message>
5548N/A <rethrow/>
5548N/A </sequence>
5546N/A </catch>
5546N/A
5546N/A <finally>
5546N/A <message>'Test Cases Completed.'</message>
5546N/A </finally>
5548N/A
5546N/A </try>
5546N/A
5548N/A </sequence>
5548N/A
5571N/A <finally>
5571N/A <sequence>
5571N/A <!-- Test Suite Cleanup -->
5548N/A <message>'Finally: Global Cleanup.'</message>
5548N/A <try>
5548N/A <!--<call function="'common_cleanup'" />-->
5548N/A <message>'gfgd'</message>
5548N/A <catch exception="'STAFException'">
5548N/A <sequence>
5548N/A <message log="1" level="'fatal'">'Cleanup of test suite failed.'</message>
5548N/A </sequence>
5548N/A </catch>
5548N/A <finally>
5548N/A <call function="'testSuite_Postamble'"/>
5560N/A </finally>
5571N/A </try>
5571N/A </sequence>
5571N/A </finally>
5560N/A
5560N/A </try>
5560N/A </block>
5548N/A </sequence>
5548N/A </function>
5548N/A</stax>
5548N/A