This function imports the shared function xml libraries. This function imports the Python libraries and objects, both starndard and local shared ones. This function initialises a set of global variables. This function gets information about the Directory Server 'Copy DS zip archive to %s %s.zip.' % (STAF_REMOTE_HOSTNAME,InstanceInstallDir) { 'srcfile' : '%s/%s' % (ZIPPATH,ZIPNAME), 'destfile' : '%s.zip' % InstanceInstallDir, 'remotehost' : STAF_REMOTE_HOSTNAME } RC 'Extract temporary DS zip archive to %s %s.' % (STAF_REMOTE_HOSTNAME,DIRECTORY_INSTANCE_DIR) { 'location' : STAF_REMOTE_HOSTNAME, 'zipfile' : '%s.zip' % InstanceInstallDir, 'unzipdir' : '%s' % DIRECTORY_INSTANCE_DIR } RC { 'location' : STAF_REMOTE_HOSTNAME, 'dsPath' : '%s/%s' % (DIRECTORY_INSTANCE_BIN,OPENDSNAME) } 'Invalid Result %s' % RC { 'location' : STAF_REMOTE_HOSTNAME, 'type' : 'shared', 'variable' : 'Job%s_ServerInfo=%s' % (STAXJobID,DSInfoServersDict) } 'Invalid Result %s' % RC 'Remove temporary DS zip archive from %s %s' % (STAF_REMOTE_HOSTNAME,InstanceInstallDir) { 'location' : STAF_REMOTE_HOSTNAME , 'foldername' : '%s' % InstanceInstallDir } { 'location' : STAF_REMOTE_HOSTNAME , 'filename' : '%s.zip' % InstanceInstallDir } 'caught %s with %s' % (eType,eInfo) 'Remove temporary DS zip archive from %s %s' % (STAF_REMOTE_HOSTNAME,InstanceInstallDir) { 'location' : STAF_REMOTE_HOSTNAME , 'foldername' : '%s' % InstanceInstallDir } { 'location' : STAF_REMOTE_HOSTNAME , 'filename' : '%s.zip' % InstanceInstallDir } This function sets the folders to which test data are written. A locally accessable directory to the tests source A locally accessable directory to write test information A remotely accessable directory to write test information 'source.directory = %s' % source.directory 'local.directory = %s' % local.directory 'remote.directory = %s' % remote.directory 'logs.directory = %s' % logs.directory local.directory This function sets the folders to which logs are written 'Create local folder %s' % logs.reports { 'location' : STAF_LOCAL_HOSTNAME, 'foldername' : '%s' % logs.reports } 'Create local folder %s' % local.temp { 'location' : STAF_LOCAL_HOSTNAME, 'foldername' : '%s' % local.temp } 'Create local folder %s' % logs.sut { 'location' : STAF_LOCAL_HOSTNAME, 'foldername' : '%s' % logs.sut } 'Create local folder %s' % logs.tests { 'location' : STAF_LOCAL_HOSTNAME, 'foldername' : '%s' % logs.tests } 'Create local folder %s' % local.testdata { 'location' : STAF_LOCAL_HOSTNAME, 'foldername' : '%s' % local.testdata } 'Create remote folder %s' % remote.temp { 'location' : STAF_REMOTE_HOSTNAME, 'foldername' : '%s' % remote.temp } This function loads the environment (libraries, functions, variables) needed by the global test job farmer. 'Load environment for test suite execution.' 'Remove files from previous runs under %s.' % DIRECTORY_INSTANCE_DIR { 'location' : STAF_REMOTE_HOSTNAME , 'foldername' : '%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME) } { 'location' : STAF_REMOTE_HOSTNAME , 'foldername' : '%s/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME) } { 'sourceDir' : '%s' % TESTS_ROOT, 'localDir' : '%s' % LOGS_ROOT, 'remoteDir' : DIRECTORY_INSTANCE_DIR } { 'location' : STAF_REMOTE_HOSTNAME, 'type' : 'shared', 'variable' : 'Job%s_LogsDir=%s' % (STAXJobID,local.directory) } 'Copy OpenDS css and png files under %s' % logs.reports { 'srcfile' : '%s/opends.css' % TESTS_RESOURCE_DIR, 'destfile' : '%s/opends.css' % logs.reports } { 'srcfile' : '%s/opends_logo_sm.png' % TESTS_RESOURCE_DIR, 'destfile' : '%s/opends_logo_sm.png' % logs.reports } 'Copy xsl files under %s' % logs.reports { 'srcfile' : '%s/gen-groups-report.xsl' % TESTS_XSL_DIR, 'destfile' : '%s/gen-groups-report.xsl' % logs.reports } This function loads the environment (libraries, functions, variables) needed by the test jobs. Location of target host 'Load environment for test suite execution.' { 'location' : STAF_REMOTE_HOSTNAME, 'type' : 'shared', 'variable' : 'Job%s_LogsDir' % parent } '%s' % parentsLogDir { 'sourceDir' : '%s' % TESTS_ROOT, 'localDir' : '%s' % parentsLogDir, 'remoteDir' : DIRECTORY_INSTANCE_DIR }