| | |
| | | <function-arg-description> |
| | | Issue id. Corresponds to an issue number. |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string"/> |
| | | </function-arg-def> |
| | | </function-map-args> |
| | | <sequence> |
| | |
| | | <function-arg-description> |
| | | Issue ID |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string"/> |
| | | </function-arg-def> |
| | | </function-map-args> |
| | | <sequence> |
| | | <call function="'GetVar'"> |
| | | { |
| | | 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'type' : 'shared', |
| | | 'variable' : 'issuesList' |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | issuesList=eval(STAFResult) |
| | | </script> |
| | | |
| | | <script> |
| | | try: |
| | | if issueId not in issuesList: |
| | | issuesList.append(issueId) |
| | | if issueId.__class__ is org.python.core.PyList: |
| | | for issue in issueId: |
| | | if int(issue) not in issuesList: |
| | | issuesList.append(int(issue)) |
| | | else: |
| | | if int(issueId) not in issuesList: |
| | | issuesList.append(int(issueId)) |
| | | except: |
| | | print 'Issues list undefined. Unable to add issue %s' % issueId |
| | | </script> |
| | |
| | | <tcstatus result="'fail'"> |
| | | 'KnownIssue: %s' % issuesList |
| | | </tcstatus> |
| | | |
| | | <call function="'SetVar'"> |
| | | { |
| | | 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'type' : 'shared', |
| | | 'variable' : 'issuesList=%s' % issuesList |
| | | } |
| | | </call> |
| | | </sequence> |
| | | </function> |
| | | |
| | |
| | | <function-arg-description> |
| | | Known issue. Corresponds to an issue number. |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | </function-map-args> |
| | | |
| | |
| | | <function-arg-description> |
| | | Known issue. Corresponds to an issue number. |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | </function-map-args> |
| | | |
| | |
| | | import time |
| | | testcaseStart=int(time.time()) |
| | | testcaseStartTime=strftime("%Y%m%d-%H:%M:%S",localtime()) |
| | | issuesList=[] |
| | | for logType in ['errors','access']: |
| | | if os.path.exists('%s/%s/logs/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME,logType)): |
| | | logfile=open('%s/%s/logs/%s' % (DIRECTORY_INSTANCE_DIR,OPENDSNAME,logType),'a') |
| | |
| | | logfile.write('Begin testcase %s\n' % STAXCurrentTestcase) |
| | | logfile.close() |
| | | </script> |
| | | <call function="'SetVar'"> |
| | | { |
| | | 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'type' : 'shared', |
| | | 'variable' : 'issuesList=[]' |
| | | } |
| | | </call> |
| | | <call function="'testCase_StartBanner'" /> |
| | | </sequence> |
| | | </function> |
| | |
| | | SignalRaised='' |
| | | </script> |
| | | |
| | | <call function="'GetVar'"> |
| | | { |
| | | 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'type' : 'shared', |
| | | 'variable' : 'issuesList' |
| | | } |
| | | </call> |
| | | |
| | | <script> |
| | | issuesList=eval(STAFResult) |
| | | </script> |
| | | |
| | | <!-- Query the test case results --> |
| | | <call function="'queryTestcase'" /> |
| | | |
| | | |
| | | <script> |
| | | if STAFResult.has_key('numPasses'): |
| | | numPass=int(STAFResult['numPasses']) |
| | |
| | | nvDone = 0 |
| | | nbFail = 0 |
| | | nbKnown = 0 |
| | | allbugs = eval(bugs.getTextContent()) |
| | | if numFail == 0: |
| | | if numPass == 0: |
| | | _status='INCONCLUSIVE' |
| | |
| | | known.setTextContent('%s' % nbKnown) |
| | | nbDone = int(done.getTextContent()) + 1 |
| | | done.setTextContent('%s' % nbDone) |
| | | for issueID in issuesList: |
| | | if issueID not in allbugs: |
| | | allbugs.append(int(issueID)) |
| | | bugs.setTextContent('%s' % allbugs) |
| | | </script> |
| | | |
| | | <message level="'status'"> |
| | |
| | | |
| | | starttime = time.strftime("%Y/%m/%d %H:%M:%S", time.gmtime(TESTS_TIMESTAMP)) |
| | | duration = time.strftime("%H:%M:%S", time.gmtime(time.time() - TESTS_TIMESTAMP)) |
| | | |
| | | |
| | | reportCfg = open('%s/logs/report.cfg' % LOGS_ROOT, 'w') |
| | | reportCfg.write('[Main]\n') |
| | | reportCfg.write('product = OpenDS_SE2.4 (Directory)\n') |
| | |
| | | reportCfg.write('duration = %s\n' % duration) |
| | | reportCfg.write('dsconfigduration = 0\n') |
| | | reportCfg.write('percentage = %s\n' % percentage) |
| | | reportCfg.write('allbugs = []\n') |
| | | reportCfg.write('allbugs = %s\n' % allbugs) |
| | | reportCfg.write('os = %s\n' % TEST_OS_STRING) |
| | | reportCfg.write('report = reports/results2.xml\n') |
| | | reportCfg.write('istemporary = True\n') |
| | |
| | | fail = xml.tempres.getChildNodes().item(1) |
| | | known = xml.tempres.getChildNodes().item(3) |
| | | done = xml.tempres.getChildNodes().item(5) |
| | | bugs = xml.tempres.getChildNodes().item(7) |
| | | else: |
| | | # Create tempres element |
| | | xml.tempres = doc.createElement("tempres") |
| | |
| | | done = doc.createElement('done') |
| | | xml.tempres.appendChild(done) |
| | | done.appendChild(doc.createTextNode('0')) |
| | | bugs = doc.createElement('bugs') |
| | | xml.tempres.appendChild(bugs) |
| | | bugs.appendChild(doc.createTextNode('[]')) |
| | | |
| | | #Create testgroup element |
| | | xml.testgroup = doc.createElement("testgroup") |
| | |
| | | <function-arg-description> |
| | | Issue id. Corresponds to an issue number. |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string"/> |
| | | </function-arg-def> |
| | | </function-map-args> |
| | | |
| | |
| | | <function-arg-description> |
| | | Known issue. Corresponds to an issue number. |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | </function-map-args> |
| | | |
| | |
| | | <function-arg-description> |
| | | Known issue. Corresponds to an issue number. |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string"/> |
| | | </function-arg-def> |
| | | </function-map-args> |
| | | |
| | |
| | | <function-arg-description> |
| | | Known issue. Corresponds to an issue number. |
| | | </function-arg-description> |
| | | <function-arg-property name="type" value="string" /> |
| | | </function-arg-def> |
| | | </function-map-args> |
| | | |