| | |
| | | <?xml version="1.0" encoding="UTF-8" standalone="no"?> |
| | | <!DOCTYPE stax SYSTEM "../../shared/stax.dtd"> |
| | | <!DOCTYPE stax SYSTEM "../shared/stax.dtd"> |
| | | <!-- |
| | | ! CDDL HEADER START |
| | | ! |
| | |
| | | <import machine="'%s' % (STAF_LOCAL_HOSTNAME)" |
| | | file="'%s/stafcmd.xml' % (TESTS_FUNCTIONS_DIR)" /> |
| | | |
| | | <!-- |
| | | dirty workaround because utils.xml now depends on environment.xml |
| | | to avoid loading environment.xml I'll just set the required vars here |
| | | allegedly ugly |
| | | -=arnaud=- |
| | | --> |
| | | <script> |
| | | NO_CHECK = 'noCheck' |
| | | </script> |
| | | <import machine="'%s' % (STAF_LOCAL_HOSTNAME)" |
| | | file="'%s/utils.xml' % (TESTS_FUNCTIONS_DIR)" /> |
| | | |
| | |
| | | |
| | | <!-- Write XML File for results --> |
| | | <script> |
| | | import re |
| | | import re |
| | | xmlfile= '%s/results.xml' % logsReportDir |
| | | xmlfh=open(xmlfile,'w') |
| | | errorfile= '%s/results.errors' % logsReportDir |
| | |
| | | testCaseList=[] |
| | | </script> |
| | | |
| | | <iterate var="element" in="resultQuery"> |
| | | <iterate var="element" in="resultQuery"> |
| | | <script> |
| | | level=element['level'] |
| | | message=element['message'] |
| | |
| | | xmlfh.write(' </identification>\n') |
| | | xmlfh.write(' <results>\n') |
| | | </script> |
| | | |
| | | |
| | | <!-- XML Report Results --> |
| | | <script> |
| | | for tcname in testCaseList: |
| | | |
| | | if testDict.has_key(tcname): |
| | | |
| | | tcnamesplit=tcname.split(":") |
| | | testgroup=tcnamesplit[0] |
| | | testsuite=tcnamesplit[1] |
| | | if tcnamesplit[0]: |
| | | testgroup=tcnamesplit[0] |
| | | if tcnamesplit[1]: |
| | | testsuite=tcnamesplit[1] |
| | | else: |
| | | testsuite=testgroup |
| | | else: |
| | | testgroup=tcname |
| | | testsuite=tcname |
| | | |
| | | if testDict[tcname].has_key('pass'): |
| | | tcpass=testDict[tcname]['pass'] |