def teardown_method(self): clr_env.iso_teardown_met('http', base_path) clr_env.clear_datacheck('http', base_path) clr_env.iso_setup_class(dut='FrontDut') clr_env.iso_setup_class(dut='BackDut')
def teardown_class(self): # 回收环境 clr_env.iso_teardown_met('dns', base_path) clr_env.iso_setup_class(dut='FrontDut') clr_env.iso_setup_class(dut='BackDut') fun.rbm_close() fun.ssh_close('FrontDut') fun.ssh_close('BackDut')
def teardown_method(self): clr_env.iso_teardown_met('app_scp', base_path) # print(1111111111) fun.cmd("rm -f /opt/pkt/*txt", 'BG8010Client') fun.cmd("rm -f /opt/pkt/*txt", 'BG8010Server') re1 = fun.cmd("ls /opt/pkt/ |grep *txt", 'BG8010Client') re2 = fun.cmd("ls /opt/pkt/ |grep *txt", 'BG8010Server') print('客户端txt文件查询结果是:', re1) print('服务端txt文件查询结果是:', re2) clr_env.data_check_setup_met(dut='FrontDut') clr_env.data_check_setup_met(dut='BackDut')
def teardown_class(self): # 回收环境 clr_env.iso_teardown_met('mail', base_path) clr_env.iso_teardown_met('ftp', base_path) clr_env.iso_teardown_met('tcp_http', base_path) clr_env.iso_teardown_met('ssh', base_path) clr_env.iso_setup_class(dut='FrontDut') clr_env.iso_setup_class(dut='BackDut') fun.rbm_close() fun.ssh_close('FrontDut') fun.ssh_close('BackDut')
def teardown_method(self): clr_env.iso_teardown_met('app_end_deny', base_path)
def teardown_method(self): clr_env.iso_teardown_met('mail', base_path)
def teardown_method(self): clr_env.iso_teardown_met('app_allow', base_path)