| 34 | | for name in projTemplates.getTemplateNames() : |
|---|
| 35 | | name = name.encode('ascii', 'ignore') |
|---|
| 36 | | testIds = projTemplates.getTestsForTemplate( name ) |
|---|
| 37 | | if testIds != None : |
|---|
| 38 | | for id in testIds : |
|---|
| 39 | | if id not in tempTestCaseList : |
|---|
| 40 | | tempTestCaseList.append( id ) |
|---|
| | 35 | if projTemplates != None : |
|---|
| | 36 | for name in projTemplates.getTemplateNames() : |
|---|
| | 37 | name = name.encode('ascii', 'ignore') |
|---|
| | 38 | testIds = projTemplates.getTestsForTemplate( name ) |
|---|
| | 39 | if testIds != None : |
|---|
| | 40 | for id in testIds : |
|---|
| | 41 | if id not in tempTestCaseList : |
|---|
| | 42 | tempTestCaseList.append( id ) |
|---|
| | 43 | |
|---|
| | 44 | allTestcases, errors = self.properties.getTestCases( self, req ) #fetch the testcases... |
|---|
| | 45 | |
|---|
| | 46 | if allTestcases == None : |
|---|
| | 47 | return False, None |
|---|
| 43 | | allTestcases, errors = self.properties.getTestCases( self, req ) #fetch the testcases... |
|---|
| 44 | | |
|---|
| 45 | | if allTestcases == None : |
|---|
| 46 | | return False, None |
|---|
| 47 | | |
|---|
| 48 | | for testId in tempTestCaseList: |
|---|
| 49 | | if testId in allTestcases : |
|---|
| 50 | | continue |
|---|
| 51 | | else: |
|---|
| 52 | | errors.append( "The test: " + testId + ", in the testtemplates.xml file cannont be matched with a real test case" ) |
|---|
| 53 | | |
|---|
| | 59 | #append the error message saying testtemplates.xml doesn't exist, then exit. |
|---|
| | 60 | errors.append( "No file called testtemplates.xml file found. This is the file necessary for grouping testcases into predefined test scripts...like a smoke test" ) |
|---|
| | 61 | |
|---|
| | 62 | |
|---|