Example #1
0
def checkGlobalParameterValues(testId):
    print string.ljust("Check " + testId, rpadding),
    errorFlag = False
    ss = rrPython.getGlobalParameterValues()
    words = readLine().split()
    for i in range(len(ss)):
        if expectApproximately(float(words[i]), ss[i], 1E-6) == False:
            errorFlag = True
            break
    print passMsg(errorFlag)
Example #2
0
def checkGlobalParameterValues(testId):
  print string.ljust ("Check " + testId, rpadding),
  errorFlag = False
  ss = rrPython.getGlobalParameterValues()
  words = readLine().split()
  for i in range (len (ss)):
      if expectApproximately(float (words[i]), ss[i], 1E-6) == False:
          errorFlag = True
          break;
  print passMsg (errorFlag)
import rrPython
import os
import csv
os.chdir('C:\\RoadRunner\\bin')

function = 'getGlobalParameterValues'

try:
    vals = rrPython.getGlobalParameterValues()
    if str(vals) is not False:
        result = 'True'
    else:
        result = 'False'
except:
    result = 'False'


PythonTestResults = open('C:\\RoadRunner\\PythonTestResults.csv','a')
writer = csv.writer(PythonTestResults)
writevar = function + '=' + result
writer.writerow([writevar])
PythonTestResults.close()
Example #4
0
import rrPython
import os
import csv
os.chdir('C:\\RoadRunner\\bin')

function = 'getGlobalParameterValues'

try:
    vals = rrPython.getGlobalParameterValues()
    if str(vals) is not False:
        result = 'True'
    else:
        result = 'False'
except:
    result = 'False'

PythonTestResults = open('C:\\RoadRunner\\PythonTestResults.csv', 'a')
writer = csv.writer(PythonTestResults)
writevar = function + '=' + result
writer.writerow([writevar])
PythonTestResults.close()