def setup(product):
    SESSION["isMend"] = True
    if "debug_count" not in SESSION:
        SESSION["debug_count"] = 1
    SESSION["debug_count"] = SESSION["debug_count"] + 1
    if SESSION["debug_count"] > TEST_TIMES:
        SESSION["debug_count"] = 0
        raise AbortTestException(message=u'已完成%d次测试,请检查输出文件' % TEST_TIMES)
    board_digital.setup(product)
def setup(product):
    '''检查工装板电流,如果范围不对,终止测试'''
    SESSION["autoTrigger"].pause()
    iob = __getIoBoard()
    try:
        iob.releaseDemolishButton()
        board_digital.setup(product)
    except AbortTestException, e:
        iob.openClap()
        raise e
def __closeClapFinallyAndStartTest(product):
    '''最终关闭夹具并开始测试'''
    iob = __getIoBoard()
    iob.closeClapAdvance()
    for i in range(3):
        time.sleep(1)
        if iob.checkCloseClapSecondaryStepOK():
            board_digital.setup(product)
            time.sleep(1)
            break
    else:
        raise AbortTestException(message=u'夹具下压异常,请检查设置')
Exemple #4
0
def setup(product):
    SESSION["isMend"] = True
    if "debug_count" not in SESSION:
        SESSION["debug_count"] = 1
    SESSION["debug_count"] = SESSION["debug_count"]+1
    if SESSION["debug_count"] > TEST_TIMES:
        SESSION["debug_count"] = 0
        raise AbortTestException(message = u'已完成%d次测试,请检查输出文件'%TEST_TIMES)
    board_digital.setup(product)
    
    global triggerStarted
    if not triggerStarted:
        AutoStartStopTrigger().start()
        triggerStarted = True
Exemple #5
0
def setup(product):
    '''检查工装板电流,如果范围不对,终止测试'''
    board_digital.setup(product)