'Parse XML element of type TestsType
@return vulns A list of vulnerabilities according to vulnsDefinitions'

def parse_tests_type(self, node, vulnsDefinitions):

    vulns = list()
    for tests in node.findall('tests'):
        for test in tests.iter('test'):
            vuln = dict()
            if (test.get('id').lower() in vulnsDefinitions):
                vuln = vulnsDefinitions[test.get('id').lower()].copy()
                key = test.get('key', '')
                if key.startswith('/'):
                    vuln['path'] = key[:key.find('|')]
                for desc in list(test):
                    vuln['desc'] += self.parse_html_type(desc)
                vulns.append(vuln)
    return vulns
