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