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)
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