def doit(cfg, printflg=False):
    try:
        start_time = time.time()
        set_errorlogging()
        rc = doit_wrapper(cfg, printflg)
        end_time = time.time()
        updatevalue = updatetimsresultsjson(cfg, start_time, end_time, rc, 'feature')
        return updatevalue
    except:
        print  "Error Occurred in Script \n"
        PrintException()
        return (1)
Пример #2
0
def doit(CNFG):
    try:
        start_time = time.time()
        set_errorlogging()
        instance = StartComponentTest()
        instance.set_arguments(CNFG)
        rc = instance.call_back_test()
        end_time = time.time()
        updatevalue = updatetimsresultsjson(CNFG, start_time, end_time, rc,
                                            'basic-feature')
        return updatevalue
    except:
        print "Error Occurred in Script \n"
        return (1)
def doit(cfg, printflg=False):
    """
        The function which actually invokes the test case
    """

    try:
        start_time = time.time()
        set_errorlogging()
        rc = doit_wrapper(cfg, printflg)
        end_time = time.time()
        update_value = updatetimsresultsjson(cfg, start_time, end_time, rc,
                                             'big_red_button')
        return update_value
    except:
        print "Error Occurred in script \n"
        PrintException()
        return 1