def get_delayed_test_data(self, testcase_address, done=0): """ This method queries the delayedTestData table in the DB and then returns a list of rows with the matching parameters. :param testcase_address: The ID (address) of the test case. :param done: (0 for test not done or 1 for test done) :returns: A list of rows found with the matching testcase_address. """ db = DatabaseManager() query = """SELECT guid,testcaseAddress,insertedAt,expectedResult,done FROM delayedTestData WHERE testcaseAddress=%(testcase_address)s AND done=%(done)s""" data = db.fetchall_query_and_close(query, { "testcase_address": testcase_address, "done": done }) if data: return data else: logging.debug("Could not find any rows in delayedTestData.") logging.debug("DB Query = " + query % { "testcase_address": testcase_address, "done": done }) return []
def get_delayed_test_data(self, testcase_address, done=0): """ This method queries the delayedTestData table in the DB and then returns a list of rows with the matching parameters. :param testcase_address: The ID (address) of the test case. :param done: (0 for test not done or 1 for test done) :returns: A list of rows found with the matching testcase_address. """ db = DatabaseManager() query = """SELECT guid,testcaseAddress,insertedAt,expectedResult,done FROM delayedTestData WHERE testcaseAddress=%(testcase_address)s AND done=%(done)s""" data = db.fetchall_query_and_close(query, {"testcase_address": testcase_address, "done": done}) if data: return data else: logging.debug("Could not find any rows in delayedTestData.") logging.debug("DB Query = " + query % {"testcase_address": testcase_address, "done": done}) return []