def main():
    stauts = True
    try:
        base.unlock()
        base.setup()
        wifi.wifi_setup()
        wifi.connect_wifi('YUNOS_Auto_Test_2G')
        base.back()
        wifi.disconnect_wifi('YUNOS_Auto_Test_2G')
        wifi.connect_wifi('YUNOS_Auto_Test_2G')

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

    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
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
from base.dumbase import base
from base.logger import logger


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
    finally:
        wifi.disconnect_wifi('YUNOS_Auto_Test_2G')
        base.exit_app()

    return stauts

main_test = main()
if main_test == True:
    VERDICT = SUCCESS
else:
    VERDICT = FAILURE
#coding:utf-8
from wifibase_version1 import wifi
from base.dumbase import base
from base.logger import logger


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
    finally:
        base.back()
        wifi.disconnect_wifi('ITFLEX_YUNOS_H')
        base.exit_app()

    return stauts

main_test = main()
if main_test == True:
    VERDICT = SUCCESS
else:
    VERDICT = FAILURE
from base.dumbase import base
from base.logger import logger


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
    finally:
        wifi.disconnect_wifi('text="YUNOS_Auto_Test_2G"')
        base.exit_app()
    return stauts


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