Exemplo n.º 1
0
    def get_testcases_id_for_testsuite(self):

        logger.info('正在获取子套件……')
        sub_testsuits = self.get_sub_testsuits_for_testsuit(self.testsuite_id)
        logger.info('成功获取子套件id列表:%s' % sub_testsuits)

        testsuits_id_list = []
        for key in sub_testsuits.keys():
            testsuits_id_list.append(int(key))

        testsuits_id_list.insert(0, self.testsuite_id)

        for testsuit_id in testsuits_id_list:
            self.testcase_id_list.extend(mytestlink.getTestCasesForTestSuite(testsuit_id, False, 'only_id'))

        return self.testcase_id_list
Exemplo n.º 2
0
 def get_testcases_info_for_testsuite(self):
     testcase_info = mytestlink.getTestCasesForTestSuite(self.testsuite_id, True, 'full')
     return testcase_info