dict_test_parame_result = {} dict_test_parame_result["test_parame_result"] = FREQUENCY_BW_LIST write_json_file("../../ekt_json/dvbt2_34_centre_frequencies.json", dict_test_parame_result) if __name__ == '__main__': """ 测试流程: ①重置设备 ②选择 TSPLAYER ③播放流文件 ④设置code_rate,modulation,bandwidth,guard, frequency,input_signal_level ⑤机顶盒应用中进行锁台并确认锁台成功 (针对stb-tester发送post请求运行testcase) ⑤依次修改可变参数,判断机顶盒画面是否含有马赛克并记录结果 """ load_dict = read_json_file( "../../ekt_json/dvbt2_34_centre_frequencies.json") sfu_ip = ekt_cfg.SFU_IP specan = Ektsfu(sfu_ip) specan.preset_instrument() specan = Ektsfu(sfu_ip) specan.set_modulation_modulation_source("DTV") specan = Ektsfu(sfu_ip) specan.set_modulation_modulation_standard_dvt("T2DVb") specan = Ektsfu(sfu_ip) specan.set_player_timing_openfile(r"E:\333\DIVER.GTS") specan = Ektsfu(sfu_ip) specan.set_digitaltv_input_source_dvbt2("TSPLayer") specan = Ektsfu(sfu_ip) specan.set_level_level_rf("ON") specan = Ektsfu(sfu_ip) specan.set_noise_noise_noise("OFF")
specan = Ektsfe(sfe_ip) specan.set_digitaltv_input_load( r"D:\TSGEN\SDTV\DVB_25Hz\720_576i\LIVE\DIVER.GTS") if __name__ == '__main__': """ 测试流程: ①重置设备 ②选择 TSPLAYER ③播放流文件 ④设置modulation,symbol_rate,code_rate,frequency,input_signal_level ⑤机顶盒应用中进行锁台并确认锁台成功 (针对stb-tester发送post请求运行testcase) ⑤依次修改可变参数,判断机顶盒画面是否含有马赛克并记录结果 """ load_dict = read_json_file( "../../ekt_json/dvbs_17_signal_tracking_frequency_range.json") sfe_ip = ekt_cfg.SFE_IP sfe_init_setting() for PARAMETER in load_dict.get("test_parame_result"): loop_lock_mark = False for check_list in PARAMETER[3]: if check_list[1] == None: loop_lock_mark = True break if loop_lock_mark == True: pass else: continue FREQUENCY_OFFSET = PARAMETER[2] SYMBOL_RATE_FREQUENCY = [PARAMETER[0], PARAMETER[1]]
dict_test_parame_result = {} dict_test_parame_result["test_parame_result"] = PARAMETER_LIST write_json_file("../../ekt_json/dvbt2_60_minimum_level_0db_echo_channel.json", dict_test_parame_result) if __name__ == '__main__': """ 测试流程: ①重置设备 ②选择 TSPLAYER ③播放流文件 ④设置code_rate,modulation,bandwidth,guard, frequency,input_signal_level ⑤机顶盒应用中进行锁台并确认锁台成功 (针对stb-tester发送post请求运行testcase) ⑤依次修改可变参数,判断机顶盒画面是否含有马赛克并记录结果 """ load_dict = read_json_file("../../ekt_json/dvbt2_60_minimum_level_0db_echo_channel.json") sfu_ip = ekt_cfg.SFU_IP specan = Ektsfu(sfu_ip) specan.preset_instrument() specan = Ektsfu(sfu_ip) specan.set_modulation_modulation_source("DTV") specan = Ektsfu(sfu_ip) specan.set_modulation_modulation_standard_dvt("T2DVb") specan = Ektsfu(sfu_ip) specan.set_player_timing_openfile(r"E:\333\DIVER.GTS") specan = Ektsfu(sfu_ip) specan.set_digitaltv_input_source_dvbt2("TSPLayer") specan = Ektsfu(sfu_ip) specan.set_level_level_rf("ON") specan = Ektsfu(sfu_ip) specan.set_noise_noise_noise("OFF")
write_json_file( "../../ekt_json/dvbt2_51_verification_signal_strength_indicator_ssi.json", dict_test_parame_result) if __name__ == '__main__': """ 测试流程: ①重置设备 ②选择 TSPLAYER ③播放流文件 ④设置code_rate,modulation,bandwidth,guard, frequency,input_signal_level ⑤机顶盒应用中进行锁台并确认锁台成功 (针对stb-tester发送post请求运行testcase) ⑤依次修改可变参数,判断机顶盒画面是否含有马赛克并记录结果 """ load_dict = read_json_file( "../../ekt_json/dvbt2_51_verification_signal_strength_indicator_ssi.json" ) sfu_ip = ekt_cfg.SFU_IP specan = Ektsfu(sfu_ip) specan.preset_instrument() specan = Ektsfu(sfu_ip) specan.set_modulation_modulation_source("DTV") specan = Ektsfu(sfu_ip) specan.set_modulation_modulation_standard_dvt("T2DVb") specan = Ektsfu(sfu_ip) specan.set_player_timing_openfile(r"E:\333\DIVER.GTS") specan = Ektsfu(sfu_ip) specan.set_digitaltv_input_source_dvbt2("TSPLayer") specan = Ektsfu(sfu_ip) specan.set_level_level_rf("ON") specan = Ektsfu(sfu_ip)
dict_test_parame_result = {} dict_test_parame_result["test_parame_result"] = FREQUENCY_BW_LIST write_json_file("../../ekt_json/dvbt_6_signal_bandwidth.json", dict_test_parame_result) if __name__ == '__main__': """ 测试流程: ①重置设备 ②选择 TSPLAYER ③播放流文件 ④设置code_rate,modulation,bandwidth,guard, frequency,input_signal_level ⑤机顶盒应用中进行锁台并确认锁台成功 (针对stb-tester发送post请求运行testcase) ⑤依次修改可变参数,判断机顶盒画面是否含有马赛克并记录结果 """ load_dict = read_json_file("../../ekt_json/dvbt_6_signal_bandwidth.json") sfu_ip = ekt_cfg.SFU_IP specan = Ektsfu(sfu_ip) specan.preset_instrument() specan = Ektsfu(sfu_ip) specan.set_modulation_modulation_source("DTV") specan = Ektsfu(sfu_ip) specan.set_modulation_modulation_standard_dvt("DVBT") specan = Ektsfu(sfu_ip) specan.set_player_timing_openfile(r"E:\333\DIVER.GTS") specan = Ektsfu(sfu_ip) specan.set_digitaltv_input_source_dvbt("TSPLayer") specan = Ektsfu(sfu_ip) specan.set_level_level_rf("ON") specan = Ektsfu(sfu_ip) specan.set_noise_noise_noise("OFF")
]) dict_test_parame_result["test_parame_result"] = list_test_parame_result write_json_file("../../ekt_json/dvbt2_37_modes.json", dict_test_parame_result) if __name__ == '__main__': """ 测试流程: ①重置设备 ②选择 TSPLAYER ③播放流文件 ④设置code_rate,modulation,bandwidth,guard, frequency,input_signal_level ⑤机顶盒应用中进行锁台并确认锁台成功 (针对stb-tester发送post请求运行testcase) ⑤依次修改可变参数,判断机顶盒画面是否含有马赛克并记录结果 """ load_dict = read_json_file("../../ekt_json/dvbt2_37_modes.json") sfu_ip = ekt_cfg.SFU_IP specan = Ektsfu(sfu_ip) specan.preset_instrument() specan = Ektsfu(sfu_ip) specan.set_modulation_modulation_source("DTV") specan = Ektsfu(sfu_ip) specan.set_modulation_modulation_standard_dvt("T2DVb") specan = Ektsfu(sfu_ip) specan.set_player_timing_openfile(r"E:\333\DIVER.GTS") specan = Ektsfu(sfu_ip) specan.set_digitaltv_input_source_dvbt2("TSPLayer") specan = Ektsfu(sfu_ip) specan.set_level_level_rf("ON") specan = Ektsfu(sfu_ip) specan.set_noise_noise_noise("OFF")
dict_test_parame_result["test_parame_result"] = list_test_parame_result write_json_file("../../ekt_json/j83_1_dynamic_range_awng_min_level.json", dict_test_parame_result) if __name__ == '__main__': """ 测试流程: ①重置设备 ②选择 TSPLAYER ③播放流文件 ④设置modulation,symbol_rate, CN, frequency,input_signal_level ⑤机顶盒应用中进行锁台并确认锁台成功 (针对stb-tester发送post请求运行testcase) ⑤依次修改可变参数,判断机顶盒画面是否含有马赛克并记录结果 """ load_dict = read_json_file( "../../ekt_json/j83_1_dynamic_range_awng_min_level.json") sfu_ip = ekt_cfg.SFU_IP specan = Ektsfu(sfu_ip) specan.preset_instrument() specan = Ektsfu(sfu_ip) specan.set_modulation_modulation_source("DTV") specan = Ektsfu(sfu_ip) specan.set_modulation_modulation_standard_dvt("J83B") specan = Ektsfu(sfu_ip) specan.set_player_timing_openfile(r"E:\333\DIVER.GTS") specan = Ektsfu(sfu_ip) specan.set_digitaltv_input_source_j83b("TSPLayer") specan = Ektsfu(sfu_ip) specan.set_level_level_rf("ON") specan = Ektsfu(sfu_ip) specan.set_noise_noise_noise("ADD")
specan.set_frequency_frequency_frequency(str(FREQUENCY_1550) + "MHz") specan = Ektsfe(sfe_ip) specan.set_level_level_level(LEVEL_70 + " dBm") if __name__ == '__main__': """ 测试流程: ①重置设备 ②选择 TSPLAYER ③播放流文件 ④设置modulation,symbol_rate,code_rate,frequency,input_signal_level ⑤机顶盒应用中进行锁台并确认锁台成功 (针对stb-tester发送post请求运行testcase) ⑤依次修改可变参数,判断机顶盒画面是否含有马赛克并记录结果 """ load_dict = read_json_file("../../ekt_json/dvbs_12_symbol_rate_step.json") sfe_ip = ekt_cfg.SFE_IP sfe_init_setting() # for SYMBOL_RATE in SYMBOL_RATE_LIST: for PARAMETER in load_dict.get("test_parame_result"): if PARAMETER[1] == None: pass else: continue SYMBOL_RATE = PARAMETER[0] specan = Ektsfe(sfe_ip) specan.set_digitaltv_coding_symbolrate(SYMBOL_RATE[0]) net = ekt_net.EktNetClient(ekt_cfg.FRONT_END_SERVER_IP, ekt_cfg.FRONT_END_SERVER_PORT)
dict_test_parame_result["test_parame_result"] = list_test_parame_result write_json_file("../../ekt_json/dvbc_3_cn_test.json", dict_test_parame_result) if __name__ == '__main__': """ 测试流程: ①重置设备 ②选择 TSPLAYER ③播放流文件 ④设置modulation,symbol_rate, CN, frequency,input_signal_level ⑤机顶盒应用中进行锁台并确认锁台成功 (针对stb-tester发送post请求运行testcase) ⑤依次修改可变参数,判断机顶盒画面是否含有马赛克并记录结果 """ load_dict = read_json_file("../../ekt_json/dvbc_3_cn_test.json") sfu_ip = ekt_cfg.SFU_IP specan = Ektsfu(sfu_ip) specan.preset_instrument() specan = Ektsfu(sfu_ip) specan.set_modulation_modulation_source("DTV") specan = Ektsfu(sfu_ip) specan.set_modulation_modulation_standard_dvt("DVBC") specan = Ektsfu(sfu_ip) specan.set_player_timing_openfile(r"E:\333\DIVER.GTS") specan = Ektsfu(sfu_ip) specan.set_digitaltv_input_source_dvbc("TSPLayer") specan = Ektsfu(sfu_ip) specan.set_level_level_rf("ON") specan = Ektsfu(sfu_ip) specan.set_noise_noise_noise("ADD")
dict_test_parame_result["test_parame_result"] = list_test_parame_result write_json_file("../../ekt_json/dvbt_22_minimun_signal_level_0db.json", dict_test_parame_result) if __name__ == '__main__': """ 测试流程: ①重置设备 ②选择 TSPLAYER ③播放流文件 ④设置code_rate,modulation,bandwidth,guard, frequency,input_signal_level ⑤机顶盒应用中进行锁台并确认锁台成功 (针对stb-tester发送post请求运行testcase) ⑤依次修改可变参数,判断机顶盒画面是否含有马赛克并记录结果 """ load_dict = read_json_file("../../ekt_json/dvbt_22_minimun_signal_level_0db.json") sfu_ip = ekt_cfg.SFU_IP specan = Ektsfu(sfu_ip) specan.preset_instrument() specan = Ektsfu(sfu_ip) specan.set_modulation_modulation_source("DTV") specan = Ektsfu(sfu_ip) specan.set_modulation_modulation_standard_dvt("DVBT") specan = Ektsfu(sfu_ip) specan.set_player_timing_openfile(r"E:\333\DIVER.GTS") specan = Ektsfu(sfu_ip) specan.set_digitaltv_input_source_dvbt("TSPLayer") specan = Ektsfu(sfu_ip) specan.set_level_level_rf("ON") specan = Ektsfu(sfu_ip) specan.set_noise_noise_noise("OFF")
dict_test_parame_result["test_parame_result"] = list_test_parame_result write_json_file( "../../ekt_json/dvbt_31_performance_SFN_more_than_one.json", dict_test_parame_result) if __name__ == '__main__': """ 测试流程: ①重置设备 ②选择 TSPLAYER ③播放流文件 ④设置code_rate,modulation,bandwidth,guard, frequency,input_signal_level ⑤机顶盒应用中进行锁台并确认锁台成功 (针对stb-tester发送post请求运行testcase) ⑤依次修改可变参数,判断机顶盒画面是否含有马赛克并记录结果 """ load_dict = read_json_file( "../../ekt_json/dvbt_31_performance_SFN_more_than_one.json") sfu_ip = ekt_cfg.SFU_IP specan = Ektsfu(sfu_ip) specan.preset_instrument() specan = Ektsfu(sfu_ip) specan.set_modulation_modulation_source("DTV") specan = Ektsfu(sfu_ip) specan.set_modulation_modulation_standard_dvt("DVBT") specan = Ektsfu(sfu_ip) specan.set_player_timing_openfile(r"E:\333\DIVER.GTS") specan = Ektsfu(sfu_ip) specan.set_digitaltv_input_source_dvbt("TSPLayer") specan = Ektsfu(sfu_ip) specan.set_level_level_rf("ON") specan = Ektsfu(sfu_ip) specan.set_noise_noise_noise("ADD")
write_json_file( "../../ekt_json/dvbs2_25_signal_acquisition_frequency_range.json", dict_test_parame_result) if __name__ == '__main__': """ 测试流程: ①重置设备 ②选择 TSPLAYER ③播放流文件 ④设置modulation,symbol_rate,code_rate,frequency,input_signal_level ⑤机顶盒应用中进行锁台并确认锁台成功 (针对stb-tester发送post请求运行testcase) ⑤依次修改可变参数,判断机顶盒画面是否含有马赛克并记录结果 """ load_dict = read_json_file( "../../ekt_json/dvbs2_25_signal_acquisition_frequency_range.json") sfu_ip = ekt_cfg.SFU_IP specan = Ektsfu(sfu_ip) specan.preset_instrument() specan = Ektsfu(sfu_ip) specan.set_modulation_modulation_source("DTV") specan = Ektsfu(sfu_ip) specan.set_modulation_modulation_standard_dvt("DVS2") specan = Ektsfu(sfu_ip) specan.set_player_timing_openfile(r"E:\333\DIVER.GTS") specan = Ektsfu(sfu_ip) specan.set_digitaltv_input_source_dvbs2("TSPLayer") specan = Ektsfu(sfu_ip) specan.set_digitaltv_coding_constellation_dvbs2(MODULATION_8PSK) specan = Ektsfu(sfu_ip) specan.set_level_level_rf("ON")
dict_test_parame_result = {} dict_test_parame_result["test_parame_result"] = PARAMETER_LIST write_json_file("../../ekt_json/dvbt2_68_performance_in_SFN_echo.json", dict_test_parame_result) if __name__ == '__main__': """ 测试流程: ①重置设备 ②选择 TSPLAYER ③播放流文件 ④设置code_rate,modulation,bandwidth,guard, frequency,input_signal_level ⑤机顶盒应用中进行锁台并确认锁台成功 (针对stb-tester发送post请求运行testcase) ⑤依次修改可变参数,判断机顶盒画面是否含有马赛克并记录结果 """ load_dict = read_json_file("../../ekt_json/dvbt2_68_performance_in_SFN_echo.json") sfu_ip = ekt_cfg.SFU_IP specan = Ektsfu(sfu_ip) specan.preset_instrument() specan = Ektsfu(sfu_ip) specan.set_modulation_modulation_source("DTV") specan = Ektsfu(sfu_ip) specan.set_modulation_modulation_standard_dvt("T2DVb") specan = Ektsfu(sfu_ip) specan.set_player_timing_openfile(r"E:\333\DIVER.GTS") specan = Ektsfu(sfu_ip) specan.set_digitaltv_input_source_dvbt2("TSPLayer") specan = Ektsfu(sfu_ip) specan.set_level_level_rf("ON") specan = Ektsfu(sfu_ip) specan.set_noise_noise_noise("ADD")
if __name__ == '__main__': """ 测试流程: ①重置设备 ②选择 TSPLAYER ③播放流文件 ④设置code_rate,modulation,bandwidth,guard, frequency,input_signal_level ⑤机顶盒应用中进行锁台并确认锁台成功 (针对stb-tester发送post请求运行testcase) ⑤依次修改可变参数,判断机顶盒画面是否含有马赛克并记录结果 """ # 将部分无需测试的点的json文件内容, 测试结果置为 NO NEED TEST dvbt2_69_performance_in_SFN_inside_guard_json_class_test( "../../ekt_json/dvbt2_69_performance_in_SFN_inside_guard.json") load_dict = read_json_file( "../../ekt_json/dvbt2_69_performance_in_SFN_inside_guard.json") sfu_ip = ekt_cfg.SFU_IP specan = Ektsfu(sfu_ip) specan.preset_instrument() specan = Ektsfu(sfu_ip) specan.set_modulation_modulation_source("DTV") specan = Ektsfu(sfu_ip) specan.set_modulation_modulation_standard_dvt("T2DVb") specan = Ektsfu(sfu_ip) specan.set_player_timing_openfile(r"E:\333\DIVER.GTS") specan = Ektsfu(sfu_ip) specan.set_digitaltv_input_source_dvbt2("TSPLayer") specan = Ektsfu(sfu_ip) specan.set_level_level_rf("ON") specan = Ektsfu(sfu_ip) specan.set_noise_noise_noise("ADD")
dict_test_parame_result["test_parame_result"] = PARAMETER_LIST write_json_file( "../../ekt_json/dvbt_29_performance_time_varying_channel.json", dict_test_parame_result) if __name__ == '__main__': """ 测试流程: ①重置设备 ②选择 TSPLAYER ③播放流文件 ④设置code_rate,modulation,bandwidth,guard, frequency,input_signal_level ⑤机顶盒应用中进行锁台并确认锁台成功 (针对stb-tester发送post请求运行testcase) ⑤依次修改可变参数,判断机顶盒画面是否含有马赛克并记录结果 """ load_dict = read_json_file( "../../ekt_json/dvbt_29_performance_time_varying_channel.json") sfu_ip = ekt_cfg.SFU_IP specan = Ektsfu(sfu_ip) specan.preset_instrument() specan = Ektsfu(sfu_ip) specan.set_modulation_modulation_source("DTV") specan = Ektsfu(sfu_ip) specan.set_modulation_modulation_standard_dvt("DVBT") specan = Ektsfu(sfu_ip) specan.set_player_timing_openfile(r"E:\333\DIVER.GTS") specan = Ektsfu(sfu_ip) specan.set_digitaltv_input_source_dvbt("TSPLayer") specan = Ektsfu(sfu_ip) specan.set_level_level_rf("ON") specan = Ektsfu(sfu_ip) specan.set_noise_noise_noise("ADD")
[SYMBOL_RATE, FREQUENCY_LEVEL_OFFSET, list_test_result]) dict_test_parame_result["test_parame_result"] = list_test_parame_result write_json_file("../../ekt_json/dvbs2_23_amplitude_distortion_test.json", dict_test_parame_result) if __name__ == '__main__': """ 测试流程: ①重置设备 ②选择 TSPLAYER ③播放流文件 ④设置modulation,symbol_rate,code_rate,frequency,input_signal_level ⑤机顶盒应用中进行锁台并确认锁台成功 (针对stb-tester发送post请求运行testcase) ⑤依次修改可变参数,判断机顶盒画面是否含有马赛克并记录结果 """ load_dict = read_json_file( "../../ekt_json/dvbs2_23_amplitude_distortion_test.json") sfu_ip = ekt_cfg.SFU_IP specan = Ektsfu(sfu_ip) specan.preset_instrument() specan = Ektsfu(sfu_ip) specan.set_modulation_modulation_source("DTV") specan = Ektsfu(sfu_ip) specan.set_modulation_modulation_standard_dvt("DVS2") specan = Ektsfu(sfu_ip) specan.set_player_timing_openfile(r"E:\333\DIVER.GTS") specan = Ektsfu(sfu_ip) specan.set_digitaltv_input_source_dvbs2("TSPLayer") specan = Ektsfu(sfu_ip) specan.set_level_level_rf("ON") specan = Ektsfu(sfu_ip) specan.set_noise_noise_noise("OFF")
dict_test_parame_result = {} dict_test_parame_result["test_parame_result"] = PARAMETER_LIST write_json_file("../../ekt_json/dvbt_20_performance_0db_echo_channel.json", dict_test_parame_result) if __name__ == '__main__': """ 测试流程: ①重置设备 ②选择 TSPLAYER ③播放流文件 ④设置code_rate,modulation,bandwidth,guard, frequency,input_signal_level ⑤机顶盒应用中进行锁台并确认锁台成功 (针对stb-tester发送post请求运行testcase) ⑤依次修改可变参数,判断机顶盒画面是否含有马赛克并记录结果 """ load_dict = read_json_file("../../ekt_json/dvbt_20_performance_0db_echo_channel.json") sfu_ip = ekt_cfg.SFU_IP specan = Ektsfu(sfu_ip) specan.preset_instrument() specan = Ektsfu(sfu_ip) specan.set_modulation_modulation_source("DTV") specan = Ektsfu(sfu_ip) specan.set_modulation_modulation_standard_dvt("DVBT") specan = Ektsfu(sfu_ip) specan.set_player_timing_openfile(r"E:\333\DIVER.GTS") specan = Ektsfu(sfu_ip) specan.set_digitaltv_input_source_dvbt("TSPLayer") specan = Ektsfu(sfu_ip) specan.set_level_level_rf("ON") specan = Ektsfu(sfu_ip) specan.set_noise_noise_noise("ADD")
if __name__ == '__main__': """ 测试流程: ①重置设备 ②选择 TSPLAYER ③播放流文件 ④设置code_rate,modulation,bandwidth,guard, frequency,input_signal_level ⑤机顶盒应用中进行锁台并确认锁台成功 (针对stb-tester发送post请求运行testcase) ⑤依次修改可变参数,判断机顶盒画面是否含有马赛克并记录结果 """ # 将部分无需测试的点的json文件内容, 测试结果置为 NO NEED TEST dvbt_19_gaussian_channel_json_class_test( "../../ekt_json/dvbt_19_performance_gaussian_channel.json") load_dict = read_json_file( "../../ekt_json/dvbt_19_performance_gaussian_channel.json") sfu_ip = ekt_cfg.SFU_IP specan = Ektsfu(sfu_ip) specan.preset_instrument() specan = Ektsfu(sfu_ip) specan.set_modulation_modulation_source("DTV") specan = Ektsfu(sfu_ip) specan.set_modulation_modulation_standard_dvt("DVBT") specan = Ektsfu(sfu_ip) specan.set_player_timing_openfile(r"E:\333\DIVER.GTS") specan = Ektsfu(sfu_ip) specan.set_digitaltv_input_source_dvbt("TSPLayer") specan = Ektsfu(sfu_ip) specan.set_level_level_rf("ON") specan = Ektsfu(sfu_ip) specan.set_noise_noise_noise("ADD")
list_test_parame_result.append([FREQUENCY[0], FREQUENCY[1], list_test_result]) dict_test_parame_result["test_parame_result"] = list_test_parame_result write_json_file("../../ekt_json/dvbt_25_analogue_singnal_other_channel.json", dict_test_parame_result) if __name__ == '__main__': """ 测试流程: ①重置设备 ②选择 TSPLAYER ③播放流文件 ④设置code_rate,modulation,bandwidth,guard, frequency,input_signal_level ⑤机顶盒应用中进行锁台并确认锁台成功 (针对stb-tester发送post请求运行testcase) ⑤依次修改可变参数,判断机顶盒画面是否含有马赛克并记录结果 """ load_dict = read_json_file("../../ekt_json/dvbt_25_analogue_singnal_other_channel.json") sfu_ip = ekt_cfg.SFU_IP specan = Ektsfu(sfu_ip) specan.preset_instrument() specan = Ektsfu(sfu_ip) specan.set_modulation_modulation_source("DTV") specan = Ektsfu(sfu_ip) specan.set_modulation_modulation_standard_dvt("DVBT") specan = Ektsfu(sfu_ip) specan.set_player_timing_openfile(r"E:\333\DIVER.GTS") specan = Ektsfu(sfu_ip) specan.set_digitaltv_input_source_dvbt("TSPLayer") specan = Ektsfu(sfu_ip) specan.set_level_level_rf("ON") specan = Ektsfu(sfu_ip) specan.set_noise_noise_noise("OFF")
list_test_parame_result.append([SYMBOL_RATE, REQUENCY, list_test_result]) dict_test_parame_result["test_parame_result"] = list_test_parame_result write_json_file("../../ekt_json/dvbc_10_frequency_capture_range.json", dict_test_parame_result) if __name__ == '__main__': """ 测试流程: ①重置设备 ②选择 TSPLAYER ③播放流文件 ④设置modulation,symbol_rate, CN, frequency,input_signal_level ⑤机顶盒应用中进行锁台并确认锁台成功 (针对stb-tester发送post请求运行testcase) ⑤依次修改可变参数,判断机顶盒画面是否含有马赛克并记录结果 """ load_dict = read_json_file("../../ekt_json/dvbc_10_frequency_capture_range.json") sfu_ip = ekt_cfg.SFU_IP specan = Ektsfu(sfu_ip) specan.preset_instrument() specan = Ektsfu(sfu_ip) specan.set_modulation_modulation_source("DTV") specan = Ektsfu(sfu_ip) specan.set_modulation_modulation_standard_dvt("DVBC") specan = Ektsfu(sfu_ip) specan.set_player_timing_openfile(r"E:\333\DIVER.GTS") specan = Ektsfu(sfu_ip) specan.set_digitaltv_input_source_dvbc("TSPLayer") specan = Ektsfu(sfu_ip) specan.set_level_level_rf("ON") specan = Ektsfu(sfu_ip) specan.set_noise_noise_noise("OFF")
write_json_file( "../../ekt_json/dvbt2_52_verification_signal_quality_indicator_sqi.json", dict_test_parame_result) if __name__ == '__main__': """ 测试流程: ①重置设备 ②选择 TSPLAYER ③播放流文件 ④设置code_rate,modulation,bandwidth,guard, frequency,input_signal_level ⑤机顶盒应用中进行锁台并确认锁台成功 (针对stb-tester发送post请求运行testcase) ⑤依次修改可变参数,判断机顶盒画面是否含有马赛克并记录结果 """ load_dict = read_json_file( "../../ekt_json/dvbt2_52_verification_signal_quality_indicator_sqi.json" ) sfu_ip = ekt_cfg.SFU_IP specan = Ektsfu(sfu_ip) specan.preset_instrument() specan = Ektsfu(sfu_ip) specan.set_modulation_modulation_source("DTV") specan = Ektsfu(sfu_ip) specan.set_modulation_modulation_standard_dvt("T2DVb") specan = Ektsfu(sfu_ip) specan.set_player_timing_openfile(r"E:\333\DIVER.GTS") specan = Ektsfu(sfu_ip) specan.set_digitaltv_input_source_dvbt2("TSPLayer") specan = Ektsfu(sfu_ip) specan.set_level_level_rf("ON") specan = Ektsfu(sfu_ip)
write_json_file( "../../ekt_json/dvbt2_53_changes_modulation_supplement_2_PARP.json", dict_test_parame_result) if __name__ == '__main__': """ 测试流程: ①重置设备 ②选择 TSPLAYER ③播放流文件 ④设置code_rate,modulation,bandwidth,guard, frequency,input_signal_level ⑤机顶盒应用中进行锁台并确认锁台成功 (针对stb-tester发送post请求运行testcase) ⑤依次修改可变参数,判断机顶盒画面是否含有马赛克并记录结果 """ load_dict = read_json_file( "../../ekt_json/dvbt2_53_changes_modulation_supplement_2_PARP.json") sfu_ip = ekt_cfg.SFU_IP specan = Ektsfu(sfu_ip) specan.preset_instrument() specan = Ektsfu(sfu_ip) specan.set_modulation_modulation_source("DTV") specan = Ektsfu(sfu_ip) specan.set_modulation_modulation_standard_dvt("T2DVb") specan = Ektsfu(sfu_ip) specan.set_player_timing_openfile(r"E:\333\DIVER.GTS") specan = Ektsfu(sfu_ip) specan.set_digitaltv_input_source_dvbt2("TSPLayer") specan = Ektsfu(sfu_ip) specan.set_level_level_rf("ON") specan = Ektsfu(sfu_ip) specan.set_noise_noise_noise("OFF")
dict_test_parame_result = {} dict_test_parame_result["test_parame_result"] = PARAMETER_LIST write_json_file("../../ekt_json/dvbt2_37_modes_supplument_1_rotation.json", dict_test_parame_result) if __name__ == '__main__': """ 测试流程: ①重置设备 ②选择 TSPLAYER ③播放流文件 ④设置code_rate,modulation,bandwidth,guard, frequency,input_signal_level ⑤机顶盒应用中进行锁台并确认锁台成功 (针对stb-tester发送post请求运行testcase) ⑤依次修改可变参数,判断机顶盒画面是否含有马赛克并记录结果 """ load_dict = read_json_file( "../../ekt_json/dvbt2_37_modes_supplument_1_rotation.json") sfu_ip = ekt_cfg.SFU_IP specan = Ektsfu(sfu_ip) specan.preset_instrument() specan = Ektsfu(sfu_ip) specan.set_modulation_modulation_source("DTV") specan = Ektsfu(sfu_ip) specan.set_modulation_modulation_standard_dvt("T2DVb") specan = Ektsfu(sfu_ip) specan.set_player_timing_openfile(r"E:\333\DIVER.GTS") specan = Ektsfu(sfu_ip) specan.set_digitaltv_input_source_dvbt2("TSPLayer") specan = Ektsfu(sfu_ip) specan.set_level_level_rf("ON") specan = Ektsfu(sfu_ip) specan.set_noise_noise_noise("OFF")
dict_test_parame_result["test_parame_result"] = list_test_parame_result write_json_file("../../ekt_json/dvbs2_24_symbol_err_rate.json", dict_test_parame_result) if __name__ == '__main__': """ 测试流程: ①重置设备 ②选择 TSPLAYER ③播放流文件 ④设置modulation,symbol_rate,code_rate,frequency,input_signal_level ⑤机顶盒应用中进行锁台并确认锁台成功 (针对stb-tester发送post请求运行testcase) ⑤依次修改可变参数,判断机顶盒画面是否含有马赛克并记录结果 """ load_dict = read_json_file("../../ekt_json/dvbs2_24_symbol_err_rate.json") sfu_ip = ekt_cfg.SFU_IP specan = Ektsfu(sfu_ip) specan.preset_instrument() specan = Ektsfu(sfu_ip) specan.set_modulation_modulation_source("DTV") specan = Ektsfu(sfu_ip) specan.set_modulation_modulation_standard_dvt("DVS2") specan = Ektsfu(sfu_ip) specan.set_player_timing_openfile(r"E:\333\DIVER.GTS") specan = Ektsfu(sfu_ip) specan.set_digitaltv_input_source_dvbs2("TSPLayer") specan = Ektsfu(sfu_ip) specan.set_digitaltv_coding_constellation_dvbs2(MODULATION_8PSK) specan = Ektsfu(sfu_ip) specan.set_level_level_rf("ON")
dict_test_parame_result["test_parame_result"] = list_test_parame_result write_json_file("../../ekt_json/dvbc_5_IQ_inverted.json", dict_test_parame_result) if __name__ == '__main__': """ 测试流程: ①重置设备 ②选择 TSPLAYER ③播放流文件 ④设置modulation,symbol_rate, CN, frequency,input_signal_level ⑤机顶盒应用中进行锁台并确认锁台成功 (针对stb-tester发送post请求运行testcase) ⑤依次修改可变参数,判断机顶盒画面是否含有马赛克并记录结果 """ load_dict = read_json_file("../../ekt_json/dvbc_5_IQ_inverted.json") sfu_ip = ekt_cfg.SFU_IP specan = Ektsfu(sfu_ip) specan.preset_instrument() specan = Ektsfu(sfu_ip) specan.set_modulation_modulation_source("DTV") specan = Ektsfu(sfu_ip) specan.set_modulation_modulation_standard_dvt("DVBC") specan = Ektsfu(sfu_ip) specan.set_player_timing_openfile(r"E:\333\DIVER.GTS") specan = Ektsfu(sfu_ip) specan.set_digitaltv_input_source_dvbc("TSPLayer") specan = Ektsfu(sfu_ip) specan.set_level_level_rf("ON") specan = Ektsfu(sfu_ip) specan.set_noise_noise_noise("ADD")
write_json_file( "../../ekt_json/dvbt2_53_changes_modulation_parameters.json", dict_test_parame_result) if __name__ == '__main__': """ 测试流程: ①重置设备 ②选择 TSPLAYER ③播放流文件 ④设置code_rate,modulation,bandwidth,guard, frequency,input_signal_level ⑤机顶盒应用中进行锁台并确认锁台成功 (针对stb-tester发送post请求运行testcase) ⑤依次修改可变参数,判断机顶盒画面是否含有马赛克并记录结果 """ load_dict = read_json_file( "../../ekt_json/dvbt2_53_changes_modulation_parameters.json") sfu_ip = ekt_cfg.SFU_IP specan = Ektsfu(sfu_ip) specan.preset_instrument() specan = Ektsfu(sfu_ip) specan.set_modulation_modulation_source("DTV") specan = Ektsfu(sfu_ip) specan.set_modulation_modulation_standard_dvt("T2DVb") specan = Ektsfu(sfu_ip) specan.set_player_timing_openfile(r"E:\333\DIVER.GTS") specan = Ektsfu(sfu_ip) specan.set_digitaltv_input_source_dvbt2("TSPLayer") specan = Ektsfu(sfu_ip) specan.set_level_level_rf("ON") specan = Ektsfu(sfu_ip) specan.set_noise_noise_noise("OFF")
dict_test_parame_result["test_parame_result"] = list_test_parame_result write_json_file("../../ekt_json/j83_9_frequency_error_rate.json", dict_test_parame_result) if __name__ == '__main__': """ 测试流程: ①重置设备 ②选择 TSPLAYER ③播放流文件 ④设置modulation,symbol_rate, CN, frequency,input_signal_level ⑤机顶盒应用中进行锁台并确认锁台成功 (针对stb-tester发送post请求运行testcase) ⑤依次修改可变参数,判断机顶盒画面是否含有马赛克并记录结果 """ load_dict = read_json_file( "../../ekt_json/j83_9_frequency_error_rate.json") sfu_ip = ekt_cfg.SFU_IP specan = Ektsfu(sfu_ip) specan.preset_instrument() specan = Ektsfu(sfu_ip) specan.set_modulation_modulation_source("DTV") specan = Ektsfu(sfu_ip) specan.set_modulation_modulation_standard_dvt("J83B") specan = Ektsfu(sfu_ip) specan.set_player_timing_openfile(r"E:\333\DIVER.GTS") specan = Ektsfu(sfu_ip) specan.set_digitaltv_input_source_j83b("TSPLayer") specan = Ektsfu(sfu_ip) specan.set_level_level_rf("ON") specan = Ektsfu(sfu_ip) specan.set_noise_noise_noise("OFF")
write_json_file( "../../ekt_json/dvbc_7_analogue_adjacent_carrier_interference.json", dict_test_parame_result) if __name__ == '__main__': """ 测试流程: ①重置设备 ②选择 TSPLAYER ③播放流文件 ④设置modulation,symbol_rate, CN, frequency,input_signal_level ⑤机顶盒应用中进行锁台并确认锁台成功 (针对stb-tester发送post请求运行testcase) ⑤依次修改可变参数,判断机顶盒画面是否含有马赛克并记录结果 """ load_dict = read_json_file( "../../ekt_json/dvbc_7_analogue_adjacent_carrier_interference.json") sfu_ip = ekt_cfg.SFU_IP specan = Ektsfu(sfu_ip) specan.preset_instrument() specan = Ektsfu(sfu_ip) specan.set_modulation_modulation_source("DTV") specan = Ektsfu(sfu_ip) specan.set_modulation_modulation_standard_dvt("DVBC") specan = Ektsfu(sfu_ip) specan.set_player_timing_openfile(r"E:\333\DIVER.GTS") specan = Ektsfu(sfu_ip) specan.set_digitaltv_input_source_dvbc("TSPLayer") specan = Ektsfu(sfu_ip) specan.set_level_level_rf("ON") specan = Ektsfu(sfu_ip) specan.set_noise_noise_noise("OFF")
if __name__ == '__main__': """ 测试流程: ①重置设备 ②选择 TSPLAYER ③播放流文件 ④设置modulation,symbol_rate,code_rate,frequency,input_signal_level ⑤机顶盒应用中进行锁台并确认锁台成功 (针对stb-tester发送post请求运行testcase) ⑤依次修改可变参数,判断机顶盒画面是否含有马赛克并记录结果 """ # 将部分无需测试的点的json文件内容, 测试结果置为 NO NEED TEST dvbs2_18_dynamic_min_json_class_test( "../../ekt_json/dvbs2_18_dynamic_range_awng_sensitivity_level.json") load_dict = read_json_file( "../../ekt_json/dvbs2_18_dynamic_range_awng_sensitivity_level.json") sfu_ip = ekt_cfg.SFU_IP specan = Ektsfu(sfu_ip) specan.preset_instrument() specan = Ektsfu(sfu_ip) specan.set_modulation_modulation_source("DTV") specan = Ektsfu(sfu_ip) specan.set_modulation_modulation_standard_dvt("DVS2") specan = Ektsfu(sfu_ip) specan.set_player_timing_openfile(r"E:\333\DIVER.GTS") specan = Ektsfu(sfu_ip) specan.set_digitaltv_input_source_dvbs2("TSPLayer") specan = Ektsfu(sfu_ip) specan.set_level_level_rf("ON") specan = Ektsfu(sfu_ip) specan.set_noise_noise_noise("ADD")
dict_test_parame_result = {} dict_test_parame_result["test_parame_result"] = PARAMETER_LIST write_json_file("../../ekt_json/dvbt2_44_normal_mode.json", dict_test_parame_result) if __name__ == '__main__': """ 测试流程: ①重置设备 ②选择 TSPLAYER ③播放流文件 ④设置code_rate,modulation,bandwidth,guard, frequency,input_signal_level ⑤机顶盒应用中进行锁台并确认锁台成功 (针对stb-tester发送post请求运行testcase) ⑤依次修改可变参数,判断机顶盒画面是否含有马赛克并记录结果 """ load_dict = read_json_file("../../ekt_json/dvbt2_44_normal_mode.json") sfu_ip = ekt_cfg.SFU_IP specan = Ektsfu(sfu_ip) specan.preset_instrument() specan = Ektsfu(sfu_ip) specan.set_modulation_modulation_source("DTV") specan = Ektsfu(sfu_ip) specan.set_modulation_modulation_standard_dvt("T2DVb") specan = Ektsfu(sfu_ip) specan.set_player_timing_openfile(r"E:\333\DIVER.GTS") specan = Ektsfu(sfu_ip) specan.set_digitaltv_input_source_dvbt2("TSPLayer") specan = Ektsfu(sfu_ip) specan.set_level_level_rf("ON") specan = Ektsfu(sfu_ip) specan.set_noise_noise_noise("OFF")