def main():
    stauts = True
    try:
        base.unlock()
        base.setup()
        wifi.wifi_setup()
        wifi.connect_wifi('YUNOS_Auto_Test_2G')
        for i in range(50):
            wifi.disable_wifi()
            time.sleep(5)
            wifi.enable_wifi()
            time.sleep(5)
            base.back()
            time.sleep(10)
            wifi.check_connect_enable()
            time.sleep(2)
            wifi.wlan_info()

            logger.info('************stress times is************ %d' % i)

##########################

    except Exception, msg:
        logger.debug('Exception:%s' % msg)
        stauts = False
Пример #2
0
def main():
    stauts = True
    try:
        base.unlock()
        base.setup()
        base.find_setting()
        bt.disable_airplane()
        time.sleep(3)
        i = 0
        while i < 50:
            wifi.wifi_setup()
            wifi.connect_wifi('YUNOS_Auto_Test_2G')
            base.back()
            bt.enable_airplane()
            time.sleep(10)
            wifi.check_connect_disable()
            bt.disable_airplane()
            time.sleep(10)
            wifi.check_connect_enable()
            base.exit_app()
            i += 1
            logger.info('stress times is %d' % i)
    ##########################

    except Exception, msg:
        logger.debug('Exception:%s' % msg)
        stauts = False
Пример #3
0
def switch_ap():
    wifi.connect_wifi('text="YUNOS_Auto_Test_2G"')
    time.sleep(1)
    wifi.swtich_ap_connect('text="YUNOS_Auto_Test_5G"')
    wifi.check_ap_status()
    checkfile.click('text="YUNOS_Auto_Test_2G"')
    time.sleep(5)
    checkfile.click('text="YUNOS_Auto_Test_5G"')
    time.sleep(5)
def main():
    stauts = True
    try:
        base.unlock()
        base.setup()
        wifi.wifi_setup()
        wifi.connect_wifi('YUNOS_Auto_Test_2G')
        wifi.check_info()
        base.exit_app()

##########################

    except Exception, msg:
        logger.debug('Exception:%s' % msg)
        stauts = False
def main():
    stauts = True
    try:
        base.unlock()
        base.setup()
        wifi.wifi_setup()
        wifi.connect_wifi('text="YUNOS_Auto_Test_2G"')
        wifi.change_ipv4_stress()
        wifi.check_ifconfig()
        base.exit_app()
    ##########################

    except Exception, msg:
        logger.debug('Exception:%s' % msg)
        stauts = False
Пример #6
0
def main():
    stauts = True
    try:
        base.unlock()
        base.setup()
        wifi.wifi_setup()
        wifi.connect_wifi('text="YUNOS_Auto_Test_2G"')
        wifi.swtich_ap_connect('text="YUNOS_Auto_Test_5G"')
        time.sleep(5)
        wifi.check_ap_status()
        base.back()
        wifi.disconnect_wifi('text="YUNOS_Auto_Test_5G"')
  ##########################

    except Exception,msg:
        logger.debug('Exception:%s'%msg)
        stauts = False
def main():
    stauts = True
    try:
        base.unlock()
        base.setup()
        i = 0
        while i < 50:
            wifi.wifi_setup()
            wifi.connect_wifi('YUNOS_Auto_Test_2G')
            base.back()
            wifi.disconnect_wifi('YUNOS_Auto_Test_2G')
            base.exit_app()
            i += 1
            logger.info('stress times is %d' % i)
    ##########################

    except Exception, msg:
        logger.debug('Exception:%s' % msg)
        stauts = False
def main():
    stauts = True
    try:
        base.unlock()
        base.setup()
        base.find_setting()
        bt.disable_airplane()
        time.sleep(3)
        wifi.wifi_setup()
        wifi.connect_wifi('YUNOS_Auto_Test_2G')
        base.back()
        bt.enable_airplane()
        time.sleep(10)
        wifi.check_connect_disable()
        bt.disable_airplane()
        time.sleep(10)
        wifi.check_connect_enable()
      ##########################

    except Exception,msg:
        logger.debug('Exception:%s'%msg)
        stauts = False