Beispiel #1
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
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
def main():
    stauts = True
    try:
        base.unlock()
        base.setup()
        wifi.wifi_setup()
        wifi.add_hidden_ssd()

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

    except Exception, msg:
        logger.debug('Exception:%s' % msg)
        stauts = False
Beispiel #4
0
def main():
    stauts = True
    try:
        base.unlock()
        base.setup()
        wifi.wifi_setup()
        wifi.check_singal('text="强"')

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

    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('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
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
Beispiel #8
0
def main():
    stauts = True
    try:
        base.unlock()
        base.setup()
        i = 0
        while i < 50:
            wifi.wifi_setup()
            switch_ap()
            discon_wifi()
            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()
        wifi.wifi_setup()
        wifi.disable_wifi()
        base.back()
        bt.enable_airplane()
        time.sleep(10)
        wifi.check_connect_disable()
        bt.disable_airplane()
        time.sleep(10)
        wifi.check_connect_disable()
    ##########################

    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
Beispiel #11
0
def main():
    stauts = True
    try:
        base.unlock()
        base.setup()
        wifi.wifi_setup()
        base.reboot_version1()
        base.unlock()

        wifi.diconnect_check_enable()
        wifi.disable_wifi()
        base.reboot_version1()
        base.unlock()
        wifi.diconnect_check_disable()
        base.exit_app()

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

    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
Beispiel #13
0
        base.setup()
        wifi.wifi_setup()
        base.reboot_version1()
        base.unlock()

        wifi.diconnect_check_enable()
        wifi.disable_wifi()
        base.reboot_version1()
        base.unlock()
        wifi.diconnect_check_disable()
        base.exit_app()

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

    except Exception,msg:
        logger.debug('Exception:%s'%msg)
        stauts = False
    finally:
         wifi.wifi_setup()
         base.exit_app()
    return stauts



main_test = main()
if main_test == True :
    VERDICT = SUCCESS
else:
    VERDICT = FAILURE