This function checks a return code against an expected return code return code received from command the output of the result the expected return code 'Success: RC=%s, Result=Ok' % (returncode) 'Success: RC=%s, Result=%s' % (returncode,result) 'Error: RC=%s, Expected %s, Result=%s' % (returncode,expected,result) This function checks the return code against an expected return code for a testcase return code received from command the output of the result the expected return code 'Success: RC=%s, Result=%s' % (returncode,result) 'Error: RC=%s, Expected %s, Result=%s' % (returncode,expected,result) This function checks the return string against an expected return substring for a testcase the substring expected from the command the return string received from command 'Success: Found substring, %s, in the return string' % (expectedString) 'Error: Did not find substring, %s, in the return string, %s' % (expectedString, returnString) This function checks the return string against an expected return substring that should not be present for a testcase the substring being tested from the command the return string received from command 'Success: Did Not Find substring, %s, in the return string' % (testString) 'Error: Found substring, %s, in the return string, %s' % (testString, returnString) This function simply searches a string for a substring the substring being tested from the command the return string received from command 'Result: Did Not Find substring, %s, in the return string' % (testString) 'Result: Found substring, %s, in the return string' % (testString) returnCode Checks that the ldap server is running Number of loops Number of seconds { 'dsInstanceHost' : DIRECTORY_INSTANCE_HOST , 'dsInstancePort' : DIRECTORY_INSTANCE_PORT , 'dsInstanceDn' : DIRECTORY_INSTANCE_DN , 'dsInstancePswd' : DIRECTORY_INSTANCE_PSWD , 'dsBaseDN' : 'cn=config' , 'dsFilter' : 'objectclass=*' , 'extraParams' : '-s "base"' } { 'sleepForMilliSeconds' : noOfMilliSeconds } Sleep for number of milliseconds Number of milliseconds to sleep '%s' % (hostname) 'delay' 'delay %i' % sleepForMilliSeconds { 'returncode' : RC , 'result' : STAFResult } Set OS related variables Name of host '%s' % (hostname) 'var' 'get system var STAF/Config/OS/Name' 'OS Name= %s' % STAFResult STAFResult Pretty prints a banner at the start of a test. '### Starting test case %s. ###' % STAXCurrentTestcase Pretty prints a banner at the end of a test. '### Ending test case %s. ###' % STAXCurrentTestcase Performs all the preoperations for a test case Performs all the post operations for a test suite Performs all the pre operations for a test suite '### %s/%s suite preamble ###' % (ThisGroupName,ThisSuiteName) Performs all the post operations for a test suite '### %s/%s suite postamble ###' % (ThisGroupName,ThisSuiteName) { 'starttime' : TestSuiteStartTime, 'endtime' : TestSuiteEndTime, 'tofile' : TestLogFile } Performs all the pre operations for a test group '### %s group preamble ###' % ThisGroupName Performs all the post operations for a test group '### %s group postamble ###' % ThisGroupName Queries the staf logs for the test case and write to file as text timestamp to start logging from timestamp to start logging from timestamp to start logging from { 'hostname' : STAXServiceMachine, 'logname' : 'STAX_Job_%s_User' % STAXJobID, 'startfrom' : starttime, 'endat' : endtime } { 'queryresult' : STAFResult, 'logfile' : tofile } Process staf log query results and write them to a file result of the staf log query name of the log file to where results are written 'Creating test log %s' % logfile { 'hostname' : STAXServiceMachine, 'foldername' : NewLogDir } 'Writing query result'