ctrl_waveQoE.py 文件源码

python
阅读 24 收藏 0 点赞 0 评论 0

项目:Automation-Framework-for-devices 作者: tok-gogogo 项目源码 文件源码
def open_waveQoE(self): 
        #open waveQoE,wait for 3 seconds   
        try:
            win32api.ShellExecute(0,'open',WAVEQOE_EXE_PATH,'','',1)
            print "open waveQoE"
            time.sleep(3)
        except:
            print 'open waveQoE error'
            log_public(ERR_NO_0005)            
            self.m_ERROR_MSG = ERR_NO_0005
            return False

        #find handle for the waveQoE window
        hwnd2 = win32gui.FindWindow(WAVEQOE_CLASS,'IxVeriwave WaveQoE Main Page')
        print 'hwnd2',hwnd2

        #move window of 'IxVeriwave WaveQoE Main Page' to top left corner
        win32gui.MoveWindow(hwnd2,0,0,626,270,1)
        time.sleep(0.5)
        #click button -- 'wired and wireless testing' 
        self.myobj.Mouse_LB_D(str_app = WAVEQOE_CLASS,lb_dx = '238',lb_dy = '165',Flag = '1')
        time.sleep(0.5)

        #click button -- 'wired only testing'
        #self.myobj.Mouse_LB_D(str_app='QWidget',lb_dx='426',lb_dy='166',Flag='1')

        #click button -- 'apply'
        self.myobj.Mouse_LB_D(str_app = WAVEQOE_CLASS,lb_dx = '305',lb_dy = '240',Flag = '1')

        return True

    #-----------------------------------------------------------------------------
    # Name:         choose_conf_file
    # purpose:      choose config file which has saved config infomation for test.
    # explain:     
    # Author:       gongke
    #
    # Created:      2013/05/20
    #-----------------------------------------------------------------------------
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号