def set_PCB_time(): t = time.gmtime() UART.send_write_command(config.d["Seconds"], str(t[5])) time.sleep(0.5) UART.send_write_command(config.d["Minutes"], str(t[4])) time.sleep(0.5) UART.send_write_command(config.d["Hours"], str(t[3])) time.sleep(0.5) UART.send_write_command(config.d["Date"], str(t[2])) time.sleep(0.5) UART.send_write_command(config.d["Month"], str(t[1]))
def __init__(self, portnum=None, callbacks=[]): self.portnum = portnum self.exit = False try: self.uart = UART.Uart(portnum) except serial.SerialException as e: logging.exception("Error opening UART.") self.uart = UART.Uart() self.packetCounter = 0 self.lastReceivedPacketCounter = 0 self.lastReceivedPacket = None
def BlueLed1Set(): input = blueLed1Input.get() while len(input) < 5: input = "0" + input print("14_" + input + "\r\n") UART.serialWrite("14_" + input + "\r\n") return blueLed1Input.get()
def BlueLed1Set(self): input = self.blueLed1Input.get() self.BlueLED1State = input while (len(input) < 5): input = "0" + input print("14_" + input + "\r\n") UART.serialWrite("14_" + input + "\r\n")
def runTest(): status("active") TestName = "Gallery" ScriptName = "safe_removal" ScriptIndex = "5" Grabber = DO.grab_define() platform = DO.load_platform() Modulation = "DVBS" FEC = "3/4" SR = "27500000" Stream = "\\X_0000_00000_MUX_32000_EPG_Software_20130328a.ts" Frequency = 1476 Modulator = "1" COM = "COM7" settings = [ScriptName, ScriptIndex, Grabber, Modulation, FEC, SR, Stream, Frequency, Modulator, COM] DO.save_settings(settings) GRAB.start_capture() MOD.stop(Modulator) # macros searching_from_wizard_general_E501 = ["ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_general_english_E501 = ["up 2 3400", "right 1 1000", "down 2 3400", "ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_centre_E501 = ["ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "down", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_centre_english_E501 = ["up 3 3400", "right 1 1000", "down 3 3400", "ok 1 3400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 22200", "ok 1 10000", "exit 2 3000"] searching_from_wizard_south_E501 = ["ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "down", "down", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_general_ALL = ["ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_general_english_ALL = ["up 2 3400", "right 1 1000", "down 2 3400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 22200", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_centre_ALL = ["ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "down", "ok 1 5000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_centre_english_ALL = ["up 3 3400", "right 1 1000", "down 3 3400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 22200", "down 1 1000", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_south_ALL = ["ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "down", "down", "ok 1 15000", "ok 1 10000", "exit 2 3000"] load_regions_E501 = ["ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200"] load_regions_english_E501 = ["up 2 2400", "right 1 1000", "down 2 2400", "ok 1 3400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 22200"] load_regions_ALL = ["ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200"] load_regions_english_ALL = ["up 2 2400", "right 1 1000", "down 2 2400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 22200"] ############################ TestCase 1 ########################################## testcase = 1 status("active") MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) UART.default_settings() UART.start_app("") RC.push(["key_1", "key_2", "key_3"]) # set of the RC buttons sleep(0) RC.push("[macros_name]") # RC macros from remote_control.ini file GRAB.compare(testcase) ################################################################################### status("active") MOD.stop(Modulator) GRAB.stop_capture()
def main(): # Pause to let program initialise time.sleep(1) # Create object of GUIclass from GUI header and create a thread that runs the createGUI function from that class ArbiGUI = GUI.GUIclass() guiThread = threading.Thread(target = ArbiGUI.createGUI) guiThread.start() # Create object of data logging class from DataLogger header. Erases data from file name if it exists from last user ArbiDataLogger = DataLogger.DataLoggerClass("maintextfile.txt") ArbiDataLogger.clearFile() # Create object of control AI class from AI header ArbiAI = AI.AiClass() # Main loop while True: time.sleep(0.5) ArbiAI.status() ArbiAI.decide() state = ArbiGUI.getBlueLED1State() print state line = UART.serialWrite("3 serial msg from main\r\n",) ArbiDataLogger.logData(line)
def poll_tracker(self, time_limit): interm = UART.poll_tracker_params() if interm['ERROR'] == None: self.timings['last_tracker_poll'] = time.time() self.bools['tracker_polled'] = True update_existing_keys(self.tracker_params, interm) if self.tracer == True: self.calc_avg_wind_speed() else: if self.tracer == True: if time.time( ) - self.timings['last_tracker_poll'] > time_limit: if self.bools['tracker_polled'] == True: supDB.update_rpi_status('tracer RS458 read failure') logger.warn( "tracer failed to poll the tracker for more than %d sec" % time_limit) self.bools['tracker_polled'] = False else: if time.time() - self.timings[ 'last_tracker_poll'] > config.MAX_UART_DOWN_TIME: if self.bools['tracker_polled'] == True: supDB.update_rpi_status('RS458 read failure') logger.critical("RS485 read failure for more than %d seconds"\ %config.MAX_UART_DOWN_TIME) self.bools['tracker_polled'] = False
def send_to_idle(self): success1 = UART.send_write_command(config.d['Mode'],'n') time.sleep(0.5) success2 = UART.send_write_command(config.d['Angle_A'],config.IDLEA) time.sleep(0.5) success3 = UART.send_write_command(config.d['Angle_B'], config.IDLEB) if success1['ERROR'] == None and success2['ERROR'] == None \ and success3['ERROR'] == None: self.timings['last_tracker_update'] = time.time() self.bools['tracker_updated'] = True else: if time.time() - self.timings['last_tracker_update'] > config.MAX_UART_DOWN_TIME: if self.bools['tracker_updated'] == True: #logger.warn("RS485 write failure for more than %d seconds"\ #%config.MAX_UART_DOWN_TIME) supDB.update_rpi_status('RS458 write failure') self.bools['tracker_updated'] = 'False'
def tracker_update_motors(self): currentH = self.tracker_params[config.d['Target_Default_H']] currentV = self.tracker_params[config.d['Target_Default_V']] targetH = self.server_params['target_position_H'] targetV = self.server_params['target_position_V'] try: currentH_test = float(currentH) currentV_test = float(currentV) targetH_test = float(targetH) targetV_test = float(targetV) except Exception as err: #logger.warn("CurrentH %s,CurrentV %s,tagrgetH %s,targetV %s"%(currentH,currentV,targetH,targetV)) pass if currentH_test != targetH_test: UART.send_write_command(config.d['Target_Default_H'],targetH) #send targetH and targetV back as strings!!!! if currentV_test != targetV_test: UART.send_write_command(config.d['Target_Default_V'],targetV)
def clear_tracker_errors(self): success = UART.send_write_command(136,'clear') if success['ERROR'] == None: self.timings['last_tracker_update'] = time.time() self.bools['tracker_updated'] = True else: if time.time() - self.timings['last_tracker_update'] > config.MAX_UART_DOWN_TIME: if self.bools['tracker_updated'] == True: #logger.warn("RS485 write failure for more than %d seconds"\ #%config.MAX_UART_DOWN_TIME) supDB.update_rpi_status('RS458 write failure') self.bools['tracker_updated'] = 'False'
def set_wind_factor(self): success = UART.send_write_command(config.d['WindFactor'],config.WIND_MULTIPLIER) if success['ERROR'] == None: self.timings['last_tracker_update'] = time.time() self.bools['tracker_updated'] == True else: if time.time() - self.timings['last_tracker_update'] > config.MAX_UART_DOWN_TIME: if self.bools['tracker_updated'] == True: #logger.warn("RS485 write failure for more than %d seconds"\ #%config.MAX_UART_DOWN_TIME) supDB.update_rpi_status('RS458 write failure') self.bools['tracker_updated'] = 'False'
def set_PCB_time(): # calculating the equation of time - offset from GMT # source - https://en.wikipedia.org/wiki/Equation_of_time#Alternative_calculation yday = time.gmtime()[7] W = 2*math.pi/365.25 A = W*(yday+9) B = A + 1.914*math.pi*math.sin(W*(yday-3))/180 C = (A - math.atan(math.tan(B)/math.cos(23.44*math.pi/180)))/math.pi EoT = 43200*(C-round(C,0)) now = time.time()+EoT+4*60*config.LOCAL_LON t = time.gmtime(now) UART.send_write_command(config.d["Seconds"],str(t[5])) time.sleep(0.5) UART.send_write_command(config.d["Minutes"],str(t[4])) time.sleep(0.5) UART.send_write_command(config.d["Hours"],str(t[3])) time.sleep(0.5) UART.send_write_command(config.d["Date"],str(t[2])) time.sleep(0.5) UART.send_write_command(config.d["Month"],str(t[1]))
def tracker_activate(self): success = UART.send_write_command(config.d['Mode'], 'y') if success['ERROR'] == None: self.timings['last_tracker_update'] = time.time() self.bools['tracker_updated'] = True else: if time.time() - self.timings['last_tracker_update'] > \ config.MAX_UART_DOWN_TIME: if self.bools['tracker_updated'] == True: supDB.update_rpi_status('RS458 write failure') logger.warn("RS485 write failure for more than %d seconds"\ %config.MAX_UART_DOWN_TIME) self.bools['tracker_updated'] = 'False'
def tracker_update_motors(self): currentH = self.tracker_params[config.d['Target_Default_H']] currentV = self.tracker_params[config.d['Target_Default_V']] targetH = self.server_params['target_position_H'] targetV = self.server_params['target_position_V'] if currentH != targetH: successH = UART.send_write_command(config.d['Target_Default_H'], targetH) if currentV != targetV: successV = UART.send_write_command(config.d['Target_Default_V'], targetV) if successH['ERROR'] == None and successV['ERROR'] == None: self.timings['last_tracker_update'] = time.time() self.bools['tracker_updated'] = True else: if time.time() - self.timings['last_tracker_update'] > \ config.MAX_UART_DOWN_TIME: if self.bools['tracker_updated'] == True: supDB.update_rpi_status('RS458 write failure') logger.warn("RS485 write failure for more than %d seconds"\ %config.MAX_UART_DOWN_TIME) self.bools['tracker_updated'] = 'False'
def runTest(): status("active") TestName = "Settings" ScriptName = "10-stb" ScriptIndex = "10" Grabber = DO.grab_define() platform = DO.load_platform() Modulation = "DVBS" FEC = "3/4" SR = "27500000" Stream = "\\X_0000_00000_MUX_32000_EPG_Software_20130328a.ts" Frequency = 1476 Modulator = "1" COM = "COM7" settings = [ScriptName, ScriptIndex, Grabber, Modulation, FEC, SR, Stream, Frequency, Modulator, COM] DO.save_settings(settings) GRAB.start_capture() MOD.stop(Modulator) # macros searching_from_wizard_general_E501 = ["ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_general_english_E501 = ["up 2 3400", "right 1 1000", "down 2 3400", "ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_centre_E501 = ["ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "down", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_centre_english_E501 = ["up 3 3400", "right 1 1000", "down 3 3400", "ok 1 3400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 22200", "ok 1 10000", "exit 2 3000"] searching_from_wizard_south_E501 = ["ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "down", "down", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_general_ALL = ["ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_general_english_ALL = ["up 2 3400", "right 1 1000", "down 2 3400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 22200", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_centre_ALL = ["ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "down", "ok 1 5000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_centre_english_ALL = ["up 3 3400", "right 1 1000", "down 3 3400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 22200", "down 1 1000", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_south_ALL = ["ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "down", "down", "ok 1 15000", "ok 1 10000", "exit 2 3000"] load_regions_E501 = ["ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200"] load_regions_english_E501 = ["up 2 2400", "right 1 1000", "down 2 2400", "ok 1 3400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 22200"] load_regions_ALL = ["ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200"] load_regions_english_ALL = ["up 2 2400", "right 1 1000", "down 2 2400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 22200"] ############################ TestCase 1 ########################################## testcase = 1 status("active") MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) UART.default_settings() if platform in ["E501", "E502", "A230"]: RC.push(searching_from_wizard_general_E501) else: RC.push(searching_from_wizard_general_ALL) UART.start_app("settings") RC.push(["right 8 3000"]) GRAB.compare(testcase) ############################ TestCase 2 ########################################## testcase = 2 if platform in ["E501", "E502", "A230"]: status("active") else: status("inactive") GRAB.compare(testcase) ############################ TestCase 3 ########################################## testcase = 3 status("active") GRAB.compare(testcase) ############################ TestCase 4 ########################################## testcase = 4 status("active") GRAB.compare(testcase) ############################ TestCase 5 ########################################## testcase = 5 if platform in ["E501", "E502", "A230"]: status("active") else: status("inactive") GRAB.compare(testcase) ############################ TestCase 6 ########################################## testcase = 6 if platform in ["E501", "E502", "A230"]: status("active") else: status("inactive") GRAB.compare(testcase) ############################ TestCase 7 ########################################## testcase = 7 if platform in ["E501", "E502", "A230"]: status("active") else: status("inactive") GRAB.compare(testcase) ############################ TestCase 8 ########################################## testcase = 8 if platform in ["E501", "E502", "A230"]: status("active") else: status("inactive") GRAB.compare(testcase) ############################ TestCase 9 ########################################## testcase = 9 if platform in ["E501", "E502", "A230"]: status("active") else: status("inactive") GRAB.compare(testcase) ############################ TestCase 10 ########################################## testcase = 10 if platform in ["E501", "E502", "A230"]: status("active") else: status("inactive") GRAB.compare(testcase) ############################ TestCase 11 ########################################## testcase = 11 if platform in ["E501", "E502", "A230"]: status("active") else: status("inactive") GRAB.compare(testcase) ############################ TestCase 12 ########################################## testcase = 12 status("active") RC.push(["down", "up 1 3000"]) GRAB.compare(testcase) ############################ TestCase 13 ########################################## testcase = 13 status("active") RC.push(["down", "down 1 3000"]) GRAB.compare(testcase) ############################ TestCase 14 ########################################## testcase = 14 status("active") GRAB.compare(testcase) ############################ TestCase 15 ########################################## testcase = 15 status("active") sleep(10) GRAB.compare(testcase) ############################ TestCase 16 ########################################## testcase = 16 status("active") RC.push(["up 1 3000"]) GRAB.compare(testcase) ############################ TestCase 17 ########################################## testcase = 17 status("active") RC.push(["down", "down 1 3000"]) GRAB.compare(testcase) ############################ TestCase 18 ########################################## testcase = 18 if platform in ["E501", "E502", "A230"]: status("active") else: status("inactive") GRAB.compare(testcase) ############################ TestCase 19 ########################################## testcase = 19 if platform in ["E501", "E502", "A230"]: status("active") else: status("inactive") GRAB.compare(testcase) ############################ TestCase 20 ########################################## testcase = 20 if platform in ["E501", "E502", "A230"]: status("active") else: status("inactive") GRAB.compare(testcase) ############################ TestCase 21 ########################################## testcase = 21 status("active") RC.push(["down", "ok 1 3000"]) GRAB.compare(testcase) ############################ TestCase 22 ########################################## testcase = 22 status("active") GRAB.compare(testcase) ############################ TestCase 23 ########################################## testcase = 23 status("active") GRAB.compare(testcase) ############################ TestCase 24 ########################################## testcase = 24 status("active") GRAB.compare(testcase) ############################ TestCase 25 ########################################## testcase = 25 status("active") GRAB.compare(testcase) ############################ TestCase 26 ########################################## testcase = 26 status("active") GRAB.compare(testcase) ############################ TestCase 27 ########################################## testcase = 27 status("active") GRAB.compare(testcase) ############################ TestCase 28 ########################################## testcase = 28 status("active") RC.push(["left 1 2000"]) GRAB.compare(testcase) ############################ TestCase 29 ########################################## testcase = 29 status("active") RC.push(["right 1 2000"]) GRAB.compare(testcase) ############################ TestCase 30 ########################################## testcase = 30 status("active") RC.push(["exit 1 2000"]) GRAB.compare(testcase) ############################ TestCase 31 ########################################## testcase = 31 status("active") RC.push(["ok 1 2000", "ok 1 2000"]) GRAB.compare(testcase) ############################ TestCase 32 ########################################## testcase = 32 status("active") RC.push(["ok 1 2000", "left", "ok 1 500"]) GRAB.compare(testcase) ############################ TestCase 33 ########################################## testcase = 33 status("active") GRAB.compare(testcase) ############################ TestCase 34 ########################################## testcase = 34 status("active") GRAB.compare(testcase) ############################ TestCase 35 ########################################## testcase = 35 status("active") GRAB.compare(testcase) ############################ TestCase 36 ########################################## testcase = 36 status("active") GRAB.compare(testcase) ############################ TestCase 37 ########################################## testcase = 37 status("active") sleep(20) GRAB.compare(testcase) ############################ TestCase 38 ########################################## testcase = 38 status("manual") GRAB.compare(testcase) ############################ TestCase 40 ########################################## testcase = 40 status("active") GRAB.compare(testcase) ############################ TestCase 41 ########################################## testcase = 41 status("active") GRAB.compare(testcase) ############################ TestCase 42 ########################################## testcase = 42 status("active") GRAB.compare(testcase) ############################ TestCase 43 ########################################## testcase = 43 status("active") GRAB.compare(testcase) ############################ TestCase 44 ########################################## testcase = 44 status("active") GRAB.compare(testcase) ############################ TestCase 45 ########################################## testcase = 45 status("active") GRAB.compare(testcase) ############################ TestCase 39 ########################################## testcase = 39 status("active") sleep(50) RC.push(["exit 3 2000"]) UART.start_app("settings") RC.push(["right 8 3000", "down 2 3000", "ok 1 500"]) GRAB.compare(testcase) ################################################################################### status("active") MOD.stop(Modulator) GRAB.stop_capture()
def runTest(): status("active") TestName = "ManualSearch" ScriptName = "conflicts" ScriptIndex = "3" Grabber = DO.grab_define() platform = DO.load_platform() Modulation = "DVBS" FEC = "3/4" SR = "27500000" Stream = "\\X_0000_00000_MUX_32000_EPG_Software_20130328a.ts" Frequency = 1476 Modulator = "1" COM = "COM7" settings = [ScriptName, ScriptIndex, Grabber, Modulation, FEC, SR, Stream, Frequency, Modulator, COM] DO.save_settings(settings) GRAB.start_capture() MOD.stop(Modulator) # macros searching_from_wizard_general_E501 = ["ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_general_english_E501 = ["up 2 3400", "right 1 1000", "down 2 3400", "ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_centre_E501 = ["ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "down", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_centre_english_E501 = ["up 3 3400", "right 1 1000", "down 3 3400", "ok 1 3400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 22200", "ok 1 10000", "exit 2 3000"] searching_from_wizard_south_E501 = ["ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "down", "down", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_general_ALL = ["ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_general_english_ALL = ["up 2 3400", "right 1 1000", "down 2 3400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 22200", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_centre_ALL = ["ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "down", "ok 1 5000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_centre_english_ALL = ["up 3 3400", "right 1 1000", "down 3 3400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 22200", "down 1 1000", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_south_ALL = ["ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "down", "down", "ok 1 15000", "ok 1 10000", "exit 2 3000"] load_regions_E501 = ["ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200"] load_regions_english_E501 = ["up 2 2400", "right 1 1000", "down 2 2400", "ok 1 3400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 22200"] load_regions_ALL = ["ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200"] load_regions_english_ALL = ["up 2 2400", "right 1 1000", "down 2 2400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 22200"] ############################ TestCase 1 ########################################## testcase = 1 status("active") MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) UART.default_settings() if platform in ["E501", "E502", "A230"]: RC.push(searching_from_wizard_general_E501) else: RC.push(searching_from_wizard_general_ALL) MOD.stop(Modulator) MOD.play(Modulator) UART.start_app("scheduler") RC.push(["red", "ok 1 2400", "down 2 1000", "ok 1 2000", "ok 1 2000", "right 1 1000", "up 2 1000", "ok 1 2000", "ok 1 2000", "exit 5 2400", "1 1 2400"]) UART.start_app("dvbsmanualscanner") sleep(120) RC.push(["exit 2 3000", "red 1 2500"]) GRAB.compare(testcase) ############################ TestCase 2 ########################################## testcase = 2 status("manual") GRAB.compare(testcase) ############################ TestCase 3 ########################################## testcase = 3 status("manual") GRAB.compare(testcase) ############################ TestCase 4 ########################################## testcase = 4 status("manual") GRAB.compare(testcase) ############################ TestCase 5 ########################################## testcase = 5 status("manual") GRAB.compare(testcase) ############################ TestCase 6 ########################################## testcase = 6 status("active") MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) UART.default_settings() RC.push(["exit 2 2400"]) UART.activate_app("dvbsmanualscanner") UART.start_app("dvbsmanualscanner") RC.push(["cinemahalls"]) GRAB.compare(testcase) ############################ TestCase 7 ########################################## testcase = 7 status("active") RC.push(["mail"]) GRAB.compare(testcase) ############################ TestCase 8 ########################################## testcase = 8 status("active") RC.push(["red"]) GRAB.compare(testcase) ############################ TestCase 9 ########################################## testcase = 9 status("active") RC.push(["blue"]) GRAB.compare(testcase) ############################ TestCase 10 ########################################## testcase = 10 status("active") RC.push(["yellow"]) GRAB.compare(testcase) ############################ TestCase 11 ########################################## testcase = 11 status("active") RC.push(["green"]) GRAB.compare(testcase) ############################ TestCase 12 ########################################## testcase = 12 status("active") RC.push(["help"]) GRAB.compare(testcase) ############################ TestCase 13 ########################################## testcase = 13 status("active") RC.push(["guide"]) GRAB.compare(testcase) ################################################################################### status("active") MOD.stop(Modulator) GRAB.stop_capture()
def runTest(): status("active") TestName = "Infocas" ScriptName = "functionality" ScriptIndex = "1" Grabber = DO.grab_define() platform = DO.load_platform() Modulation = "DVBS" FEC = "3/4" SR = "27500000" Stream1 = "\\DRE Services\\X_0000_00000_MUX_38000_DRE4_Infocas_1.ts" Stream2 = "\\DRE Services\\X_0000_00000_MUX_38000_DRE4_Infocas_2.ts" Frequency = 1476 Modulator = "1" COM = "COM7" settings = [ScriptName, ScriptIndex, Grabber, Modulation, FEC, SR, Stream1, Frequency, Modulator, COM] DO.save_settings(settings) GRAB.start_capture() MOD.stop(Modulator) # macros searching_from_wizard_general_E501 = ["ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 45000", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_general_english_E501 = ["ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 45000", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_centre_E501 = ["ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 45000", "down", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_centre_english_E501 = ["up 3 3400", "right 1 1000", "down 3 3400", "ok 1 3400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 45000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_south_E501 = ["ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 45000", "down", "down", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_general_ALL = ["ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 45000", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_general_english_ALL = ["up 3 3400", "right 1 1000", "down 3 3400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 45000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_centre_ALL = ["ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 45000", "down", "ok 1 5000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_centre_english_ALL = ["up 3 3400", "right 1 1000", "down 3 3400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 45000", "down 1 1000", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_south_ALL = ["ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 45000", "down", "down", "ok 1 15000", "ok 1 10000", "exit 2 3000"] load_regions_E501 = ["ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 45000"] load_regions_english_E501 = ["up 3 2400", "right 1 1000", "down 3 2400", "ok 1 3400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 45000"] load_regions_ALL = ["ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 45000"] load_regions_english_ALL = ["up 3 2400", "right 1 1000", "down 3 2400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 45000"] ############################ TestCase 1 ########################################## """testcase = 1 status("active") MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) UART.default_settings() UART.start_app("") RC.push(["key_1", "key_2", "key_3"]) # set of the RC buttons sleep(0) RC.push("[macros_name]") # RC macros from remote_control.ini file GRAB.compare(testcase)""" ############################ TestCase 1 ########################################## testcase = 1 status("active") UART.default_settings() # RC.push(["exit 1 500", "exit 1 500", "exit 1 500", "menu 1 1000", "left 1 1000", "left 1 1000", "ok 1 1000", "right 1 1000", "right 1 1000", "right 1 1000", "right 1 1000", "right 1 1000", "right 1 1000", "right 1 1000", "right 1 1000", "down 1 1500", "ok 1 1500", "left 1 1000", "ok 1 1000"]) sleep(15) MOD.stop(Modulator) MOD.play_stream(Modulation, FEC, SR, Stream1, Frequency, Modulator) OPER.search() MOD.stop(Modulator) UART.reboot() sleep(5) MOD.play_stream(Modulation, FEC, SR, Stream1, Frequency, Modulator) RC.push(["exit 2 1000", "2 1 1000", "0 1 1000", "0 1 1000"]) sleep(10) GRAB.wait_until("wait01.bmp", [680, 415, 1235, 665], 30) #common message 1 (rus, broadcast) GRAB.compare(testcase) ############################ TestCase 2 ########################################## testcase = 2 status("active") if platform == "E212": sleep(7) RC.push(["ok 1 1000"]) GRAB.compare(testcase) ############################ TestCase 3 ########################################## testcase = 3 status("active") GRAB.compare(testcase) ############################ TestCase 4 ########################################## testcase = 4 status("active") sleep(10) GRAB.wait_until("wait04.bmp", [680, 415, 1235, 665], 30) #message 2 (120 "SHCH" letters, broadcast) if platform == "E212": RC.push(["ok 1 1000"]) GRAB.compare(testcase) ############################ TestCase 5 ########################################## testcase = 5 status("active") sleep(50) GRAB.wait_until("wait05.bmp", [680, 415, 1235, 665], 30) #message 3 (120 "SHCH" letters + symbol "|" + 2 "SHCH" letters, broadcast) GRAB.compare(testcase) ############################ TestCase 6 ########################################## testcase = 6 status("active") sleep(5) GRAB.compare(testcase) ############################ TestCase 7 ########################################## testcase = 7 status("active") sleep(40) GRAB.wait_until("wait07.bmp", [680, 415, 1235, 665], 30) #common message 4 (rus, individual) GRAB.compare(testcase) ############################ TestCase 8 ########################################## testcase = 8 status("active") sleep(5) GRAB.compare(testcase) ############################ TestCase 9 ########################################## testcase = 9 status("active") sleep(40) GRAB.wait_until("wait09.bmp", [680, 415, 1235, 665], 40) #common message 5 (eng, broadcast) GRAB.compare(testcase) ############################ TestCase 10 ########################################## testcase = 10 status("active") sleep(30) GRAB.wait_until("wait10.bmp", [680, 415, 1235, 665], 45) #message 6 (various symbols, broadcast) GRAB.compare(testcase) ############################ TestCase 11 ########################################## testcase = 11 status("manual") GRAB.compare(testcase) ############################ TestCase 12 ########################################## testcase = 12 status("manual") GRAB.compare(testcase) ############################ TestCase 13 ########################################## testcase = 13 status("active") UART.reboot() RC.push(["exit 1 1000"]) MOD.stop(Modulator) MOD.play_stream(Modulation, FEC, SR, Stream1, Frequency, Modulator) sleep(10) RC.push(["exit 1 1000", "2 1 1100", "0 1 1100", "0 1 1100"]) sleep(47) #messages 1, 2 and 3 if platform == "E212": RC.push(["ok 1 1000"]) sleep(89) RC.push(["standby 1 10000", "standby 1 10000"]) GRAB.compare(testcase) ############################ TestCase 14 ########################################## testcase = 14 status("active") sleep(60) if platform == "E212": RC.push(["ok 1 1000"]) UART.reboot() sleep(15) MOD.stop(Modulator) MOD.play_stream(Modulation, FEC, SR, Stream1, Frequency, Modulator) RC.push(["exit 3 1000", "2 1 1000", "0 1 1000", "0 1 1000"]) sleep(7) GRAB.compare(testcase) ############################ TestCase 15 ########################################## testcase = 15 status("active") UART.reboot() RC.push(["exit 3 1000", "2 1 1000", "0 1 1000", "0 1 1000"]) sleep(5) MOD.stop(Modulator) MOD.play_stream(Modulation, FEC, SR, Stream1, Frequency, Modulator) sleep(15) RC.push(["standby 1 15000"]) sleep(15) RC.push(["standby 1 10000", "ok 1 1000"]) GRAB.compare(testcase) ############################ TestCase 16 ########################################## testcase = 16 status("active") MOD.stop(Modulator) UART.reboot() RC.push(["exit 1 1500", "exit 1 1500", "2 1 1100", "0 1 1100", "0 1 1100"]) MOD.play_stream(Modulation, FEC, SR, Stream1, Frequency, Modulator) sleep(20) GRAB.wait_until("wait01.bmp", [680, 415, 1235, 665], 30) #common message 1 (rus, broadcast) if platform == "E212": RC.push(["ok 1 1000"]) RC.push(["exit 1 1000"]) GRAB.compare(testcase) ############################ TestCase 17 ########################################## testcase = 17 status("active") MOD.stop(Modulator) UART.reboot() RC.push(["exit 1 1500", "exit 1 1500", "2 1 1100", "0 1 1100", "0 1 1100"]) MOD.play_stream(Modulation, FEC, SR, Stream1, Frequency, Modulator) sleep(20) GRAB.wait_until("wait01.bmp", [680, 415, 1235, 665], 30) #common message 1 (rus, broadcast) RC.push(["standby 1 10000", "standby 1 10000"]) GRAB.compare(testcase) ############################ TestCase 18 ########################################## testcase = 18 status("active") MOD.stop(Modulator) UART.reboot() RC.push(["exit 1 1500", "exit 1 1500", "2 1 1100", "0 1 1100", "0 1 1100"]) MOD.play_stream(Modulation, FEC, SR, Stream1, Frequency, Modulator) sleep(20) if platform == "E212": RC.push(["ok 1 1000"]) GRAB.wait_until("wait01.bmp", timeout = 30) #common message 1 (rus, broadcast) RC.push(["VolUp 1 1000", "right 1 1000"]) GRAB.compare(testcase) ############################ TestCase 19 ########################################## testcase = 19 status("active") MOD.stop(Modulator) UART.reboot() RC.push(["exit 1 1500", "exit 1 1500", "2 1 1100", "0 1 1100", "0 1 1100"]) MOD.play_stream(Modulation, FEC, SR, Stream1, Frequency, Modulator) sleep(20) if platform == "E212": RC.push(["ok 1 1000"]) GRAB.wait_until("wait01.bmp", timeout = 30) #common message 1 (rus, broadcast) RC.push(["VolDown 1 1000", "left 1 1000"]) GRAB.compare(testcase) ############################ TestCase 20 ########################################## testcase = 20 status("active") MOD.stop(Modulator) UART.reboot() RC.push(["exit 1 1500", "exit 1 1500", "2 1 1100", "0 1 1100", "0 1 1100"]) MOD.play_stream(Modulation, FEC, SR, Stream1, Frequency, Modulator) sleep(20) if platform == "E212": RC.push(["ok 1 1000"]) GRAB.wait_until("wait01.bmp", timeout = 30) #common message 1 (rus, broadcast) RC.push(["mute 1 1000"]) GRAB.compare(testcase) ############################ TestCase 21 ########################################## testcase = 21 status("active") MOD.stop(Modulator) RC.push(["exit 1 1000"]) UART.reboot() RC.push(["exit 1 1500", "exit 1 1500", "2 1 1100", "0 1 1100", "0 1 3100", "mute 1 1000"]) MOD.play_stream(Modulation, FEC, SR, Stream1, Frequency, Modulator) sleep(20) if platform == "E212": RC.push(["ok 1 1000"]) GRAB.wait_until("wait01.bmp", timeout = 30) #common message 1 (rus, broadcast) sleep(3) RC.push(["clock 1 2000"]) GRAB.compare(testcase) ############################ TestCase 22 ########################################## testcase = 22 status("active") RC.push(["clock 1 1000"]) sleep(25) GRAB.compare(testcase) ############################ TestCase 23 ########################################## testcase = 23 status("active") UART.default_settings() MOD.stop(Modulator) MOD.play_stream(Modulation, FEC, SR, Stream2, Frequency, Modulator) OPER.search() MOD.stop(Modulator) UART.reboot() sleep(5) RC.push(["exit 1 5500", "exit 1 1500", "2 1 1000", "0 1 1000", "0 1 1000"]) MOD.play_stream(Modulation, FEC, SR, Stream2, Frequency, Modulator) sleep(23) if platform == "E212": RC.push(["ok 1 1000"]) GRAB.wait_until("wait23.bmp", [680, 415, 1235, 665], 30) sleep(15) GRAB.compare(testcase) ############################ TestCase 24 ########################################## testcase = 24 status("active") RC.push(["exit 1 1000"]) GRAB.compare(testcase) ############################ TestCase 25 ########################################## testcase = 25 status("active") MOD.stop(Modulator) UART.reboot() sleep(5) RC.push(["exit 6 1000", "2 1 1000", "0 1 1000", "0 1 1000"]) MOD.play_stream(Modulation, FEC, SR, Stream2, Frequency, Modulator) sleep(27) if platform == "E212": RC.push(["ok 1 1000"]) GRAB.wait_until("wait23.bmp", [680, 415, 1235, 665], 30) sleep(30) GRAB.compare(testcase) ############################ TestCase 26 ########################################## testcase = 26 status("active") MOD.stop(Modulator) UART.reboot() RC.push(["exit 2 1000"]) MOD.play_stream(Modulation, FEC, SR, Stream2, Frequency, Modulator) RC.push(["exit 6 1500", "2 1 1100", "0 1 1100", "0 1 1100"]) sleep(27) if platform == "E212": RC.push(["ok 1 1000"]) sleep(80) GRAB.wait_until("wait26.bmp", [680, 415, 1235, 665], 30) sleep(20) GRAB.compare(testcase) ############################ TestCase 27 ########################################## testcase = 27 status("active") RC.push(["exit 1 1000"]) GRAB.compare(testcase) ############################ TestCase 28 ########################################## testcase = 28 status("active") RC.push(["exit 1 1000"]) GRAB.compare(testcase) ############################ TestCase 29 ########################################## testcase = 29 status("active") RC.push(["exit 1 1000"]) GRAB.compare(testcase) ############################ TestCase 30 ########################################## testcase = 30 status("active") RC.push(["exit 1 1000"]) GRAB.compare(testcase) ############################ TestCase 31 ########################################## testcase = 31 status("active") sleep(70) GRAB.wait_until("wait31.bmp", [680, 415, 1235, 665], 30) #the 1st message is shown GRAB.compare(testcase) ############################ TestCase 32 ########################################## testcase = 32 status("active") GRAB.wait_until("wait32.bmp", [680, 415, 1235, 665], 20)#the 1st message is closed because of 6th has come, the 2nd is shown GRAB.compare(testcase) ############################ TestCase 33 ########################################## testcase = 33 status("active") RC.push(["exit 1 1000"]) GRAB.compare(testcase) ############################ TestCase 34 ########################################## testcase = 34 status("active") RC.push(["exit 1 1000"]) GRAB.compare(testcase) ############################ TestCase 35 ########################################## testcase = 35 status("active") RC.push(["exit 1 1000"]) GRAB.compare(testcase) ############################ TestCase 36 ########################################## testcase = 36 status("active") RC.push(["exit 1 1000"]) GRAB.compare(testcase) ############################ TestCase 37 ########################################## testcase = 37 status("active") MOD.stop(Modulator) UART.reboot() RC.push(["exit 1 1500", "exit 2 1000", "down 1 3000"]) MOD.play_stream(Modulation, FEC, SR, Stream2, Frequency, Modulator) UART.start_app("settings") sleep(241) GRAB.compare(testcase) ############################ TestCase 38 ########################################## testcase = 38 status("active") sleep(4) GRAB.compare(testcase) ############################ TestCase 39 ########################################## testcase = 39 status("active") sleep(4) GRAB.compare(testcase) ############################ TestCase 40 ########################################## testcase = 40 status("active") sleep(4) GRAB.compare(testcase) ############################ TestCase 41 ########################################## testcase = 41 status("active") sleep(4) GRAB.compare(testcase) ############################ TestCase 42 ########################################## testcase = 42 status("active") sleep(4) GRAB.compare(testcase) ############################ TestCase 43 ########################################## testcase = 43 status("active") sleep(1) RC.push(["exit 1 2000"]) if platform == "E212": RC.push(["ok 1 1000"]) sleep(1) GRAB.compare(testcase) ############################ TestCase 44 ########################################## testcase = 44 status("active") RC.push(["exit"]) GRAB.compare(testcase) ############################ TestCase 45 ########################################## testcase = 45 status("active") RC.push(["exit"]) GRAB.compare(testcase) ############################ TestCase 46 ########################################## testcase = 46 status("active") RC.push(["exit"]) GRAB.compare(testcase) ############################ TestCase 47 ########################################## testcase = 47 status("active") RC.push(["exit"]) GRAB.compare(testcase) ############################ TestCase 48 ########################################## testcase = 48 status("active") RC.push(["exit"]) GRAB.compare(testcase) ############################ TestCase 49 ########################################## testcase = 49 status("active") UART.default_settings() sleep(15) MOD.stop(Modulator) MOD.play_stream(Modulation, FEC, SR, Stream1, Frequency, Modulator) OPER.search() MOD.stop(Modulator) UART.reboot() sleep(5) RC.push(["exit 2 1500", "2 1 1100", "0 1 1100", "0 1 1100"]) MOD.play_stream(Modulation, FEC, SR, Stream1, Frequency, Modulator) RC.push(["exit", "exit"]) sleep(29) if platform == "E212": RC.push(["ok 1 1000"]) GRAB.wait_until("wait01.bmp", [680, 415, 1235, 665], 30) #common message 1 (rus, broadcast) RC.push(["mail 1 1000"]) GRAB.compare(testcase) ############################ TestCase 50 ########################################## testcase = 50 status("active") MOD.stop(Modulator) UART.reboot() RC.push(["exit", "exit", "2 1 1100", "0 1 1100", "0 1 1100"]) MOD.play_stream(Modulation, FEC, SR, Stream1, Frequency, Modulator) sleep(15) if platform == "E212": RC.push(["ok 1 1000"]) GRAB.wait_until("wait01.bmp", [680, 415, 1235, 665], 30) #common message 1 (rus, broadcast) RC.push(["help 1 1000"]) GRAB.compare(testcase) ############################ TestCase 51 ########################################## testcase = 51 status("active") MOD.stop(Modulator) UART.reboot() RC.push(["exit 2 1500", "2 1 1100", "0 1 1100", "0 1 1100"]) MOD.play_stream(Modulation, FEC, SR, Stream1, Frequency, Modulator) RC.push(["exit", "exit"]) sleep(15) if platform == "E212": RC.push(["ok 1 1000"]) GRAB.wait_until("wait01.bmp", [680, 415, 1235, 665], 30) #common message 1 (rus, broadcast) RC.push(["guide 1 1000"]) GRAB.compare(testcase) ############################ TestCase 52 ########################################## testcase = 52 status("active") MOD.stop(Modulator) UART.reboot() RC.push(["exit 2 1500", "2 1 1100", "0 1 1100", "0 1 1100"]) MOD.play_stream(Modulation, FEC, SR, Stream1, Frequency, Modulator) RC.push(["exit", "exit"]) sleep(15) if platform == "E212": RC.push(["ok 1 1000"]) GRAB.wait_until("wait01.bmp", [680, 415, 1235, 665], 30) #common message 1 (rus, broadcast) RC.push(["cinemahalls 1 1000"]) GRAB.compare(testcase) ############################ TestCase 53 ########################################## testcase = 53 status("active") MOD.stop(Modulator) UART.reboot() RC.push(["exit 2 1500", "2 1 1100", "0 1 1100", "0 1 1100"]) MOD.play_stream(Modulation, FEC, SR, Stream1, Frequency, Modulator) RC.push(["exit", "exit"]) sleep(15) if platform == "E212": RC.push(["ok 1 1000"]) GRAB.wait_until("wait01.bmp", [680, 415, 1235, 665], 30) #common message 1 (rus, broadcast) RC.push(["TV/chat 1 1000"]) GRAB.compare(testcase) ############################ TestCase 54 ########################################## testcase = 54 status("manual") GRAB.compare(testcase) ############################ TestCase 55 ########################################## testcase = 55 status("active") MOD.stop(Modulator) UART.reboot() RC.push(["exit 2 1500", "2 1 1100", "0 1 1100", "0 1 1100"]) MOD.play_stream(Modulation, FEC, SR, Stream1, Frequency, Modulator) RC.push(["exit", "exit"]) sleep(15) if platform == "E212": RC.push(["ok 1 1000"]) GRAB.wait_until("wait01.bmp", [680, 415, 1235, 665], 30) #common message 1 (rus, broadcast) RC.push(["red 1 1000"]) GRAB.compare(testcase) ############################ TestCase 56 ########################################## testcase = 56 status("active") MOD.stop(Modulator) UART.reboot() RC.push(["exit 2 1500", "2 1 1100", "0 1 1100", "0 1 1100"]) MOD.play_stream(Modulation, FEC, SR, Stream1, Frequency, Modulator) RC.push(["exit", "exit"]) sleep(15) if platform == "E212": RC.push(["ok 1 1000"]) GRAB.wait_until("wait01.bmp", [680, 415, 1235, 665], 30) #common message 1 (rus, broadcast) RC.push(["green 1 1000"]) GRAB.compare(testcase) ############################ TestCase 57 ########################################## testcase = 57 status("active") MOD.stop(Modulator) UART.reboot() RC.push(["exit 2 1500", "2 1 1100", "0 1 1100", "0 1 1100"]) MOD.play_stream(Modulation, FEC, SR, Stream1, Frequency, Modulator) RC.push(["exit", "exit"]) sleep(15) if platform == "E212": RC.push(["ok 1 1000"]) GRAB.wait_until("wait01.bmp", [680, 415, 1235, 665], 30) #common message 1 (rus, broadcast) RC.push(["yellow 1 1000"]) GRAB.compare(testcase) ############################ TestCase 58 ########################################## testcase = 58 status("active") MOD.stop(Modulator) UART.reboot() RC.push(["exit 2 1500", "2 1 1100", "0 1 1100", "0 1 1100"]) MOD.play_stream(Modulation, FEC, SR, Stream1, Frequency, Modulator) RC.push(["exit", "exit"]) sleep(15) if platform == "E212": RC.push(["ok 1 1000"]) GRAB.wait_until("wait01.bmp", [680, 415, 1235, 665], 30) #common message 1 (rus, broadcast) RC.push(["blue 1 1000"]) GRAB.compare(testcase) ############################ TestCase 59 ########################################## testcase = 59 status("manual") GRAB.compare(testcase) ############################ TestCase 60 ########################################## testcase = 60 status("active") MOD.stop(Modulator) UART.reboot() MOD.play_stream(Modulation, FEC, SR, Stream1, Frequency, Modulator) RC.push(["exit 2 1500", "2 1 1000", "0 1 1000", "0 1 4000"]) UART.start_app("scheduler") RC.push(["red 1 1000", "ok 1 1500", "ok 1 1500", "ok 1 1500", "1", "1", "1", "4", "ok 1 1500", "ok 1 1500", "exit 2 1000", "exit 2 1000", "0"]) sleep(15) if platform == "E212": RC.push(["ok 1 1000"]) GRAB.wait_until("wait01.bmp", [680, 415, 1235, 665], 30) #common message 1 (rus, broadcast) GRAB.compare(testcase) ############################ TestCase 61 ########################################## testcase = 61 status("manual") GRAB.compare(testcase) ############################ TestCase 62 ########################################## testcase = 62 status("manual") GRAB.compare(testcase) ############################ TestCase 63 ########################################## testcase = 63 status("active") MOD.stop(Modulator) UART.reboot() RC.push(["exit 2 800", "2 1 1100", "0 1 1100", "0 1 1100"]) MOD.play_stream(Modulation, FEC, SR, Stream1, Frequency, Modulator) RC.push(["exit", "exit"]) sleep(15) if platform == "E212": RC.push(["ok 1 1000"]) GRAB.wait_until("wait01.bmp", [680, 415, 1235, 665], 30) #common message 1 (rus, broadcast) GRAB.compare(testcase) ################################################################################### status("active") MOD.stop(Modulator) GRAB.stop_capture()
def runTest(): status("active") TestName = "Settings" ScriptName = "11-Antenna" ScriptIndex = "11" Grabber = DO.grab_define() platform = DO.load_platform() Modulation = "DVBS" FEC = "3/4" SR = "27500000" Stream = "\\X_0000_00000_MUX_32000_EPG_Software_20130328a.ts" Frequency = 1476 Modulator = "1" COM = "COM7" settings = [ScriptName, ScriptIndex, Grabber, Modulation, FEC, SR, Stream, Frequency, Modulator, COM] DO.save_settings(settings) GRAB.start_capture() MOD.stop(Modulator) # macros searching_from_wizard_general_E501 = ["ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_general_english_E501 = ["up 2 3400", "right 1 1000", "down 2 3400", "ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_centre_E501 = ["ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "down", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_centre_english_E501 = ["up 3 3400", "right 1 1000", "down 3 3400", "ok 1 3400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 22200", "ok 1 10000", "exit 2 3000"] searching_from_wizard_south_E501 = ["ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "down", "down", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_general_ALL = ["ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_general_english_ALL = ["up 2 3400", "right 1 1000", "down 2 3400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 22200", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_centre_ALL = ["ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "down", "ok 1 5000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_centre_english_ALL = ["up 3 3400", "right 1 1000", "down 3 3400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 22200", "down 1 1000", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_south_ALL = ["ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "down", "down", "ok 1 15000", "ok 1 10000", "exit 2 3000"] load_regions_E501 = ["ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200"] load_regions_english_E501 = ["up 2 2400", "right 1 1000", "down 2 2400", "ok 1 3400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 22200"] load_regions_ALL = ["ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200"] load_regions_english_ALL = ["up 2 2400", "right 1 1000", "down 2 2400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 22200"] ############################ TestCase 1 ########################################## testcase = 1 status("active") MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) UART.default_settings() if platform in ["E501", "E502", "A230"]: RC.push(searching_from_wizard_general_E501) else: RC.push(searching_from_wizard_general_ALL) UART.start_app("settings") RC.push(["right 9 3000"]) GRAB.compare(testcase) ############################ TestCase 2 ########################################## testcase = 2 status("active") GRAB.compare(testcase) ############################ TestCase 3 ########################################## testcase = 3 status("active") GRAB.compare(testcase) ############################ TestCase 4 ########################################## testcase = 4 status("active") RC.push(["down", "right 1 3000"]) GRAB.compare(testcase) ############################ TestCase 5 ########################################## testcase = 5 status("active") RC.push(["left 1 3000"]) GRAB.compare(testcase) ############################ TestCase 6 ########################################## testcase = 6 status("active") RC.push(["ok 1 3000"]) GRAB.compare(testcase) ################################################################################### status("active") MOD.stop(Modulator) GRAB.stop_capture()
def runTest(): status("active") TestName = "Helper" ScriptName = "content" ScriptIndex = "2" Grabber = DO.grab_define() platform = DO.load_platform() Modulation = "DVBS" FEC = "3/4" SR = "27500000" Stream = "\\X_0000_00000_MUX_32000_EPG_Software_20130328a.ts" Frequency = 1476 Modulator = "1" COM = "COM7" settings = [ScriptName, ScriptIndex, Grabber, Modulation, FEC, SR, Stream, Frequency, Modulator, COM] DO.save_settings(settings) GRAB.start_capture() MOD.stop(Modulator) # macros searching_from_wizard_general_E501 = ["ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_general_english_E501 = ["up 2 3400", "right 1 1000", "down 2 3400", "ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_centre_E501 = ["ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "down", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_centre_english_E501 = ["up 3 3400", "right 1 1000", "down 3 3400", "ok 1 3400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 22200", "ok 1 10000", "exit 2 3000"] searching_from_wizard_south_E501 = ["ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "down", "down", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_general_ALL = ["ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_general_english_ALL = ["up 2 3400", "right 1 1000", "down 2 3400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 22200", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_centre_ALL = ["ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "down", "ok 1 5000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_centre_english_ALL = ["up 3 3400", "right 1 1000", "down 3 3400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 22200", "down 1 1000", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_south_ALL = ["ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "down", "down", "ok 1 15000", "ok 1 10000", "exit 2 3000"] load_regions_E501 = ["ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200"] load_regions_english_E501 = ["up 2 2400", "right 1 1000", "down 2 2400", "ok 1 3400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 22200"] load_regions_ALL = ["ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200"] load_regions_english_ALL = ["up 2 2400", "right 1 1000", "down 2 2400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 22200"] """############################ TestCase 1 ########################################## testcase = 1 status("active") MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) UART.default_settings() UART.start_app("") RC.push(["key_1", "key_2", "key_3"]) # set of the RC buttons sleep(0) RC.push("[macros_name]") # RC macros from remote_control.ini file GRAB.compare(testcase)""" ############################ TestCase 1 ########################################## testcase = 1 status("active") MOD.stop(Modulator) MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) UART.default_settings() RC.push(["ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "ok 1 15000", "ok 1 10000"]) if platform == "E212": RC.push(["left 1 1000", "ok 1 1000"]) GRAB.compare(testcase) ############################ TestCase 2 ########################################## testcase = 2 status("active") RC.push(["right 1 1000", "OK 1 3000"]) GRAB.compare(testcase) ############################ TestCase 3 ########################################## testcase = 3 status("active") RC.push(["OK 1 3000"]) GRAB.compare(testcase) ############################ TestCase 4 ########################################## testcase = 4 status("active") RC.push(["OK 1 3000"]) GRAB.compare(testcase) ############################ TestCase 5 ########################################## testcase = 5 status("active") RC.push(["OK 1 3000"]) GRAB.compare(testcase) ############################ TestCase 6 ########################################## testcase = 6 status("active") RC.push(["OK 1 3000"]) GRAB.compare(testcase) ############################ TestCase 7 ########################################## testcase = 7 status("active") RC.push(["OK 1 3000"]) GRAB.compare(testcase) ############################ TestCase 8 ########################################## testcase = 8 status("active") RC.push(["OK 1 3000"]) GRAB.compare(testcase) ############################ TestCase 9 ########################################## testcase = 9 status("active") RC.push(["OK 1 3000"]) GRAB.compare(testcase) ############################ TestCase 10 ########################################## testcase = 10 status("active") RC.push(["OK 1 3000"]) GRAB.compare(testcase) ############################ TestCase 11 ########################################## testcase = 11 status("active") RC.push(["OK 1 3000"]) GRAB.compare(testcase) ############################ TestCase 12 ########################################## testcase = 12 status("active") RC.push(["OK 1 3000"]) GRAB.compare(testcase) ############################ TestCase 13 ########################################## testcase = 13 status("active") RC.push(["OK 1 3000"]) GRAB.compare(testcase) ############################ TestCase 14 ########################################## testcase = 14 status("active") RC.push(["OK 1 3000"]) GRAB.compare(testcase) ############################ TestCase 15 ########################################## testcase = 15 status("active") RC.push(["OK 1 3000"]) GRAB.compare(testcase) ############################ TestCase 16 ########################################## testcase = 16 status("active") RC.push(["OK 1 3000"]) GRAB.compare(testcase) ############################ TestCase 17 ########################################## testcase = 17 status("active") RC.push(["OK 1 3000"]) GRAB.compare(testcase) ############################ TestCase 18 ########################################## testcase = 18 status("active") RC.push(["OK 1 3000"]) GRAB.compare(testcase) ############################ TestCase 19 ########################################## testcase = 19 status("active") RC.push(["OK 1 3000"]) GRAB.compare(testcase) ############################ TestCase 20 ########################################## testcase = 20 status("active") RC.push(["OK 1 3000"]) GRAB.compare(testcase) ############################ TestCase 21 ########################################## testcase = 21 status("active") RC.push(["OK 1 3000"]) GRAB.compare(testcase) ############################ TestCase 22 ########################################## testcase = 22 status("active") RC.push(["OK 1 3000"]) GRAB.compare(testcase) ################################################################################### status("active") MOD.stop(Modulator) GRAB.stop_capture()
def runTest(): status("active") TestName = "KidProfile_2" ScriptName = "editing_cases" ScriptIndex = "1" Grabber = DO.grab_define() platform = DO.load_platform() Modulation = "DVBS" FEC = "3/4" SR = "27500000" Stream2 = "\\Kid Profile\\X_0000_00000_MUX_38000_kidsprofile-test_12226_20130905a.ts" Stream = "\\Kid Profile\\X_0000_00000_MUX_38000_KidProfile_Auto_20140905a.ts" Frequency = 1476 Modulator = "1" COM = "COM7" settings = [ScriptName, ScriptIndex, Grabber, Modulation, FEC, SR, Stream, Frequency, Modulator, COM] DO.save_settings(settings) GRAB.start_capture() MOD.stop(Modulator) # macros searching_from_wizard_general_E501 = ["ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_general_english_E501 = ["up 2 3400", "right 1 1000", "down 2 3400", "ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_centre_E501 = ["ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "down", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_centre_english_E501 = ["up 3 3400", "right 1 1000", "down 3 3400", "ok 1 3400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 22200", "ok 1 10000", "exit 2 3000"] searching_from_wizard_south_E501 = ["ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "down", "down", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_general_ALL = ["ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_general_english_ALL = ["up 2 3400", "right 1 1000", "down 2 3400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 22200", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_centre_ALL = ["ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "down", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_centre_english_ALL = ["up 3 3400", "right 1 1000", "down 3 3400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 22200", "down 1 1000", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_south_ALL = ["ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "down", "down", "ok 1 15000", "ok 1 10000", "exit 2 3000"] load_regions_E501 = ["ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200"] load_regions_english_E501 = ["up 2 2400", "right 1 1000", "down 2 2400", "ok 1 3400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 22200"] load_regions_ALL = ["ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200"] load_regions_english_ALL = ["up 2 2400", "right 1 1000", "down 2 2400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 22200"] ############################ TestCase 1 ########################################## testcase = 1 status("active") UART.default_settings() MOD.stop(Modulator) MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) OPER.search() RC.push(["exit 1 1000", "exit 1 1000"]) #-----Activating KID Profile-----# #UART.activate_app("kidsmode") #UART.start_app("settings") #sleep(5) #RC.push(["right 1 1500", "right 1 1500", "right 1 1500", "right 1 1500", "right 1 1500", "right 1 1500", "right 1 1500", "OK 1 1500", "down 1 1500", "4 1 1500", "3 1 500", "2 1 500", "1 1 500", "1 1 500", "1 1 500", "1 1 500", "1 1 500", "1 1 500", "1 1 500", "1 1 1500", "1 1 1500", "1 1 1500", "1 1 1500", "1 1 1500", "1 1 1500", "1 1 1500", "1 1 1500", "1 1 5500", "exit 1 1500", "exit 1 1500", "exit 1 1500", "exit 1 1500"]) sleep(3) RC.push(["kid_1 1 10500", "exit 1 1500", "left 1 1000", "OK 1 7000"]) UART.start_app("channelseditor") RC.push(["up 1 1000", "up 1 10000", "right 1 3000"]) GRAB.compare(testcase) ############################ TestCase 2 ########################################## testcase = 2 status("active") RC.push(["OK 1 1000"]) GRAB.compare(testcase) ############################ TestCase 3 ########################################## testcase = 3 status("active") RC.push(["exit 1 1000", "up 1 1000", "up 1 1000"]) GRAB.compare(testcase) ############################ TestCase 4 ########################################## testcase = 4 status("active") RC.push(["down 1 1000", "down 1 1000", "down 1 1000"]) GRAB.compare(testcase) ############################ TestCase 5 ########################################## testcase = 5 status("active") RC.push(["ChUp 1 1000"]) GRAB.compare(testcase) ############################ TestCase 6 ########################################## testcase = 6 status("active") RC.push(["ChDown 1 1000"]) GRAB.compare(testcase) ############################ TestCase 7 ########################################## testcase = 7 status("active") RC.push(["right 1 1000"]) GRAB.compare(testcase) ############################ TestCase 8 ########################################## testcase = 8 status("active") RC.push(["left 1 1000"]) GRAB.compare(testcase) ############################ TestCase 9 ########################################## testcase = 9 status("active") RC.push(["right 1 1000", "green 1 3000"]) GRAB.compare(testcase) ############################ TestCase 10 ########################################## testcase = 10 status("active") RC.push(["exit 1 1000", "yellow 1 1000"]) GRAB.compare(testcase) ############################ TestCase 11 ########################################## testcase = 11 status("active") RC.push(["up 1 1000", "blue 1 1000"]) GRAB.compare(testcase) ############################ TestCase 12 ########################################## testcase = 12 status("active") RC.push(["exit 1 1000", "red 1 1000"]) GRAB.compare(testcase) ############################ TestCase 13 ########################################## testcase = 13 status("active") UART.default_settings() MOD.stop(Modulator) MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) OPER.search() RC.push(["exit 1 1000", "exit 1 1000"]) sleep(3) RC.push(["kid_1 1 10500", "exit 1 1500", "left 1 1000", "OK 1 7000"]) UART.start_app("channelseditor") RC.push(["up 1 1000", "up 1 10000", "right 1 3000"]) GRAB.compare(testcase) ############################ TestCase 14 ########################################## testcase = "14_1" status("active") RC.push(["green 1 1000", "OK 1 1000", "OK 1 1000", "exit 1 2000"]) GRAB.compare(testcase) testcase = "14_2" status("active") RC.push(["exit 1 2000", "exit 1 1000", "exit 1 1000", "kid_7 1 10000", "OK 1 1000"]) GRAB.compare(testcase) ############################ TestCase 15 ########################################## testcase = 15 status("manual") GRAB.compare(testcase) ############################ TestCase 16 ########################################## testcase = 16 status("active") RC.push(["exit 1 1000", "up 1 7000", "up 1 7000"]) UART.start_app("channelseditor") RC.push(["up 1 1000", "up 1 1000", "right 1 1000", "down 1 1000", "down 1 1000", "yellow 1 3000"]) RC.push(["exit 1 7000", "red 1 2000"]) GRAB.compare(testcase) ############################ TestCase 17 ########################################## testcase = 17 status("active") UART.default_settings() MOD.stop(Modulator) MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) OPER.search() RC.push(["kid_1 1 1000", "down 1 10000", "exit 1 1000", "left 1 1000", "OK 1 1000"]) UART.start_app("channelseditor") RC.push(["up 1 1000", "up 1 1000", "right 1 1000", "yellow 1 1000", "yellow 1 1000", "exit 1 1000", "exit 1 1000", "exit 1 1000", "kid_1 1 1000"]) GRAB.compare(testcase) ############################ TestCase 18 ########################################## testcase = "18_1" status("active") UART.default_settings() MOD.stop(Modulator) MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) OPER.search() RC.push(["kid_1 1 1000", "exit 1 1000", "left 1 1000", "OK 1 1000"]) UART.start_app("channelseditor") RC.push(["up 1 1000", "up 1 1000", "right 1 1000", "up 1 1000", "right 1 3000", "OK 1 1000", "left 1 1000", "OK 1 1000"]) GRAB.compare(testcase) testcase = "18_2" status("active") RC.push(["exit 1 1000", "exit 1 1000", "exit 1 1000", "exit 1 1000", "kid_OK 1 10000", "red 1 1000"]) GRAB.compare(testcase) ############################ TestCase 19 ########################################## testcase = 19 status("active") RC.push(["exit 1 1000", "exit 1 1000", "left 1 1000", "OK 1 1000"]) UART.start_app("channelseditor") RC.push(["up 1 1000", "up 1 1000", "right 1 1000"]) GRAB.compare(testcase) ############################ TestCase 20 ########################################## testcase = 20 status("active") RC.push(["up 1 1000", "right 1 1000", "OK 1 1000", "left 1 1000", "OK 1 1000", "right 1 1000", "green 1 1000", "OK 1 1000", "OK 1 1000", "OK 1 1000", "exit 1 2000"]) RC.push(["exit 1 1000", "exit 1 1000", "exit 1 1000", "kid_star 1 10000", "OK 1 1000"]) GRAB.compare(testcase) ############################ TestCase 21 ########################################## testcase = 21 status("active") UART.default_settings() MOD.stop(Modulator) MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) OPER.search() RC.push(["kid_OK 1 7500", "exit 1 1000", "left 1 1000", "OK 1 1000"]) UART.start_app("channelseditor") RC.push(["up 1 1000", "up 1 1000", "yellow 1 1000", "left 1 1000", "OK 1 1000", "exit 1 1000", "exit 1 1000", "exit 1 1000"]) RC.push(["kid_OK 1 10500", "OK 1 1000"]) GRAB.compare(testcase) ############################ TestCase 22 ########################################## testcase = 22 status("active") RC.push(["exit 1 1000", "exit 1 1000", "left 1 1000", "OK 1 1000"]) UART.start_app("channelseditor") RC.push(["up 1 1000", "up 1 1000", "right 1 1000"]) GRAB.compare(testcase) ############################ TestCase 23 ########################################## testcase = 23 status("active") OPER.channel_block() OPER.set_pin("1111") RC.push(["kid_5 1 10000"]) GRAB.compare(testcase) ############################ TestCase 24 ########################################## testcase = "24_1" status("active") UART.default_settings() MOD.stop(Modulator) MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) OPER.search() UART.start_app("channelseditor") RC.push(["red 1 3000", "yellow 1 1000"]) #"Детский" RC.push(["down 1 1000", "down 1 1000", "down 1 1000", "left 1 1500", "left 1 1500", "left 1 1500", "left 1 1500", "down 1 1500", "OK 1 1000", "yellow 1 1000", "left 1 1500", "left 1 1500", "left 1 1500", "left 1 1500", "up 1 1500", "OK 1 1000", "down 1 1500", "down 1 1500", "right 1 1500", "right 1 1500", "OK 1 1000", "left 3 1000", "OK 1 1000", "up 2 1000", "OK 1 1000", "down 1 1500", "down 1 1500", "right 1 1500", "right 1 1500", "OK 1 1000", "left 1 1500", "left 1 1500", "left 1 1500", "left 1 1500", "left 1 1500", "up 1 1000", "up 1 1000", "OK 1 1000"]) #" режим" RC.push(["down 1 1500", "down 1 1500", "down 1 1500", "right 1 1500", "right 1 1500", "OK 1 1000", "yellow 1 1000", "up 1 1000", "up 1 1000", "right 1 1000", "right 1 1000", "right 1 1000", "right 1 1000", "right 1 1000", "OK 1 1000", "yellow 1 1000", "up 1 1000", "left 1 1000", "OK 1 1000", "down 1 1000", "right 1 1000", "right 1 1000", "right 1 1000", "right 1 1000", "right 1 1000", "OK 1 1000", "down 1 1000", "left 1 1000", "left 1 1000", "left 1 1000", "left 1 1000", "OK 1 1000", "left 1 1000", "OK 1 1000"]) RC.push(["blue 1 1000", "right 1 1000", "OK 1 3000", "OK 1 1000", "OK 1 1000", "OK 1 1000", "exit 1 1000", "exit 1 1000", "exit 1 1000", "kid_OK 1 8500", "OK 1 3000"]) GRAB.compare(testcase) testcase = "24_2" status("active") RC.push(["exit 1 1000", "exit 1 1000", "left 1 1000", "OK 1 1000"]) UART.start_app("channelseditor") RC.push(["up 1 1000", "up 1 1000"]) GRAB.compare(testcase) ############################ TestCase 25 ########################################## testcase = 25 status("active") UART.default_settings() MOD.stop(Modulator) MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) OPER.search() RC.push(["kid_OK 1 7500", "exit 1 1000", "left 1 1000", "OK 1 1000"]) UART.start_app("channelseditor") RC.push(["up 1 1000", "up 1 1000", "green 1 1000", "5 1 1000", "6 1 1000", "7 1 1000", "blue 1 1000", "exit 1 1000", "exit 1 1000", "exit 1 1000", "kid_0 1 8000", "red 1 2000"]) GRAB.compare(testcase) ############################ TestCase 26 ########################################## testcase = 26 status("active") RC.push(["exit 1 1000", "left 1 1000", "OK 1 1000"]) UART.start_app("channelseditor") RC.push(["up 1 1000", "up 1 1000"]) GRAB.compare(testcase) ############################ TestCase 27 ########################################## testcase = 27 status("manual") #Не удается обновить список каналов, "Список регионов недоступен" UART.default_settings() MOD.stop(Modulator) MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) OPER.search() RC.push(["kid_9 1 10000", "3 1 10000", "exit 1 1000", "left 1 1000", "OK 1 10000", "3 1 10000"]) sleep(400) RC.push(["OK 1 40000", ]) GRAB.compare(testcase) ############################ TestCase 28 ########################################## testcase = 28 status("manual") GRAB.compare(testcase) ############################ TestCase 29 ########################################## testcase = 29 status("manual") GRAB.compare(testcase) ############################ TestCase 30 ########################################## testcase = 30 status("manual") GRAB.compare(testcase) ############################ TestCase 31 ########################################## testcase = 31 status("manual") GRAB.compare(testcase) ################################################################################### status("active") MOD.stop(Modulator) GRAB.stop_capture()
def runTest(): status("active") TestName = "Settings" ScriptName = "08-blocking" ScriptIndex = "8" Grabber = DO.grab_define() platform = DO.load_platform() Modulation = "DVBS" FEC = "3/4" SR = "27500000" Stream = "\\X_0000_00000_MUX_32000_EPG_Software_20130328a.ts" Frequency = 1476 Modulator = "1" COM = "COM7" settings = [ScriptName, ScriptIndex, Grabber, Modulation, FEC, SR, Stream, Frequency, Modulator, COM] DO.save_settings(settings) GRAB.start_capture() MOD.stop(Modulator) # macros searching_from_wizard_general_E501 = ["ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_general_english_E501 = ["up 2 3400", "right 1 1000", "down 2 3400", "ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_centre_E501 = ["ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "down", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_centre_english_E501 = ["up 3 3400", "right 1 1000", "down 3 3400", "ok 1 3400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 22200", "ok 1 10000", "exit 2 3000"] searching_from_wizard_south_E501 = ["ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "down", "down", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_general_ALL = ["ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_general_english_ALL = ["up 2 3400", "right 1 1000", "down 2 3400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 22200", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_centre_ALL = ["ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "down", "ok 1 5000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_centre_english_ALL = ["up 3 3400", "right 1 1000", "down 3 3400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 22200", "down 1 1000", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_south_ALL = ["ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "down", "down", "ok 1 15000", "ok 1 10000", "exit 2 3000"] load_regions_E501 = ["ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200"] load_regions_english_E501 = ["up 2 2400", "right 1 1000", "down 2 2400", "ok 1 3400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 22200"] load_regions_ALL = ["ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200"] load_regions_english_ALL = ["up 2 2400", "right 1 1000", "down 2 2400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 22200"] ############################ TestCase 1 ########################################## testcase = 1 status("active") MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) UART.default_settings() if platform in ["E501", "E502", "A230"]: RC.push(searching_from_wizard_general_E501) else: RC.push(searching_from_wizard_general_ALL) UART.start_app("settings") RC.push(["right 6 3000"]) GRAB.compare(testcase) ############################ TestCase 2 ########################################## testcase = 2 status("active") GRAB.compare(testcase) ############################ TestCase 3 ########################################## testcase = 3 status("active") GRAB.compare(testcase) ############################ TestCase 4 ########################################## testcase = 4 status("active") GRAB.compare(testcase) ############################ TestCase 5 ########################################## testcase = 5 status("active") GRAB.compare(testcase) ############################ TestCase 6 ########################################## testcase = 6 status("active") RC.push(["down", "ok 1 3000"]) GRAB.compare(testcase) ############################ TestCase 7 ########################################## testcase = 7 status("active") RC.push(["1 8 2000", "ok 1 3000", "up 1 2000", "right", "left", "down 1 2000", "ok 1 3000"]) GRAB.compare(testcase) ############################ TestCase 8 ########################################## testcase = 8 status("active") RC.push(["1 8 2000", "ok 1 3000"]) GRAB.compare(testcase) ############################ TestCase 9 ########################################## testcase = 9 status("active") GRAB.compare(testcase) ############################ TestCase 10 ########################################## testcase = 10 status("active") GRAB.compare(testcase) ############################ TestCase 11 ########################################## testcase = 11 status("active") GRAB.compare(testcase) ############################ TestCase 12 ########################################## testcase = 12 status("active") GRAB.compare(testcase) ############################ TestCase 13 ########################################## testcase = 13 status("active") GRAB.compare(testcase) ############################ TestCase 14 ########################################## testcase = 14 status("active") GRAB.compare(testcase) ############################ TestCase 15 ########################################## testcase = 15 status("active") GRAB.compare(testcase) ############################ TestCase 16 ########################################## testcase = 16 status("active") GRAB.compare(testcase) ############################ TestCase 17 ########################################## testcase = 17 status("active") RC.push(["1 7 3000"]) GRAB.compare(testcase) ############################ TestCase 18 ########################################## testcase = 18 status("active") RC.push(["left 1 3000"]) GRAB.compare(testcase) ############################ TestCase 19 ########################################## testcase = 19 status("active") RC.push(["up 2 3000"]) GRAB.compare(testcase) ############################ TestCase 20 ########################################## testcase = 20 status("active") RC.push(["exit 1 3000"]) GRAB.compare(testcase) ############################ TestCase 21 ########################################## testcase = 21 status("active") GRAB.compare(testcase) ############################ TestCase 22 ########################################## testcase = 22 status("active") GRAB.compare(testcase) ############################ TestCase 23 ########################################## testcase = 23 status("active") GRAB.compare(testcase) ############################ TestCase 24 ########################################## testcase = 24 status("active") RC.push(["ok 1 3000", "1 4 2000", "up 1 3000"]) GRAB.compare(testcase) ############################ TestCase 25 ########################################## testcase = 25 status("active") RC.push(["down 1 3000", "1 4 2000", "ok 1 2000"]) GRAB.compare(testcase) ############################ TestCase 26 ########################################## testcase = 26 status("active") GRAB.compare(testcase) ############################ TestCase 27 ########################################## testcase = 27 status("active") GRAB.compare(testcase) ############################ TestCase 28 ########################################## testcase = 28 status("active") GRAB.compare(testcase) ############################ TestCase 29 ########################################## testcase = 29 status("active") GRAB.compare(testcase) ############################ TestCase 30 ########################################## testcase = 30 status("active") RC.push(["ok 1 3000", "ok 1 2000", "1 4 2000", "0 4 2000"]) GRAB.compare(testcase) ############################ TestCase 31 ########################################## testcase = 31 status("active") GRAB.compare(testcase) ############################ TestCase 32 ########################################## testcase = 32 status("active") RC.push(["left 4 2000", "1 4 2000"]) GRAB.compare(testcase) ############################ TestCase 33 ########################################## testcase = 33 status("active") RC.push(["ok 1 2000", "down", "ok 1 3000"]) GRAB.compare(testcase) ############################ TestCase 34 ########################################## testcase = 34 status("active") RC.push(["exit 1 2000", "down", "right 1 3000", "up", "ok 1 3000"]) GRAB.compare(testcase) ############################ TestCase 35 ########################################## testcase = 35 status("active") RC.push(["exit 1 2000", "up 2 3000", "down 2 2000", "ok 1 3000"]) GRAB.compare(testcase) ############################ TestCase 36 ########################################## testcase = 36 status("active") RC.push(["exit 5 2000"]) UART.start_app("settings") #RC.push(["right 7 3000"]) RC.push(["down 2 2000", "ok 1 3000"]) GRAB.compare(testcase) ############################ TestCase 37 ########################################## testcase = 37 status("active") RC.push(["exit 1 2000", "up 2 3000", "down 3 2000", "left 1 3000", "1 4 2000", "up", "ok 1 2000"]) GRAB.compare(testcase) ############################ TestCase 38 ########################################## testcase = 38 status("active") RC.push(["exit 1 2000", "up 2 3000", "down 3 2000", "right 1 3000", "exit", "up 1 2000", "ok 1 3000"]) GRAB.compare(testcase) ############################ TestCase 39 ########################################## testcase = 39 status("active") RC.push(["ok 1 3000"]) GRAB.compare(testcase) ############################ TestCase 40 ########################################## testcase = 40 status("active") RC.push(["exit 1 2000"]) GRAB.compare(testcase) ############################ TestCase 41 ########################################## testcase = 41 status("active") RC.push(["ok 1 2000", "2 4 3000"]) GRAB.compare(testcase) ############################ TestCase 42 ########################################## testcase = 42 status("active") RC.push(["1 4 3000"]) GRAB.compare(testcase) ############################ TestCase 43 ########################################## testcase = 43 status("active") RC.push(["1 8 2000", "ok 1 3000"]) GRAB.compare(testcase) ############################ TestCase 44 ########################################## testcase = 44 status("active") RC.push(["up 1 3000", "ok 1 3000"]) GRAB.compare(testcase) ############################ TestCase 45 ########################################## testcase = 45 status("active") RC.push(["ok 1 2000", "1 8 3000", "ok 1 3000", "down 2 2000", "right 1 2000", "1 4 2000", "up 2 2000", "ok 1 3000"]) GRAB.compare(testcase) ############################ TestCase 46 ########################################## testcase = 46 status("active") RC.push(["ok 1 2000", "1 8 3000", "ok 1 3000", "up", "down 3 2000", "right 1 2000", "1 4 2000", "up 2 2000", "ok 1 3000"]) GRAB.compare(testcase) ############################ TestCase 47 ########################################## testcase = 47 status("active") RC.push(["ok 1 5000", "1 8 3000", "ok 1 8000", "up 1 3000", "down 2 3000", "ok 1 5000", "1 12 3000", "ok 1 3000", "up 1 3000", "ok 1 3000"]) GRAB.compare(testcase) ############################ TestCase 48 ########################################## testcase = 48 status("active") RC.push(["ok 1 2000", "1 8 3000", "ok 1 3000", "up", "right", "left", "down", "ok 1 3000"]) GRAB.compare(testcase) ############################ TestCase 49 ########################################## testcase = 49 status("active") RC.push(["1 4 2000", "ok 1 2000", "1 8 3000", "ok 1 3000", "exit 8 2000"]) UART.start_app("settings") #RC.push(["right 7 3000"]) RC.push(["down 1 2000", "ok 1 3000"]) GRAB.compare(testcase) ############################ TestCase 50 ########################################## testcase = 50 status("active") RC.push(["exit", "up", "down 3 3000", "right 1 3000", "exit", "up 2 2000", "ok 1 3000"]) GRAB.compare(testcase) ############################ TestCase 51 ########################################## testcase = 51 status("active") RC.push(["exit", "up", "down 2 3000", "ok 1 3000", "exit", "up 1 2000", "ok 1 3000"]) GRAB.compare(testcase) ############################ TestCase 52 ########################################## testcase = 52 status("active") RC.push(["exit", "down", "ok 1 2000", "ok 1 2000"]) GRAB.compare(testcase) ############################ TestCase 53 ########################################## testcase = 53 status("active") RC.push(["exit 1 2000"]) GRAB.compare(testcase) ############################ TestCase 54 ########################################## testcase = 54 status("active") RC.push(["up 1 3000", "ok 1 3000", "3 4 2000"]) GRAB.compare(testcase) ############################ TestCase 55 ########################################## testcase = 55 status("active") RC.push(["1 4 3000"]) GRAB.compare(testcase) ############################ TestCase 56 ########################################## testcase = 56 status("active") RC.push(["ok 1 3000", "1 8 3000", "ok 1 3000", "down 2 3000", "left 1 3000"]) GRAB.compare(testcase) ############################ TestCase 57 ########################################## testcase = 57 status("active") RC.push(["left 1 3000"]) GRAB.compare(testcase) ############################ TestCase 58 ########################################## testcase = 58 status("active") RC.push(["left 1 3000"]) GRAB.compare(testcase) ############################ TestCase 59 ########################################## testcase = 59 status("active") RC.push(["left 1 3000"]) GRAB.compare(testcase) ############################ TestCase 60 ########################################## testcase = 60 status("active") RC.push(["left 1 3000"]) GRAB.compare(testcase) ############################ TestCase 61 ########################################## testcase = 61 status("active") RC.push(["up 2 3000", "ok 1 2000", "ok 1 3000", "1 8 2000", "ok 1 3000", "down 2 3000", "left 1 3000"]) GRAB.compare(testcase) ############################ TestCase 62 ########################################## testcase = 62 status("active") RC.push(["exit 8 2000"]) UART.start_app("settings") #RC.push(["right 7 3000"]) RC.push(["down 1 2000", "ok 1 3000", "1 4 2000", "ok 1 3000", "1 8 2000", "ok 1 3000", "down 2 3000", "left 1 3000"]) GRAB.compare(testcase) ############################ TestCase 63 ########################################## testcase = 63 status("active") RC.push(["down 1 2000", "up", "left 1 3000"]) GRAB.compare(testcase) ############################ TestCase 64 ########################################## testcase = 64 status("active") RC.push(["exit 8 2000"]) UART.start_app("settings") #RC.push(["right 7 3000"]) RC.push(["up 1 2000", "left 1 3000"]) GRAB.compare(testcase) ############################ TestCase 65 ########################################## testcase = 65 status("active") RC.push(["ok 1 3000"]) GRAB.compare(testcase) ############################ TestCase 66 ########################################## testcase = 66 status("active") RC.push(["exit 1 3000"]) GRAB.compare(testcase) ############################ TestCase 67 ########################################## testcase = 67 status("active") RC.push(["down 1 2000", "up 1 2000", "left 1 2000", "5 4 3000"]) GRAB.compare(testcase) ############################ TestCase 68 ########################################## testcase = 68 status("active") RC.push(["1 4 3000"]) GRAB.compare(testcase) ############################ TestCase 69 ########################################## testcase = 69 status("active") RC.push(["down 1 2000", "up", "left 1 3000", "1 4 2000", "left 1 3000"]) GRAB.compare(testcase) ############################ TestCase 70 ########################################## testcase = 70 status("active") RC.push(["down 1 2000", "up", "left 1 3000", "exit", "left 1 3000"]) GRAB.compare(testcase) ############################ TestCase 71 ########################################## testcase = 71 status("active") RC.push(["exit 5 5500", "1 4 3000"]) RC.push(["id 1 3000", "ok 1 3000", "9", "yellow", "4", "red", "8", "7", "3", "5", "green 1 3000"]) GRAB.compare(testcase) ############################ TestCase 72 ########################################## testcase = 72 status("active") GRAB.compare(testcase) ############################ TestCase 73 ########################################## testcase = 73 status("active") GRAB.compare(testcase) ############################ TestCase 74 ########################################## testcase = 74 status("active") GRAB.compare(testcase) ############################ TestCase 75 ########################################## testcase = 75 status("active") GRAB.compare(testcase) ############################ TestCase 76 ########################################## testcase = 76 status("active") GRAB.compare(testcase) ############################ TestCase 77 ########################################## testcase = 77 status("active") GRAB.compare(testcase) ############################ TestCase 78 ########################################## testcase = 78 status("active") RC.push(["ok 1 2000"]) RC.push(["right 1 3000", "9", "yellow", "4", "red", "8", "7", "3", "5", "green 1 3000"]) GRAB.compare(testcase) ############################ TestCase 79 ########################################## testcase = 79 status("active") GRAB.compare(testcase) ############################ TestCase 80 ########################################## testcase = 80 status("active") GRAB.compare(testcase) ############################ TestCase 81 ########################################## testcase = 81 status("active") GRAB.compare(testcase) ############################ TestCase 82 ########################################## testcase = 82 status("active") GRAB.compare(testcase) ############################ TestCase 83 ########################################## testcase = 83 status("active") GRAB.compare(testcase) ############################ TestCase 84 ########################################## testcase = 84 status("active") GRAB.compare(testcase) ############################ TestCase 85 ########################################## testcase = 85 status("active") RC.push(["left 1 2000", "right 2 2000"]) GRAB.compare(testcase) ############################ TestCase 86 ########################################## testcase = 86 status("active") RC.push(["left 2 2000"]) GRAB.compare(testcase) ############################ TestCase 87 ########################################## testcase = 87 status("active") RC.push(["exit 1 2000"]) GRAB.compare(testcase) ############################ TestCase 88 ########################################## testcase = 88 status("active") GRAB.compare(testcase) ############################ TestCase 89 ########################################## testcase = 89 status("active") GRAB.compare(testcase) ############################ TestCase 90 ########################################## testcase = 90 status("active") RC.push(["9", "yellow", "4", "red", "8", "7", "3", "5", "green 1 3000", "ok 1 2000"]) GRAB.compare(testcase) ############################ TestCase 91 ########################################## testcase = 91 status("active") GRAB.compare(testcase) ############################ TestCase 92 ########################################## testcase = 92 status("active") GRAB.compare(testcase) ############################ TestCase 93 ########################################## testcase = 93 status("active") RC.push(["9", "yellow", "4", "red", "8", "7", "3", "5", "green 1 3000", "left", "ok 1 2000"]) GRAB.compare(testcase) ############################ TestCase 94 ########################################## testcase = 94 status("active") GRAB.compare(testcase) ############################ TestCase 95 ########################################## testcase = 95 status("active") GRAB.compare(testcase) ############################ TestCase 96 ########################################## testcase = 96 status("active") GRAB.compare(testcase) ############################ TestCase 97 ########################################## testcase = 97 status("active") MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) UART.default_settings() if platform in ["E501", "E502", "A230"]: RC.push(searching_from_wizard_general_E501) else: RC.push(searching_from_wizard_general_ALL) UART.start_app("settings") RC.push(["right 6 3000", "down", "ok 1 2000", "1 8 2000", "ok 1 3000", "up", "right 2 2000", "down", "ok", "left", "ok 1 3000"]) GRAB.compare(testcase) ############################ TestCase 98 ########################################## testcase = 98 status("active") RC.push(["exit 5 3000"]) UART.start_app("channelseditor") RC.push(["right 1 3000", "ok 2 2000", "1 4 3000"]) GRAB.compare(testcase) ############################ TestCase 99 ########################################## testcase = 99 status("active") RC.push(["down", "ok 1 2000", "ok 1 2000"]) GRAB.compare(testcase) ############################ TestCase 100 ########################################## testcase = 100 status("active") RC.push(["exit 5 3000"]) UART.start_app("channelseditor") RC.push(["right 1 3000", "ok 1 2000", "ok 1 2000"]) GRAB.compare(testcase) ############################ TestCase 101 ########################################## testcase = 101 status("active") RC.push(["exit 1 3000", "down 1 2000"]) GRAB.compare(testcase) ############################ TestCase 102 ########################################## testcase = 102 status("active") RC.push(["ok 1 2000", "ok 1 2000", "1 4 3000"]) GRAB.compare(testcase) ############################ TestCase 103 ########################################## testcase = 103 status("active") RC.push(["green", "exit 5 3000"]) UART.start_app("channelseditor") RC.push(["right 1 3000", "ok 1 2000", "ok 1 2000"]) GRAB.compare(testcase) ############################ TestCase 104 ########################################## testcase = 104 status("active") RC.push(["exit 3 3000"]) GRAB.compare(testcase) ############################ TestCase 105 ########################################## testcase = 105 status("active") UART.reboot() GRAB.compare(testcase) ############################ TestCase 106 ########################################## testcase = 106 status("active") RC.push(["standby 1 5000", "standby 1 10000"]) GRAB.compare(testcase) ############################ TestCase 107 ########################################## testcase = 107 status("active") UART.start_app("settings") RC.push(["right 6 3000", "down", "ok 1 2000", "1 4 2000", "exit 3 3000"]) GRAB.compare(testcase) ############################ TestCase 108 ########################################## testcase = 108 status("active") UART.start_app("settings") #RC.push(["right 6 3000"]) RC.push(["down", "ok 1 2000", "1 8 2000", "ok 1 3000"]) RC.push(["exit 5 3000"]) RC.push(["ID 1 3000", "right 1 2000"]) RC.push(["9", "yellow", "4", "red", "8", "7", "3", "5", "green 1 3000", "left", "ok 1 2000"]) RC.push(["exit 5 3000"]) GRAB.compare(testcase) ############################ TestCase 109 ########################################## testcase = 109 status("active") UART.start_app("settings") #RC.push(["right 6 3000"]) RC.push(["down", "ok 1 2000", "1 8 2000", "ok 1 3000"]) UART.start_app("channelseditor") RC.push(["right 1 3000", "ok 1 2000", "ok 1 2000", "1 4 2000"]) UART.start_app("scheduler") RC.push(["red", "ok 1 2400", "ok 1 3000", "ok 1 3000", "right 1 1000", "up 2 1000", "ok", "ok", "exit 5 2400", "up 3 2400"]) sleep(120) GRAB.compare(testcase) ############################ TestCase 110 ########################################## testcase = 110 status("active") MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) UART.default_settings() if platform in ["E501", "E502", "A230"]: RC.push(searching_from_wizard_general_E501) else: RC.push(searching_from_wizard_general_ALL) UART.start_app("settings") RC.push(["right 6 3000", "down", "ok 1 2000", "1 8 2000", "ok 1 3000"]) RC.push(["down 2 3000", "right 1 2000", "exit 2 7000"]) GRAB.compare(testcase) ############################ TestCase 111 ########################################## testcase = 111 status("active") sleep(60) GRAB.compare(testcase) ############################ TestCase 112 ########################################## testcase = 112 status("active") RC.push(["1 4 5000"]) GRAB.compare(testcase) ############################ TestCase 113 ########################################## testcase = 113 status("active") RC.push(["up 1 5000", "down 1 5000", "standby 1 5000", "standby 1 10000", "exit 1 5000"]) GRAB.compare(testcase) ############################ TestCase 114 ########################################## testcase = 114 status("active") UART.reboot() GRAB.compare(testcase) ############################ TestCase 115 ########################################## testcase = 115 status("active") UART.start_app("channelseditor") RC.push(["red 1 3000", "1 4 2000", "ok 1 2000", "right 1 2000", "ok 6 3000", "exit 1 2000", "left 1 3000", "up 2 3000", "right 1 2000", "ok 2 2000", "1 4 2000", "left", "down 2 2000", "right", "ok 1 2000", "right 2 2000", "ok 1 2000", "1 4 2000", "left", "up 2 2000"]) GRAB.compare(testcase) ############################ TestCase 116 ########################################## testcase = 116 status("active") RC.push(["down 2 2000", "right", "ok 1 2000", "right 2 2000", "ok 1 2000", "1 4 2000", "left", "up 2 2000", "right", "ok 1 2000", "right 2 2000", "ok 1 2000", "1 4 2000", "left", "down 2 3000"]) GRAB.compare(testcase) ############################ TestCase 117 ########################################## testcase = 117 status("active") MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) UART.default_settings() if platform in ["E501", "E502", "A230"]: RC.push(searching_from_wizard_general_E501) else: RC.push(searching_from_wizard_general_ALL) UART.start_app("settings") RC.push(["right 6 3000", "down", "ok 1 2000", "1 8 2000", "ok 1 3000"]) RC.push(["down 2 3000", "right", "exit 3 10000", "1 4 5000", "up 1 5000"]) GRAB.compare(testcase) ############################ TestCase 118 ########################################## testcase = 118 status("active") RC.push(["down 1 5000", "standby 1 5000", "standby 1 10000", "exit 2 6000"]) GRAB.compare(testcase) ############################ TestCase 119 ########################################## testcase = 119 status("manual") GRAB.compare(testcase) ############################ TestCase 120 ########################################## testcase = 120 status("active") RC.push(["1 4 5000"]) sleep(60) GRAB.compare(testcase) ############################ TestCase 121 ########################################## testcase = 121 status("manual") GRAB.compare(testcase) ################################################################################### status("active") MOD.stop(Modulator) GRAB.stop_capture()
def runTest(): status("active") TestName = "ManualSearch" ScriptName = "manual_search" ScriptIndex = "1" Grabber = DO.grab_define() platform = DO.load_platform() Modulation = "DVBS" FEC = "3/4" SR = "27500000" Stream = "\\X_0000_00000_MUX_32000_EPG_Software_20130328a.ts" Frequency = 1476 Modulator = "1" COM = "COM7" settings = [ScriptName, ScriptIndex, Grabber, Modulation, FEC, SR, Stream, Frequency, Modulator, COM] DO.save_settings(settings) GRAB.start_capture() MOD.stop(Modulator) ############################ TestCase 1 ########################################## testcase = 1 status("active") MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) UART.default_settings() RC.push(["exit 2 2400"]) UART.activate_app("dvbsmanualscanner") UART.start_app("dvbsmanualscanner") GRAB.compare(testcase) ############################ TestCase 2 ########################################## testcase = 2 status("active") RC.push(["menu 1 3000"]) GRAB.compare(testcase) ############################ TestCase 3 ########################################## testcase = 3 status("manual") GRAB.compare(testcase) ############################ TestCase 4 ########################################## testcase = 4 status("manual") GRAB.compare(testcase) ############################ TestCase 5 ########################################## testcase = 5 status("manual") GRAB.compare(testcase) ############################ TestCase 6 ########################################## testcase = 6 status("active") UART.start_app("dvbsmanualscanner") RC.push(["standby 1 5000", "standby 1 20000"]) GRAB.compare(testcase) ############################ TestCase 7 ########################################## testcase = 7 status("active") RC.push(["exit 1 3000"]) UART.start_app("dvbsmanualscanner") RC.push(["VolUp 1 2400"]) GRAB.compare(testcase) ############################ TestCase 8 ########################################## testcase = 8 status("active") RC.push(["VolDown 1 2400"]) GRAB.compare(testcase) ############################ TestCase 9 ########################################## testcase = 9 status("active") RC.push(["mute 1 2400"]) GRAB.compare(testcase) ############################ TestCase 10 ########################################## testcase = 10 status("active") RC.push(["last 1 2400"]) GRAB.compare(testcase) ############################ TestCase 11 ########################################## testcase = 11 status("active") UART.start_app("dvbsmanualscanner") RC.push(["up 1 2400"]) GRAB.compare(testcase) ############################ TestCase 12 ########################################## testcase = 12 status("active") RC.push(["down 1 2400"]) GRAB.compare(testcase) ############################ TestCase 13 ########################################## testcase = 13 status("active") RC.push(["down 4 2400", "right 1 2400"]) GRAB.compare(testcase) ############################ TestCase 183 ########################################## testcase = 183 status("active") RC.push(["left 1 2400", "up 2 2000", "right 1 2400"]) GRAB.compare(testcase) ############################ TestCase 184 ########################################## testcase = 184 status("active") RC.push(["left 1 2400", "up 1 2000", "right 1 2400"]) GRAB.compare(testcase) ############################ TestCase 14 ########################################## testcase = 14 status("active") RC.push(["down 1 2000", "left 1 2400"]) GRAB.compare(testcase) ############################ TestCase 15 ########################################## testcase = 15 status("active") RC.push(["right 1 2400", "up 1 2000", "left 1 2400"]) GRAB.compare(testcase) ############################ TestCase 185 ########################################## testcase = 185 status("active") RC.push(["0 1 2400", "down 2 2000", "left 1 2400"]) GRAB.compare(testcase) ############################ TestCase 16 ########################################## testcase = 16 status("active") RC.push(["right 1 2000"]) RC.push(["ok 1 2400"]) GRAB.compare(testcase) ############################ TestCase 17 ########################################## testcase = 17 status("active") RC.push(["up 3 2000", "ok 1 2400"]) GRAB.compare(testcase) ############################ TestCase 186 ########################################## testcase = 186 status("active") RC.push(["down 2 2000", "ok 1 2400"]) GRAB.compare(testcase) ############################ TestCase 18 ########################################## testcase = 18 status("active") RC.push(["ChUp 1 2400"]) GRAB.compare(testcase) ############################ TestCase 19 ########################################## testcase = 19 status("active") RC.push(["down 2 2400", "ChUp 1 2400"]) GRAB.compare(testcase) ############################ TestCase 20 ########################################## testcase = 20 status("active") RC.push(["up 2 2400", "ChDown 1 2400"]) GRAB.compare(testcase) ############################ TestCase 21 ########################################## testcase = 21 status("active") RC.push(["down 2 2400", "ChDown 1 2400"]) GRAB.compare(testcase) ############################ TestCase 22 ########################################## testcase = 22 status("active") if platform in ["U210CI"]: RC.push(["up 6 2400"]) else: RC.push(["up 5 2400"]) GRAB.compare(testcase) ############################ TestCase 23 ########################################## testcase = 23 status("active") RC.push(["menu 1 3000"]) GRAB.compare(testcase) ############################ TestCase 24 ########################################## testcase = 24 status("manual") GRAB.compare(testcase) ############################ TestCase 25 ########################################## testcase = 25 status("manual") GRAB.compare(testcase) ############################ TestCase 26 ########################################## testcase = 26 status("manual") GRAB.compare(testcase) ############################ TestCase 27 ########################################## testcase = 27 status("active") UART.start_app("dvbsmanualscanner") if platform in ["U210CI"]: RC.push(["up 2 2400"]) else: RC.push(["up 1 2400"]) RC.push(["last 1 2400"]) GRAB.compare(testcase) ############################ TestCase 28 ########################################## testcase = 28 status("active") UART.start_app("dvbsmanualscanner") if platform in ["U210CI"]: RC.push(["up 2 2400"]) else: RC.push(["up 1 2400"]) RC.push(["up 1 2400"]) GRAB.compare(testcase) ############################ TestCase 29 ########################################## testcase = 29 status("active") RC.push(["right 1 2400"]) GRAB.compare(testcase) ############################ TestCase 30 ########################################## testcase = 30 status("active") RC.push(["left 1 2400"]) GRAB.compare(testcase) ############################ TestCase 31 ########################################## testcase = 31 status("active") RC.push(["down 1 2400"]) GRAB.compare(testcase) ############################ TestCase 32 ########################################## testcase = 32 status("active") RC.push(["up 1 2000", "mute 1 2400"]) GRAB.compare(testcase) ############################ TestCase 33 ########################################## testcase = 33 status("active") RC.push(["standby 1 5000", "standby 1 20000"]) GRAB.compare(testcase) ############################ TestCase 34 ########################################## testcase = 34 status("active") RC.push(["exit 1 2400"]) UART.start_app("dvbsmanualscanner") if platform in ["U210CI"]: RC.push(["up 2 2400"]) else: RC.push(["up 1 2400"]) RC.push(["VolUp 1 2400"]) GRAB.compare(testcase) ############################ TestCase 35 ########################################## testcase = 35 status("active") RC.push(["VolDown 1 2400"]) GRAB.compare(testcase) ############################ TestCase 36 ########################################## testcase = 36 status("active") RC.push(["ok 1 2400"]) GRAB.compare(testcase) ############################ TestCase 182 ########################################## testcase = 182 status("active") RC.push(["exit 1 2400"]) GRAB.compare(testcase) ############################ TestCase 37 ########################################## testcase = 37 status("active") RC.push(["ChUp 1 2400"]) GRAB.compare(testcase) ############################ TestCase 38 ########################################## testcase = 38 status("active") RC.push(["ChDown 1 2400"]) GRAB.compare(testcase) ############################ TestCase 39 ########################################## testcase = 39 if platform == "U210CI": status("active") else: status("inactive") RC.push(["exit 3 2400"]) UART.start_app("dvbsmanualscanner") RC.push(["up 1 2400"]) GRAB.compare(testcase) ############################ TestCase 40 ########################################## testcase = 40 if platform == "U210CI": status("active") else: status("inactive") RC.push(["menu 1 2400"]) GRAB.compare(testcase) ############################ TestCase 41 ########################################## testcase = 41 status("manual") GRAB.compare(testcase) ############################ TestCase 42 ########################################## testcase = 42 status("manual") GRAB.compare(testcase) ############################ TestCase 43 ########################################## testcase = 43 status("manual") GRAB.compare(testcase) ############################ TestCase 44 ########################################## testcase = 44 if platform == "U210CI": status("active") else: status("inactive") UART.start_app("dvbsmanualscanner") RC.push(["up 1 2400", "last 1 2500"]) GRAB.compare(testcase) ############################ TestCase 45 ########################################## testcase = 45 if platform == "U210CI": status("active") else: status("inactive") UART.start_app("dvbsmanualscanner") RC.push(["up 1 2400", "right 1 2500"]) GRAB.compare(testcase) ############################ TestCase 46 ########################################## testcase = 46 if platform == "U210CI": status("active") else: status("inactive") RC.push(["left 1 2400"]) GRAB.compare(testcase) ############################ TestCase 47 ########################################## testcase = 47 if platform == "U210CI": status("active") else: status("inactive") RC.push(["up 1 2400"]) GRAB.compare(testcase) ############################ TestCase 48 ########################################## testcase = 48 if platform == "U210CI": status("active") else: status("inactive") RC.push(["down 2 2400"]) GRAB.compare(testcase) ############################ TestCase 49 ########################################## testcase = 49 if platform == "U210CI": status("active") else: status("inactive") RC.push(["up 1 2400", "mute"]) GRAB.compare(testcase) ############################ TestCase 50 ########################################## testcase = 50 if platform == "U210CI": status("active") else: status("inactive") RC.push(["standby 1 5400", "standby 1 10000"]) GRAB.compare(testcase) ############################ TestCase 51 ########################################## testcase = 51 if platform == "U210CI": status("active") else: status("inactive") RC.push(["exit 2 2400"]) UART.start_app("dvbsmanualscanner") RC.push(["up 1 2400", "VolUp 1 2500"]) GRAB.compare(testcase) ############################ TestCase 52 ########################################## testcase = 52 if platform == "U210CI": status("active") else: status("inactive") RC.push(["VolDown 1 2500"]) GRAB.compare(testcase) ############################ TestCase 53 ########################################## testcase = 53 if platform == "U210CI": status("active") else: status("inactive") RC.push(["ok 1 2500"]) GRAB.compare(testcase) ############################ TestCase 54 ########################################## testcase = 54 if platform == "U210CI": status("active") else: status("inactive") RC.push(["ChUp 1 2500"]) GRAB.compare(testcase) ############################ TestCase 55 ########################################## testcase = 55 if platform == "U210CI": status("active") else: status("inactive") RC.push(["ChDown 1 2500"]) GRAB.compare(testcase) ############################ TestCase 56 ########################################## testcase = 56 status("inactive") RC.push(["exit 2 2400"]) UART.start_app("dvbsmanualscanner") RC.push(["up 1 2400"]) GRAB.compare(testcase) ############################ TestCase 57 ########################################## testcase = 57 status("inactive") RC.push(["menu 1 3000"]) GRAB.compare(testcase) ############################ TestCase 58 ########################################## testcase = 58 status("inactive") GRAB.compare(testcase) ############################ TestCase 59 ########################################## testcase = 59 status("inactive") GRAB.compare(testcase) ############################ TestCase 60 ########################################## testcase = 60 status("inactive") GRAB.compare(testcase) ############################ TestCase 61 ########################################## testcase = 61 status("inactive") UART.start_app("dvbsmanualscanner") RC.push(["up 1 2400", "last 1 2400"]) GRAB.compare(testcase) ############################ TestCase 62 ########################################## testcase = 62 status("inactive") UART.start_app("dvbsmanualscanner") RC.push(["up 1 2400", "right 1 2400"]) GRAB.compare(testcase) ############################ TestCase 63 ########################################## testcase = 63 status("inactive") RC.push(["left 1 2400"]) GRAB.compare(testcase) ############################ TestCase 64 ########################################## testcase = 64 status("inactive") RC.push(["up 1 2400", "up 1 2400"]) GRAB.compare(testcase) ############################ TestCase 65 ########################################## testcase = 65 status("inactive") RC.push(["down 2 2400"]) GRAB.compare(testcase) ############################ TestCase 66 ########################################## testcase = 66 status("inactive") RC.push(["up 1 2400", "mute 1 2400"]) GRAB.compare(testcase) ############################ TestCase 67 ########################################## testcase = 67 status("inactive") RC.push(["standby 1 5000", "standby 1 20000"]) GRAB.compare(testcase) ############################ TestCase 68 ########################################## testcase = 68 status("inactive") RC.push(["exit 1 2400"]) UART.start_app("dvbsmanualscanner") RC.push(["up 1 2400", "VolUp 1 2400"]) GRAB.compare(testcase) ############################ TestCase 69 ########################################## status("inactive") status("active") RC.push(["VolDown 1 2400"]) GRAB.compare(testcase) ############################ TestCase 70 ########################################## testcase = 70 status("inactive") RC.push(["ok 1 2400"]) GRAB.compare(testcase) ############################ TestCase 71 ########################################## testcase = 71 status("inactive") RC.push(["ChUp 1 2400"]) GRAB.compare(testcase) ############################ TestCase 72 ########################################## testcase = 72 status("inactive") RC.push(["ChDown 1 2400"]) GRAB.compare(testcase) ############################ TestCase 73 ########################################## testcase = 73 status("active") RC.push(["exit 2 2400"]) UART.start_app("dvbsmanualscanner") GRAB.compare(testcase) ############################ TestCase 74 ########################################## testcase = 74 status("active") RC.push(["menu 1 3000"]) GRAB.compare(testcase) ############################ TestCase 75 ########################################## testcase = 75 status("manual") GRAB.compare(testcase) ############################ TestCase 76 ########################################## testcase = 76 status("manual") GRAB.compare(testcase) ############################ TestCase 77 ########################################## testcase = 77 status("manual") GRAB.compare(testcase) ############################ TestCase 78 ########################################## testcase = 78 status("active") UART.start_app("dvbsmanualscanner") RC.push(["last 1 2400"]) GRAB.compare(testcase) ############################ TestCase 79 ########################################## testcase = 79 status("active") UART.start_app("dvbsmanualscanner") RC.push(["up 1 2400"]) GRAB.compare(testcase) ############################ TestCase 80 ########################################## testcase = 80 status("active") RC.push(["down 2 2400"]) GRAB.compare(testcase) ############################ TestCase 81 ########################################## testcase = 81 status("active") RC.push(["up 1 2400", "right 1 2000"]) GRAB.compare(testcase) ############################ TestCase 82 ########################################## testcase = 82 status("active") RC.push(["1 1 2400", "left 1 2000"]) GRAB.compare(testcase) ############################ TestCase 83 ########################################## testcase = 83 status("active") RC.push(["up 1 2400", "mute 1 2400"]) GRAB.compare(testcase) ############################ TestCase 84 ########################################## testcase = 84 status("active") RC.push(["standby 1 5000", "standby 1 20000"]) GRAB.compare(testcase) ############################ TestCase 85 ########################################## testcase = 85 status("active") RC.push(["exit 2 2400"]) UART.start_app("dvbsmanualscanner") RC.push(["VolUp 1 2400"]) GRAB.compare(testcase) ############################ TestCase 86 ########################################## testcase = 86 status("active") RC.push(["VolDown 1 2400"]) GRAB.compare(testcase) ############################ TestCase 87 ########################################## testcase = 87 status("active") RC.push(["ok 1 2400"]) GRAB.compare(testcase) ############################ TestCase 88 ########################################## testcase = 88 status("active") RC.push(["ok 1 2400", "ChUp 1 2400"]) GRAB.compare(testcase) ############################ TestCase 89 ########################################## testcase = 89 status("active") RC.push(["ChDown 1 2400"]) GRAB.compare(testcase) ############################ TestCase 90 ########################################## testcase = 90 status("active") RC.push(["0", "1", "2", "3", "4", "5", "6", "7", "8", "9 1 2400"]) GRAB.compare(testcase) ############################ TestCase 91 ########################################## testcase = 91 status("active") RC.push(["exit 2 2400"]) UART.start_app("dvbsmanualscanner") RC.push(["down 1 2400"]) GRAB.compare(testcase) ############################ TestCase 92 ########################################## testcase = 92 status("active") RC.push(["menu 1 3000"]) GRAB.compare(testcase) ############################ TestCase 93 ########################################## testcase = 93 status("manual") GRAB.compare(testcase) ############################ TestCase 94 ########################################## testcase = 94 status("manual") GRAB.compare(testcase) ############################ TestCase 95 ########################################## testcase = 95 status("manual") GRAB.compare(testcase) ############################ TestCase 96 ########################################## testcase = 96 status("active") RC.push(["exit 2 2400"]) UART.start_app("dvbsmanualscanner") RC.push(["down 1 2400", "last 1 2400"]) GRAB.compare(testcase) ############################ TestCase 97 ########################################## testcase = 97 status("active") RC.push(["exit 2 2400"]) UART.start_app("dvbsmanualscanner") RC.push(["down 1 2400", "right 1 2400"]) GRAB.compare(testcase) ############################ TestCase 98 ########################################## testcase = 98 status("active") RC.push(["left 1 2400"]) GRAB.compare(testcase) ############################ TestCase 99 ########################################## testcase = 99 status("active") RC.push(["9 1 2000", "exit 2 2400"]) UART.start_app("dvbsmanualscanner") RC.push(["down 1 2400", "up 1 2400"]) GRAB.compare(testcase) ############################ TestCase 100 ########################################## testcase = 100 status("active") RC.push(["down 2 2400"]) GRAB.compare(testcase) ############################ TestCase 101 ########################################## testcase = 101 status("active") RC.push(["up 1 2400", "mute 1 2400"]) GRAB.compare(testcase) ############################ TestCase 102 ########################################## testcase = 102 status("active") RC.push(["standby 1 5000", "standby 1 20000"]) GRAB.compare(testcase) ############################ TestCase 103 ########################################## testcase = 103 status("active") RC.push(["exit 2 2400"]) UART.start_app("dvbsmanualscanner") RC.push(["down 1 2400", "VolUp 1 2400"]) GRAB.compare(testcase) ############################ TestCase 104 ########################################## testcase = 104 status("active") RC.push(["VolDown 1 2400"]) GRAB.compare(testcase) ############################ TestCase 105 ########################################## testcase = 105 status("active") RC.push(["ok 1 2400"]) GRAB.compare(testcase) ############################ TestCase 106 ########################################## testcase = 106 status("active") RC.push(["ChUp 1 2400"]) GRAB.compare(testcase) ############################ TestCase 107 ########################################## testcase = 107 status("active") RC.push(["ChDown 1 2400"]) GRAB.compare(testcase) ############################ TestCase 108 ########################################## testcase = 108 status("active") RC.push(["left 5 2400", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9 1 2400"]) GRAB.compare(testcase) ############################ TestCase 109 ########################################## testcase = 109 status("active") RC.push(["exit 2 2400"]) UART.start_app("dvbsmanualscanner") RC.push(["down 2 2400"]) GRAB.compare(testcase) ############################ TestCase 110 ########################################## testcase = 110 status("active") RC.push(["menu 1 2400"]) GRAB.compare(testcase) ############################ TestCase 111 ########################################## testcase = 111 status("manual") GRAB.compare(testcase) ############################ TestCase 112 ########################################## testcase = 112 status("manual") GRAB.compare(testcase) ############################ TestCase 113 ########################################## testcase = 113 status("manual") GRAB.compare(testcase) ############################ TestCase 114 ########################################## testcase = 114 status("active") RC.push(["exit 2 2400"]) UART.start_app("dvbsmanualscanner") RC.push(["down 2 2400", "last 1 2400"]) GRAB.compare(testcase) ############################ TestCase 115 ########################################## testcase = 115 status("active") RC.push(["exit 2 2400"]) UART.start_app("dvbsmanualscanner") RC.push(["down 2 2400", "right 1 2400"]) GRAB.compare(testcase) ############################ TestCase 116 ########################################## testcase = 116 status("active") RC.push(["left 1 2400"]) GRAB.compare(testcase) ############################ TestCase 117 ########################################## testcase = 117 status("active") RC.push(["exit 2 2400"]) UART.start_app("dvbsmanualscanner") RC.push(["down 2 2400", "up 1 2400"]) GRAB.compare(testcase) ############################ TestCase 118 ########################################## testcase = 118 status("active") RC.push(["down 2 2400"]) GRAB.compare(testcase) ############################ TestCase 119 ########################################## testcase = 119 status("active") RC.push(["up 1 2400", "mute 1 2400"]) GRAB.compare(testcase) ############################ TestCase 120 ########################################## testcase = 120 status("active") RC.push(["standby 1 5000", "standby 1 20000"]) GRAB.compare(testcase) ############################ TestCase 121 ########################################## testcase = 121 status("active") RC.push(["exit 2 2400"]) UART.start_app("dvbsmanualscanner") RC.push(["down 2 2400", "VolUp 1 2400"]) GRAB.compare(testcase) ############################ TestCase 122 ########################################## testcase = 122 status("active") RC.push(["VolDown 1 2400"]) GRAB.compare(testcase) ############################ TestCase 123 ########################################## testcase = 123 status("active") RC.push(["ok 1 2400"]) GRAB.compare(testcase) ############################ TestCase 124 ########################################## testcase = 124 status("active") RC.push(["ChUp 1 2400"]) GRAB.compare(testcase) ############################ TestCase 125 ########################################## testcase = 125 status("active") RC.push(["ChDown 1 2400"]) GRAB.compare(testcase) ############################ TestCase 126 ########################################## testcase = 126 status("active") RC.push(["exit 2 2400"]) UART.start_app("dvbsmanualscanner") RC.push(["down 3 2400"]) GRAB.compare(testcase) ############################ TestCase 127 ########################################## testcase = 127 status("active") RC.push(["menu 1 3000"]) GRAB.compare(testcase) ############################ TestCase 128 ########################################## testcase = 128 status("manual") GRAB.compare(testcase) ############################ TestCase 129 ########################################## testcase = 129 status("manual") GRAB.compare(testcase) ############################ TestCase 130 ########################################## testcase = 130 status("manual") GRAB.compare(testcase) ############################ TestCase 131 ########################################## testcase = 131 status("active") RC.push(["exit 2 2400"]) UART.start_app("dvbsmanualscanner") RC.push(["down 3 2400", "right 1 2400"]) GRAB.compare(testcase) ############################ TestCase 132 ########################################## testcase = 132 status("active") RC.push(["left 1 2400"]) GRAB.compare(testcase) ############################ TestCase 133 ########################################## testcase = 133 status("active") RC.push(["exit 2 2400"]) UART.start_app("dvbsmanualscanner") RC.push(["down 3 2400", "last 1 2400"]) GRAB.compare(testcase) ############################ TestCase 134 ########################################## testcase = 134 status("active") RC.push(["exit 2 2400"]) UART.start_app("dvbsmanualscanner") RC.push(["down 3 2400", "up 1 2400"]) GRAB.compare(testcase) ############################ TestCase 135 ########################################## testcase = 135 status("active") RC.push(["down 2 2400"]) GRAB.compare(testcase) ############################ TestCase 136 ########################################## testcase = 136 status("active") RC.push(["up 1 2400", "mute 1 2400"]) GRAB.compare(testcase) ############################ TestCase 137 ########################################## testcase = 137 status("active") RC.push(["standby 1 5000", "standby 1 20000"]) GRAB.compare(testcase) ############################ TestCase 138 ########################################## testcase = 138 status("active") RC.push(["exit 2 2400"]) UART.start_app("dvbsmanualscanner") RC.push(["down 3 2400", "VolUp 1 2400"]) GRAB.compare(testcase) ############################ TestCase 139 ########################################## testcase = 139 status("active") RC.push(["VolDown 1 2400"]) GRAB.compare(testcase) ############################ TestCase 140 ########################################## testcase = 140 status("active") RC.push(["ok 1 3000"]) GRAB.compare(testcase) ############################ TestCase 141 ########################################## testcase = 141 status("active") RC.push(["ok 1 3000", "ChUp 1 3000"]) GRAB.compare(testcase) ############################ TestCase 142 ########################################## testcase = 142 status("active") RC.push(["ChDown 1 3000"]) GRAB.compare(testcase) ############################ TestCase 143 ########################################## testcase = 143 status("active") RC.push(["exit 2 2400"]) UART.start_app("dvbsmanualscanner") RC.push(["down 4 2400"]) GRAB.compare(testcase) ############################ TestCase 144 ########################################## testcase = 144 status("active") RC.push(["menu 1 3000"]) GRAB.compare(testcase) ############################ TestCase 145 ########################################## testcase = 145 status("manual") GRAB.compare(testcase) ############################ TestCase 146 ########################################## testcase = 146 status("manual") GRAB.compare(testcase) ############################ TestCase 147 ########################################## testcase = 147 status("manual") GRAB.compare(testcase) ############################ TestCase 148 ########################################## testcase = 148 status("active") RC.push(["exit 2 2400"]) UART.start_app("dvbsmanualscanner") RC.push(["down 4 2400", "right 1 2400"]) GRAB.compare(testcase) ############################ TestCase 149 ########################################## testcase = 149 status("active") RC.push(["left 1 2400"]) GRAB.compare(testcase) ############################ TestCase 150 ########################################## testcase = 150 status("active") RC.push(["exit 2 2400"]) UART.start_app("dvbsmanualscanner") RC.push(["down 4 2400", "last 1 2400"]) GRAB.compare(testcase) ############################ TestCase 151 ########################################## testcase = 151 status("active") RC.push(["exit 2 2400"]) UART.start_app("dvbsmanualscanner") RC.push(["down 4 2400", "up 1 2400"]) GRAB.compare(testcase) ############################ TestCase 152 ########################################## testcase = 152 status("active") RC.push(["down 2 2400"]) GRAB.compare(testcase) ############################ TestCase 153 ########################################## testcase = 153 status("active") RC.push(["up 1 2400", "mute 1 2400"]) GRAB.compare(testcase) ############################ TestCase 154 ########################################## testcase = 154 status("active") RC.push(["standby 1 5000", "standby 1 20000"]) GRAB.compare(testcase) ############################ TestCase 155 ########################################## testcase = 155 status("active") RC.push(["exit 2 2400"]) UART.start_app("dvbsmanualscanner") RC.push(["down 4 2400", "VolUp 1 2400"]) GRAB.compare(testcase) ############################ TestCase 156 ########################################## testcase = 156 status("active") RC.push(["VolDown 1 2400"]) GRAB.compare(testcase) ############################ TestCase 157 ########################################## testcase = 157 status("active") RC.push(["ok 1 2400"]) GRAB.compare(testcase) ############################ TestCase 158 ########################################## testcase = 158 status("active") RC.push(["ChUp 1 2400"]) GRAB.compare(testcase) ############################ TestCase 159 ########################################## testcase = 159 status("active") RC.push(["ChDown 1 2400"]) GRAB.compare(testcase) ############################ TestCase 160 ########################################## testcase = 160 status("active") UART.default_settings() RC.push(["exit 2 2400"]) UART.activate_app("dvbsmanualscanner") UART.start_app("dvbsmanualscanner") RC.push(["1", "2", "2", "2", "6 1 5000"]) GRAB.compare(testcase) ############################ TestCase 161 ########################################## testcase = 161 status("active") GRAB.compare(testcase) ############################ TestCase 162 ########################################## testcase = 162 status("active") RC.push(["down 5 2400", "ok 1 2000"]) GRAB.compare(testcase) ############################ TestCase 163 ########################################## testcase = 163 status("active") UART.default_settings() RC.push(["exit 2 2400"]) UART.activate_app("dvbsmanualscanner") UART.start_app("dvbsmanualscanner") GRAB.compare(testcase) ############################ TestCase 164 ########################################## testcase = 164 status("active") GRAB.compare(testcase) ############################ TestCase 165 ########################################## testcase = 165 status("active") RC.push(["ok 1 20000"]) GRAB.compare(testcase) ############################ TestCase 166 ########################################## testcase = 166 status("manual") GRAB.compare(testcase) ############################ TestCase 167 ########################################## testcase = 167 status("manual") GRAB.compare(testcase) ############################ TestCase 168 ########################################## testcase = 168 status("manual") GRAB.compare(testcase) ############################ TestCase 169 ########################################## testcase = 169 status("manual") GRAB.compare(testcase) ############################ TestCase 170 ########################################## testcase = 170 status("manual") GRAB.compare(testcase) ############################ TestCase 171 ########################################## testcase = 171 status("manual") GRAB.compare(testcase) ############################ TestCase 172 ########################################## testcase = 172 status("manual") GRAB.compare(testcase) ############################ TestCase 173 ########################################## testcase = 173 status("manual") GRAB.compare(testcase) ############################ TestCase 174 ########################################## testcase = 174 status("manual") GRAB.compare(testcase) ################################################################################### status("active") MOD.stop(Modulator) GRAB.stop_capture()
def hefeng_weather(): '''获取天气''' r = requests.get(hefeng_url, params=hefeng_payload) if r.status_code == 200: #print(r.json()) print('天气:'+ r.json()['HeWeather5'][0]['now']['cond']['txt'] + 'code:'+ r.json()['HeWeather5'][0]['now']['cond']['code']) UART.UART_send('p0.pic=' + str(cion_list.index(r.json()['HeWeather5'][0]['now']['cond']['code']))) UART.UART_send('t2.txt=' + '"' + '天气:' + r.json()['HeWeather5'][0]['now']['cond']['txt'] + '"') #print(r.json()['HeWeather5'][0]['now']['cond']['code']) print('体感温度:'+ r.json()['HeWeather5'][0]['now']['fl']) print('温度:'+ r.json()['HeWeather5'][0]['now']['tmp']) UART.UART_send('t1.txt=' + '"' + '温度:' + r.json()['HeWeather5'][0]['now']['tmp'] + '"') print('湿度:'+ r.json()['HeWeather5'][0]['now']['hum']) UART.UART_send('t3.txt=' + '"' + '湿度:' + r.json()['HeWeather5'][0]['now']['hum'] + '"') print('风向:'+ r.json()['HeWeather5'][0]['now']['wind']['dir'] + r.json()['HeWeather5'][0]['now']['wind']['sc']) UART.UART_send('t4.txt=' + '"' + '风向:' + r.json()['HeWeather5'][0]['now']['wind']['dir'] + r.json()['HeWeather5'][0]['now']['wind']['sc'] + '"') print('空气质量:'+ r.json()['HeWeather5'][0]['aqi']['city']['qlty'] + ',PM2.5:' + r.json()['HeWeather5'][0]['aqi']['city']['pm25']) UART.UART_send('t7.txt=' + '"' + '空气质量:' + r.json()['HeWeather5'][0]['aqi']['city']['qlty'] + '"') UART.UART_send('t8.txt=' + '"' + 'PM2.5:' + r.json()['HeWeather5'][0]['aqi']['city']['pm25'] + '"') print('更新时间:'+ r.json()['HeWeather5'][0]['basic']['update']['loc']) UART.UART_send('t19.txt=' + '"' + '更新时间:' + r.json()['HeWeather5'][0]['basic']['update']['loc'] + '"') print('未来三天预报') for i in range(0,3): print('-------------------') print(r.json()['HeWeather5'][0]['daily_forecast'][i]['date']) #print('白天') print('白天:' + r.json()['HeWeather5'][0]['daily_forecast'][i]['cond']['txt_d'] + ',夜间:' + r.json()['HeWeather5'][0]['daily_forecast'][i]['cond']['txt_n']) print('最高气温:' + r.json()['HeWeather5'][0]['daily_forecast'][i]['tmp']['max'] + ',最低气温:' + r.json()['HeWeather5'][0]['daily_forecast'][i]['tmp']['min']) print('风向:' + r.json()['HeWeather5'][0]['daily_forecast'][i]['wind']['dir'] + r.json()['HeWeather5'][0]['daily_forecast'][i]['wind']['sc']) print('湿度:' + r.json()['HeWeather5'][0]['daily_forecast'][i]['hum']) print('能见度:' + r.json()['HeWeather5'][0]['daily_forecast'][i]['vis'] + 'km') print('日出时间:' + r.json()['HeWeather5'][0]['daily_forecast'][i]['astro']['sr'] + '\r\n' + '日落时间:' + r.json()['HeWeather5'][0]['daily_forecast'][i]['astro']['ss'] + '\r\n' + '月出时间:' + r.json()['HeWeather5'][0]['daily_forecast'][i]['astro']['mr'] + '\r\n' + '月落时间:' + r.json()['HeWeather5'][0]['daily_forecast'][i]['astro']['ms'] ) if(i==0): UART.UART_send('t5.txt=' + '"' + '白天:' + r.json()['HeWeather5'][0]['daily_forecast'][i]['cond']['txt_d'] + '"') UART.UART_send('t6.txt=' + '"' + '夜间:' + r.json()['HeWeather5'][0]['daily_forecast'][i]['cond']['txt_n'] + '"') UART.UART_send('t9.txt=' + '"' + '最低气温:' + r.json()['HeWeather5'][0]['daily_forecast'][i]['tmp']['min'] + '"') UART.UART_send('t10.txt=' + '"' + '最高气温:' + r.json()['HeWeather5'][0]['daily_forecast'][i]['tmp']['max'] + '"') UART.UART_send('t11.txt=' + '"' + '湿度:' + r.json()['HeWeather5'][0]['daily_forecast'][i]['hum'] + '"') UART.UART_send('t12.txt=' + '"' + '能见度:' + r.json()['HeWeather5'][0]['daily_forecast'][i]['vis'] + 'km' + '"') UART.UART_send('t13.txt=' + '"' + 'srT:' + r.json()['HeWeather5'][0]['daily_forecast'][i]['astro']['sr'] + '"') UART.UART_send('t14.txt=' + '"' + 'ssT:' + r.json()['HeWeather5'][0]['daily_forecast'][i]['astro']['ss'] + '"') UART.UART_send('t15.txt=' + '"' + 'mrT:' + r.json()['HeWeather5'][0]['daily_forecast'][i]['astro']['mr'] + '"') UART.UART_send('t16.txt=' + '"' + 'msT:' + r.json()['HeWeather5'][0]['daily_forecast'][i]['astro']['ms'] + '"') print('-------------------') print('空气指数:'+ r.json()['HeWeather5'][0]['suggestion']['air']['brf'] + ':' + r.json()['HeWeather5'][0]['suggestion']['air']['txt']) print('舒适度指数:'+ r.json()['HeWeather5'][0]['suggestion']['comf']['brf'] + ':' + r.json()['HeWeather5'][0]['suggestion']['comf']['txt']) UART.UART_send('t17.txt=' + '"' + '舒适度指数:' + r.json()['HeWeather5'][0]['suggestion']['comf']['brf'] + '"') UART.UART_send('t18.txt=' + '"' + r.json()['HeWeather5'][0]['suggestion']['comf']['txt'] + '"') print('洗车指数:'+ r.json()['HeWeather5'][0]['suggestion']['cw']['brf'] + ':' + r.json()['HeWeather5'][0]['suggestion']['cw']['txt']) print('穿衣指数:'+ r.json()['HeWeather5'][0]['suggestion']['drsg']['brf'] + ':' + r.json()['HeWeather5'][0]['suggestion']['drsg']['txt']) print('感冒指数:'+ r.json()['HeWeather5'][0]['suggestion']['flu']['brf'] + ':' + r.json()['HeWeather5'][0]['suggestion']['flu']['txt']) print('运动指数:'+ r.json()['HeWeather5'][0]['suggestion']['sport']['brf'] + ':' + r.json()['HeWeather5'][0]['suggestion']['sport']['txt']) print('旅游指数:'+ r.json()['HeWeather5'][0]['suggestion']['trav']['brf'] + ':' + r.json()['HeWeather5'][0]['suggestion']['trav']['txt']) print('紫外线指数:'+ r.json()['HeWeather5'][0]['suggestion']['uv']['brf'] + ':' + r.json()['HeWeather5'][0]['suggestion']['uv']['txt']) else: print(r.status_code) print(r)
# INITIALIZE GOOGLE SHEET DATA #------------------------------ worksheetName = "rangeTest" scope = ['https://spreadsheets.google.com/feeds'] credentials = ServiceAccountCredentials.from_json_keyfile_name('/home/jat0021/Development/Garden Watering-78f48eddaea0.json', scope) gc = gspread.authorize(credentials) worksheet = gc.open(worksheetName).sheet1 #-------------------------------- # INITIALIZE SERIAL PORT #-------------------------------- UART.initUART() #--------------------------------- # MAIN PROGRAM LOOP #--------------------------------- # Compile data message polling information from HC-SR04 sensor 1 sensorRequest = [UART_Messages.WATER_TANK_LVL, UART_Messages.OPTION_1, UART_Messages.NULL_BYTE, UART_Messages.NULL_BYTE] # Get sensor data sensorData = UART.transmitMessage( sensorRequest ) # Write sensor data to google sheet worksheet.update_cell(3,2, sensorData[2])
def runTest(): status("active") TestName = "Menu_on_OK_2" ScriptName = "main" ScriptIndex = "1" Grabber = DO.grab_define() platform = DO.load_platform() Modulation = "DVBS" FEC = "3/4" SR = "27500000" Stream = "\\036E_20000_LCN-25_20140418a.ts" Stream_2 = "\\X_0000_00000_MUX_32000_EPG_Software_20130328a.ts" Frequency = 1476 Modulator = "1" Modulator_2 = "2" COM = "COM7" settings = [ScriptName, ScriptIndex, Grabber, Modulation, FEC, SR, Stream, Frequency, Modulator, COM] DO.save_settings(settings) GRAB.start_capture() MOD.stop(Modulator) MOD.stop(Modulator_2) # macros searching_from_wizard_E501 = ["ok 1 2400", "ok 1 2400", "ok 1 2400", "right 1 2400", "ok 1 2400", "ok 1 45000", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_ALL = ["ok 1 2400", "ok 1 2400", "right 1 2400", "ok 1 2400", "ok 1 45000", "ok 1 15000", "ok 1 10000", "exit 2 3000"] ############################ TestCase 1 ########################################## """testcase = 1 status("active") MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) UART.default_settings() OPER.search() RC.push(["ok 1 3000"]) GRAB.compare(testcase) ############################ TestCase 2 ########################################## testcase = 2 status("active") MOD.stop(Modulator) UART.default_settings() RC.push(["exit 2 2400", "ok 1 3000"]) GRAB.compare(testcase) ############################ TestCase 3 ########################################## testcase = 3 status("active") MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) UART.default_settings() OPER.search() RC.push(["up 2 5000", "ok 1 3000"]) GRAB.compare(testcase) ############################ TestCase 4 ########################################## testcase = 4 status("active") MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) UART.default_settings() OPER.search() RC.push(["tv/radio 1 5000", "ok 1 3000"]) GRAB.compare(testcase) ############################ TestCase 5 ########################################## testcase = 5 status("active") UART.default_settings() OPER.search() OPER.fav_create("123") RC.push(["blue 1 3000", "left 1 3000", "down 20 5000", "ok 2 5000", "exit 1 3000", "ok 1 5000"]) GRAB.compare(testcase) ############################ TestCase 6 ########################################## testcase = 6 status("active") UART.default_settings() OPER.search() RC.push(["blue 1 3000", "left 1 3000", "down 3 5000", "ok 2 5000", "exit 1 3000", "ok 1 3000"]) GRAB.compare(testcase) ############################ TestCase 95 ########################################## testcase = 95 status("inactive") #UART.default_settings() #if platform in ["E501", "E502", "A230"]: # RC.push(searching_from_wizard_E501) #else: # RC.push(searching_from_wizard_ALL) #GRAB.compare(testcase) ############################ TestCase 7 ########################################## testcase = 7 status("active") MOD.play_stream(Modulation, FEC, SR, Stream_2, Frequency, Modulator) UART.default_settings() OPER.search() RC.push(["ok 1 3000", "down 2 3000"]) GRAB.compare(testcase) ############################ TestCase 8 ########################################## testcase = 8 status("active") RC.push(["exit 1 1000"]) OPER.fav_create("123") RC.push(["ok 1 3000", "down 2 3000"]) GRAB.compare(testcase) ############################ TestCase 9 ########################################## testcase = 9 status("active") GRAB.compare(testcase) ############################ TestCase 10 ########################################## testcase = 10 status("active") GRAB.compare(testcase) ############################ TestCase 11 ########################################## testcase = 11 status("active") GRAB.compare(testcase) ############################ TestCase 12 ########################################## testcase = 12 status("active") GRAB.compare(testcase) ############################ TestCase 13 ########################################## testcase = 13 status("active") UART.start_app("channelseditor") RC.push(["right 1 3000", "down 1 1500"]) OPER.channel_block() RC.push(["down 1 1500"]) OPER.channel_block() RC.push(["exit 3 2400", "ok 1 3000", "down 2 3000"]) GRAB.compare(testcase) ############################ TestCase 14 ########################################## testcase = 14 status("active") GRAB.compare(testcase) ############################ TestCase 15 ########################################## testcase = 15 status("active") GRAB.compare(testcase) ############################ TestCase 16 ########################################## testcase = 16 status("active") GRAB.compare(testcase) ############################ TestCase 17 ########################################## testcase = 17 status("active") MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) UART.default_settings() OPER.search() RC.push(["ok 1 3000"]) RC.push(["up 1 2400", "ok 1 3000"]) GRAB.compare(testcase) ############################ TestCase 18 ########################################## testcase = 18 status("active") RC.push(["up 1 2400", "ChUp 1 3000"]) GRAB.compare(testcase) ############################ TestCase 19 ########################################## testcase = 19 status("active") RC.push(["ChDown 1 3000"]) GRAB.compare(testcase) ############################ TestCase 20 ########################################## testcase = 20 status("active") RC.push(["left 1 3000"]) GRAB.compare(testcase) ############################ TestCase 21 ########################################## testcase = 21 status("active") RC.push(["right 1 3000"]) GRAB.compare(testcase) ############################ TestCase 22 ########################################## testcase = 22 status("active") RC.push(["up 1 3000"]) GRAB.compare(testcase) ############################ TestCase 23 ########################################## testcase = 23 status("active") RC.push(["exit 2 3000", "ok 1 3000", "up 1 2000", "right", "up 1 3000"]) GRAB.compare(testcase) ############################ TestCase 24 ########################################## testcase = 24 status("active") RC.push(["exit 2 3000", "ok 1 3000", "right 1 2000", "up 1 2000", "down 1 3000"]) GRAB.compare(testcase) ############################ TestCase 25 ########################################## testcase = 25 status("active") RC.push(["exit 2 3000", "ok 1 3000", "up 1 2000", "right", "down 1 3000"]) GRAB.compare(testcase) ############################ TestCase 26 ########################################## testcase = 26 status("active") RC.push(["exit 2 3000", "ok 1 3000", "up 1 2000", "mute"]) GRAB.compare(testcase) ############################ TestCase 27 ########################################## testcase = 27 status("active") RC.push(["VolUp 2 2200"]) GRAB.compare(testcase) ############################ TestCase 28 ########################################## testcase = 28 status("active") RC.push(["VolDown 2 2200"]) GRAB.compare(testcase) ############################ TestCase 29 ########################################## testcase = 29 status("active") RC.push(["exit 2 3000", "ok 1 3000", "up 1 2000", "menu 1 3000"]) GRAB.compare(testcase) ############################ TestCase 30 ########################################## testcase = 30 status("active") RC.push(["exit 2 3000", "ok 1 3000", "up 1 2000", "exit 1 3000"]) GRAB.compare(testcase) ############################ TestCase 31 ########################################## testcase = 31 status("active") RC.push(["exit 2 3000", "ok 1 3000", "up 1 2000", "last 1 2000"]) GRAB.compare(testcase) ############################ TestCase 32 ########################################## testcase = 32 status("active") RC.push(["exit 2 3000", "ok 1 3000", "up 1 2000", "stb 1 3000"]) GRAB.compare(testcase) ############################ TestCase 33 ########################################## testcase = 33 status("active") RC.push(["exit 2 3000", "ok 1 3000", "up 1 2000", "tv/radio 1 3000"]) GRAB.compare(testcase) ############################ TestCase 34 ########################################## testcase = 34 status("active") RC.push(["exit 2 3000", "ok 1 3000", "up 1 2000", "standby 1 5000", "standby 1 15000"]) GRAB.compare(testcase) ############################ TestCase 35 ########################################## testcase = 35 status("active") RC.push(["exit 2 3000", "ok 1 3000", "down 1 3000", "ok 1 2000"]) GRAB.compare(testcase) ############################ TestCase 36 ########################################## testcase = 36 status("active") RC.push(["exit 2 3000", "ok 1 3000", "down 3 3000", "ChUp 1 2000"]) GRAB.compare(testcase) ############################ TestCase 37 ########################################## testcase = 37 status("active") RC.push(["ChDown 1 2000"]) GRAB.compare(testcase) ############################ TestCase 38 ########################################## testcase = 38 status("active") RC.push(["left 1 2000"]) GRAB.compare(testcase) ############################ TestCase 39 ########################################## testcase = 39 status("active") RC.push(["left 1 2000"]) GRAB.compare(testcase) ############################ TestCase 40 ########################################## testcase = 40 status("active") RC.push(["right 1 2000"]) GRAB.compare(testcase) ############################ TestCase 41 ########################################## testcase = 41 status("active") RC.push(["right 1 2000"]) GRAB.compare(testcase) ############################ TestCase 42 ########################################## testcase = 42 status("active") RC.push(["up 1 2000"]) GRAB.compare(testcase) ############################ TestCase 43 ########################################## testcase = 43 status("active") RC.push(["exit 2 3000", "0 1 5000", "ok 1 3000", "up 1 2000"]) GRAB.compare(testcase) ############################ TestCase 44 ########################################## testcase = 44 status("active") RC.push(["down 1 3000", "down 1 2000"]) GRAB.compare(testcase) ############################ TestCase 45 ########################################## testcase = 45 status("active") RC.push(["left 1 3000", "down 1 1000", "down 1 1000", "down 1 1000"]) GRAB.compare(testcase) ############################ TestCase 46 ########################################## testcase = 46 status("active") RC.push(["exit 1 2000", "OK 1 2000", "mute 1 2000"]) GRAB.compare(testcase) ############################ TestCase 47 ########################################## testcase = 47 status("active") RC.push(["VolUp 2 2000"]) GRAB.compare(testcase) ############################ TestCase 48 ########################################## testcase = 48 status("active") RC.push(["VolDown 2 2000"]) GRAB.compare(testcase) ############################ TestCase 49 ########################################## testcase = 49 status("active") RC.push(["menu 1 2000"]) GRAB.compare(testcase) ############################ TestCase 50 ########################################## testcase = 50 status("active") RC.push(["exit 3 2000", "ok 1 3000", "exit 1 2000"]) GRAB.compare(testcase) ############################ TestCase 51 ########################################## testcase = 51 status("active") RC.push(["exit 3 2000", "ok 1 3000", "last 1 2000"]) GRAB.compare(testcase) ############################ TestCase 52 ########################################## testcase = 52 status("active") RC.push(["exit 3 2000", "ok 1 3000", "stb 1 2000"]) GRAB.compare(testcase) ############################ TestCase 53 ########################################## testcase = 53 status("active") RC.push(["exit 3 2000", "ok 1 3000", "tv/radio 1 2000"]) GRAB.compare(testcase) ############################ TestCase 54 ########################################## testcase = 54 status("active") RC.push(["exit 3 2000", "ok 1 3000", "standby 1 5000", "standby 1 15000"]) GRAB.compare(testcase) ############################ TestCase 96 ########################################## testcase = 96 status("active") UART.default_settings() OPER.search() RC.push(["OK 1 2000", "red 1 2000", "down 1 1000", "left 1 1000", "ok 1 3000"]) GRAB.compare(testcase) ############################ TestCase 97 ########################################## testcase = 97 status("active") RC.push(["exit 1 1000", "exit 1 1000", "exit 1 1000"]) RC.push(["OK 1 2000", "down 1 1000", "left 1 1000", "ChUp 1 3000"]) GRAB.compare(testcase) ############################ TestCase 98 ########################################## testcase = 98 status("active") RC.push(["exit 1 1000", "exit 1 1000", "exit 1 1000"]) RC.push(["OK 1 2000", "down 1 1000", "left 1 1000", "ChDown 1 3000"]) GRAB.compare(testcase) ############################ TestCase 99 ########################################## testcase = 99 status("active") RC.push(["exit 1 1000", "exit 1 1000", "exit 1 1000"]) RC.push(["OK 1 2000", "down 1 1000", "left 1 1000", "left 1 3000"]) GRAB.compare(testcase) ############################ TestCase 100 ########################################## testcase = 100 status("active") RC.push(["exit 1 1000", "exit 1 1000", "exit 1 1000"]) RC.push(["OK 1 2000", "down 1 1000", "left 1 1000", "right 1 3000"]) GRAB.compare(testcase) ############################ TestCase 101 ########################################## testcase = 101 status("active") RC.push(["exit 1 1000", "exit 1 1000", "exit 1 1000"]) RC.push(["OK 1 2000", "down 1 1000", "left 1 1000", "up 15 5000"]) GRAB.compare(testcase) ############################ TestCase 102 ########################################## testcase = 102 status("active") RC.push(["exit 1 1000", "exit 1 1000", "exit 1 1000"]) RC.push(["OK 1 2000", "down 1 1000", "left 1 1000", "down 1 1000", "right 1 2000"]) GRAB.compare(testcase) ############################ TestCase 103 ########################################## testcase = 103 status("active") RC.push(["exit 1 1000", "exit 1 1000", "exit 1 1000"]) RC.push(["ok 1 3000", "left 1 1000", "down 30 5000"]) GRAB.compare(testcase) ############################ TestCase 104 ########################################## testcase = 104 status("active") RC.push(["exit 1 1000", "exit 1 1000", "exit 1 1000"]) RC.push(["OK 1 2000", "down 1 1000", "left 1 1000", "down 1 1000", "ok 1 2000"]) GRAB.compare(testcase) ############################ TestCase 105 ########################################## testcase = 105 status("active") RC.push(["exit 1 1000", "exit 1 1000", "exit 1 1000"]) RC.push(["OK 1 2000", "down 1 1000", "left 1 1000", "mute 1 1000", "exit 1 2000"]) GRAB.compare(testcase) ############################ TestCase 106 ########################################## testcase = 106 status("active") RC.push(["mute 1 1000", "exit 1 1000", "exit 1 1000", "exit 1 1000"]) RC.push(["OK 1 2000", "down 1 1000", "left 1 1000", "VolUp 1 2000"]) GRAB.compare(testcase) ############################ TestCase 107 ########################################## testcase = 107 status("active") RC.push(["exit 1 1000", "exit 1 1000", "exit 1 1000"]) RC.push(["OK 1 2000", "down 1 1000", "left 1 1000", "VolDown 1 2000"]) GRAB.compare(testcase) ############################ TestCase 108 ########################################## testcase = 108 status("active") RC.push(["exit 1 1000", "exit 1 1000", "exit 1 1000"]) RC.push(["OK 1 2000", "down 1 1000", "left 1 1000", "menu 1 3000"]) GRAB.compare(testcase) ############################ TestCase 109 ########################################## testcase = 109 status("active") RC.push(["exit 1 1000", "exit 1 1000", "exit 1 1000"]) RC.push(["OK 1 2000", "down 1 1000", "left 1 1000", "exit 1 3000"]) GRAB.compare(testcase) ############################ TestCase 110 ########################################## testcase = 110 status("active") RC.push(["exit 1 1000", "exit 1 1000", "exit 1 1000"]) RC.push(["OK 1 2000", "down 1 1000", "left 1 1000", "last 1 3000"]) GRAB.compare(testcase) ############################ TestCase 111 ########################################## testcase = 111 status("active") RC.push(["exit 1 1000", "exit 1 1000", "exit 1 1000"]) RC.push(["OK 1 2000", "down 1 1000", "left 1 1000", "stb 1 3000"]) GRAB.compare(testcase) ############################ TestCase 112 ########################################## testcase = 112 status("active") RC.push(["exit 1 1000", "exit 1 1000", "exit 1 1000"]) RC.push(["OK 1 2000", "down 1 1000", "left 1 1000", "Tv/radio 1 2000"]) GRAB.compare(testcase) ############################ TestCase 113 ########################################## testcase = 113 status("active") RC.push(["exit 1 1000", "exit 1 1000", "exit 1 1000"]) RC.push(["OK 1 2000", "down 1 1000", "left 1 1000", "standby 1 5000", "standby 1 15000"]) GRAB.compare(testcase) ############################ TestCase 114 ########################################## testcase = 114 status("active") RC.push(["exit 1 1000", "exit 1 1000", "exit 1 1000"]) RC.push(["OK 1 2000", "down 1 1000", "OK 1 4500"]) GRAB.compare(testcase) ############################ TestCase 115 ########################################## testcase = 115 status("active") RC.push(["exit 1 1000", "exit 1 1000", "exit 1 1000"]) RC.push(["OK 1 2000", "down 1 1000", "ChUp 1 1000"]) GRAB.compare(testcase) ############################ TestCase 116 ########################################## testcase = 116 status("active") RC.push(["exit 1 1000", "exit 1 1000", "exit 1 1000"]) RC.push(["OK 1 2000", "down 1 1000", "ChDown 1 1000"]) GRAB.compare(testcase) ############################ TestCase 117 ########################################## testcase = 117 status("active") RC.push(["exit 1 1000", "exit 1 1000", "exit 1 1000"]) RC.push(["OK 1 2000", "down 1 1000", "left 1 1000"]) GRAB.compare(testcase) ############################ TestCase 118 ########################################## testcase = 118 status("active") RC.push(["exit 1 1000", "exit 1 1000", "exit 1 1000"]) RC.push(["OK 1 2000", "down 1 1000", "left 1 1000"]) GRAB.compare(testcase) ############################ TestCase 119 ########################################## testcase = 119 status("manual") GRAB.compare(testcase) ############################ TestCase 120 ########################################## testcase = 120 status("manual") GRAB.compare(testcase) ############################ TestCase 121 ########################################## testcase = 121 status("active") RC.push(["exit 1 1000", "exit 1 1000", "exit 1 1000"]) RC.push(["OK 1 2000", "down 1 1000", "up 1 1000"]) GRAB.compare(testcase) ############################ TestCase 122 ########################################## testcase = 122 status("manual") GRAB.compare(testcase) ############################ TestCase 123 ########################################## testcase = 123 status("active") RC.push(["exit 1 1000", "exit 1 1000"]) RC.push(["OK 1 2000", "down 1 1000"]) GRAB.compare(testcase) ############################ TestCase 124 ########################################## testcase = 124 status("manual") GRAB.compare(testcase) ############################ TestCase 125 ########################################## testcase = 125 status("active") RC.push(["exit 1 1000", "exit 1 1000"]) RC.push(["OK 1 2000", "mute 1 1000", "exit 1 1000"]) GRAB.compare(testcase) ############################ TestCase 126 ########################################## testcase = 126 status("active") RC.push(["mute 1 1000", "exit 1 1000"]) RC.push(["OK 1 2000", "down 1 1000", "VolUp 1 1000"]) GRAB.compare(testcase) ############################ TestCase 127 ########################################## testcase = 127 status("active") RC.push(["exit 1 1000", "exit 1 1000"]) RC.push(["OK 1 2000", "down 1 1000", "VolDown 1 1000"]) GRAB.compare(testcase) ############################ TestCase 128 ########################################## testcase = 128 status("active") RC.push(["exit 1 1000", "exit 1 1000"]) RC.push(["OK 1 2000", "menu 1 1000"]) GRAB.compare(testcase) ############################ TestCase 129 ########################################## testcase = 129 status("active") RC.push(["exit 1 1000", "exit 1 1000"]) RC.push(["OK 1 2000", "exit 1 1000"]) GRAB.compare(testcase) ############################ TestCase 130 ########################################## testcase = 130 status("active") RC.push(["exit 1 1000", "exit 1 1000"]) RC.push(["OK 1 2000", "last 1 1000"]) GRAB.compare(testcase) ############################ TestCase 131 ########################################## testcase = 131 status("active") RC.push(["exit 1 1000", "exit 1 1000"]) RC.push(["OK 1 2000", "stb 1 1000"]) GRAB.compare(testcase) ############################ TestCase 132 ########################################## testcase = 132 status("active") RC.push(["exit 1 1000", "exit 1 1000"]) RC.push(["OK 1 2000", "Tv/radio 1 1000"]) GRAB.compare(testcase) ############################ TestCase 133 ########################################## testcase = 133 status("active") RC.push(["exit 1 1000", "exit 1 1000"]) RC.push(["OK 1 2000", "standby 1 8000", "standby 1 15000"]) GRAB.compare(testcase) ############################ TestCase 55 ########################################## testcase = 55 status("active") UART.default_settings() OPER.search() RC.push(["up 1 2400", "ok 1 3000", "exit 1 2000", "ok 1 3000"]) GRAB.compare(testcase) ############################ TestCase 56 ########################################## testcase = 56 status("active") RC.push(["exit 3 2000", "ok 1 3000", "up 2 2000", "right", "down", "exit 1 3000", "ok 1 3000"]) GRAB.compare(testcase) ############################ TestCase 57 ########################################## testcase = 57 status("active") UART.default_settings() OPER.search() RC.push(["ok 1 3000", "up 1 3000"]) GRAB.compare(testcase) ############################ TestCase 58 ########################################## testcase = 58 status("active") RC.push(["right 1 2000"]) GRAB.compare(testcase) ############################ TestCase 59 ########################################## testcase = 59 status("manual") GRAB.compare(testcase) ############################ TestCase 60 ########################################## testcase = 60 status("manual") GRAB.compare(testcase) ############################ TestCase 61 ########################################## testcase = 61 status("active") status("manual") GRAB.compare(testcase) ############################ TestCase 62 ########################################## testcase = 62 status("active") status("manual") GRAB.compare(testcase) ############################ TestCase 63 ########################################## testcase = 63 status("active") status("manual") GRAB.compare(testcase) ############################ TestCase 64 ########################################## testcase = 64 status("active") status("manual") GRAB.compare(testcase) ############################ TestCase 65 ########################################## testcase = 65 status("active") status("manual") GRAB.compare(testcase) ############################ TestCase 66 ########################################## testcase = 66 status("active") status("manual") GRAB.compare(testcase) ############################ TestCase 67 ########################################## testcase = 67 status("active") status("manual") GRAB.compare(testcase) ############################ TestCase 68 ########################################## testcase = 68 status("active") status("manual") GRAB.compare(testcase) ############################ TestCase 69 ########################################## testcase = 69 status("active") status("manual") GRAB.compare(testcase) ############################ TestCase 70 ########################################## testcase = 70 status("active") status("manual") GRAB.compare(testcase) ############################ TestCase 71 ########################################## testcase = 71 status("active") status("manual") GRAB.compare(testcase) ############################ TestCase 72 ########################################## testcase = 72 status("active") status("manual") GRAB.compare(testcase) ############################ TestCase 73 ########################################## testcase = 73 status("active") status("manual") GRAB.compare(testcase) ############################ TestCase 74 ########################################## testcase = 74 status("active") status("manual") GRAB.compare(testcase) ############################ TestCase 75 ########################################## testcase = 75 status("active") status("manual") GRAB.compare(testcase) ############################ TestCase 76 ########################################## testcase = 76 status("active") OPER.fav_create("76") RC.push(["0 1 5000", "ok 1 3000", "up 1 2000", "left 1 1000", "left 1 1000"]) GRAB.compare(testcase) ############################ TestCase 94 ########################################## testcase = 94 status("inactive") UART.default_settings() OPER.search() RC.push(["up 1 1000", "down 1 1000", "down 1 1000"]) OPER.fav_create("94") RC.push(["0 1 4000", "OK 1 1000", "up 1 1000", "left 1 1000", "left 1 1000"]) GRAB.compare(testcase) ############################ TestCase 77 ########################################## testcase = 77 status("active") MOD.play_stream(Modulation, FEC, SR, Stream_2, Frequency, Modulator) UART.default_settings() OPER.search() RC.push(["ok 1 3000"]) GRAB.compare(testcase) ############################ TestCase 78 ########################################## testcase = 78 status("active") OPER.fav_create("11111222223333344444555556666677777888889999900000") RC.push(["0 1 5000", "ok 1 3000", "up 1 2000", "right 2 3000"]) GRAB.compare(testcase) ############################ TestCase 79 ########################################## testcase = 79 status("inactive") MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) UART.default_settings() OPER.search() OPER.fav_create("79") RC.push(["0 1 5000", "ok 1 3000", "up 1 2000", "left 3 3000", "down 2 2000", "ok 1 5000", "last 1 1000", "OK 1 5000", "exit 1 3000", "red 1 2400"]) GRAB.compare(testcase) ############################ TestCase 80 ########################################## testcase = 80 status("inactive") UART.default_settings() OPER.search() RC.push(["red 1 2000", "ok 1 3000"]) GRAB.compare(testcase) ############################ TestCase 81 ########################################## testcase = 81 status("active") UART.default_settings() MOD.stop(Modulator) MOD.play_stream(Modulation, FEC, SR, Stream_2, Frequency, Modulator) OPER.search() UART.start_app("channelseditor") RC.push(["right 1 3000", "down 1 1500"]) OPER.channel_block() RC.push(["down 1 1500"]) OPER.channel_block() RC.push(["exit 3 2400", "ok 1 3000"]) GRAB.compare(testcase) ############################ TestCase 153 ########################################## testcase = 153 status("manual") GRAB.compare(testcase) ############################ TestCase 154 ########################################## testcase = 154 status("manual") GRAB.compare(testcase) ############################ TestCase 82 ########################################## testcase = 82 status("manual") GRAB.compare(testcase) ############################ TestCase 83 ########################################## testcase = 83 status("manual") GRAB.compare(testcase) ############################ TestCase 84 ########################################## testcase = 84 status("active") UART.default_settings() MOD.stop(Modulator) MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) OPER.search() RC.push(["exit 5 2400", "ok 1 3000", "green 1 1500"]) GRAB.compare(testcase) ############################ TestCase 85 ########################################## testcase = 85 status("active") RC.push(["exit 5 2400", "ok 1 3000", "yellow 1 1500"]) GRAB.compare(testcase) ############################ TestCase 86 ########################################## testcase = 86 status("active") RC.push(["exit 5 2400", "ok 1 3000", "blue 1 1500"]) GRAB.compare(testcase) ############################ TestCase 87 ########################################## testcase = 87 status("active") RC.push(["exit 5 2400", "ok 1 3000", "red 1 1500"]) GRAB.compare(testcase) ############################ TestCase 88 ########################################## testcase = 88 status("active") MOD.stop(Modulator) MOD.play(Modulator) RC.push(["red 1 1000", "exit 3 3400"]) UART.start_app("scheduler") RC.push(["red", "ok 1 3000", "down 2 1000", "ok", "ok", "right 1 1000", "up", "ok", "ok", "exit 5 2400", "ok 1 5000"]) sleep(45) GRAB.compare(testcase) ############################ TestCase 155 ########################################## testcase = 155 status("manual") GRAB.compare(testcase) ############################ TestCase 89 ########################################## testcase = 89 status("active") RC.push(["exit 5 2400", "ok 1 3000", "cinemahalls"]) GRAB.compare(testcase) ############################ TestCase 90 ########################################## testcase = 90 status("active") RC.push(["exit 5 2400", "ok 1 3000", "help"]) GRAB.compare(testcase) ############################ TestCase 91 ########################################## testcase = 91 status("manual") GRAB.compare(testcase) ############################ TestCase 92 ########################################## testcase = 92 status("active") RC.push(["exit 5 2400", "3 1 3000"]) OPER.set_pin() OPER.block(1) RC.push(["exit 1 1000", "exit 1 1000", "exit 1 1000", "exit 1 1000", "ok 1 3000", "up 1 1000", "up 1 100000", "ok 1 10000"]) GRAB.compare(testcase) ############################ TestCase 93 ########################################## testcase = 93 status("manual") GRAB.compare(testcase)""" ############################ TestCase 152 ########################################## testcase = 152 status("active") UART.default_settings() MOD.stop(Modulator) MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) OPER.search() UART.reboot() RC.push(["exit 1 10000", "OK 1 1000", "red 1 1000", "left 1 1000", "down 10 1000", "right 1 1000", "down 1 1000", "down 1 1000", "OK 1 10000", "OK 1 1000", "red 1 1000"]) GRAB.compare(testcase) ############################ TestCase 134 ########################################## testcase = 134 status("active") UART.default_settings() OPER.search() RC.push(["exit 1 1000", "up 1 3000", "up 1 3000", "up 1 3000", "last 1 2000"]) GRAB.compare(testcase) ############################ TestCase 135 ########################################## testcase = 135 status("inactive") RC.push(["exit 1 1000", "0 1 3500", "ok 1 3000", "up 1 3000", "left 1 2000", "left 1 1000", "OK 1 1000"]) GRAB.compare(testcase) ############################ TestCase 136 ########################################## testcase = 136 status("active") UART.default_settings() OPER.search() RC.push(["exit 1 1000", "last 1 2000"]) GRAB.compare(testcase) ############################ TestCase 137 ########################################## testcase = 137 status("active") UART.default_settings() OPER.search() RC.push(["exit 1 1000", "0 1 3000", "up 1 2000", "up 1 2000", "up 1 2000", "up 1 2000", "up 1 2000", "up 1 2000", "up 1 2000", "up 1 2000", "up 1 2000", "Tv/radio 1 2000", "up 1 2000", "up 1 2000", "up 1 2000", "up 1 2000", "last 1 2000"]) GRAB.compare(testcase) ############################ TestCase 138 ########################################## testcase = 138 status("manual") GRAB.compare(testcase) ############################ TestCase 139 ########################################## testcase = 139 status("manual") GRAB.compare(testcase) ############################ TestCase 151 ########################################## testcase = 151 status("active") UART.default_settings() RC.push(["exit 1 1000", "exit 1 1000", "exit 1 1000", "last 1 2000"]) GRAB.compare(testcase) ############################ TestCase 140 ########################################## testcase = 140 status("active") UART.default_settings() OPER.search() RC.push(["exit 1 1000", "0 1 3000", "up 1 3000", "up 1 3000", "up 1 3000", "last 1 3000", "down 1 3000", "down 1 3000", "OK 1 4000", "last 1 3000"]) GRAB.compare(testcase) ############################ TestCase 141 ########################################## testcase = 141 status("active") UART.default_settings() OPER.search() RC.push(["exit 1 1000", "OK 1 1000", "up 1 1000", "right 1 1000", "right 1 1000", "down 1 1000", "OK 1 4000", "OK 1 1000", "up 1 1000", "left 1 1000", "left 1 1000", "down 1 1000", "down 1 1000", "OK 1 4000", "last 1 1000", "OK 1 4000", "OK 1 1000"]) GRAB.compare(testcase) ############################ TestCase 142 ########################################## testcase = 142 status("active") UART.default_settings() OPER.search() RC.push(["exit 1 1000"]) OPER.fav_create("142") RC.push(["OK 1 1000", "up 1 1000", "left 1 1000", "left 1 1000", "OK 1 1000", "down 1 1000", "OK 1 1000"]) RC.push(["Tv/radio 1 1000"]) RC.push(["last 1 1000", "OK 1 4000", "OK 1 2000"]) GRAB.compare(testcase) ############################ TestCase 143 ########################################## testcase = 143 status("active") UART.default_settings() OPER.search() RC.push(["exit 1 1000"]) OPER.fav_create("143") RC.push(["OK 1 1000", "up 1 1000", "left 1 1000", "left 1 1000", "left 1 1000", "OK 1 1000", "down 1 1000", "OK 1 1000"]) RC.push(["OK 1 1000", "up 1 1000", "up 1 1000", "left 1 1000", "OK 1 1000", "right 1 1000", "OK 1 1000"]) RC.push(["OK 1 1000", "up 1 1000", "right 1 1000", "right 1 1000", "right 1 1000", "right 1 1000", "OK 1 1000", "down 1 1000", "OK 1 1000"]) RC.push(["last 1 1000"]) GRAB.compare(testcase) ############################ TestCase 144 ########################################## testcase = 144 status("active") RC.push(["exit 1 1000", "0 1 4000", "last 1 1000", "OK 1 2500"]) GRAB.compare(testcase) ############################ TestCase 145 ########################################## testcase = 145 status("active") UART.default_settings() OPER.search() RC.push(["exit 1 1000"]) OPER.fav_create("123") RC.push(["OK 1 1000", "up 1 1000", "left 1 1000", "left 1 1000", "left 1 1000", "OK 1 1000", "down 1 1000", "down 1 1000", "OK 1 1000"]) UART.start_app("channelseditor") RC.push(["up 1 1000", "up 1 1000", "right 1 1000", "down 1 1000", "down 1 1000", "OK 1 1000", "right 1 1000", "OK 1 1000", "left 1 1000", "OK 1 1000", "exit 1 1000", "exit 1 1000", "exit 1 1000", "last 1 1000"]) GRAB.compare(testcase) ############################ TestCase 146 ########################################## testcase = 146 status("active") UART.default_settings() OPER.search() RC.push(["exit 1 1000"]) OPER.fav_create("123") RC.push(["OK 1 1000", "up 1 1000", "left 1 1000", "left 1 1000", "left 1 1000", "OK 1 1000", "down 1 1000", "down 1 1000", "OK 1 5000"]) RC.push(["OK 1 1000", "down 1 1000", "right 1 1000", "right 1 1000", "right 1 1000", "down 1 1000", "down 1 1000", "down 1 1000", "OK 1 5000"]) UART.start_app("channelseditor") RC.push(["up 1 1000", "up 1 1000", "right 1 1000", "down 1 1000", "down 1 1000", "OK 1 1000", "right 1 1000", "OK 1 1000", "left 1 1000", "OK 1 1000", "exit 1 1000", "exit 1 1000", "exit 1 1000"]) RC.push(["last 1 1000"]) GRAB.compare(testcase) ############################ TestCase 147 ########################################## testcase = 147 status("active") UART.default_settings() OPER.search() RC.push(["ok 1 1000", "up 1 1000", "left 1 1000"]) GRAB.compare(testcase) ############################ TestCase 148 ########################################## testcase = 148 status("manual") GRAB.compare(testcase) ############################ TestCase 149 ########################################## testcase = 149 status("manual") GRAB.compare(testcase) ############################ TestCase 150 ########################################## testcase = 150 status("manual") GRAB.compare(testcase) ################################################################################### status("active") MOD.stop(Modulator) GRAB.stop_capture()
while coming_plate == last_plate: num = plate_rec.read_plate('plates/plate1.png') # take plate photo if num < 10000000: coming_plate = num print('waiting for car') for p in plates: if coming_plate == p: car_num = p else: car_num = 0 if car_num == 0: # plate num not working Bot.speak("Hello, Welcome to guardsmarter!, What is your name?") Bot.speak("If u have issues u can press the emergency button for help") if UART.interrupt_check(): tour.alert() clientName = Bot.listen() for name in f_names: if name == clientName: # in the name list UART.open_gate() client_id = sql.read_where('ID', f'F_name = {name}') log(client_id, coming_plate) time.sleep(10) UART.close_gate() else: # not in the name list tour.alert() else: face_id = face_rec.classify_face( 'test_faces/test.jpg') # take face photo
DIO.write_file() file = open("DIO_Init.c", "r") data = file.read() window['-CODE_DIO-'].update(value=data, justification="left") if event == "_generate_SPI_": SPI.select_themode(values["_MS_"]) SPI.select_spimodes(values["_MODE_"], values["_MS_"]) SPI.select_clockrate(values["_CLK_"]) file = open("spi.c", "r") data = file.read() window['-CODE_SPI-'].update(value=data, justification="left") if event == "_generate_UART_": BR = UART.BUDRATE(int(values["_BAUDRATE_"])) PARITY = UART.Parit_Bit(values["_Parity_"]) STOP = UART.StopBits(values["_Stop_"]) DATA = UART.Data_Bits(values["_Data_"]) UART.UART_write_file(BR, PARITY, STOP, DATA) file = open("UART.c", "r") data = file.read() window['-CODE_UART-'].update(value=data, justification="left") if event == "_generate_Timer_": ret = Timer.modes(Timer_mode_layout) Timer.Intr(Timer_mode_layout, values["_Interrupt_"]) Timer.Prescalar(values["_Prescaler_"])
def runTest(): status("active") TestName = "Settings" ScriptName = "12-scripts" ScriptIndex = "12" Grabber = DO.grab_define() platform = DO.load_platform() Modulation = "DVBS" FEC = "3/4" SR = "27500000" Stream = "\\X_0000_00000_MUX_32000_EPG_Software_20130328a.ts" Frequency = 1476 Modulator = "1" COM = "COM7" settings = [ScriptName, ScriptIndex, Grabber, Modulation, FEC, SR, Stream, Frequency, Modulator, COM] DO.save_settings(settings) GRAB.start_capture() MOD.stop(Modulator) # macros searching_from_wizard_general_E501 = ["ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_general_english_E501 = ["up 2 3400", "right 1 1000", "down 2 3400", "ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_centre_E501 = ["ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "down", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_centre_english_E501 = ["up 3 3400", "right 1 1000", "down 3 3400", "ok 1 3400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 22200", "ok 1 10000", "exit 2 3000"] searching_from_wizard_south_E501 = ["ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "down", "down", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_general_ALL = ["ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_general_english_ALL = ["up 2 3400", "right 1 1000", "down 2 3400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 22200", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_centre_ALL = ["ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "down", "ok 1 5000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_centre_english_ALL = ["up 3 3400", "right 1 1000", "down 3 3400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 22200", "down 1 1000", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_south_ALL = ["ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "down", "down", "ok 1 15000", "ok 1 10000", "exit 2 3000"] load_regions_E501 = ["ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200"] load_regions_english_E501 = ["up 2 2400", "right 1 1000", "down 2 2400", "ok 1 3400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 22200"] load_regions_ALL = ["ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200"] load_regions_english_ALL = ["up 2 2400", "right 1 1000", "down 2 2400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 22200"] ############################ TestCase 1 ########################################## testcase = 1 status("active") MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator)k UART.default_settings() if platform in ["E501", "E502", "A230"]: RC.push(searching_from_wizard_general_E501) else: RC.push(searching_from_wizard_general_ALL) UART.start_app("settings") RC.push(["cinemahalls"]) GRAB.compare(testcase) ############################ TestCase 2 ########################################## testcase = 2 status("active") RC.push(["help"]) GRAB.compare(testcase) ############################ TestCase 3 ########################################## testcase = 3 status("active") MOD.stop(Modulation) MOD.play(Modulation) UART.start_app("scheduler") RC.push(["red", "ok 1 2400", "down 4 1000", "ok", "ok", "right 1 1000", "up 2 1000", "ok", "ok", "exit 5 2400"]) UART.start_app("settings") sleep(80) GRAB.compare(testcase) ############################ TestCase 4 ########################################## testcase = 4 status("manual") GRAB.compare(testcase) ############################ TestCase 5 ########################################## testcase = 5 status("manual") GRAB.compare(testcase) ############################ TestCase 6 ########################################## testcase = 6 status("manual") GRAB.compare(testcase) ############################ TestCase 7 ########################################## testcase = 7 status("manual") GRAB.compare(testcase) ############################ TestCase 8 ########################################## testcase = 8 status("active") RC.push(["VolUp 1 2400"]) GRAB.compare(testcase) ############################ TestCase 9 ########################################## testcase = 9 status("active") RC.push(["VolDown 1 2400"]) GRAB.compare(testcase) ############################ TestCase 10 ########################################## testcase = 10 status("active") RC.push(["mute"]) GRAB.compare(testcase) ############################ TestCase 11 ########################################## testcase = 11 status("active") RC.push(["guide"]) GRAB.compare(testcase) ############################ TestCase 12 ########################################## testcase = 12 status("active") RC.push(["tv/chat"]) GRAB.compare(testcase) ############################ TestCase 13 ########################################## testcase = 13 status("active") RC.push(["star"]) GRAB.compare(testcase) ############################ TestCase 14 ########################################## testcase = 14 status("active") RC.push(["sharp"]) GRAB.compare(testcase) ############################ TestCase 15 ########################################## testcase = 15 status("active") RC.push(["tv/radio"]) GRAB.compare(testcase) ############################ TestCase 16 ########################################## testcase = 16 status("active") RC.push(["stb"]) GRAB.compare(testcase) ############################ TestCase 17 ########################################## testcase = 17 status("active") RC.push(["ID"]) GRAB.compare(testcase) ############################ TestCase 18 ########################################## testcase = 18 status("active") RC.push(["format"]) GRAB.compare(testcase) ############################ TestCase 19 ########################################## testcase = 19 status("active") RC.push(["red"]) GRAB.compare(testcase) ############################ TestCase 20 ########################################## testcase = 20 status("active") RC.push(["green"]) GRAB.compare(testcase) ############################ TestCase 21 ########################################## testcase = 21 status("active") RC.push(["yellow"]) GRAB.compare(testcase) ############################ TestCase 22 ########################################## testcase = 22 status("active") RC.push(["blue"]) GRAB.compare(testcase) ############################ TestCase 23 ########################################## testcase = 23 status("active") RC.push(["exit 2 3000"]) UART.start_app("settings") RC.push(["down", "right", "down", "right"]) sleep(120) RC.push(["standby 1 5000", "standby 1 10000"]) UART.start_app("settings") GRAB.compare(testcase) ############################ TestCase 24 ########################################## testcase = 24 status("active") RC.push(["left 10 2000", "right", "down", "left", "exit", "down", "right", "exit", "down", "right", "down", "right", "ok 1 8000", "left", "ok", "down", "right"]) sleep(120) RC.push(["standby 1 5000", "standby 1 10000"]) UART.start_app("settings") RC.push(["left 10 2000", "right 1 3000"]) GRAB.compare(testcase) ############################ TestCase 25 ########################################## testcase = 25 status("active") RC.push(["exit 2 3000", "format 2 1000", "ok"]) sleep(120) RC.push(["standby 1 5000", "standby 1 10000"]) RC.push(["exit", "format"]) GRAB.compare(testcase) ############################ TestCase 26 ########################################## testcase = 26 status("active") UART.start_app("settings") RC.push(["left 10 2000", "right 2 3000", "down", "right", "down", "left", "down", "right"]) sleep(120) RC.push(["standby 1 5000", "standby 1 10000"]) UART.start_app("settings") RC.push(["left 10 2000", "right 2 3000"]) GRAB.compare(testcase) ############################ TestCase 27 ########################################## testcase = 27 status("active") RC.push(["exit 2 3000", "0 1 5000", "down 1 3000", "green 1 2000", "down", "ok"]) sleep(120) RC.push(["standby 1 5000", "standby 1 10000"]) RC.push(["exit 2 5000", "green 1 3000"]) GRAB.compare(testcase) ############################ TestCase 28 ########################################## testcase = 28 status("active") UART.start_app("settings") RC.push(["left 10 2000", "right 3 3000"]) RC.push(["down 1 3000", "right", "down 2 2000", "right"]) sleep(120) RC.push(["standby 1 5000", "standby 1 10000"]) UART.start_app("settings") RC.push(["left 10 2000", "right 3 3000"]) GRAB.compare(testcase) ############################ TestCase 29 ########################################## testcase = 29 status("active") RC.push(["exit 2 3000", "clock 1 2000"]) sleep(120) RC.push(["standby 1 5000", "standby 1 10000"]) RC.push(["exit 1 5000"]) GRAB.compare(testcase) ############################ TestCase 30 ########################################## testcase = 30 status("active") UART.start_app("settings") RC.push(["left 10 2000", "right 5 3000"]) RC.push(["down 1 3000", "right", "down 1 2000", "right", "down 1 2000", "right", "down 1 2000", "right", "down 1 2000", "right", "down 1 2000", "right"]) sleep(120) RC.push(["standby 1 5000", "standby 1 10000"]) UART.start_app("settings") RC.push(["left 10 2000", "right 5 3000"]) GRAB.compare(testcase) ############################ TestCase 31 ########################################## testcase = 31 status("active") UART.start_app("settings") RC.push(["left 10 2000", "right 6 3000"]) RC.push(["down 1 3000", "right", "1 4 2000", "1 4 2000", "ok 1 2000", "down 2 2000", "right"]) sleep(120) RC.push(["standby 1 5000", "standby 1 10000"]) UART.start_app("settings") RC.push(["left 10 2000", "right 6 3000"]) GRAB.compare(testcase) ############################ TestCase 32 ########################################## testcase = 32 status("active") GRAB.compare(testcase) ############################ TestCase 33 ########################################## testcase = 33 status("active") UART.start_app("satelliteeditor") RC.push(["red 1 3000", "down", "right", "down", "right 2 2000", "down", "left 5 2000", "1 5 2000", "down", "left 5 2000", "1 2 2000", "2 3 2000", "down", "right", "down", "right", "down 2 2000", "ok 2 2000"]) sleep(120) RC.push(["standby 1 5000", "standby 1 10000"]) UART.start_app("satelliteeditor") RC.push(["down 2 1000", "ok 2 3000"]) GRAB.compare(testcase) ############################ TestCase 34 ########################################## testcase = 34 status("active") UART.start_app("scheduler") RC.push(["red", "ok 1 3000", "right 1 2000", "ok", "ok", "right 4 1000", "up", "ok", "ok", "red", "ok 1 3000", "right 1 2000", "down 2 2000", "ok", "ok", "right 4 1000", "up 2 1000", "ok", "ok", "red", "ok 1 3000", "right 1 1000", "down", "ok", "ok", "right 4 1000", "up 3 1000", "ok", "ok"]) sleep(120) RC.push(["standby 1 5000", "standby 1 10000"]) UART.start_app("scheduler") GRAB.compare(testcase) ############################ TestCase 35 ########################################## testcase = 35 status("active") UART.start_app("channelseditor") RC.push(["red 1 3000", "1 5 2000", "ok 1 3000", "right 1 2000", "green 1 3000", "ok 5 2000", "exit 1 3000", "left 1 3000"]) sleep(120) RC.push(["standby 1 5000", "standby 1 10000"]) UART.start_app("channelseditor") RC.push(["down 2 1000"]) GRAB.compare(testcase) ############################ TestCase 36 ########################################## testcase = 36 status("active") GRAB.compare(testcase) ############################ TestCase 37 ########################################## testcase = 37 status("active") UART.default_settings() OPER.search() RC.push(["exit 2 3000"]) UART.start_app("settings") RC.push(["down", "right", "down", "right", "down", "right"]) sleep(120) UART.reboot() UART.start_app("settings") GRAB.compare(testcase) ############################ TestCase 38 ########################################## testcase = 38 status("active") RC.push(["right", "down", "left", "exit", "down", "right", "exit", "down", "right", "down", "right", "ok 1 8000", "left", "ok", "down", "right"]) sleep(120) UART.reboot() UART.start_app("settings") RC.push(["left 10 2000", "right 1 3000"]) GRAB.compare(testcase) ############################ TestCase 39 ########################################## testcase = 39 status("active") RC.push(["exit 2 3000", "format 2 1000", "ok"]) sleep(120) UART.reboot() RC.push(["exit 2 10000", "format"]) GRAB.compare(testcase) ############################ TestCase 40 ########################################## testcase = 40 status("active") UART.start_app("settings") RC.push(["left 10 2000", "right 2 3000", "down", "right", "down", "left", "down", "right"]) sleep(120) UART.reboot() UART.start_app("settings") RC.push(["left 10 2000", "right 2 3000"]) GRAB.compare(testcase) ############################ TestCase 41 ########################################## testcase = 41 status("active") RC.push(["exit 2 3000", "0 1 5000", "down 1 3000", "green 1 2000", "down", "ok"]) sleep(120) UART.reboot() RC.push(["exit 2 10000", "green 1 3000"]) GRAB.compare(testcase) ############################ TestCase 42 ########################################## testcase = 42 status("active") UART.start_app("settings") RC.push(["left 10 2000", "right 3 3000"]) RC.push(["down 1 3000", "right", "down 2 2000", "right"]) sleep(120) UART.reboot() RC.push(["exit 2 5000"]) UART.start_app("settings") RC.push(["left 10 2000", "right 3 3000"]) GRAB.compare(testcase) ############################ TestCase 43 ########################################## testcase = 43 status("active") RC.push(["exit 2 3000", "clock 1 2000"]) sleep(120) UART.reboot() RC.push(["exit 1 8000"]) GRAB.compare(testcase) ############################ TestCase 44 ########################################## testcase = 44 status("active") UART.start_app("settings") RC.push(["left 10 2000", "right 5 3000"]) RC.push(["down 1 3000", "right", "down 1 2000", "right", "down 1 2000", "right", "down 1 2000", "right", "down 1 2000", "right", "down 1 2000", "right"]) sleep(120) UART.reboot() UART.start_app("settings") RC.push(["left 10 2000", "right 5 3000"]) GRAB.compare(testcase) ############################ TestCase 45 ########################################## testcase = 45 status("active") UART.start_app("settings") RC.push(["left 10 2000", "right 6 3000"]) RC.push(["down 1 3000", "ok", "0 4 2000", "0 4 2000", "ok 1 2000", "down 2 2000", "right"]) sleep(120) UART.reboot() UART.start_app("settings") RC.push(["left 10 2000", "right 6 3000"]) GRAB.compare(testcase) ############################ TestCase 46 ########################################## testcase = 46 status("active") GRAB.compare(testcase) OPER.unset_pin() ############################ TestCase 47 ########################################## testcase = 47 status("active") UART.start_app("satelliteeditor") RC.push(["red 1 3000", "down", "right", "down", "right 2 2000", "down", "left 5 2000", "1 5 2000", "down", "left 5 2000", "1 2 2000", "2 3 2000", "down", "right", "down", "right", "down 2 2000", "ok 2 2000"]) sleep(120) UART.reboot() UART.start_app("satelliteeditor") RC.push(["down 2 1000", "ok 2 3000"]) GRAB.compare(testcase) ############################ TestCase 48 ########################################## testcase = 48 status("active") UART.start_app("scheduler") RC.push(["red", "ok 1 3000", "right 1 2000", "ok", "ok", "right 4 1000", "up", "ok", "ok", "red", "ok 1 3000", "right 1 2000", "down 2 2000", "ok", "ok", "right 4 1000", "up 2 1000", "ok", "ok", "red", "ok 1 3000", "right 1 1000", "down", "ok", "ok", "right 4 1000", "up 3 1000", "ok", "ok", "OK 1 1000", "right 1 1000", "right 1 1000", "right 1 1000", "right 1 1000", "up 1 1000", "up 1 1000", "up 1 1000", "OK 1 1000", "OK 1 10000", "exit 1 1000", "exit 1 1000", "exit 1 1000"]) sleep(120) UART.reboot() RC.push(["exit 1 10000", "clock 1 10000"]) UART.start_app("scheduler") GRAB.compare(testcase) ############################ TestCase 49 ########################################## testcase = 49 status("active") UART.start_app("channelseditor") RC.push(["red 1 3000", "1 5 2000", "ok 1 3000", "ok 1 2000", "ok 1 3000", "ok 5 2000", "exit 1 3000", "left 1 3000"]) sleep(120) UART.reboot() UART.start_app("channelseditor") GRAB.compare(testcase) ############################ TestCase 50 ########################################## testcase = 50 status("manual") GRAB.compare(testcase) ############################ TestCase 51 ########################################## testcase = 51 status("manual") GRAB.compare(testcase) ################################################################################### status("active") MOD.stop(Modulator) GRAB.stop_capture()
#!/usr/bin/env python import sql import serial import time import UART data = UART.conf_uart() set = ['123', '23', '456'] '''stt = sql.get_uartkey() i=int(0) ser = 'ser' uart = [] set = ['123','1','456'] for key in stt: i=i+1 uart.append(ser+str(i)) print ser+str(i),key.uart,int(key.speed),key.databit,key.checkbit,key.stopbit,'\r' uart[i-1]= serial.Serial('/dev/'+key.uart,int(key.speed),int(key.databit),key.checkbit,int(key.stopbit)) print uart''' data.send_message(set) '''while True: for i in range(0,len(uart)): uart[i].write("1234") time.sleep(1)'''
def runTest(): status("active") TestName = "Helper" ScriptName = "functionality" ScriptIndex = "1" Grabber = DO.grab_define() platform = DO.load_platform() Modulation = "DVBS" FEC = "3/4" SR = "27500000" Stream = "\\X_0000_00000_MUX_32000_EPG_Software_20130328a.ts" Stream2 = "\\DRE Services\\X_0000_00000_MUX_38000_DRE4_Infocas_1.ts" Stream3 = "\\DRE Services\\X_0000_00000_MUX_38000_DRE4_TVMail_1.ts" Frequency = 1476 Modulator = "1" COM = "COM7" settings = [ScriptName, ScriptIndex, Grabber, Modulation, FEC, SR, Stream, Frequency, Modulator, COM] DO.save_settings(settings) GRAB.start_capture() MOD.stop(Modulator) # macros searching_from_wizard_general_E501 = ["ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_general_english_E501 = ["up 2 3400", "right 1 1000", "down 2 3400", "ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_centre_E501 = ["ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "down", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_centre_english_E501 = ["up 3 3400", "right 1 1000", "down 3 3400", "ok 1 3400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 22200", "ok 1 10000", "exit 2 3000"] searching_from_wizard_south_E501 = ["ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "down", "down", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_general_ALL = ["ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_general_english_ALL = ["up 2 3400", "right 1 1000", "down 2 3400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 22200", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_centre_ALL = ["ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "down", "ok 1 5000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_centre_english_ALL = ["up 3 3400", "right 1 1000", "down 3 3400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 22200", "down 1 1000", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_south_ALL = ["ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "down", "down", "ok 1 15000", "ok 1 10000", "exit 2 3000"] load_regions_E501 = ["ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200"] load_regions_english_E501 = ["up 2 2400", "right 1 1000", "down 2 2400", "ok 1 3400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 22200"] load_regions_ALL = ["ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200"] load_regions_english_ALL = ["up 2 2400", "right 1 1000", "down 2 2400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 22200"] """############################ TestCase 1 ########################################## testcase = 1 status("active") MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) UART.default_settings() UART.start_app("") RC.push(["key_1", "key_2", "key_3"]) # set of the RC buttons sleep(0) RC.push("[macros_name]") # RC macros from remote_control.ini file GRAB.compare(testcase)""" ############################ TestCase 1 ########################################## testcase = 1 status("active") MOD.stop(Modulator) UART.default_settings() RC.push(["exit 1 1000"]) GRAB.compare(testcase) ############################ TestCase 2 ########################################## testcase = 2 status("active") UART.default_settings() MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) RC.push(["ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "ok 1 15000", "ok 1 10000"]) if platform == "E212": RC.push(["left 1 1000", "ok 1 1000"]) GRAB.compare(testcase) ############################ TestCase 3 ########################################## testcase = 3 # Terrestrial search status("inactive") UART.default_settings RC.push([""]) GRAB.compare(testcase) ############################ TestCase 4 ########################################## testcase = 4 # Siberia status("inactive") RC.push([""]) GRAB.compare(testcase) ############################ TestCase 5 ########################################## testcase = 5 # Siberia status("inactive") RC.push([""]) GRAB.compare(testcase) ############################ TestCase 6 ########################################## testcase = 6 status("active") UART.default_settings() RC.push(["ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "ok 1 15000", "ok 1 10000"]) if platform == "E212": RC.push(["left 1 1000", "ok 1 1000"]) RC.push(["standby 1 10000", "standby 1 15000"]) GRAB.compare(testcase) ############################ TestCase 7 ########################################## testcase = 7 status("active") UART.default_settings() RC.push(["ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "ok 1 15000", "ok 1 10000"]) if platform == "E212": RC.push(["left 1 1000", "ok 1 1000"]) UART.reboot() GRAB.compare(testcase) ############################ TestCase 8 ########################################## testcase = 8 status("active") RC.push(["standby 1 10000", "standby 1 15000"]) GRAB.compare(testcase) ############################ TestCase 9 ########################################## testcase = 9 status("active") RC.push(["clock 1 2000"]) GRAB.compare(testcase) RC.push(["clock 1 2000"]) ############################ TestCase 10 ########################################## testcase = 10 status("active") RC.push(["standby 1 10000", "standby 1 15000"]) GRAB.compare(testcase) ############################ TestCase 11 ########################################## testcase = 11 status("active") RC.push(["Tv/radio 1 1000"]) GRAB.compare(testcase) RC.push(["Tv/radio 1 1000"]) ############################ TestCase 12 ########################################## testcase = 12 status("active") RC.push(["standby 1 10000", "standby 1 15000"]) GRAB.compare(testcase) ############################ TestCase 13 ########################################## testcase = 13 status("active") RC.push(["ID 1 1000"]) GRAB.compare(testcase) #------- Следующая строка добавлена для избавления от тормозов Телегида при первом запуске------ RC.push(["guide 1 20000", "exit 1 1000", "guide 1 10000", "exit 1 1000", "guide 1 10000", "exit 1 1000"]) ############################ TestCase 14 ########################################## testcase = 14 status("active") RC.push(["standby 1 15000", "standby 1 15000"]) GRAB.compare(testcase) ############################ TestCase 15 ########################################## testcase = 15 status("active") RC.push(["guide 1 10000", "right 1 3000", "left 1 3000"]) GRAB.compare(testcase) ############################ TestCase 16 ########################################## testcase = 16 status("active") RC.push(["standby 1 15000", "standby 1 15000"]) GRAB.compare(testcase) ############################ TestCase 17 ########################################## testcase = 17 status("active") RC.push(["help 1 1000"]) GRAB.compare(testcase) ############################ TestCase 18 ########################################## testcase = 18 status("active") RC.push(["standby 1 15000", "standby 1 15000"]) GRAB.compare(testcase) ############################ TestCase 19 ########################################## testcase = 19 status("active") RC.push(["ChUp 1 2000"]) GRAB.compare(testcase) ############################ TestCase 20 ########################################## testcase = 20 status("active") RC.push(["standby 1 15000", "standby 1 15000"]) GRAB.compare(testcase) ############################ TestCase 21 ########################################## testcase = 21 status("active") RC.push(["ChDown 1 2000"]) GRAB.compare(testcase) ############################ TestCase 22 ########################################## testcase = 22 status("active") RC.push(["standby 1 15000", "standby 1 15000"]) GRAB.compare(testcase) ############################ TestCase 23 ########################################## testcase = 23 status("active") RC.push(["Rec 1 2000"]) GRAB.compare(testcase) ############################ TestCase 24 ########################################## testcase = 24 status("active") RC.push(["standby 1 15000", "standby 1 15000"]) GRAB.compare(testcase) ############################ TestCase 25 ########################################## testcase = 25 status("active") RC.push(["play/pause 1 1000"]) GRAB.compare(testcase) ############################ TestCase 26 ########################################## testcase = 26 status("active") RC.push(["standby 1 15000", "standby 1 15000"]) GRAB.compare(testcase) ############################ TestCase 27 ########################################## testcase = 27 status("active") RC.push(["stop 1 1000"]) GRAB.compare(testcase) ############################ TestCase 28 ########################################## testcase = 28 status("active") RC.push(["standby 1 15000", "standby 1 15000"]) GRAB.compare(testcase) ############################ TestCase 29 ########################################## testcase = 29 status("active") RC.push(["RecList 1 1000"]) GRAB.compare(testcase) ############################ TestCase 30 ########################################## testcase = 30 status("active") RC.push(["standby 1 15000", "standby 1 15000"]) GRAB.compare(testcase) ############################ TestCase 31 ########################################## testcase = 31 status("active") RC.push(["cinemahalls 1 1000"]) GRAB.compare(testcase) ############################ TestCase 32 ########################################## testcase = 32 status("active") RC.push(["standby 1 15000", "standby 1 15000"]) GRAB.compare(testcase) ############################ TestCase 33 ########################################## testcase = 33 status("active") RC.push(["www 1 1000"]) GRAB.compare(testcase) ############################ TestCase 34 ########################################## testcase = 34 status("active") RC.push(["standby 1 15000", "standby 1 15000"]) GRAB.compare(testcase) ############################ TestCase 35 ########################################## testcase = 35 status("active") RC.push(["format 1 1000"]) GRAB.compare(testcase) ############################ TestCase 36 ########################################## testcase = 36 status("active") RC.push(["standby 1 15000", "standby 1 15000"]) GRAB.compare(testcase) ############################ TestCase 37 ########################################## testcase = 37 status("active") RC.push(["mail 1 1000"]) GRAB.compare(testcase) ############################ TestCase 38 ########################################## testcase = 38 status("active") RC.push(["standby 1 15000", "standby 1 15000"]) GRAB.compare(testcase) ############################ TestCase 39 ########################################## testcase = 39 status("active") RC.push(["Tv/chat 1 1000"]) GRAB.compare(testcase) ############################ TestCase 40 ########################################## testcase = 40 status("active") RC.push(["standby 1 15000", "standby 1 15000"]) GRAB.compare(testcase) ############################ TestCase 41 ########################################## testcase = 41 status("active") RC.push(["0 1 1000"]) GRAB.compare(testcase) ############################ TestCase 42 ########################################## testcase = 42 status("active") RC.push(["standby 1 15000", "standby 1 15000"]) GRAB.compare(testcase) ############################ TestCase 43 ########################################## testcase = 43 status("active") RC.push(["1 1 1000"]) GRAB.compare(testcase) ############################ TestCase 44 ########################################## testcase = 44 status("active") RC.push(["standby 1 15000", "standby 1 15000"]) GRAB.compare(testcase) ############################ TestCase 45 ########################################## testcase = 45 status("active") RC.push(["2 1 1000"]) GRAB.compare(testcase) ############################ TestCase 46 ########################################## testcase = 46 status("active") RC.push(["standby 1 15000", "standby 1 15000"]) GRAB.compare(testcase) ############################ TestCase 47 ########################################## testcase = 47 status("active") RC.push(["3 1 1000"]) GRAB.compare(testcase) ############################ TestCase 48 ########################################## testcase = 48 status("active") RC.push(["standby 1 15000", "standby 1 15000"]) GRAB.compare(testcase) ############################ TestCase 49 ########################################## testcase = 49 status("active") RC.push(["4 1 1000"]) GRAB.compare(testcase) ############################ TestCase 50 ########################################## testcase = 50 status("active") RC.push(["standby 1 15000", "standby 1 15000"]) GRAB.compare(testcase) ############################ TestCase 51 ########################################## testcase = 51 status("active") RC.push(["5 1 1000"]) GRAB.compare(testcase) ############################ TestCase 52 ########################################## testcase = 52 status("active") RC.push(["standby 1 15000", "standby 1 15000"]) GRAB.compare(testcase) ############################ TestCase 53 ########################################## testcase = 53 status("active") RC.push(["6 1 1000"]) GRAB.compare(testcase) ############################ TestCase 54 ########################################## testcase = 54 status("active") RC.push(["standby 1 15000", "standby 1 15000"]) GRAB.compare(testcase) ############################ TestCase 55 ########################################## testcase = 55 status("active") RC.push(["7 1 1000"]) GRAB.compare(testcase) ############################ TestCase 56 ########################################## testcase = 56 status("active") RC.push(["standby 1 15000", "standby 1 15000"]) GRAB.compare(testcase) ############################ TestCase 57 ########################################## testcase = 57 status("active") RC.push(["8 1 1000"]) GRAB.compare(testcase) ############################ TestCase 58 ########################################## testcase = 58 status("active") RC.push(["standby 1 15000", "standby 1 15000"]) GRAB.compare(testcase) ############################ TestCase 59 ########################################## testcase = 59 status("active") RC.push(["9 1 1000"]) GRAB.compare(testcase) ############################ TestCase 60 ########################################## testcase = 60 status("active") RC.push(["standby 1 15000", "standby 1 15000"]) GRAB.compare(testcase) ############################ TestCase 61 ########################################## testcase = 61 status("active") RC.push(["red 1 1000"]) GRAB.compare(testcase) ############################ TestCase 62 ########################################## testcase = 62 status("active") RC.push(["standby 1 15000", "standby 1 15000"]) GRAB.compare(testcase) ############################ TestCase 63 ########################################## testcase = 63 status("active") RC.push(["green 1 1000"]) GRAB.compare(testcase) ############################ TestCase 64 ########################################## testcase = 64 status("active") RC.push(["standby 1 15000", "standby 1 15000"]) GRAB.compare(testcase) ############################ TestCase 65 ########################################## testcase = 65 status("active") RC.push(["yellow 1 1000"]) GRAB.compare(testcase) ############################ TestCase 66 ########################################## testcase = 66 status("active") RC.push(["standby 1 15000", "standby 1 15000"]) GRAB.compare(testcase) ############################ TestCase 67 ########################################## testcase = 67 status("active") RC.push(["blue 1 1000"]) GRAB.compare(testcase) ############################ TestCase 68 ########################################## testcase = 68 status("active") RC.push(["standby 1 15000", "standby 1 15000"]) GRAB.compare(testcase) ############################ TestCase 69 ########################################## testcase = 69 status("active") RC.push(["exit 1 1000"]) GRAB.compare(testcase) ############################ TestCase 70 ########################################## testcase = 70 status("active") RC.push(["standby 1 15000", "standby 1 15000"]) GRAB.compare(testcase) ############################ TestCase 71 ########################################## testcase = 71 status("active") RC.push(["left 1 1000"]) GRAB.compare(testcase) ############################ TestCase 72 ########################################## testcase = 72 status("active") RC.push(["standby 1 15000", "standby 1 15000"]) GRAB.compare(testcase) ############################ TestCase 73 ########################################## testcase = 73 status("active") RC.push(["right 1 1000"]) GRAB.compare(testcase) ############################ TestCase 74 ########################################## testcase = 74 status("active") RC.push(["standby 1 15000", "standby 1 15000"]) GRAB.compare(testcase) ############################ TestCase 75 ########################################## testcase = 75 status("active") RC.push(["ok 1 1000"]) GRAB.compare(testcase) ############################ TestCase 76 ########################################## testcase = 76 status("active") RC.push(["standby 1 15000", "standby 1 15000"]) GRAB.compare(testcase) ############################ TestCase 77 ########################################## testcase = 77 status("active") RC.push(["right 1 1000", "OK 1 1000"]) GRAB.compare(testcase) ############################ TestCase 78 ########################################## testcase = 78 status("active") RC.push(["standby 1 15000", "standby 1 15000"]) GRAB.compare(testcase) ############################ TestCase 79 ########################################## testcase = 79 status("active") RC.push(["right 1 1000", "right 1 1000", "OK 1 1000"]) GRAB.compare(testcase) ############################ TestCase 80 ########################################## testcase = 80 status("active") UART.default_settings() RC.push(["ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "ok 1 15000", "ok 1 10000"]) if platform == "E212": RC.push(["left 1 1000", "ok 1 1000"]) GRAB.compare(testcase) ############################ TestCase 81 ########################################## testcase = 81 status("active") RC.push(["VolUp 1 1000"]) GRAB.compare(testcase) ############################ TestCase 82 ########################################## testcase = 82 status("active") RC.push(["standby 1 15000", "standby 1 15000"]) GRAB.compare(testcase) ############################ TestCase 83 ########################################## testcase = 83 status("active") RC.push(["VolDown 1 1000"]) GRAB.compare(testcase) ############################ TestCase 84 ########################################## testcase = 84 status("active") RC.push(["standby 1 15000", "standby 1 15000"]) GRAB.compare(testcase) ############################ TestCase 85 ########################################## testcase = 85 status("active") RC.push(["stb 1 1000"]) GRAB.compare(testcase) ############################ TestCase 86 ########################################## testcase = 86 status("active") RC.push(["standby 1 15000", "standby 1 15000"]) GRAB.compare(testcase) ############################ TestCase 87 ########################################## testcase = 87 status("active") RC.push(["mute 1 1000"]) GRAB.compare(testcase) RC.push(["mute 1 1000"]) ############################ TestCase 88 ########################################## testcase = 88 status("active") RC.push(["standby 1 15000", "standby 1 15000"]) GRAB.compare(testcase) ############################ TestCase 89 ########################################## testcase = 89 status("active") RC.push(["menu 1 1000"]) GRAB.compare(testcase) ############################ TestCase 90 ########################################## testcase = 90 status("active") RC.push(["standby 1 15000", "standby 1 15000"]) GRAB.compare(testcase) ############################ TestCase 91 ########################################## testcase = 91 status("active") RC.push(["last 1 1000"]) GRAB.compare(testcase) ############################ TestCase 92 ########################################## testcase = 92 status("active") RC.push(["standby 1 15000", "standby 1 15000"]) GRAB.compare(testcase) ############################ TestCase 93 ########################################## testcase = 93 status("active") RC.push(["standby 1 15000", "standby 1 15000"]) GRAB.compare(testcase) ############################ TestCase 94 ########################################## testcase = 94 status("active") UART.default_settings() MOD.stop(Modulator) MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) RC.push(["ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "ok 1 15000", "ok 1 10000"]) if platform == "E212": RC.push(["left 1 1000", "ok 1 1000"]) RC.push(["6 1 1000"]) #----Setting PIN and blocking the channel---- UART.start_app("settings") RC.push(["right 1 1000", "right 1 1000", "right 1 1000", "right 1 1000", "right 1 1000", "right 1 1000", "down 1 1000", "OK 1 5000", "1 1 1000", "1 1 1000", "1 1 1000", "1 1 1000", "1 1 1000", "1 1 1000", "1 1 1000", "1 1 2000", "OK 1 1000", "exit 1 1000", "exit 1 1000", "exit 1 1000"]) UART.start_app("channelseditor") RC.push(["right 1 1000", "exit 1 1000", "exit 1 1000", "exit 1 1000", "exit 1 1000", "0 1 1000"]) OPER.channel_block() RC.push(["exit 1 1000", "exit 1 1000", "exit 1 1000", "exit 1 1000", "0 1 1000"]) #----/Setting PIN and blocking the channel---- RC.push(["standby 1 60000", "standby 1 15000"]) GRAB.compare(testcase) ############################ TestCase 95 ########################################## testcase = 95 status("active") RC.push(["1 1 1000", "1 1 1000", "1 1 1000", "1 1 10500"]) GRAB.compare(testcase) ############################ TestCase 96 ########################################## testcase = 96 status("active") #----Unsetting PIN---- UART.start_app("settings") RC.push(["right 1 1000", "right 1 1000", "right 1 1000", "right 1 1000", "right 1 1000", "right 1 1000", "down 1 1000", "OK 1 3000", "1 1 1000", "1 1 1000", "1 1 1000", "1 1 2000", "exit 1 1000", "exit 1 1000", "exit 1 1000"]) #----/Unsetting PIN---- UART.start_app("scheduler") RC.push(["red 1 1000", "OK 1 1000", "down 1 1000", "OK 1 1000", "OK 1 1000", "right 1 1000", "up 1 1000", "up 1 1000", "OK 1 1000", "OK 1 1000", "exit 1 1000", "exit 1 1000", "exit 1 1000", "standby 1 120000"]) GRAB.compare(testcase) ############################ TestCase 97 ########################################## testcase = 97 status("manual") GRAB.compare(testcase) ############################ TestCase 98 ########################################## testcase = 98 status("active") MOD.stop(Modulator) UART.default_settings() MOD.play_stream(Modulation, FEC, SR, Stream2, Frequency, Modulator) RC.push(["ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "ok 1 15000", "ok 1 10000"]) if platform == "E212": RC.push(["left 1 1000", "ok 1 1000"]) MOD.stop(Modulator) UART.reboot() RC.push(["exit 1 1000", "down 1 5000", "standby 1 15000", "standby 1 15000"]) MOD.play_stream(Modulation, FEC, SR, Stream2, Frequency, Modulator) sleep(40) GRAB.compare(testcase) ############################ TestCase 99 ########################################## testcase = 99 status("active") RC.push(["exit 1 2000"]) GRAB.compare(testcase) ############################ TestCase 100 ########################################## testcase = 100 status("active") MOD.stop(Modulator) UART.default_settings() MOD.play_stream(Modulation, FEC, SR, Stream3, Frequency, Modulator) RC.push(["ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "ok 1 15000", "ok 1 10000"]) if platform == "E212": RC.push(["left 1 1000", "ok 1 1000"]) MOD.stop(Modulator) UART.reboot() RC.push(["exit 1 1000", "down 1 5000", "standby 1 15000", "standby 1 15000"]) MOD.play_stream(Modulation, FEC, SR, Stream3, Frequency, Modulator) sleep(80) GRAB.compare(testcase) ############################ TestCase 101 ########################################## testcase = 101 status("manual") GRAB.compare(testcase) ############################ TestCase 102 ########################################## testcase = 102 status("active") MOD.stop(Modulator) UART.default_settings() MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) RC.push(["ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "ok 1 15000", "ok 1 10000"]) if platform == "E212": RC.push(["left 1 1000", "ok 1 1000"]) RC.push(["right 1 1000", "right 1 1000", "OK 1 1000", "standby 1 15000", "standby 1 15000"]) GRAB.compare(testcase) ############################ TestCase 103 ########################################## testcase = 103 status("active") MOD.stop(Modulator) UART.default_settings() MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) RC.push(["ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "ok 1 15000", "ok 1 10000"]) if platform == "E212": RC.push(["left 1 1000", "ok 1 1000"]) RC.push(["right 1 1000", "right 1 1000", "OK 1 1000"]) UART.reboot() GRAB.compare(testcase) ############################ TestCase 104 ########################################## testcase = 104 status("active") MOD.stop(Modulator) UART.default_settings() MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) RC.push(["ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "ok 1 15000", "ok 1 10000"]) if platform == "E212": RC.push(["left 1 1000", "ok 1 1000"]) RC.push(["right 1 1000", "right 1 1000", "OK 1 1000"]) UART.start_app("wizard") RC.push(["ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "ok 1 15000", "ok 1 10000", "standby 1 15000", "standby 1 15000"]) GRAB.compare(testcase) ############################ TestCase 105 ########################################## testcase = 105 status("manual") GRAB.compare(testcase) ################################################################################### status("active") MOD.stop(Modulator) GRAB.stop_capture()
def main(): #initializing objects for use global testlogger testlogger = Logger.getLogger() #get logger testlogger.info("Test Starts at %s", time.ctime()) #initial log CmdLineArgObject = CommandLineArguments.CommandLineArgs( sys.argv, testlogger) #get CommandLineArgs CmdLineArgObject.printValues() #printValues randObj = random.Random(CmdLineArgObject.randomSeed) #Create Excel File for Report file = Logger.getReportFile() #initialize CAN object CanObj = CanBus.CanBus(logger=testlogger) #initialize UART Object UartBus = UART.SerialBus(baudrate=115200, COM=CmdLineArgObject.COMport, logger=testlogger) #find the test files we need dir_path = os.path.dirname(os.path.realpath(__file__)) + '\Tests' testlogger.info("Looking for a files in path = %s " % dir_path) testFiles = Logger.getPythonTestFiles(dir_path) sys.path.append(dir_path) #if only test has to be run then add only that test in if CmdLineArgObject.TestID != None: testFound = False for testname in testFiles: if testname.startswith(CmdLineArgObject.TestID): testFound = True testFiles.clear() testFiles.append(testname) break if testFound == False: testlogger.info("Wrong testID = %s", CmdLineArgObject.TestID) raise #start importing tests one by one for testname in testFiles: testname = testname[:-3] moduleObj = __import__(testname) testObj = moduleObj.TestProcedure(testlogger, randObj, CanObj, UartBus) cycles = CmdLineArgObject.CycleCount while cycles: testlogger.info("--" * 20) testlogger.info("Running test = %s CycleCount = %d", testname, cycles) testlogger.info("--" * 20) testObj.Run() cycles -= 1 testlogger.info("--" * 20) if testObj.EndOfOperation() == True: testlogger.info("%s is passed...!" % testname) file.write(testname + ',' + 'Pass\n') Logger.passlog(testlogger) else: testlogger.info("%s is failed...!" % testname) file.write(testname + ',' + 'Fail\n') Logger.faillog(testlogger) file.close()
def runTest(): status("active") TestName = "Infobanner_2" ScriptName = "main" ScriptIndex = "1" Grabber = DO.grab_define() platform = DO.load_platform() Modulation = "DVBS" FEC = "3/4" SR = "27500000" Stream = "\\X_0000_00000_MUX_32000_EPG_Software_20130328a.ts" Stream_1 = "\\DRE Services\\X_0000_00000_MUX_38000_DRE4_Infocas_1.ts" Stream_2 = "\\DRE Services\\X_0000_00000_MUX_38000_DRE4_TVMail_1.ts" Frequency = 1476 Modulator = "1" COM = "COM7" settings = [ScriptName, ScriptIndex, Grabber, Modulation, FEC, SR, Stream, Frequency, Modulator, COM] DO.save_settings(settings) GRAB.start_capture() MOD.stop(Modulator) # macros searching_from_wizard_general_E501 = ["ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_general_english_E501 = ["up 2 3400", "right 1 1000", "down 2 3400", "ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_centre_E501 = ["ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "down", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_centre_english_E501 = ["up 3 3400", "right 1 1000", "down 3 3400", "ok 1 3400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 22200", "ok 1 10000", "exit 2 3000"] searching_from_wizard_south_E501 = ["ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "down", "down", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_general_ALL = ["ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_general_english_ALL = ["up 2 3400", "right 1 1000", "down 2 3400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 22200", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_centre_ALL = ["ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "down", "ok 1 5000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_centre_english_ALL = ["up 3 3400", "right 1 1000", "down 3 3400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 22200", "down 1 1000", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_south_ALL = ["ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "down", "down", "ok 1 15000", "ok 1 10000", "exit 2 3000"] load_regions_E501 = ["ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200"] load_regions_english_E501 = ["up 2 2400", "right 1 1000", "down 2 2400", "ok 1 3400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 22200"] load_regions_ALL = ["ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200"] load_regions_english_ALL = ["up 2 2400", "right 1 1000", "down 2 2400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 22200"] ############################ TestCase 1 ########################################## testcase = 1 status("active") MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) UART.default_settings() RC.push(["exit 1 3000", "red 1 3000"]) # RC macros from remote_control.ini file GRAB.compare(testcase) ############################ TestCase 2 ########################################## testcase = 2 status("active") UART.default_settings() OPER.search() MOD.stop(Modulator) MOD.play(Modulator) RC.push(["exit 1 3000", "red 1 3000"]) GRAB.compare(testcase) ############################ TestCase 3 ########################################## testcase = 3 status("active") RC.push(["exit 1 3000", "green 1 3000"]) GRAB.compare(testcase) ############################ TestCase 4 ########################################## testcase = 4 status("active") RC.push(["exit 1 3000", "6 1 5000", "yellow 1 3000"]) GRAB.compare(testcase) ############################ TestCase 5 ########################################## testcase = 5 status("active") RC.push(["exit 2 5000", "0 1 5000", "play/pause 1 50000", "play/pause 1 5000", "red 1 5000"]) GRAB.compare(testcase) ############################ TestCase 6 ########################################## testcase = 6 status("active") RC.push(["exit 1 5000", "green 1 5000"]) GRAB.compare(testcase) ############################ TestCase 7 ########################################## testcase = 7 status("active") RC.push(["exit 1 5000", "yellow 1 5000"]) GRAB.compare(testcase) ############################ TestCase 8 ########################################## testcase = 8 status("active") RC.push(["stop 1 5000", "exit 2 5000", "red 1 5000", "up"]) GRAB.compare(testcase) ############################ TestCase 9 ########################################## testcase = 9 status("active") RC.push(["down 1 3000"]) GRAB.compare(testcase) ############################ TestCase 10 ########################################## testcase = 10 status("active") RC.push(["up 1 3000", "left 1 3000"]) GRAB.compare(testcase) ############################ TestCase 11 ########################################## testcase = 11 status("active") RC.push(["right 2 3000"]) GRAB.compare(testcase) ############################ TestCase 12 ########################################## testcase = 12 status("active") RC.push(["red 1 3000"]) GRAB.compare(testcase) ############################ TestCase 13 ########################################## testcase = 13 status("active") RC.push(["red 1 3000", "mute"]) GRAB.compare(testcase) ############################ TestCase 14 ########################################## testcase = 14 status("active") RC.push(["exit 1 3000"]) GRAB.compare(testcase) ############################ TestCase 15 ########################################## testcase = 15 status("active") RC.push(["red 1 3000", "standby 1 5000", "standby 1 10000"]) GRAB.compare(testcase) ############################ TestCase 16 ########################################## testcase = 16 status("active") RC.push(["exit 1 3000", "red 1 5000", "menu 1 3000"]) GRAB.compare(testcase) ############################ TestCase 17 ########################################## testcase = 17 status("active") RC.push(["exit 1 3000", "red 1 5000", "VolUp 1 2500"]) GRAB.compare(testcase) ############################ TestCase 18 ########################################## testcase = 18 status("active") RC.push(["VolDown 1 2500"]) GRAB.compare(testcase) ############################ TestCase 19 ########################################## testcase = 19 status("active") RC.push(["ChUp 1 2500"]) GRAB.compare(testcase) ############################ TestCase 20 ########################################## testcase = 20 status("active") RC.push(["ChDown 1 2500"]) GRAB.compare(testcase) ############################ TestCase 21 ########################################## testcase = 21 status("active") RC.push(["last 1 3000"]) GRAB.compare(testcase) ############################ TestCase 22 ########################################## testcase = 22 status("active") RC.push(["red 1 5000", "1 1 3000"]) GRAB.compare(testcase) ############################ TestCase 23 ########################################## testcase = 23 status("active") RC.push(["left 1 3000", "ok 1 3000"]) GRAB.compare(testcase) ############################ TestCase 24 ########################################## testcase = 24 status("active") RC.push(["green 1 3000"]) GRAB.compare(testcase) ############################ TestCase 25 ########################################## testcase = 25 status("active") RC.push(["exit 1 3000", "6 1 5000", "red 1 3000", "yellow 1 5000"]) GRAB.compare(testcase) ############################ TestCase 26 ########################################## testcase = 26 status("active") RC.push(["blue 1 3000"]) GRAB.compare(testcase) ############################ TestCase 27 ########################################## testcase = 27 status("active") RC.push(["exit 2 3000", "rec 1 3000"]) GRAB.compare(testcase) ############################ TestCase 28 ########################################## testcase = 28 status("active") RC.push(["red 1 3000", "rec 1 3000"]) GRAB.compare(testcase) ############################ TestCase 29 ########################################## testcase = 29 status("active") RC.push(["left 1 3000", "ok 1 3000", "exit 2 5000", "play/pause 1 40000"]) GRAB.compare(testcase) ############################ TestCase 30 ########################################## testcase = 30 status("active") RC.push(["red 1 5000"]) GRAB.compare(testcase) ############################ TestCase 31 ########################################## testcase = 31 status("active") RC.push(["play/pause 1 5000"]) GRAB.compare(testcase) ############################ TestCase 32 ########################################## testcase = 32 status("active") GRAB.compare(testcase) ############################ TestCase 33 ########################################## testcase = 33 status("active") RC.push(["stop 1 5000"]) GRAB.compare(testcase) ############################ TestCase 34 ########################################## testcase = 34 status("active") RC.push(["exit 2 5000", "0 1 5000", "red 1 3000", "down 1 3000", "up 1 3000"]) GRAB.compare(testcase) ############################ TestCase 35 ########################################## testcase = 35 status("active") RC.push(["down 2 3000"]) GRAB.compare(testcase) ############################ TestCase 36 ########################################## testcase = 36 status("active") RC.push(["exit 2 5000", "6 1 5000", "red 1 3000", "down 2 3000"]) GRAB.compare(testcase) ############################ TestCase 37 ########################################## testcase = 37 status("active") RC.push(["left 1 3000"]) GRAB.compare(testcase) ############################ TestCase 38 ########################################## testcase = 38 status("active") RC.push(["right 1 3000"]) GRAB.compare(testcase) ############################ TestCase 39 ########################################## testcase = 39 status("active") RC.push(["ChUp 1 3000"]) GRAB.compare(testcase) ############################ TestCase 40 ########################################## testcase = 40 status("active") RC.push(["ChDown 1 3000"]) GRAB.compare(testcase) ############################ TestCase 41 ########################################## testcase = 41 status("active") RC.push(["exit 2 5000", "6 1 5000", "red 1 3000", "down 1 3000", "right 3 2000", "ok 1 5000"]) GRAB.compare(testcase) ############################ TestCase 42 ########################################## testcase = 42 status("active") RC.push(["exit 1 3000"]) GRAB.compare(testcase) ############################ TestCase 43 ########################################## testcase = 43 status("active") RC.push(["up 1 3000", "left 1 3000", "ok 1 5000", "down 1 2000", "right 1 2000", "ok 1 3000"]) GRAB.compare(testcase) ############################ TestCase 44 ########################################## testcase = 44 status("active") GRAB.compare(testcase) ############################ TestCase 45 ########################################## testcase = 45 status("active") RC.push(["down 2 3000", "ok 1 3000"]) GRAB.compare(testcase) ############################ TestCase 46 ########################################## testcase = 46 status("active") RC.push(["exit 1 3000"]) GRAB.compare(testcase) ############################ TestCase 47 ########################################## testcase = 47 status("active") RC.push(["exit 2 3000", "6 1 5000", "yellow 1 3000", "ok 1 3000"]) GRAB.compare(testcase) ############################ TestCase 48 ########################################## testcase = 48 status("active") GRAB.compare(testcase) ############################ TestCase 49 ########################################## testcase = 49 status("active") RC.push(["down 2 3000", "ok 1 3000"]) GRAB.compare(testcase) ############################ TestCase 50 ########################################## testcase = 50 status("active") RC.push(["exit 1 3000"]) GRAB.compare(testcase) ############################ TestCase 51 ########################################## testcase = 51 status("active") RC.push(["exit 1 6000"]) GRAB.compare(testcase) ############################ TestCase 52 ########################################## testcase = 52 status("active") RC.push(["yellow 1 3000", "ok 1 3000", "up 2 3000", "ok 1 3000"]) GRAB.compare(testcase) ############################ TestCase 53 ########################################## testcase = 53 status("active") RC.push(["exit 2 6000"]) GRAB.compare(testcase) ############################ TestCase 54 ########################################## testcase = 54 status("active") RC.push(["0 1 6000", "red 1 3000", "down 2 3000"]) GRAB.compare(testcase) ############################ TestCase 55 ########################################## testcase = 55 status("active") RC.push(["ChDown 1 3000"]) GRAB.compare(testcase) ############################ TestCase 56 ########################################## testcase = 56 status("active") RC.push(["ChDown 12 3000"]) GRAB.compare(testcase) ############################ TestCase 57 ########################################## testcase = 57 status("active") RC.push(["ChUp 1 3000"]) GRAB.compare(testcase) ############################ TestCase 58 ########################################## testcase = 58 status("active") RC.push(["ChUp 12 3000"]) GRAB.compare(testcase) ############################ TestCase 59 ########################################## testcase = 59 status("active") RC.push(["down 1 3000"]) GRAB.compare(testcase) ############################ TestCase 60 ########################################## testcase = 60 status("active") RC.push(["down 12 3000"]) GRAB.compare(testcase) ############################ TestCase 61 ########################################## testcase = 61 status("active") RC.push(["up 1 3000"]) GRAB.compare(testcase) ############################ TestCase 62 ########################################## testcase = 62 status("active") RC.push(["up 12 3000"]) GRAB.compare(testcase) ############################ TestCase 63 ########################################## testcase = 63 status("active") RC.push(["exit 1 3000", "ok 1 3000", "down 1 2000", "ok 1 3500"]) GRAB.compare(testcase) ############################ TestCase 64 ########################################## testcase = 64 status("active") RC.push(["id 1 3000", "exit 1 3000"]) GRAB.compare(testcase) ############################ TestCase 65 ########################################## testcase = 65 status("active") RC.push(["0 1 3500"]) GRAB.compare(testcase) ############################ TestCase 66 ########################################## testcase = 66 status("active") RC.push(["6 1 3500"]) GRAB.compare(testcase) ############################ TestCase 67 ########################################## testcase = 67 status("active") RC.push(["0 1 4000"]) GRAB.compare(testcase) ############################ TestCase 68 ########################################## testcase = 68 status("active") RC.push(["red 1 3000", "exit 1 1500"]) GRAB.compare(testcase) ############################ TestCase 69 ########################################## testcase = 69 status("active") RC.push(["red 1 3000", "right 1 2000", "ok 1 3000", "exit 1 1500"]) GRAB.compare(testcase) ############################ TestCase 70 ########################################## testcase = 70 status("active") RC.push(["red 1 3000", "left 3 2000"]) GRAB.compare(testcase) ############################ TestCase 71 ########################################## testcase = 71 status("active") RC.push(["ok 1 3000"]) GRAB.compare(testcase) ############################ TestCase 72 ########################################## testcase = 72 status("active") RC.push(["left 1 2000"]) GRAB.compare(testcase) ############################ TestCase 73 ########################################## testcase = 73 status("active") RC.push(["exit 1 3000", "0 1 5000", "red 1 5000"]) sleep(60) GRAB.compare(testcase) ############################ TestCase 74 ########################################## testcase = 74 status("active") UART.reboot() RC.push(["exit 1 3000", "red 1 5000", "right 1 2000"]) GRAB.compare(testcase) ############################ TestCase 75 ########################################## testcase = 75 status("active") RC.push(["ok 1 5000"]) GRAB.compare(testcase) ############################ TestCase 76 ########################################## testcase = 76 status("active") sleep(120) GRAB.compare(testcase) ############################ TestCase 77 ########################################## testcase = 77 status("active") RC.push(["right 1 3000"]) GRAB.compare(testcase) ############################ TestCase 78 ########################################## testcase = 78 status("active") RC.push(["ok 1 5000"]) GRAB.compare(testcase) ############################ TestCase 79 ########################################## testcase = 79 status("active") RC.push(["right 3 5000"]) GRAB.compare(testcase) ############################ TestCase 80 ########################################## testcase = 80 status("active") GRAB.compare(testcase) ############################ TestCase 81 ########################################## testcase = 81 status("manual") GRAB.compare(testcase) ############################ TestCase 82 ########################################## testcase = 82 status("active") RC.push(["ok 1 5000"]) GRAB.compare(testcase) ############################ TestCase 83 ########################################## testcase = 83 status("active") RC.push(["right 1 5000"]) sleep(120) GRAB.compare(testcase) ############################ TestCase 84 ########################################## testcase = 84 status("active") RC.push(["exit 2 3000", "0 1 5000", "red 1 3000"]) GRAB.compare(testcase) ############################ TestCase 85 ########################################## testcase = 85 status("active") GRAB.compare(testcase) ############################ TestCase 86 ########################################## testcase = 86 status("manual") GRAB.compare(testcase) ############################ TestCase 87 ########################################## testcase = 87 status("active") RC.push(["exit 2 3000", "red 1 5000", "play/pause 1 5000"]) GRAB.compare(testcase) ############################ TestCase 88 ########################################## testcase = 88 status("active") RC.push(["stop 1 5000", "rec 1 5000"]) GRAB.compare(testcase) ############################ TestCase 89 ########################################## testcase = 89 status("active") RC.push(["stop 1 10000", "left 1 2000", "ok 1 3000"]) GRAB.compare(testcase) ############################ TestCase 90 ########################################## testcase = 90 status("active") GRAB.compare(testcase) ############################ TestCase 91 ########################################## testcase = 91 status("active") GRAB.compare(testcase) ############################ TestCase 92 ########################################## testcase = 92 status("manual") GRAB.compare(testcase) ############################ TestCase 93 ########################################## testcase = 93 status("active") RC.push(["exit 2 5000", "6 1 5000", "red 1 3000"]) GRAB.compare(testcase) ############################ TestCase 94 ########################################## testcase = 94 status("active") RC.push(["exit 2 5000", "0 1 5000", "red 1 3000"]) GRAB.compare(testcase) ############################ TestCase 95 ########################################## testcase = 95 status("manual") GRAB.compare(testcase) ############################ TestCase 96 ########################################## testcase = 96 status("active") GRAB.compare(testcase) ############################ TestCase 97 ########################################## testcase = 97 status("active") RC.push(["blue 1 3000"]) GRAB.compare(testcase) ############################ TestCase 98 ########################################## testcase = 98 status("active") GRAB.compare(testcase) ############################ TestCase 99 ########################################## testcase = 99 status("active") MOD.stop(Modulator) GRAB.compare(testcase) ############################ TestCase 100 ########################################## testcase = 100 status("active") MOD.play(Modulator) RC.push(["right 1 3000"]) GRAB.compare(testcase) ############################ TestCase 101 ########################################## testcase = 101 status("active") RC.push(["left 1 3000"]) GRAB.compare(testcase) ############################ TestCase 102 ########################################## testcase = 102 status("active") RC.push(["ChDown 1 3000"]) GRAB.compare(testcase) ############################ TestCase 103 ########################################## testcase = 103 status("active") RC.push(["ChUp 1 3000"]) GRAB.compare(testcase) ############################ TestCase 104 ########################################## testcase = 104 status("active") RC.push(["exit 1 3000"]) GRAB.compare(testcase) ############################ TestCase 105 ########################################## testcase = 105 if platform == "E212": status("active") else: status("inactive") GRAB.compare(testcase) ############################ TestCase 106 ########################################## testcase = 106 status("active") RC.push(["exit 2 4000", "red 1 3000", "cinemahalls 1 3000"]) GRAB.compare(testcase) ############################ TestCase 107 ########################################## testcase = 107 status("active") RC.push(["help 1 3000"]) GRAB.compare(testcase) ############################ TestCase 108 ########################################## testcase = 108 status("active") UART.start_app("scheduler") RC.push(["red", "ok 1 3000", "down 2 1000", "ok", "ok 1 2000", "right 1 1000", "up 2 2000", "ok", "ok", "exit 5 2400", "6 1 5000", "red 1 5000"]) sleep(120) GRAB.compare(testcase) ############################ TestCase 109 ########################################## testcase = 109 status("manual") GRAB.compare(testcase) ############################ TestCase 110 ########################################## testcase = 110 status("active") UART.default_settings() MOD.play_stream(Modulation, FEC, SR, Stream_1, Frequency, Modulator) OPER.search() RC.push(["exit 3 3000"]) MOD.stop(Modulator) MOD.play(Modulator) RC.push(["red 1 40000", "exit 1 3000"]) GRAB.compare(testcase) ############################ TestCase 111 ########################################## testcase = 111 status("active") UART.default_settings() MOD.play_stream(Modulation, FEC, SR, Stream_2, Frequency, Modulator) OPER.search() RC.push(["exit 3 3000"]) MOD.stop(Modulator) MOD.play(Modulator) RC.push(["red 1 34000"]) GRAB.compare(testcase) ############################ TestCase 112 ########################################## testcase = 112 status("active") RC.push(["tv/mail 1 3000"]) GRAB.compare(testcase) ############################ TestCase 113 ########################################## testcase = 113 status("active") RC.push(["sharp 1 3000"]) GRAB.compare(testcase) ############################ TestCase 114 ########################################## testcase = 114 status("active") RC.push(["star 1 3000"]) GRAB.compare(testcase) ################################################################################### status("active") MOD.stop(Modulator) GRAB.stop_capture()
def runTest(): status("active") TestName = "EPG" ScriptName = "genres" ScriptIndex = "1" Grabber = DO.grab_define() platform = DO.load_platform() Modulation = "DVBS" FEC = "3/4" SR = "27500000" Stream = "\\X_0000_00000_MUX_32000_EPG_Software_20130328a.ts" Frequency = 1476 Modulator = "1" COM = "COM7" settings = [ScriptName, ScriptIndex, Grabber, Modulation, FEC, SR, Stream, Frequency, Modulator, COM] DO.save_settings(settings) GRAB.start_capture() MOD.stop(Modulator) # macros searching_from_wizard_general_E501 = ["ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 45000", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_general_english_E501 = ["ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 45000", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_centre_E501 = ["ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 45000", "down", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_centre_english_E501 = ["up 3 3400", "right 1 1000", "down 3 3400", "ok 1 3400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 45000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_south_E501 = ["ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 45000", "down", "down", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_general_ALL = ["ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 45000", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_general_english_ALL = ["up 3 3400", "right 1 1000", "down 3 3400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 45000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_centre_ALL = ["ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 45000", "down", "ok 1 5000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_centre_english_ALL = ["up 3 3400", "right 1 1000", "down 3 3400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 45000", "down 1 1000", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_south_ALL = ["ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 45000", "down", "down", "ok 1 15000", "ok 1 10000", "exit 2 3000"] load_regions_E501 = ["ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 45000"] load_regions_english_E501 = ["up 3 2400", "right 1 1000", "down 3 2400", "ok 1 3400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 45000"] load_regions_ALL = ["ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 45000"] load_regions_english_ALL = ["up 3 2400", "right 1 1000", "down 3 2400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 45000"] """############################ TestCase 1 ########################################## testcase = 1 status("active") MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) UART.default_settings() UART.start_app("") RC.push(["key_1", "key_2", "key_3"]) # set of the RC buttons sleep(0) RC.push("[macros_name]") # RC macros from remote_control.ini file GRAB.compare(testcase)""" ############################ TestCase 1 ########################################## testcase = 1 status("active") UART.default_settings() # RC.push(["exit 1 500", "exit 1 500", "exit 1 500", "menu 1 1000", "left 1 1000", "left 1 1000", "ok 1 1000", "right 1 1000", "right 1 1000", "right 1 1000", "right 1 1000", "right 1 1000", "right 1 1000", "right 1 1000", "right 1 1000", "down 1 1500", "ok 1 1500", "left 1 1000", "ok 1 1000"]) sleep(15) MOD.stop(Modulator) MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) if platform in ["E501", "E502", "A230"]: RC.push(["ok 1 2000", "ok 1 2000", "ok 1 2000", "right 1 2000", "ok 1 2000", "ok 1 60000", "ok 1 15000", "ok 1 5000", "ok 1 10000", "exit 2 2000"]) else: RC.push(["ok 1 2000", "ok 1 2000", "right 1 2000", "ok 1 2000", "ok 1 15000", "ok 1 60000", "ok 1 5000", "exit 2 2000"]) sleep(3) RC.push(["0 1 3500", "guide 1 5000", "exit 1 20000", "guide 1 3000", "down 1 2000", "right 1 2000", "right 1 2000", "down 1 2000", "left 1 2000", "ok 1 2000"]) GRAB.compare(testcase) ############################ TestCase 2 ########################################## testcase = 2 status("active") RC.push(["ok 1 1500", "down 1 1500", "ok 1 1500"]) GRAB.compare(testcase) ############################ TestCase 3 ########################################## testcase = 3 status("active") RC.push(["ok 1 1000", "down 1 1000", "ok 1 1500"]) GRAB.compare(testcase) ############################ TestCase 4 ########################################## testcase = 4 status("active") RC.push(["ok 1 1000", "down 1 1000", "ok 1 1500"]) GRAB.compare(testcase) ############################ TestCase 5 ########################################## testcase = 5 status("active") RC.push(["ok 1 1000", "down 1 1000", "ok 1 1500"]) GRAB.compare(testcase) ############################ TestCase 6 ########################################## testcase = 6 status("active") RC.push(["ok 1 1000", "down 1 1000", "ok 1 1500"]) GRAB.compare(testcase) ############################ TestCase 7 ########################################## testcase = 7 status("active") RC.push(["ok 1 1000", "down 1 1000", "ok 1 1500"]) GRAB.compare(testcase) ############################ TestCase 8 ########################################## testcase = 8 status("active") RC.push(["ok 1 1000", "down 1 1000", "ok 1 1500"]) GRAB.compare(testcase) ############################ TestCase 9 ########################################## testcase = 9 status("active") RC.push(["ok 1 1000", "down 1 1000", "ok 1 1500"]) GRAB.compare(testcase) ############################ TestCase 10 ########################################## testcase = 10 status("active") RC.push(["ok 1 1000", "down 1 1000", "ok 1 1500"]) GRAB.compare(testcase) ############################ TestCase 11 ########################################## testcase = 11 status("active") RC.push(["ok 1 1000", "down 1 1000", "ok 1 1500"]) GRAB.compare(testcase) ############################ TestCase 12 ########################################## testcase = 12 status("active") RC.push(["ok 1 1000", "down 1 1000", "ok 1 1500"]) GRAB.compare(testcase) ############################ TestCase 13 ########################################## testcase = 13 status("active") RC.push(["ok 1 1000", "down 1 1000", "ok 1 1500"]) GRAB.compare(testcase) ############################ TestCase 14 ########################################## testcase = 14 status("active") RC.push(["ok 1 1000", "down 1 1000", "ok 1 1500"]) GRAB.compare(testcase) ############################ TestCase 15 ########################################## testcase = 15 status("active") RC.push(["ok 1 1000", "down 1 1000", "ok 1 1500"]) GRAB.compare(testcase) ############################ TestCase 16 ########################################## testcase = 16 status("active") RC.push(["ok 1 1000", "down 1 1000", "ok 1 1500"]) GRAB.compare(testcase) ############################ TestCase 17 ########################################## testcase = 17 status("active") RC.push(["ok 1 1000", "down 1 1000", "ok 1 1500"]) GRAB.compare(testcase) ############################ TestCase 18 ########################################## testcase = 18 status("active") RC.push(["ok 1 1000", "down 1 1000", "ok 1 1500"]) GRAB.compare(testcase) ############################ TestCase 19 ########################################## testcase = 19 status("active") MOD.stop(Modulator) MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) RC.push(["ok 1 2000", "down 1 2000", "ok 1 2500"]) #23150 # RC.push(["ok 1 2000", "ok 1 2500"]) GRAB.compare(testcase) ############################ TestCase 20 ########################################## testcase = 20 status("active") RC.push(["ok 1 2000", "down 1 2000", "ok 1 3500"]) GRAB.compare(testcase) ############################ TestCase 21 ########################################## testcase = 21 status("active") RC.push(["ok 1 3000", "down 1 2000", "ok 1 2500"]) GRAB.compare(testcase) ############################ TestCase 22 ########################################## testcase = 22 status("active") RC.push(["ok 1 1000", "down 1 1000", "ok 1 1500"]) GRAB.compare(testcase) ############################ TestCase 23 ########################################## testcase = 23 status("active") RC.push(["ok 1 1000", "down 1 1000", "ok 1 1500"]) GRAB.compare(testcase) ############################ TestCase 24 ########################################## testcase = 24 status("active") RC.push(["ok 1 1000", "down 1 1000", "ok 1 1500"]) GRAB.compare(testcase) ############################ TestCase 25 ########################################## testcase = 25 status("active") RC.push(["ok 1 1000", "down 1 1000", "ok 1 1500"]) GRAB.compare(testcase) ############################ TestCase 26 ########################################## testcase = 26 status("active") RC.push(["ok 1 1000", "down 1 1000", "ok 1 1500"]) GRAB.compare(testcase) ############################ TestCase 27 ########################################## testcase = 27 status("active") RC.push(["ok 1 1000", "down 1 1000", "ok 1 1500"]) GRAB.compare(testcase) ############################ TestCase 28 ########################################## testcase = 28 status("active") RC.push(["ok 1 1000", "down 1 1000", "ok 1 1500"]) GRAB.compare(testcase) ############################ TestCase 29 ########################################## testcase = 29 status("active") RC.push(["ok 1 1000", "down 1 1000", "ok 1 1500"]) GRAB.compare(testcase) ############################ TestCase 30 ########################################## testcase = 30 status("active") RC.push(["ok 1 1000", "down 1 1000", "ok 1 1500"]) GRAB.compare(testcase) ############################ TestCase 31 ########################################## testcase = 31 status("active") RC.push(["ok 1 1000", "down 1 1000", "ok 1 1500"]) GRAB.compare(testcase) ############################ TestCase 32 ########################################## testcase = 32 status("active") RC.push(["ok 1 1000", "down 1 1000", "ok 1 1500"]) GRAB.compare(testcase) ############################ TestCase 33 ########################################## testcase = 33 status("active") RC.push(["ok 1 1000", "down 1 1000", "ok 1 1500"]) GRAB.compare(testcase) ############################ TestCase 34 ########################################## testcase = 34 status("active") RC.push(["ok 1 1000", "down 1 1000", "ok 1 1500"]) GRAB.compare(testcase) ############################ TestCase 35 ########################################## testcase = 35 status("active") sleep(7) RC.push(["ok 1 3000", "down 1 3000", "ok 1 3500"]) GRAB.compare(testcase) ############################ TestCase 36 ########################################## testcase = 36 status("active") RC.push(["ok 1 1000", "down 1 1000", "ok 1 1500"]) GRAB.compare(testcase) ############################ TestCase 37 ########################################## testcase = 37 status("active") RC.push(["ok 1 1000", "down 1 1000", "ok 1 1500"]) GRAB.compare(testcase) ############################ TestCase 38 ########################################## testcase = 38 status("active") RC.push(["ok 1 1000", "down 1 1000", "ok 1 1500"]) GRAB.compare(testcase) ############################ TestCase 39 ########################################## testcase = 39 status("active") RC.push(["ok 1 1000", "down 1 1000", "ok 1 1500"]) GRAB.compare(testcase) ############################ TestCase 40 ########################################## testcase = 40 status("active") RC.push(["ok 1 1000", "down 1 1000", "ok 1 1500"]) GRAB.compare(testcase) ############################ TestCase 41 ########################################## testcase = 41 status("active") RC.push(["ok 1 1000", "down 1 1000", "ok 1 1500"]) GRAB.compare(testcase) ############################ TestCase 42 ########################################## testcase = 42 status("active") RC.push(["ok 1 1000", "down 1 1000", "ok 1 1500"]) GRAB.compare(testcase) ############################ TestCase 43 ########################################## testcase = 43 status("active") sleep(7) RC.push(["ok 1 3000", "down 1 3000", "ok 1 3500"]) GRAB.compare(testcase) ############################ TestCase 44 ########################################## testcase = 44 status("active") RC.push(["ok 1 1000", "down 1 1000", "ok 1 1500"]) GRAB.compare(testcase) ############################ TestCase 45 ########################################## testcase = 45 status("active") RC.push(["ok 1 1000", "down 1 1000", "ok 1 1500"]) GRAB.compare(testcase) ############################ TestCase 46 ########################################## testcase = 46 status("active") RC.push(["ok 1 1000", "down 1 1000", "ok 1 1500"]) GRAB.compare(testcase) ############################ TestCase 47 ########################################## testcase = 47 status("active") RC.push(["ok 1 1000", "down 1 1000", "ok 1 1500"]) GRAB.compare(testcase) ############################ TestCase 48 ########################################## testcase = 48 status("active") RC.push(["ok 1 1000", "down 1 1000", "ok 1 1500"]) GRAB.compare(testcase) ############################ TestCase 49 ########################################## testcase = 49 status("active") RC.push(["ok 1 1000", "down 1 1000", "ok 1 1500"]) GRAB.compare(testcase) ############################ TestCase 50 ########################################## testcase = 50 status("active") RC.push(["ok 1 1000", "down 1 1000", "ok 1 1500"]) GRAB.compare(testcase) ############################ TestCase 51 ########################################## testcase = 51 status("active") MOD.stop(Modulator) MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) sleep(7) RC.push(["ok 1 1000", "down 1 1000", "ok 1 1500"]) GRAB.compare(testcase) ############################ TestCase 52 ########################################## testcase = 52 status("active") RC.push(["ok 1 1000", "down 1 1000", "ok 1 1500"]) GRAB.compare(testcase) ############################ TestCase 53 ########################################## testcase = 53 status("active") RC.push(["ok 1 1000", "down 1 1000", "ok 1 1500"]) GRAB.compare(testcase) ############################ TestCase 54 ########################################## testcase = 54 status("active") RC.push(["ok 1 1000", "down 1 1000", "ok 1 1500"]) GRAB.compare(testcase) ############################ TestCase 55 ########################################## testcase = 55 status("active") RC.push(["ok 1 1000", "down 1 1000", "ok 1 1500"]) GRAB.compare(testcase) ############################ TestCase 56 ########################################## testcase = 56 status("active") RC.push(["ok 1 1000", "down 1 1000", "ok 1 1500"]) GRAB.compare(testcase) ############################ TestCase 57 ########################################## testcase = 57 status("active") RC.push(["ok 1 1000", "down 1 1000", "ok 1 1500"]) GRAB.compare(testcase) ############################ TestCase 58 ########################################## testcase = 58 status("active") RC.push(["ok 1 1000", "down 1 1000", "ok 1 1500"]) GRAB.compare(testcase) ############################ TestCase 59 ########################################## testcase = 59 status("active") sleep(7) RC.push(["ok 1 1000", "down 1 1000", "ok 1 1500"]) GRAB.compare(testcase) ############################ TestCase 60 ########################################## testcase = 60 status("active") RC.push(["ok 1 1000", "down 1 1000", "ok 1 1500"]) GRAB.compare(testcase) ############################ TestCase 61 ########################################## testcase = 61 status("active") RC.push(["ok 1 1000", "down 1 1000", "ok 1 1500"]) GRAB.compare(testcase) ############################ TestCase 62 ########################################## testcase = 62 status("active") RC.push(["ok 1 1000", "down 1 1000", "ok 1 1500"]) GRAB.compare(testcase) ############################ TestCase 63 ########################################## testcase = 63 status("active") RC.push(["ok 1 1000", "down 1 1000", "ok 1 1500"]) GRAB.compare(testcase) ############################ TestCase 64 ########################################## testcase = 64 status("active") RC.push(["ok 1 1000", "down 1 1000", "ok 1 1500"]) GRAB.compare(testcase) ############################ TestCase 65 ########################################## testcase = 65 status("active") RC.push(["ok 1 1000", "down 1 1000", "ok 1 1500"]) GRAB.compare(testcase) ############################ TestCase 66 ########################################## testcase = 66 status("active") RC.push(["ok 1 1000", "down 1 1000", "ok 1 1500"]) GRAB.compare(testcase) ############################ TestCase 67 ########################################## testcase = 67 status("active") sleep(7) RC.push(["ok 1 3000", "down 1 3000", "ok 1 3500"]) GRAB.compare(testcase) ############################ TestCase 68 ########################################## testcase = 68 status("active") RC.push(["ok 1 1000", "down 1 1000", "ok 1 1500"]) GRAB.compare(testcase) ############################ TestCase 69 ########################################## testcase = 69 status("active") RC.push(["ok 1 1000", "down 1 1000", "ok 1 1500"]) GRAB.compare(testcase) ############################ TestCase 70 ########################################## testcase = 70 status("active") MOD.stop(Modulator) MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) RC.push(["ok 1 1000", "down 1 1000", "ok 1 1500"]) GRAB.compare(testcase) ############################ TestCase 71 ########################################## testcase = 71 status("active") RC.push(["ok 1 1000", "down 1 1000", "ok 1 1500"]) GRAB.compare(testcase) ############################ TestCase 72 ########################################## testcase = 72 status("active") RC.push(["ok 1 1000", "down 1 1000", "ok 1 1500"]) GRAB.compare(testcase) ############################ TestCase 73 ########################################## testcase = 73 status("active") RC.push(["ok 1 1000", "down 1 1000", "ok 1 1500"]) # RC.push(["ok 1 1000", "ok 1 1500"]) GRAB.compare(testcase) ############################ TestCase 74 ########################################## testcase = 74 status("active") RC.push(["ok 1 1000", "down 1 1000", "ok 1 1500"]) GRAB.compare(testcase) ############################ TestCase 75 ########################################## testcase = 75 status("active") RC.push(["ok 1 3000", "down 1 3000", "ok 1 3500"]) GRAB.compare(testcase) ############################ TestCase 76 ########################################## testcase = 76 status("active") RC.push(["ok 1 1000", "down 1 1000", "ok 1 1500"]) GRAB.compare(testcase) ############################ TestCase 77 ########################################## testcase = 77 status("active") RC.push(["ok 1 1000", "down 1 1000", "ok 1 1500"]) GRAB.compare(testcase) ############################ TestCase 78 ########################################## testcase = 78 status("active") RC.push(["ok 1 1000", "down 1 1000", "ok 1 1500"]) GRAB.compare(testcase) ############################ TestCase 79 ########################################## testcase = 79 status("active") RC.push(["ok 1 1000", "down 1 1000", "ok 1 1500"]) GRAB.compare(testcase) ############################ TestCase 80 ########################################## testcase = 80 status("active") RC.push(["ok 1 1000", "down 1 1000", "ok 1 1500"]) GRAB.compare(testcase) ############################ TestCase 81 ########################################## testcase = 81 status("active") RC.push(["ok 1 1000", "down 1 1000", "ok 1 1500"]) GRAB.compare(testcase) ############################ TestCase 82 ########################################## testcase = 82 status("active") RC.push(["ok 1 1000", "down 1 1000", "ok 1 1500"]) GRAB.compare(testcase) ############################ TestCase 83 ########################################## testcase = 83 status("active") sleep(7) RC.push(["ok 1 3000", "down 1 3000", "ok 1 3500"]) GRAB.compare(testcase) ############################ TestCase 84 ########################################## testcase = 84 status("active") RC.push(["ok 1 1000", "down 1 1000", "ok 1 1500"]) GRAB.compare(testcase) ############################ TestCase 85 ########################################## testcase = 85 status("active") RC.push(["ok 1 1000", "down 1 1000", "ok 1 1500"]) GRAB.compare(testcase) ############################ TestCase 86 ########################################## testcase = 86 status("active") RC.push(["ok 1 1000", "down 1 1000", "ok 1 1500"]) GRAB.compare(testcase) ############################ TestCase 87 ########################################## testcase = 87 status("active") RC.push(["ok 1 1000", "down 1 1000", "ok 1 1500"]) GRAB.compare(testcase) ############################ TestCase 88 ########################################## testcase = 88 status("active") RC.push(["ok 1 1000", "down 1 1000", "ok 1 1500"]) GRAB.compare(testcase) ############################ TestCase 89 ########################################## testcase = 89 status("active") RC.push(["ok 1 1000", "down 1 1000", "ok 1 1500"]) GRAB.compare(testcase) ############################ TestCase 90 ########################################## testcase = 90 status("active") RC.push(["ok 1 1000", "down 1 1000", "ok 1 1500"]) GRAB.compare(testcase) ############################ TestCase 91 ########################################## testcase = 91 status("active") RC.push(["ok 1 1000", "down 1 1000", "ok 1 1500"]) GRAB.compare(testcase) ################################################################################### status("active") MOD.stop(Modulator) GRAB.stop_capture()
def runTest(): status("active") TestName = "Settings" ScriptName = "07-interface" ScriptIndex = "5" Grabber = DO.grab_define() platform = DO.load_platform() Modulation = "DVBS" FEC = "3/4" SR = "27500000" Stream = "\\X_0000_00000_MUX_32000_EPG_Software_20130328a.ts" Frequency = 1476 Modulator = "1" COM = "COM7" settings = [ScriptName, ScriptIndex, Grabber, Modulation, FEC, SR, Stream, Frequency, Modulator, COM] DO.save_settings(settings) GRAB.start_capture() MOD.stop(Modulator) # macros searching_from_wizard_E501 = ["ok 1 2400", "ok 1 2400", "ok 1 2400", "right 1 2400", "ok 1 2400", "ok 1 45000", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_ALL = ["ok 1 2400", "ok 1 2400", "right 1 2400", "ok 1 2400", "ok 1 45000", "ok 1 15000", "ok 1 10000", "exit 2 3000"] ############################ TestCase 1 ########################################## testcase = 1 status("active") UART.default_settings() MOD.stop(Modulator) MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) OPER.search() UART.start_app("settings") RC.push(["right 1 1000", "right 1 1000", "right 1 1000", "right 1 1000", "right 1 1000"]) GRAB.compare(testcase) ############################ TestCase 2 ########################################## testcase = 2 status("active") GRAB.compare(testcase) ############################ TestCase 3 ########################################## testcase = 3 status("active") GRAB.compare(testcase) ############################ TestCase 4 ########################################## testcase = 4 status("active") GRAB.compare(testcase) ############################ TestCase 5 ########################################## testcase = 5 status("manual") GRAB.compare(testcase) ############################ TestCase 6 ########################################## testcase = 6 status("active") GRAB.compare(testcase) ############################ TestCase 7 ########################################## testcase = 7 status("active") GRAB.compare(testcase) ############################ TestCase 8 ########################################## testcase = 8 status("active") RC.push(["up 1 1000", "up 1 1000", "up 1 1000", "left 1 1000"]) GRAB.compare(testcase) ############################ TestCase 9 ########################################## testcase = 9 status("active") RC.push(["right 1 1000"]) GRAB.compare(testcase) ############################ TestCase 10 ########################################## testcase = 10 status("manual") GRAB.compare(testcase) ############################ TestCase 11 ########################################## testcase = 11 status("active") GRAB.compare(testcase) ############################ TestCase 12 ########################################## testcase = 12 status("active") GRAB.compare(testcase) ############################ TestCase 13 ########################################## testcase = 13 status("active") UART.default_settings() MOD.stop(Modulator) MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) OPER.search() UART.start_app("settings") RC.push(["right 1 1000", "right 1 1000", "right 1 1000", "right 1 1000", "right 1 1000", "down 1 1000", "left 1 1000"]) GRAB.compare(testcase) ############################ TestCase 14 ########################################## testcase = 14 status("active") RC.push(["right 1 2000"]) GRAB.compare(testcase) ############################ TestCase 15 ########################################## testcase = 15 status("active") RC.push(["ChUp 1 1000"]) GRAB.compare(testcase) ############################ TestCase 16 ########################################## testcase = 16 status("active") RC.push(["ChDown 1 1000"]) GRAB.compare(testcase) ############################ TestCase 17 ########################################## testcase = 17 status("active") RC.push(["menu 1 2000"]) GRAB.compare(testcase) ############################ TestCase 18 ########################################## testcase = 18 status("active") RC.push(["exit 1 7500", "red 1 2000"]) GRAB.compare(testcase) ############################ TestCase 19 ########################################## testcase = 19 status("active") RC.push(["exit 1 1000", "blue 1 1000", "down 1 1000", "down 1 1000"]) GRAB.compare(testcase) ############################ TestCase 20 ########################################## testcase = 20 status("active") RC.push(["exit 1 1000", "2 1 5000", "0 1 5000"]) UART.start_app("mostPopular") RC.push(["down 1 1000"]) GRAB.compare(testcase) ############################ TestCase 21 ########################################## testcase = 21 status("active") RC.push(["exit 1 1000", "ok 1 1000", "right 1 1000"]) GRAB.compare(testcase) ############################ TestCase 22 ########################################## testcase = 22 status("active") RC.push(["exit 1 1000", "id 1 1000"]) GRAB.compare(testcase) ############################ TestCase 23 ########################################## testcase = 23 status("active") RC.push(["exit 1 1000", "format 1 1000"]) GRAB.compare(testcase) ############################ TestCase 24 ########################################## testcase = 24 status("active") RC.push(["exit 1 8000", "clock 1 1000"]) GRAB.compare(testcase) ############################ TestCase 25 ########################################## testcase = 25 status("active") RC.push(["clock 1 1000", "mail 1 1000"]) GRAB.compare(testcase) ############################ TestCase 26 ########################################## testcase = 26 status("active") RC.push(["exit 1 1000", "guide 1 4000", "down 1 1000", "down 1 1000"]) GRAB.compare(testcase) ############################ TestCase 27 ########################################## testcase = 27 status("inactive") RC.push(["exit 1 1000", "help 1 1000"]) GRAB.compare(testcase) ############################ TestCase 28 ########################################## testcase = 28 status("inactive") RC.push(["exit 1 1000", "id 1 1000", "down 1 1000", "down 1 1000", "down 1 1000", "down 1 1000"]) GRAB.compare(testcase) ############################ TestCase 29 ########################################## testcase = 29 status("active") RC.push(["exit 1 1000", "exit 1 1000", "exit 1 8000", "mute 1 1000"]) GRAB.compare(testcase) ############################ TestCase 30 ########################################## testcase = 30 status("active") RC.push(["mute 1 1000", "VolUp 1 1000"]) GRAB.compare(testcase) ############################ TestCase 31 ########################################## testcase = 31 status("active") UART.start_app("settings") RC.push(["right 1 1000", "right 1 1000", "right 1 1000", "right 1 1000", "right 1 1000", "down 1 1000", "right 1 1000", "menu 1 2000"]) GRAB.compare(testcase) ############################ TestCase 32 ########################################## testcase = 32 status("active") RC.push(["exit 1 7500", "red 1 2000"]) GRAB.compare(testcase) ############################ TestCase 33 ########################################## testcase = 33 status("active") RC.push(["exit 1 1000", "blue 1 1000", "down 1 1000", "down 1 1000"]) GRAB.compare(testcase) ############################ TestCase 34 ########################################## testcase = 34 status("active") RC.push(["exit 1 1000", "2 1 5000", "0 1 5000"]) UART.start_app("mostPopular") RC.push(["down 1 1000"]) GRAB.compare(testcase) ############################ TestCase 35 ########################################## testcase = 35 status("inactive") RC.push(["exit 1 1000", "ok 1 1000"]) GRAB.compare(testcase) ############################ TestCase 36 ########################################## testcase = 36 status("active") RC.push(["exit 1 1000", "id 1 1000"]) GRAB.compare(testcase) ############################ TestCase 37 ########################################## testcase = 37 status("active") RC.push(["exit 1 1000", "format 1 1000"]) GRAB.compare(testcase) ############################ TestCase 38 ########################################## testcase = 38 status("active") RC.push(["exit 1 8000", "clock 1 1000"]) GRAB.compare(testcase) ############################ TestCase 39 ########################################## testcase = 39 status("active") RC.push(["clock 1 1000", "mail 1 1000"]) GRAB.compare(testcase) ############################ TestCase 40 ########################################## testcase = 40 status("active") RC.push(["exit 1 1000", "guide 1 4000", "down 1 1000", "down 1 1000"]) GRAB.compare(testcase) ############################ TestCase 41 ########################################## testcase = 41 status("inactive") RC.push(["exit 1 1000", "help 1 1000"]) GRAB.compare(testcase) ############################ TestCase 42 ########################################## testcase = 42 status("inactive") RC.push(["exit 1 1000", "id 1 1000", "down 1 1000", "down 1 1000", "down 1 1000", "down 1 1000"]) GRAB.compare(testcase) ############################ TestCase 43 ########################################## testcase = 43 status("active") RC.push(["exit 1 1000", "exit 1 1000", "exit 1 8000", "mute 1 1000"]) GRAB.compare(testcase) ############################ TestCase 44 ########################################## testcase = 44 status("active") RC.push(["mute 1 1000", "VolUp 1 1000"]) GRAB.compare(testcase) ############################ TestCase 45 ########################################## testcase = 45 status("active") UART.start_app("settings") RC.push(["right 1 1000", "right 1 1000", "right 1 1000", "right 1 1000", "right 1 1000", "down 1 1000", "right 1 1000", "menu 1 2000"]) GRAB.compare(testcase) ############################ TestCase 46 ########################################## testcase = 46 status("active") RC.push(["exit 1 7500", "red 1 2000"]) GRAB.compare(testcase) ############################ TestCase 47 ########################################## testcase = 47 status("active") RC.push(["exit 1 1000", "blue 1 1000", "down 1 1000", "down 1 1000"]) GRAB.compare(testcase) ############################ TestCase 48 ########################################## testcase = 48 status("active") RC.push(["exit 1 1000", "2 1 5000", "0 1 5000"]) UART.start_app("mostPopular") RC.push(["down 1 1000"]) GRAB.compare(testcase) ############################ TestCase 49 ########################################## testcase = 49 status("inactive") RC.push(["exit 1 1000", "ok 1 1000"]) GRAB.compare(testcase) ############################ TestCase 50 ########################################## testcase = 50 status("active") RC.push(["exit 1 1000", "id 1 1000"]) GRAB.compare(testcase) ############################ TestCase 51 ########################################## testcase = 51 status("active") RC.push(["exit 1 1000", "format 1 1000"]) GRAB.compare(testcase) ############################ TestCase 52 ########################################## testcase = 52 status("active") RC.push(["exit 1 8000", "clock 1 1000"]) GRAB.compare(testcase) ############################ TestCase 53 ########################################## testcase = 53 status("active") RC.push(["clock 1 1000", "mail 1 1000"]) GRAB.compare(testcase) ############################ TestCase 54 ########################################## testcase = 54 status("active") RC.push(["exit 1 1000", "guide 1 4000", "down 1 1000", "down 1 5000"]) GRAB.compare(testcase) ############################ TestCase 55 ########################################## testcase = 55 status("inactive") RC.push(["exit 1 1000", "help 1 1000"]) GRAB.compare(testcase) ############################ TestCase 56 ########################################## testcase = 56 status("inactive") RC.push(["exit 1 1000", "id 1 1000", "down 1 1000", "down 1 1000", "down 1 1000", "down 1 1000"]) GRAB.compare(testcase) ############################ TestCase 57 ########################################## testcase = 57 status("active") RC.push(["exit 1 1000", "exit 1 1000", "exit 1 8000", "mute 1 1000"]) GRAB.compare(testcase) ############################ TestCase 58 ########################################## testcase = 58 status("active") RC.push(["mute 1 1000", "VolUp 1 1000"]) GRAB.compare(testcase) ############################ TestCase 59 ########################################## testcase = 59 status("active") UART.start_app("settings") RC.push(["right 1 1000", "right 1 1000", "right 1 1000", "right 1 1000", "right 1 1000", "down 1 1000", "right 1 1000", "menu 1 2000"]) GRAB.compare(testcase) ############################ TestCase 60 ########################################## testcase = 60 status("active") RC.push(["exit 1 7500", "red 1 2000"]) GRAB.compare(testcase) ############################ TestCase 61 ########################################## testcase = 61 status("active") RC.push(["exit 1 1000", "blue 1 1000", "down 1 1000", "down 1 1000"]) GRAB.compare(testcase) ############################ TestCase 62 ########################################## testcase = 62 status("active") RC.push(["exit 1 1000", "2 1 5000", "0 1 5000"]) UART.start_app("mostPopular") RC.push(["down 1 1000"]) GRAB.compare(testcase) ############################ TestCase 63 ########################################## testcase = 63 status("inactive") RC.push(["exit 1 1000", "ok 1 1000"]) GRAB.compare(testcase) ############################ TestCase 64 ########################################## testcase = 64 status("active") RC.push(["exit 1 1000", "id 1 1000"]) GRAB.compare(testcase) ############################ TestCase 65 ########################################## testcase = 65 status("active") RC.push(["exit 1 1000", "format 1 1000"]) GRAB.compare(testcase) ############################ TestCase 66 ########################################## testcase = 66 status("active") RC.push(["exit 1 8000", "clock 1 1000"]) GRAB.compare(testcase) ############################ TestCase 67 ########################################## testcase = 67 status("active") RC.push(["clock 1 1000", "mail 1 1000"]) GRAB.compare(testcase) ############################ TestCase 68 ########################################## testcase = 68 status("active") RC.push(["exit 1 1000", "guide 1 4000", "down 1 1000", "down 1 1000"]) GRAB.compare(testcase) ############################ TestCase 69 ########################################## testcase = 69 status("active") RC.push(["exit 1 1000", "help 1 1000"]) GRAB.compare(testcase) ############################ TestCase 70 ########################################## testcase = 70 status("active") RC.push(["exit 1 1000", "id 1 1000", "down 1 1000", "down 1 1000", "down 1 1000", "down 1 1000"]) GRAB.compare(testcase) ############################ TestCase 71 ########################################## testcase = 71 status("active") RC.push(["exit 1 1000", "exit 1 1000", "exit 1 8000", "mute 1 1000"]) GRAB.compare(testcase) ############################ TestCase 72 ########################################## testcase = 72 status("active") RC.push(["mute 1 1000", "VolUp 1 1000"]) GRAB.compare(testcase) ############################ TestCase 73 ########################################## testcase = 73 status("active") RC.push(["exit 1 1000", "exit 1 1000", "exit 1 1000"]) MOD.stop(Modulator) MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) UART.start_app("settings") RC.push(["right 1 1000", "right 1 1000", "right 1 1000", "right 1 1000", "right 1 1000", "down 1 1000", "right 1 1000", "down 1 1000", "right 45 1000"]) GRAB.compare(testcase) ############################ TestCase 74 ########################################## testcase = 74 status("active") RC.push(["left 45 1000"]) GRAB.compare(testcase) ############################ TestCase 75 ########################################## testcase = 75 status("active") RC.push(["right 1 1000", "right 1 1000", "right 1 1000", "right 1 1000", "right 1 1000", "right 1 1000", "exit 1 1000", "exit 1 1000", "exit 1 4000", "up 1 6500"]) GRAB.compare(testcase) ############################ TestCase 76 ########################################## testcase = 76 status("active") sleep(1) GRAB.compare(testcase) ############################ TestCase 77 ########################################## testcase = 77 status("active") sleep(120) UART.start_app("settings") RC.push(["right 1 1000", "right 1 1000", "right 1 1000", "right 1 1000", "right 1 1000", "down 1 1000", "down 1 1000", "left 1 1500", "left 1 1500", "left 1 1500", "left 1 1500", "left 1 1500", "left 1 1500", "left 1 1500", "left 1 1500", "exit 1 1000", "exit 1 1000", "exit 1 11000", "up 1 500"]) GRAB.compare(testcase) ############################ TestCase 78 ########################################## testcase = 78 status("active") sleep(1) GRAB.compare(testcase) ############################ TestCase 79 ########################################## testcase = 79 status("active") sleep(100) UART.start_app("settings") RC.push(["right 1 1000", "right 1 1000", "right 1 1000", "right 1 1000", "right 1 1000", "down 1 1000", "down 1 1000", "right 45 2500", "exit 1 1000", "exit 1 1000", "exit 1 31000", "up 1 29000"]) GRAB.compare(testcase) ############################ TestCase 80 ########################################## testcase = 80 status("active") sleep(2) GRAB.compare(testcase) ############################ TestCase 81 ########################################## testcase = 81 status("active") UART.default_settings() MOD.stop(Modulator) MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) OPER.search() MOD.stop(Modulator) UART.start_app("settings") RC.push(["right 1 1000", "right 1 1000", "right 1 1000", "right 1 1000", "right 1 1000", "down 1 1000", "down 1 1000", "down 1 1000", "left 1 1000"]) GRAB.compare(testcase) ############################ TestCase 82 ########################################## testcase = 82 status("active") RC.push(["right 1 1000"]) GRAB.compare(testcase) ############################ TestCase 83 ########################################## testcase = 83 status("active") RC.push(["ChUp 1 1000"]) GRAB.compare(testcase) ############################ TestCase 84 ########################################## testcase = 84 status("active") RC.push(["ChDown 1 1000"]) GRAB.compare(testcase) ############################ TestCase 85 ########################################## testcase = 85 status("active") RC.push(["ok 1 1000"]) GRAB.compare(testcase) ############################ TestCase 86 ########################################## testcase = 86 status("active") RC.push(["0 1 1000"]) GRAB.compare(testcase) ############################ TestCase 87 ########################################## testcase = 87 status("active") RC.push(["ok 1 1000", "1 1 1000"]) GRAB.compare(testcase) ############################ TestCase 88 ########################################## testcase = 88 status("active") RC.push(["ok 1 1000", "2 1 1000"]) GRAB.compare(testcase) ############################ TestCase 89 ########################################## testcase = 89 status("active") RC.push(["ok 1 1000", "3 1 1000"]) GRAB.compare(testcase) ############################ TestCase 90 ########################################## testcase = 90 status("active") RC.push(["ok 1 1000", "4 1 1000"]) GRAB.compare(testcase) ############################ TestCase 91 ########################################## testcase = 91 status("active") RC.push(["ok 1 1000", "5 1 1000"]) GRAB.compare(testcase) ############################ TestCase 92 ########################################## testcase = 92 status("active") RC.push(["ok 1 1000", "6 1 1000"]) GRAB.compare(testcase) ############################ TestCase 93 ########################################## testcase = 93 status("active") RC.push(["ok 1 1000", "7 1 1000"]) GRAB.compare(testcase) ############################ TestCase 94 ########################################## testcase = 94 status("active") RC.push(["ok 1 1000", "8 1 1000"]) GRAB.compare(testcase) ############################ TestCase 95 ########################################## testcase = 95 status("active") RC.push(["ok 1 1000", "9 1 1000"]) GRAB.compare(testcase) ############################ TestCase 96 ########################################## testcase = 96 status("active") RC.push(["ok 1 1000", "backward 1 1000"]) GRAB.compare(testcase) ############################ TestCase 97 ########################################## testcase = 97 status("active") RC.push(["OK 1 1000", "blue 1 1000"]) GRAB.compare(testcase) ############################ TestCase 98 ########################################## testcase = 98 status("active") RC.push(["OK 1 1000", "ChDown 1 1000"]) GRAB.compare(testcase) ############################ TestCase 99 ########################################## testcase = 99 status("active") RC.push(["OK 1 1000", "ChUp 1 1000"]) GRAB.compare(testcase) ############################ TestCase 100 ########################################## testcase = 100 status("active") RC.push(["OK 1 1000", "cinemahalls 1 1000"]) GRAB.compare(testcase) ############################ TestCase 101 ########################################## testcase = 101 status("active") RC.push(["OK 1 1000", "clock 1 1000"]) GRAB.compare(testcase) ############################ TestCase 102 ########################################## testcase = 102 status("active") RC.push(["OK 1 1000", "down 1 1000"]) GRAB.compare(testcase) ############################ TestCase 103 ########################################## testcase = 103 status("active") RC.push(["OK 1 1000", "exit 1 1000"]) GRAB.compare(testcase) ############################ TestCase 104 ########################################## testcase = 104 status("active") RC.push(["OK 1 1000", "format 1 1000"]) GRAB.compare(testcase) ############################ TestCase 105 ########################################## testcase = 105 status("active") RC.push(["OK 1 1000", "forward 1 1000"]) GRAB.compare(testcase) ############################ TestCase 106 ########################################## testcase = 106 status("active") RC.push(["OK 1 1000", "green 1 1000"]) GRAB.compare(testcase) ############################ TestCase 107 ########################################## testcase = 107 status("active") RC.push(["OK 1 1000", "guide 1 1000"]) GRAB.compare(testcase) ############################ TestCase 108 ########################################## testcase = 108 status("active") RC.push(["OK 1 1000", "help 1 1000"]) GRAB.compare(testcase) ############################ TestCase 109 ########################################## testcase = 109 status("active") RC.push(["OK 1 1000", "ID 1 1000"]) GRAB.compare(testcase) ############################ TestCase 110 ########################################## testcase = 110 status("active") RC.push(["OK 1 1000", "last 1 1000"]) GRAB.compare(testcase) ############################ TestCase 111 ########################################## testcase = 111 status("active") RC.push(["OK 1 1000", "left 1 1000"]) GRAB.compare(testcase) ############################ TestCase 112 ########################################## testcase = 112 status("active") RC.push(["OK 1 1000", "mail 1 1000"]) GRAB.compare(testcase) ############################ TestCase 113 ########################################## testcase = 113 status("active") RC.push(["OK 1 1000", "menu 1 1000"]) GRAB.compare(testcase) ############################ TestCase 114 ########################################## testcase = 114 status("active") RC.push(["OK 1 1000", "mute 1 1000"]) GRAB.compare(testcase) ############################ TestCase 115 ########################################## testcase = 115 status("active") RC.push(["OK 1 1000", "OK 1 1000"]) GRAB.compare(testcase) ############################ TestCase 116 ########################################## testcase = 116 status("active") RC.push(["OK 1 1000", "play/pause 1 1000"]) GRAB.compare(testcase) ############################ TestCase 117 ########################################## testcase = 117 status("active") RC.push(["OK 1 1000", "Rec 1 1000"]) GRAB.compare(testcase) ############################ TestCase 118 ########################################## testcase = 118 status("active") RC.push(["OK 1 1000", "RecList 1 1000"]) GRAB.compare(testcase) ############################ TestCase 119 ########################################## testcase = 119 status("active") RC.push(["OK 1 1000", "red 1 1000"]) GRAB.compare(testcase) ############################ TestCase 120 ########################################## testcase = 120 status("active") RC.push(["OK 1 1000", "right 1 1000"]) GRAB.compare(testcase) ############################ TestCase 121 ########################################## testcase = 121 status("active") RC.push(["OK 1 1000", "stb 1 1000"]) GRAB.compare(testcase) ############################ TestCase 122 ########################################## testcase = 122 status("active") RC.push(["OK 1 1000", "stop 1 1000"]) GRAB.compare(testcase) ############################ TestCase 123 ########################################## testcase = 123 status("active") RC.push(["OK 1 1000", "Tv/chat 1 1000"]) GRAB.compare(testcase) ############################ TestCase 124 ########################################## testcase = 124 status("active") RC.push(["OK 1 1000", "Tv/radio 1 1000"]) GRAB.compare(testcase) ############################ TestCase 125 ########################################## testcase = 125 status("active") RC.push(["OK 1 1000", "up 1 1000"]) GRAB.compare(testcase) ############################ TestCase 126 ########################################## testcase = 126 status("active") RC.push(["OK 1 1000", "VolDown 1 1000"]) GRAB.compare(testcase) ############################ TestCase 127 ########################################## testcase = 127 status("active") RC.push(["OK 1 1000", "VolUp 1 1000"]) GRAB.compare(testcase) ############################ TestCase 128 ########################################## testcase = 128 status("active") RC.push(["OK 1 1000", "www 1 1000"]) GRAB.compare(testcase) ############################ TestCase 129 ########################################## testcase = 129 status("active") RC.push(["OK 1 1000", "yellow 1 1000"]) GRAB.compare(testcase) ############################ TestCase 130 ########################################## testcase = 130 status("active") RC.push(["OK 1 1000", "standby 1 8000", "standby 1 8000"]) GRAB.compare(testcase) ############################ TestCase 131 ########################################## testcase = 131 status("inactive") GRAB.compare(testcase) ############################ TestCase 132 ########################################## testcase = 132 status("manual") GRAB.compare(testcase) ############################ TestCase 133 ########################################## testcase = 133 status("inactive") GRAB.compare(testcase) ############################ TestCase 134 ########################################## testcase = 134 status("active") RC.push(["Tv/radio 1 10000"]) GRAB.compare(testcase) RC.push(["Tv/radio 1 1000"]) ############################ TestCase 135 ########################################## testcase = 135 status("manual") GRAB.compare(testcase) ############################ TestCase 136 ########################################## testcase = 136 status("manual") GRAB.compare(testcase) ############################ TestCase 137 ########################################## testcase = 137 status("active") UART.default_settings() MOD.stop(Modulator) MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) OPER.search() MOD.stop(Modulator) UART.start_app("settings") RC.push(["right 1 1000", "right 1 1000", "right 1 1000", "right 1 1000", "right 1 1000", "up 1 1000", "up 1 1000", "left 1 1000"]) GRAB.compare(testcase) ############################ TestCase 138 ########################################## testcase = 138 status("active") RC.push(["right 1 1000"]) GRAB.compare(testcase) ############################ TestCase 139 ########################################## testcase = 139 status("active") RC.push(["left 15 1000", "exit 1 1000", "exit 1 1000", "exit 1 1000", "menu 1 59000"]) GRAB.compare(testcase) ############################ TestCase 140 ########################################## testcase = 140 status("active") sleep(1) GRAB.compare(testcase) ############################ TestCase 141 ########################################## testcase = 141 status("active") RC.push(["exit 1 1000", "exit 1 1000", "red 1 59000"]) GRAB.compare(testcase) ############################ TestCase 142 ########################################## testcase = 142 status("active") sleep(1) GRAB.compare(testcase) ############################ TestCase 143 ########################################## testcase = 143 status("active") RC.push(["exit 1 1000", "exit 1 1000", "blue 1 59000"]) GRAB.compare(testcase) ############################ TestCase 144 ########################################## testcase = 144 status("active") sleep(1) GRAB.compare(testcase) ############################ TestCase 145 ########################################## testcase = 145 status("active") RC.push(["exit 1 1000", "exit 1 1000", "www 1 59000"]) GRAB.compare(testcase) ############################ TestCase 146 ########################################## testcase = 146 status("active") sleep(1) GRAB.compare(testcase) ############################ TestCase 147 ########################################## testcase = 147 status("active") RC.push(["exit 1 1000", "exit 1 1000", "6 1 5000", "ok 1 59000"]) GRAB.compare(testcase) ############################ TestCase 148 ########################################## testcase = 148 status("active") sleep(1) GRAB.compare(testcase) ############################ TestCase 149 ########################################## testcase = 149 status("active") RC.push(["exit 1 1000", "exit 1 1000", "id 1 59000"]) GRAB.compare(testcase) ############################ TestCase 150 ########################################## testcase = 150 status("active") sleep(1) GRAB.compare(testcase) ############################ TestCase 151 ########################################## testcase = 151 status("active") RC.push(["exit 1 1000", "exit 1 1000", "format 1 59000"]) GRAB.compare(testcase) ############################ TestCase 152 ########################################## testcase = 152 status("active") sleep(1) GRAB.compare(testcase) ############################ TestCase 153 ########################################## testcase = 153 status("active") RC.push(["exit 1 1000", "exit 1 1000", "mail 1 59000"]) GRAB.compare(testcase) ############################ TestCase 154 ########################################## testcase = 154 status("active") sleep(1) GRAB.compare(testcase) ############################ TestCase 155 ########################################## testcase = 155 status("active") RC.push(["exit 1 1000", "exit 1 1000", "guide 1 59000"]) GRAB.compare(testcase) ############################ TestCase 156 ########################################## testcase = 156 status("active") sleep(1) GRAB.compare(testcase) ############################ TestCase 157 ########################################## testcase = 157 status("manual") RC.push(["exit 1 1000", "exit 1 1000", "id 1 1000", "down 1 1000", "down 1 1000", "down 1 1000", "right 1 59000"]) GRAB.compare(testcase) ############################ TestCase 158 ########################################## testcase = 158 status("manual") sleep(1) GRAB.compare(testcase) ############################ TestCase 159 ########################################## testcase = 159 status("manual") RC.push(["exit 1 1000", "exit 1 1000", "exit 1 1000", "exit 1 1000", "exit 1 1000", "id 1 1000", "down 1 1000", "down 1 1000", "down 1 1000", "down 1 1000", "right 1 59000"]) GRAB.compare(testcase) ############################ TestCase 160 ########################################## testcase = 160 status("manual") sleep(1) GRAB.compare(testcase) ############################ TestCase 161 ########################################## testcase = 161 status("active") RC.push(["exit 1 1000", "exit 1 1000", "exit 1 1000", "exit 1 1000"]) UART.start_app("settings") RC.push(["right 1 1000", "right 1 1000", "right 1 1000", "right 1 1000", "right 1 1000", "up 1 1000", "up 1 1000", "right 9 5000", "exit 1 1000", "exit 1 1000", "exit 1 1000", "exit 1 1000", "exit 1 1000", "menu 1 590000"]) GRAB.compare(testcase) ############################ TestCase 162 ########################################## testcase = 162 status("active") sleep(30) GRAB.compare(testcase) ############################ TestCase 163 ########################################## testcase = 163 status("active") RC.push(["exit 1 1000", "exit 1 1000", "exit 1 1000", "exit 1 1000"]) UART.start_app("settings") RC.push(["right 1 1000", "right 1 1000", "right 1 1000", "right 1 1000", "right 1 1000", "up 1 1000", "up 1 1000", "right 20 5000", "exit 1 1000", "exit 1 1000", "exit 1 1000", "exit 1 1000", "exit 1 1000", "menu 1 1790000"]) GRAB.compare(testcase) ############################ TestCase 164 ########################################## testcase = 164 status("active") sleep(90) GRAB.compare(testcase) ############################ TestCase 165 ########################################## testcase = 165 status("active") UART.default_settings() MOD.stop(Modulator) MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) OPER.search() MOD.stop(Modulator) UART.start_app("settings") RC.push(["right 1 1000", "right 1 1000", "right 1 1000", "right 1 1000", "right 1 1000", "up 1 1000", "OK 1 1000"]) GRAB.compare(testcase) ############################ TestCase 166 ########################################## testcase = 166 status("active") GRAB.compare(testcase) ############################ TestCase 167 ########################################## testcase = 167 status("active") GRAB.compare(testcase) ############################ TestCase 168 ########################################## testcase = 168 status("active") GRAB.compare(testcase) ############################ TestCase 169 ########################################## testcase = 169 status("active") GRAB.compare(testcase) ############################ TestCase 170 ########################################## testcase = 170 status("active") GRAB.compare(testcase) ############################ TestCase 171 ########################################## testcase = 171 status("active") GRAB.compare(testcase) ############################ TestCase 172 ########################################## testcase = 172 status("active") GRAB.compare(testcase) ############################ TestCase 173 ########################################## testcase = 173 status("active") GRAB.compare(testcase) ############################ TestCase 174 ########################################## testcase = 174 status("active") GRAB.compare(testcase) ############################ TestCase 175 ########################################## testcase = 175 status("active") GRAB.compare(testcase) ############################ TestCase 176 ########################################## testcase = 176 status("active") GRAB.compare(testcase) ############################ TestCase 177 ########################################## testcase = 177 status("active") GRAB.compare(testcase) ############################ TestCase 178 ########################################## testcase = 178 status("active") RC.push(["OK 1 1000"]) GRAB.compare(testcase) ############################ TestCase 179 ########################################## testcase = 179 status("active") RC.push(["OK 1 1000"]) GRAB.compare(testcase) ############################ TestCase 180 ########################################## testcase = 180 status("active") RC.push(["right 1 1000"]) GRAB.compare(testcase) ############################ TestCase 181 ########################################## testcase = 181 status("active") RC.push(["left 1 1000", "OK 1 1000", "right 1 1000"]) GRAB.compare(testcase) ############################ TestCase 182 ########################################## testcase = 182 status("active") RC.push(["left 1 1000", "OK 1 1000", "left 1 1000"]) GRAB.compare(testcase) ############################ TestCase 183 ########################################## testcase = 183 status("active") RC.push(["right 1 1000", "OK 1 1000", "left 1 1000"]) GRAB.compare(testcase) ############################ TestCase 184 ########################################## testcase = 184 status("active") RC.push(["right 1 1000", "OK 1 1000", "up 1 1000"]) GRAB.compare(testcase) ############################ TestCase 185 ########################################## testcase = 185 status("active") RC.push(["down 1 1000", "OK 1 1000", "up 1 1000"]) GRAB.compare(testcase) ############################ TestCase 186 ########################################## testcase = 186 status("active") RC.push(["down 1 1000", "OK 1 1000", "down 1 1000"]) GRAB.compare(testcase) ############################ TestCase 187 ########################################## testcase = 187 status("active") RC.push(["up 1 1000", "OK 1 1000", "down 1 1000"]) GRAB.compare(testcase) ############################ TestCase 188 ########################################## testcase = 188 status("active") RC.push(["up 1 1000", "exit 1 1000"]) GRAB.compare(testcase) ############################ TestCase 189 ########################################## testcase = 189 status("active") RC.push(["standby 1 10000", "standby 1 10000"]) GRAB.compare(testcase) ############################ TestCase 190 ########################################## testcase = 190 status("inactive") GRAB.compare(testcase) ############################ TestCase 191 ########################################## testcase = 191 status("active") RC.push(["exit 1 1000", "exit 1 1000", "exit 1 1000"]) UART.start_app("settings") RC.push(["up 1 1000", "OK 1 1000", "right 100 1000", "down 100 1000", "OK 1 1000", "left 100 1000", "up 100 1000", "exit 1 1000", "exit 1 1000", "exit 1 1000", "exit 1 1000", "exit 1 1000", "menu 1 1000"]) GRAB.compare(testcase) ############################ TestCase 192 ########################################## testcase = 192 status("active") RC.push(["exit 1 1000", "exit 1 4000", "up 1 1000"]) GRAB.compare(testcase) ############################ TestCase 193 ########################################## testcase = 193 status("active") RC.push(["exit 1 1000", "exit 1 1000", "red 1 2000"]) GRAB.compare(testcase) ############################ TestCase 194 ########################################## testcase = 194 status("inactive") RC.push(["exit 1 1000", "exit 1 1000", "green 1 1000"]) GRAB.compare(testcase) ############################ TestCase 195 ########################################## testcase = 195 status("inactive") RC.push(["exit 1 1000", "exit 1 1000", "yellow 1 1000"]) GRAB.compare(testcase) ############################ TestCase 196 ########################################## testcase = 196 status("active") RC.push(["exit 1 1000", "exit 1 1000", "blue 1 1000", "down 1 3000"]) GRAB.compare(testcase) ############################ TestCase 197 ########################################## testcase = 197 status("active") RC.push(["exit 1 1000", "exit 1 1000", "www 1 1000"]) GRAB.compare(testcase) ############################ TestCase 198 ########################################## testcase = 198 status("active") RC.push(["exit 1 1000", "exit 1 1000", "5 1 10000", "ok 1 5000"]) GRAB.compare(testcase) ############################ TestCase 199 ########################################## testcase = 199 status("active") RC.push(["exit 1 1000", "exit 1 1000", "id 1 1000"]) GRAB.compare(testcase) ############################ TestCase 200 ########################################## testcase = 200 status("active") RC.push(["exit 1 1000", "exit 1 1000", "format 1 1000"]) GRAB.compare(testcase) ############################ TestCase 201 ########################################## testcase = 201 status("active") RC.push(["exit 1 1000", "exit 1 4000", "clock 1 1000"]) GRAB.compare(testcase) ############################ TestCase 202 ########################################## testcase = 202 status("active") RC.push(["exit 1 1000", "exit 1 1000", "mail 1 1000"]) GRAB.compare(testcase) ############################ TestCase 203 ########################################## testcase = 203 status("active") RC.push(["exit 1 1000", "exit 1 1000", "guide 1 1000"]) GRAB.compare(testcase) ############################ TestCase 204 ########################################## testcase = 204 status("inactive") RC.push(["exit 1 1000", "exit 1 1000", "id 1 1000", "down 1 1000", "down 1 1000", "down 1 1000", "right 1 1000"]) GRAB.compare(testcase) ############################ TestCase 205 ########################################## testcase = 205 status("inactive") RC.push(["exit 1 1000", "exit 1 1000", "id 1 1000", "down 1 1000", "down 1 1000", "down 1 1000", "down 1 1000", "right 1 1000"]) GRAB.compare(testcase) ############################ TestCase 206 ########################################## testcase = 206 status("active") RC.push(["exit 1 1000", "exit 1 1000", "exit 1 1000", "exit 1 1000", "mute 1 1000"]) GRAB.compare(testcase) ############################ TestCase 207 ########################################## testcase = 207 status("active") RC.push(["VolUp 1 1000"]) GRAB.compare(testcase) ############################ TestCase 208 ########################################## testcase = 208 status("manual") GRAB.compare(testcase) ############################ TestCase 209 ########################################## testcase = 209 status("manual") GRAB.compare(testcase) ################################################################################### status("active") MOD.stop(Modulator) GRAB.stop_capture()
def __init__(self, dev, baud_rate, sim_mode): self.__uart = UART.UART(dev, baud_rate, sim_mode) self.__scheduler = Scheduler.Scheduler() self.q_envio = Queue.Queue()
def runTest(): status("active") TestName = "Help" ScriptName = "functionality" ScriptIndex = "1" Grabber = DO.grab_define() platform = DO.load_platform() Modulation = "DVBS" FEC = "3/4" SR = "27500000" Stream = "\\036E_20000_LCN-25_20140418a.ts" Frequency = 1476 Modulator = "1" COM = "COM7" settings = [ScriptName, ScriptIndex, Grabber, Modulation, FEC, SR, Stream, Frequency, Modulator, COM] DO.save_settings(settings) GRAB.start_capture() MOD.stop(Modulator) # macros searching_from_wizard_E501 = ["ok 1 2400", "ok 1 2400", "ok 1 2400", "right 1 2400", "ok 1 2400", "ok 1 45000", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_ALL = ["ok 1 2400", "ok 1 2400", "right 1 2400", "ok 1 2400", "ok 1 45000", "ok 1 15000", "ok 1 10000", "exit 2 3000"] ############################ TestCase 1 ########################################## testcase = 1 status("active") MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) UART.default_settings() if platform in ["E501", "E502", "A230"]: RC.push(searching_from_wizard_E501) else: RC.push(searching_from_wizard_ALL) RC.push(["help 1 2400"]) GRAB.compare(testcase) ############################ TestCase 2 ########################################## testcase = 2 status("active") RC.push(["exit 3 1000", "menu", "left", "ok 1 2400"]) GRAB.compare(testcase) ############################ TestCase 3 ########################################## testcase = 3 status("active") GRAB.compare(testcase) ############################ TestCase 4 ########################################## testcase = 4 status("active") RC.push(["right", "ok 1 2400"]) GRAB.compare(testcase) ############################ TestCase 5 ########################################## testcase = 5 status("active") RC.push(["exit 1 2400"]) GRAB.compare(testcase) ############################ TestCase 6 ########################################## testcase = 6 status("active") RC.push(["exit 1 2000", "ok 1 2400"]) GRAB.compare(testcase) ############################ TestCase 7 ########################################## testcase = 7 status("active") RC.push(["menu 1 2400"]) GRAB.compare(testcase) ############################ TestCase 8 ########################################## testcase = 8 status("manual") GRAB.compare(testcase) ############################ TestCase 9 ########################################## testcase = 9 status("active") RC.push(["exit 3 2400", "help 1 2000", "exit 1 2400"]) GRAB.compare(testcase) ############################ TestCase 10 ########################################## testcase = 10 status("manual") GRAB.compare(testcase) ############################ TestCase 11 ########################################## testcase = 11 status("active") RC.push(["exit 3 2400", "help 1 2000", "help 1 2400"]) GRAB.compare(testcase) ############################ TestCase 12 ########################################## testcase = 12 status("active") RC.push(["exit 3 2400", "3 1 5000", "help 1 2000", "last 1 2000"]) GRAB.compare(testcase) ############################ TestCase 13 ########################################## testcase = 13 status("manual") RC.push(["exit 3 2400", "help 1 2000", "mute 1 2400"]) GRAB.compare(testcase) ############################ TestCase 14 ########################################## testcase = 14 status("manual") RC.push(["exit 3 2400", "help 1 2000", "stb 1 2400"]) GRAB.compare(testcase) ############################ TestCase 15 ########################################## testcase = 15 status("active") RC.push(["exit 3 2400", "help 1 2000", "VolUp 1 2400"]) GRAB.compare(testcase) ############################ TestCase 16 ########################################## testcase = 16 status("active") RC.push(["VolDown 1 2400"]) GRAB.compare(testcase) ############################ TestCase 17 ########################################## testcase = 17 status("active") RC.push(["standby 1 15000", "standby 1 30000"]) GRAB.compare(testcase) ############################ TestCase 18 ########################################## testcase = 18 status("active") RC.push(["exit 3 2400", "help 1 2000", "ok 1 2000", "up 1 2400"]) GRAB.compare(testcase) ############################ TestCase 19 ########################################## testcase = 19 status("active") RC.push(["down 1 2400"]) GRAB.compare(testcase) ############################ TestCase 20 ########################################## testcase = 20 status("active") RC.push(["right 1 2400"]) GRAB.compare(testcase) ############################ TestCase 21 ########################################## testcase = 21 status("active") RC.push(["left 2 1000"]) GRAB.compare(testcase) ############################ TestCase 22 ########################################## testcase = 22 status("active") RC.push(["left", "ChUp 1 2400"]) GRAB.compare(testcase) ############################ TestCase 23 ########################################## testcase = 23 status("active") RC.push(["ChDown 1 2400"]) GRAB.compare(testcase) ############################ TestCase 24 ########################################## testcase = 24 status("active") RC.push(["ok 1 2400"]) GRAB.compare(testcase) ############################ TestCase 25 ########################################## testcase = 25 status("inactive") GRAB.compare(testcase) ############################ TestCase 26 ########################################## testcase = 26 status("inactive") GRAB.compare(testcase) ############################ TestCase 27 ########################################## testcase = 27 status("inactive") GRAB.compare(testcase) ############################ TestCase 28 ########################################## testcase = 28 status("inactive") GRAB.compare(testcase) ############################ TestCase 29 ########################################## testcase = 29 status("inactive") GRAB.compare(testcase) ############################ TestCase 30 ########################################## testcase = 30 status("inactive") GRAB.compare(testcase) ############################ TestCase 31 ########################################## testcase = 31 status("inactive") GRAB.compare(testcase) ############################ TestCase 32 ########################################## testcase = 32 status("inactive") GRAB.compare(testcase) ############################ TestCase 33 ########################################## testcase = 33 status("inactive") GRAB.compare(testcase) ############################ TestCase 34 ########################################## testcase = 34 status("inactive") GRAB.compare(testcase) ############################ TestCase 35 ########################################## testcase = 35 status("inactive") GRAB.compare(testcase) ############################ TestCase 36 ########################################## testcase = 36 status("inactive") GRAB.compare(testcase) ############################ TestCase 37 ########################################## testcase = 37 status("inactive") GRAB.compare(testcase) ############################ TestCase 38 ########################################## testcase = 38 status("inactive") GRAB.compare(testcase) ############################ TestCase 39 ########################################## testcase = 39 status("active") RC.push(["exit 3 2400", "help 1 2000", "right 1 2000", "up 1 2400"]) GRAB.compare(testcase) ############################ TestCase 40 ########################################## testcase = 40 status("active") RC.push(["down 1 2400"]) GRAB.compare(testcase) ############################ TestCase 41 ########################################## testcase = 41 status("active") RC.push(["right 1 2400"]) GRAB.compare(testcase) ############################ TestCase 42 ########################################## testcase = 42 status("active") RC.push(["left 2 1000"]) GRAB.compare(testcase) ############################ TestCase 43 ########################################## testcase = 43 status("active") RC.push(["right", "ChUp 1 2400"]) GRAB.compare(testcase) ############################ TestCase 44 ########################################## testcase = 44 status("active") RC.push(["ChDown 1 2400"]) GRAB.compare(testcase) ############################ TestCase 45 ########################################## testcase = 45 status("active") RC.push(["ok 1 2400"]) GRAB.compare(testcase) ############################ TestCase 46 ########################################## testcase = 46 status("active") RC.push(["exit 3 2400", "help 1 2000", "ok 1 2400"]) GRAB.compare(testcase) ############################ TestCase 47 ########################################## testcase = 47 status("active") RC.push(["exit"]) GRAB.compare(testcase) ############################ TestCase 48 ########################################## testcase = 48 status("manual") GRAB.compare(testcase) ############################ TestCase 49 ########################################## testcase = 49 status("active") RC.push(["exit 3 2400", "help 1 2000", "ok 1 2000", "help 1 2400"]) GRAB.compare(testcase) ############################ TestCase 50 ########################################## testcase = 50 status("active") RC.push(["exit 3 2400", "help 1 2000", "ok 1 2000", "VolUp 1 2400"]) GRAB.compare(testcase) ############################ TestCase 51 ########################################## testcase = 51 status("active") RC.push(["VolDown 1 2400"]) GRAB.compare(testcase) ############################ TestCase 52 ########################################## testcase = 52 status("manual") RC.push(["mute 1 2400"]) GRAB.compare(testcase) ############################ TestCase 53 ########################################## testcase = 53 status("active") RC.push(["standby 1 15000", "standby 1 30000"]) GRAB.compare(testcase) ############################ TestCase 54 ########################################## testcase = 54 status("active") RC.push(["exit 3 2400", "3 1 5000", "help 1 2000", "ok 1 2000", "last 1 2000"]) GRAB.compare(testcase) ############################ TestCase 55 ########################################## testcase = 55 status("active") RC.push(["exit 3 2400", "help 1 2000", "ok 1 2000", "menu 1 2400"]) GRAB.compare(testcase) ############################ TestCase 56 ########################################## testcase = 56 status("active") RC.push(["exit 3 2400", "help 1 2000", "ok 1 2000", "down 1 2400"]) GRAB.compare(testcase) ############################ TestCase 57 ########################################## testcase = 57 status("active") RC.push(["up 1 2400"]) GRAB.compare(testcase) ############################ TestCase 58 ########################################## testcase = 58 status("active") RC.push(["right 1 2400"]) GRAB.compare(testcase) ############################ TestCase 59 ########################################## testcase = 59 status("active") RC.push(["left 1 2400"]) GRAB.compare(testcase) ############################ TestCase 60 ########################################## testcase = 60 status("active") RC.push(["ChUp 1 2400"]) GRAB.compare(testcase) ############################ TestCase 61 ########################################## testcase = 61 status("active") RC.push(["ChDown 1 2400"]) GRAB.compare(testcase) ############################ TestCase 62 ########################################## testcase = 62 status("active") RC.push(["ok 1 2400"]) GRAB.compare(testcase) ############################ TestCase 63 ########################################## testcase = 63 status("active") RC.push(["exit 3 2400", "help 1 2000", "ok 1 2000", "down 2 2400", "right 1 2000", "down 1 2400"]) GRAB.compare(testcase) ############################ TestCase 64 ########################################## testcase = 64 status("active") RC.push(["up 1 2400"]) GRAB.compare(testcase) ############################ TestCase 65 ########################################## testcase = 65 status("active") RC.push(["right 1 2400"]) GRAB.compare(testcase) ############################ TestCase 66 ########################################## testcase = 66 status("active") RC.push(["left 1 2400"]) GRAB.compare(testcase) ############################ TestCase 67 ########################################## testcase = 67 status("active") RC.push(["right 1 2400", "ChDown 1 2400"]) GRAB.compare(testcase) ############################ TestCase 68 ########################################## testcase = 68 status("active") RC.push(["ChUp 1 2400"]) GRAB.compare(testcase) ############################ TestCase 69 ########################################## testcase = 69 status("active") RC.push(["ok 1 2400"]) GRAB.compare(testcase) ############################ TestCase 70 ########################################## testcase = 70 status("inactive") GRAB.compare(testcase) ############################ TestCase 71 ########################################## testcase = 71 status("inactive") GRAB.compare(testcase) ############################ TestCase 72 ########################################## testcase = 72 status("active") RC.push(["exit 3 2400", "help 1 2000", "right 1 2000", "ok 1 2400"]) GRAB.compare(testcase) ############################ TestCase 73 ########################################## testcase = 73 status("active") RC.push(["exit 1 2400"]) GRAB.compare(testcase) ############################ TestCase 74 ########################################## testcase = 74 status("manual") GRAB.compare(testcase) ############################ TestCase 75 ########################################## testcase = 75 status("active") RC.push(["exit 3 2400", "help 1 2000", "right 1 2000", "ok 1 2000", "help 1 2400"]) GRAB.compare(testcase) ############################ TestCase 76 ########################################## testcase = 76 status("active") RC.push(["exit 3 2400", "help 1 2000", "right 1 2000", "ok 1 2000", "VolUp 1 2400"]) GRAB.compare(testcase) ############################ TestCase 77 ########################################## testcase = 77 status("active") RC.push(["VolDown 1 2400"]) GRAB.compare(testcase) ############################ TestCase 78 ########################################## testcase = 78 status("manual") RC.push(["mute 1 2400"]) GRAB.compare(testcase) ############################ TestCase 79 ########################################## testcase = 79 status("active") RC.push(["standby 1 15000", "standby 1 30000"]) GRAB.compare(testcase) ############################ TestCase 80 ########################################## testcase = 80 status("active") RC.push(["exit 3 2400", "3 1 5000", "help 1 2000", "right 1 2000", "ok 1 2000", "last 1 2000"]) GRAB.compare(testcase) ############################ TestCase 81 ########################################## testcase = 81 status("active") RC.push(["exit 3 2400", "help 1 2000", "right 1 2000", "ok 1 2000", "menu 1 2400"]) GRAB.compare(testcase) ############################ TestCase 82 ########################################## testcase = 82 status("active") RC.push(["exit 3 2400", "help 1 2000", "right 1 2000", "ok 1 2000", "down 1 2400"]) GRAB.compare(testcase) ############################ TestCase 83 ########################################## testcase = 83 status("active") RC.push(["up 1 2400"]) GRAB.compare(testcase) ############################ TestCase 84 ########################################## testcase = 84 status("active") RC.push(["right 1 2400"]) GRAB.compare(testcase) ############################ TestCase 85 ########################################## testcase = 85 status("active") RC.push(["left 1 2400"]) GRAB.compare(testcase) ############################ TestCase 86 ########################################## testcase = 86 status("active") RC.push(["ChDown 1 2400"]) GRAB.compare(testcase) ############################ TestCase 87 ########################################## testcase = 87 status("active") RC.push(["ChUp 1 2400"]) GRAB.compare(testcase) ############################ TestCase 88 ########################################## testcase = 88 status("active") RC.push(["exit 3 2400", "help 1 2000", "right 1 2000", "ok 1 2000", "right 1 2400", "down 1 2400"]) GRAB.compare(testcase) ############################ TestCase 89 ########################################## testcase = 89 status("active") RC.push(["up 1 2400"]) GRAB.compare(testcase) ############################ TestCase 90 ########################################## testcase = 90 status("active") RC.push(["right 1 2400"]) GRAB.compare(testcase) ############################ TestCase 91 ########################################## testcase = 91 status("active") RC.push(["left 1 2400"]) GRAB.compare(testcase) ############################ TestCase 92 ########################################## testcase = 92 status("active") RC.push(["ChDown 1 2400"]) GRAB.compare(testcase) ############################ TestCase 93 ########################################## testcase = 93 status("active") RC.push(["ChUp 1 2400"]) GRAB.compare(testcase) ############################ TestCase 94 ########################################## testcase = 94 status("active") RC.push(["exit 3 2400", "help 1 2000", "cinemahalls 1 2400"]) GRAB.compare(testcase) ############################ TestCase 95 ########################################## testcase = 95 status("active") RC.push(["exit 3 2400", "help 1 2000", "help 1 2400"]) GRAB.compare(testcase) ############################ TestCase 96 ########################################## testcase = 96 status("active") MOD.stop(Modulation) MOD.play(Modulation) UART.start_app("scheduler") RC.push(["red", "ok 1 2400", "down 2 1000", "ok 1 2000", "ok 1 2000", "right 1 1000", "up 2 1000", "ok 1 2000", "ok 1 2000", "exit 5 2400", "1 1 2400", "help 1 2000"]) sleep(70) GRAB.compare(testcase) ############################ TestCase 97 ########################################## testcase = 97 status("manual") GRAB.compare(testcase) ############################ TestCase 98 ########################################## testcase = 98 status("manual") GRAB.compare(testcase) ############################ TestCase 99 ########################################## testcase = 99 status("manual") GRAB.compare(testcase) ############################ TestCase 100 ########################################## testcase = 100 status("manual") GRAB.compare(testcase) ############################ TestCase 101 ########################################## testcase = 101 status("active") RC.push(["exit 3 2400", "help 1 2000", "VolUp 3 1000"]) GRAB.compare(testcase) ############################ TestCase 102 ########################################## testcase = 102 status("active") RC.push(["VolDown 3 1000"]) GRAB.compare(testcase) ############################ TestCase 103 ########################################## testcase = 103 status("manual") RC.push(["mute 1 2400"]) GRAB.compare(testcase) ############################ TestCase 104 ########################################## testcase = 104 status("active") RC.push(["exit 3 2400", "help 1 2000", "guide 1 2400"]) GRAB.compare(testcase) ############################ TestCase 105 ########################################## testcase = 105 status("active") RC.push(["exit 3 2400", "help 1 2000", "format 1 2400"]) GRAB.compare(testcase) ############################ TestCase 106 ########################################## testcase = 106 status("active") RC.push(["exit 3 2400", "help 1 2000", "star 1 2400"]) GRAB.compare(testcase) ############################ TestCase 107 ########################################## testcase = 107 status("manual") GRAB.compare(testcase) ############################ TestCase 108 ########################################## testcase = 108 status("manual") GRAB.compare(testcase) ############################ TestCase 109 ########################################## testcase = 109 status("manual") GRAB.compare(testcase) ############################ TestCase 110 ########################################## testcase = 110 status("manual") GRAB.compare(testcase) ############################ TestCase 111 ########################################## testcase = 111 status("manual") GRAB.compare(testcase) ############################ TestCase 112 ########################################## testcase = 112 status("manual") GRAB.compare(testcase) ############################ TestCase 113 ########################################## testcase = 113 status("manual") GRAB.compare(testcase) ################################################################################### status("active") MOD.stop(Modulator) GRAB.stop_capture()
def runTest(): status("active") TestName = "EPG" ScriptName = "functionality" ScriptIndex = "2" Grabber = DO.grab_define() platform = DO.load_platform() Modulation = "DVBS" FEC = "3/4" SR = "27500000" Stream = "\\X_0000_00000_MUX_32000_EPG_Software_20130328a.ts" Frequency = 1476 Modulator = "1" COM = "COM7" settings = [ScriptName, ScriptIndex, Grabber, Modulation, FEC, SR, Stream, Frequency, Modulator, COM] DO.save_settings(settings) GRAB.start_capture() MOD.stop(Modulator) # macros searching_from_wizard_general_E501 = ["ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 45000", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_general_english_E501 = ["ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 45000", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_centre_E501 = ["ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 45000", "down", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_centre_english_E501 = ["up 3 3400", "right 1 1000", "down 3 3400", "ok 1 3400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 45000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_south_E501 = ["ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 45000", "down", "down", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_general_ALL = ["ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 45000", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_general_english_ALL = ["up 3 3400", "right 1 1000", "down 3 3400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 45000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_centre_ALL = ["ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 45000", "down", "ok 1 5000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_centre_english_ALL = ["up 3 3400", "right 1 1000", "down 3 3400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 45000", "down 1 1000", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_south_ALL = ["ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 45000", "down", "down", "ok 1 15000", "ok 1 10000", "exit 2 3000"] load_regions_E501 = ["ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 45000"] load_regions_english_E501 = ["up 3 2400", "right 1 1000", "down 3 2400", "ok 1 3400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 45000"] load_regions_ALL = ["ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 45000"] load_regions_english_ALL = ["up 3 2400", "right 1 1000", "down 3 2400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 45000"] ############################ TestCase 1 ########################################## """testcase = 1 status("active") MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) UART.default_settings() UART.start_app("") RC.push(["key_1", "key_2", "key_3"]) # set of the RC buttons sleep(0) RC.push("[macros_name]") # RC macros from remote_control.ini file GRAB.compare(testcase)""" ############################ TestCase 1 ########################################## testcase = 1 status("active") UART.default_settings() # RC.push(["exit 1 500", "exit 1 500", "exit 1 500", "menu 1 1000", "left 1 1000", "left 1 1000", "ok 1 1000", "right 1 1000", "right 1 1000", "right 1 1000", "right 1 1000", "right 1 1000", "right 1 1000", "right 1 1000", "right 1 1000", "down 1 1500", "ok 1 1500", "left 1 1000", "ok 1 1000"]) sleep(15) MOD.stop(Modulator) MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) if platform in ["E501", "E502", "A230"]: RC.push(["ok 1 2000", "ok 1 2000", "ok 1 2000", "right 1 2000", "ok 1 2000", "ok 1 60000", "ok 1 15000", "ok 1 5000", "ok 1 10000", "exit 2 2000"]) else: RC.push(["ok 1 2000", "ok 1 2000", "right 1 2000", "ok 1 2000", "ok 1 15000", "ok 1 60000", "ok 1 5000", "exit 2 2000"]) sleep(3) RC.push(["0 1 4000", "guide 1 20000", "right 1 1000", "left 1 1000"]) GRAB.compare(testcase) ############################ TestCase 2 ########################################## testcase = 2 status("manual") GRAB.compare(testcase) ############################ TestCase 3 ########################################## testcase = 3 status("active") RC.push(["exit 1 1000", "3 1 3500", "guide"]) sleep(7) GRAB.compare(testcase) ############################ TestCase 4 ########################################## testcase = 4 status("active") RC.push(["exit 1 1500", "up 1 3500", "guide 1 5500"]) GRAB.compare(testcase) ############################ TestCase 5 ########################################## testcase = 5 status("active") GRAB.compare(testcase) ############################ TestCase 6 ########################################## testcase = 6 status("active") GRAB.compare(testcase) ############################ TestCase 7 ########################################## testcase = 7 status("manual") GRAB.compare(testcase) ############################ TestCase 8 ########################################## testcase = 8 #26056 status("active") OPER.set_pin() UART.start_app("channelseditor") RC.push(["right 1 1000"]) OPER.channel_block() RC.push(["down 1 1000"]) OPER.channel_block() RC.push(["down 1 1000"]) OPER.channel_block() RC.push(["down 1 1000"]) OPER.channel_block() RC.push(["exit", "exit", "exit", "exit", "0", "guide 1 9000"]) GRAB.compare(testcase) ############################ TestCase 9 ########################################## testcase = 9 status("active") UART.default_settings() sleep(10) MOD.stop(Modulator) MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) OPER.search() sleep(3) RC.push(["2 1 3500", "guide 1 7000"]) GRAB.compare(testcase) ############################ TestCase 10 ########################################## testcase = 10 status("active") RC.push(["exit", "0 1 3500", "guide 1 4000", "down", "up 1 10500"]) GRAB.compare(testcase) ############################ TestCase 11 ########################################## testcase = 11 #22957 status("active") RC.push(["exit", "guide 1 2000", "down 1 10000", "right", "down 1 1000", "down", "ok", "up", "up 1 1000", "ok", "down 1 1000", "down", "ok 1 2000"]) # RC.push(["exit", "guide 1 2000", "down 1 3000", "right", "down 1 1000", "down 1 1000", "ok", "up", "ok", "down", "ok 1 2000"]) GRAB.compare(testcase) ############################ TestCase 167 ########################################## testcase = 167 status("active") UART.reboot() RC.push(["exit 1 3500", "1 1 3500", "guide 1 10000", "right 1 1000", "down 1 1000", "down 1 1000"]) GRAB.compare(testcase) ############################ TestCase 168 ########################################## testcase = 168 status("manual") GRAB.compare(testcase) ############################ TestCase 157 ########################################## testcase = 157 status("manual") GRAB.compare(testcase) ############################ TestCase 12 ########################################## testcase = 12 status("active") RC.push(["ok", "up", "up 1 1000", "ok", "down 1 1000", "down", "ok 1 3000"]) GRAB.compare(testcase) ############################ TestCase 13 ########################################## testcase = 13 status("active") RC.push(["exit 1 1500", "5 1 3500", "guide 1 10000"]) GRAB.compare(testcase) ############################ TestCase 14 ########################################## testcase = 14 status("active") RC.push(["exit 1 1500", "0 1 3500", "guide 1 10000"]) GRAB.compare(testcase) ############################ TestCase 158 ########################################## testcase = 158 status("active") UART.default_settings() sleep(10) MOD.stop(Modulator) MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) if platform in ["E501", "E502", "A230"]: RC.push(["ok 1 2000", "ok 1 2000", "ok 1 2000", "right 1 2000", "ok 1 2000", "ok 1 60000", "ok 1 15000", "ok 1 5000", "ok 1 10000", "exit 2 2000"]) else: RC.push(["ok 1 2000", "ok 1 2000", "right 1 2000", "ok 1 2000", "ok 1 15000", "ok 1 60000", "ok 1 5000", "exit 2 2000"]) sleep(3) RC.push(["2 1 3500", "guide 1 5000"]) GRAB.compare(testcase) ############################ TestCase 159 ########################################## testcase = 159 status("active") RC.push(["exit", "0 1 3500", "guide 1 5000", "right 1 5000"]) GRAB.compare(testcase) ############################ TestCase 15 ########################################## testcase = 15 status("manual") GRAB.compare(testcase) ############################ TestCase 16 ########################################## testcase = 16 status("manual") GRAB.compare(testcase) ############################ TestCase 17 ########################################## testcase = 17 status("manual") GRAB.compare(testcase) ############################ TestCase 18 ########################################## testcase = 18 status("active") # MOD.stop(Modulator) # MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) RC.push(["exit", "0 1 3500", "red 1 1500"]) sleep(180) GRAB.compare(testcase) ############################ TestCase 19 ########################################## testcase = 19 status("active") MOD.stop(Modulator) MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) RC.push(["exit", "exit", "0 1 3500", "guide"]) sleep(345) GRAB.compare(testcase) ############################ TestCase 20 ########################################## testcase = 20 status("active") sleep(50) # RC.push(["guide 1 5000"]) GRAB.compare(testcase) ############################ TestCase 21 ########################################## testcase = 21 status("active") RC.push(["exit 1 3500"]) MOD.stop(Modulator) MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) sleep(15) RC.push(["standby 1 10000", "standby 1 10000", "exit 1 1500", "exit 1 1500", "red 1 1000", "down 1 1000", "down 1 1000", "down 1 1000", "down 1 1000", "down 1 1000", "down 1 1000", "down 1 1000", "down 10 1000"]) GRAB.compare(testcase) ############################ TestCase 22 ########################################## testcase = 22 status("active") RC.push(["exit", "guide 1 2500", "right 1 1000", "ok", "left", "down 1 1000", "down 1 1000", "down 1 1000", "down 1 1000", "down 1 1000", "down 1 1000", "down 1 1000", "down 1 1000", "down 1 1000", "down 10 1000", "down 10 1000"]) GRAB.compare(testcase) ############################ TestCase 23 ########################################## testcase = 23 status("manual") GRAB.compare(testcase) ############################ TestCase 24 ########################################## testcase = 24 status("active") RC.push(["exit", "exit", "exit", "exit", "2"]) MOD.stop(Modulator) MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) UART.start_app("settings") RC.push(["right", "right", "right", "right", "right", "right", "down", "ok", "1 1 1000", "1 1 1000", "1 1 1000", "1 1 1000", "1 1 1000", "1 1 1000", "1 1 1000", "1 1 1000", "ok 1 1000", "down 1 1000", "down 1 1000", "right 1 70000", "exit 1 1000", "exit 1 10000", "exit 1 1000", "0 1 5500"]) GRAB.compare(testcase) ############################ TestCase 25 ########################################## testcase = 25 status("manual") GRAB.compare(testcase) ############################ TestCase 26 ########################################## testcase = 26 status("manual") GRAB.compare(testcase) ############################ TestCase 27 ########################################## testcase = 27 status("active") UART.default_settings() sleep(10) RC.push(["exit 1 2000", "guide 1 1500"]) GRAB.compare(testcase) ############################ TestCase 28 ########################################## testcase = 28 status("manual") GRAB.compare(testcase) ############################ TestCase 29 ########################################## testcase = 29 status("active") UART.default_settings() sleep(10) MOD.stop(Modulator) MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) if platform in ["E501", "E502", "A230"]: RC.push(["ok 1 2000", "ok 1 2000", "ok 1 2000", "right 1 2000", "ok 1 2000", "ok 1 60000", "ok 1 15000", "ok 1 5000", "ok 1 10000", "exit 2 2000"]) else: RC.push(["ok 1 2000", "ok 1 2000", "right 1 2000", "ok 1 2000", "ok 1 15000", "ok 1 60000", "ok 1 5000", "exit 2 2000"]) sleep(3) RC.push(["1 1 3500", "guide 1 10000", "up 1 2000", "ok 1 11000"]) GRAB.compare(testcase) ############################ TestCase 30 ########################################## testcase = 30 status("manual") GRAB.compare(testcase) ############################ TestCase 31 ########################################## testcase = 31 status("active") RC.push(["up 1 3500"]) GRAB.compare(testcase) ############################ TestCase 32 ########################################## testcase = 32 status("active") RC.push(["down 1 8500"]) GRAB.compare(testcase) ############################ TestCase 33 ########################################## testcase = 33 status("active") RC.push(["up 1 2000", "up 1 10000", "left 1 1500"]) GRAB.compare(testcase) ############################ TestCase 34 ########################################## testcase = 34 status("active") RC.push(["right 1 1000", "right 1 1500"]) GRAB.compare(testcase) ############################ TestCase 35 ########################################## testcase = 35 status("active") RC.push(["left 1 1000", "down 1 1000", "down 1 3000", "right 1 3000"]) GRAB.compare(testcase) ############################ TestCase 36 ########################################## testcase = 36 status("active") RC.push(["ChUp 1 10000"]) GRAB.compare(testcase) ############################ TestCase 37 ########################################## testcase = 37 status("active") RC.push(["ChDown 1 3500"]) GRAB.compare(testcase) ############################ TestCase 38 ########################################## testcase = 38 status("active") RC.push(["VolUp 1 1500"]) GRAB.compare(testcase) ############################ TestCase 39 ########################################## testcase = 39 status("active") RC.push(["VolDown 1 1500"]) GRAB.compare(testcase) ############################ TestCase 40 ########################################## testcase = 40 status("manual") GRAB.compare(testcase) ############################ TestCase 41 ########################################## testcase = 41 status("active") RC.push(["standby 1 10000", "standby 1 10000", "exit 1 3500"]) GRAB.compare(testcase) ############################ TestCase 42 ########################################## testcase = 42 status("manual") GRAB.compare(testcase) ############################ TestCase 43 ########################################## testcase = 43 status("active") RC.push(["guide 1 1500", "exit 1 1000"]) GRAB.compare(testcase) ############################ TestCase 44 ########################################## testcase = 44 status("active") RC.push(["guide 1 6000", "menu 1 1500"]) GRAB.compare(testcase) ############################ TestCase 45 ########################################## testcase = 45 status("manual") GRAB.compare(testcase) ############################ TestCase 46 ########################################## testcase = 46 status("active") RC.push(["exit 1 1000", "guide 1 3000", "guide 1 1000"]) GRAB.compare(testcase) ############################ TestCase 47 ########################################## testcase = 47 status("active") RC.push(["0 1 3500", "6 1 3500", "guide 1 3000", "up 1 1000", "up 1 1000", "up 1 1000", "last 1 2500"]) GRAB.compare(testcase) ############################ TestCase 161 ######################################### testcase = 161 status("active") RC.push(["exit 1 1500", "0 1 7000", "guide 1 10000", "blue 1 2000"]) GRAB.compare(testcase) ############################ TestCase 48 ########################################## testcase = 48 status("active") MOD.stop(Modulator) MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) RC.push(["standby 1 10000", "standby 1 10000", "exit", "0 1 3500", "guide 1 5500", "right 1 3500"]) GRAB.compare(testcase) ############################ TestCase 49 ########################################## testcase = 49 status("active") RC.push(["ok 1 1500"]) GRAB.compare(testcase) ############################ TestCase 50 ########################################## testcase = 50 status("active") RC.push(["exit 1 1500", "down 1 1000", "up 1 1500"]) GRAB.compare(testcase) ############################ TestCase 51 ########################################## testcase = 51 status("active") RC.push(["down 1 1500"]) GRAB.compare(testcase) ############################ TestCase 52 ########################################## testcase = 52 status("active") RC.push(["left 1 1500"]) GRAB.compare(testcase) ############################ TestCase 53 ########################################## testcase = 53 status("active") RC.push(["right 1 1500", "right 1 1500"]) GRAB.compare(testcase) ############################ TestCase 54 ########################################## testcase = 54 status("active") RC.push(["left 1 1500", "ChDown 1 1500", "ChUp 1 1500"]) GRAB.compare(testcase) ############################ TestCase 55 ########################################## testcase = 55 status("active") RC.push(["ChDown 1 1500"]) GRAB.compare(testcase) ############################ TestCase 56 ########################################## testcase = 56 status("active") RC.push(["exit 1 1000", "guide 1 10000", "right 1 1000", "VolUp 1 1500"]) GRAB.compare(testcase) ############################ TestCase 57 ########################################## testcase = 57 status("active") RC.push(["VolDown 1 1500"]) GRAB.compare(testcase) ############################ TestCase 58 ########################################## testcase = 58 status("manual") GRAB.compare(testcase) ############################ TestCase 59 ########################################## testcase = 59 status("active") RC.push(["standby 1 5000", "standby 1 10000", "exit 1 3000"]) GRAB.compare(testcase) ############################ TestCase 60 ########################################## testcase = 60 status("manual") GRAB.compare(testcase) ############################ TestCase 61 ########################################## testcase = 61 status("active") RC.push(["guide 1 1500", "right 1 1500", "exit 1 1500"]) GRAB.compare(testcase) ############################ TestCase 62 ########################################## testcase = 62 status("active") RC.push(["guide 1 1500", "right 1 1500", "menu 1 2500"]) GRAB.compare(testcase) ############################ TestCase 63 ########################################## testcase = 63 status("manual") GRAB.compare(testcase) ############################ TestCase 64 ########################################## testcase = 64 status("active") RC.push(["exit 1 1500", "guide 1 1500", "right 1 1500", "guide 1 1500"]) GRAB.compare(testcase) ############################ TestCase 65 ########################################## testcase = 65 status("active") RC.push(["0 1 3500", "6 1 3500", "guide 1 1000", "up 1 1000", "up 1 1000", "up 1 1000", "up 1 1000", "up 1 1000", "up 1 1000", "last 1 2800"]) GRAB.compare(testcase) ############################ TestCase 162 ######################################### testcase = 162 status("active") RC.push(["exit 1 1500", "0 1 7000", "guide 1 10000", "right 1 3500", "blue 1 2000"]) GRAB.compare(testcase) ############################ TestCase 66 ########################################## testcase = 66 status("active") MOD.stop(Modulator) MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) RC.push(["standby 1 10000", "standby 1 10000", "exit 1 1000", "0 1 3500", "guide 1 10000", "right 1 1000", "right 1 1000"]) GRAB.compare(testcase) ############################ TestCase 67 ########################################## testcase = 67 status("active") RC.push(["down 1 1000", "ok 1 1000"]) GRAB.compare(testcase) ############################ TestCase 68 ########################################## testcase = 68 status("active") RC.push(["right 1 1000", "up 1 1000"]) GRAB.compare(testcase) ############################ TestCase 69 ########################################## testcase = 69 status("active") RC.push(["down 1 1000"]) GRAB.compare(testcase) ############################ TestCase 70 ########################################## testcase = 70 status("active") RC.push(["left 1 1000"]) GRAB.compare(testcase) ############################ TestCase 71 ########################################## testcase = 71 status("active") RC.push(["right 1 1000", "right 1 1000"]) GRAB.compare(testcase) ############################ TestCase 72 ########################################## testcase = 72 status("active") RC.push(["ChDown 1 1000", "down 1 1000", "ChUp 1 1000"]) GRAB.compare(testcase) ############################ TestCase 73 ########################################## testcase = 73 status("active") RC.push(["ChDown 1 1000"]) GRAB.compare(testcase) ############################ TestCase 74 ########################################## testcase = 74 status("active") RC.push(["VolUp 1 1000"]) GRAB.compare(testcase) ############################ TestCase 75 ########################################## testcase = 75 status("active") RC.push(["VolDown 1 1000"]) GRAB.compare(testcase) ############################ TestCase 76 ########################################## testcase = 76 status("manual") GRAB.compare(testcase) ############################ TestCase 77 ########################################## testcase = 77 status("active") RC.push(["standby 1 10000", "standby 1 10000", "exit 1 1000"]) GRAB.compare(testcase) ############################ TestCase 78 ########################################## testcase = 78 status("manual") GRAB.compare(testcase) ############################ TestCase 79 ########################################## testcase = 79 status("active") RC.push(["0 1 3500", "guide 1 1000", "right 1 1000", "right 1 1000", "exit 1 4000"]) GRAB.compare(testcase) ############################ TestCase 80 ########################################## testcase = 80 status("active") RC.push(["guide 1 1000", "right 1 1000", "right 1 1000", "menu 1 3000"]) GRAB.compare(testcase) ############################ TestCase 81 ########################################## testcase = 81 status("manual") GRAB.compare(testcase) ############################ TestCase 82 ########################################## testcase = 82 status("active") RC.push(["exit 1 1000", "guide 1 1000", "right 1 1000", "right 1 1000", "guide 1 3000"]) GRAB.compare(testcase) ############################ TestCase 83 ########################################## testcase = 83 status("active") RC.push(["0 1 3500", "6 1 3500", "guide 1 1000", "up 1 1000", "up 1 1000", "up 1 1000", "up 1 1000", "up 1 1000", "up 1 1000", "right 1 1000", "right 1 1000", "last 1 2500"]) GRAB.compare(testcase) ############################ TestCase 163 ######################################### testcase = 163 status("active") RC.push(["exit 1 1500", "0 1 7000", "guide 1 1000", "right 1 3500", "right 1 3500", "blue 1 2000"]) GRAB.compare(testcase) ############################ TestCase 84 ########################################## testcase = 84 status("active") MOD.stop(Modulator) MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) RC.push(["standby 1 10000", "standby 1 10000", "exit 1 4000", "1 1 3500", "guide 1 10000", "left 1 1000"]) GRAB.compare(testcase) ############################ TestCase 85 ########################################## testcase = 85 status("active") RC.push(["ok 1 1000"]) GRAB.compare(testcase) ############################ TestCase 86 ########################################## testcase = 86 status("active") RC.push(["left 1 1000", "down 1 1000", "ok 1 5000"]) GRAB.compare(testcase) ############################ TestCase 87 ########################################## testcase = 87 status("active") RC.push(["left 1 1000", "up 1 2500"]) GRAB.compare(testcase) ############################ TestCase 88 ########################################## testcase = 88 status("active") RC.push(["down 1 1000"]) GRAB.compare(testcase) ############################ TestCase 89 ########################################## testcase = 89 status("active") RC.push(["left 1 1000"]) GRAB.compare(testcase) ############################ TestCase 90 ########################################## testcase = 90 status("active") RC.push(["up 1 1000", "right 1 1000", "down 1 10000", "left 1 1000", "right 1 5000"]) GRAB.compare(testcase) ############################ TestCase 91 ########################################## testcase = 91 status("active") RC.push(["left 1 1000", "down 1 1000", "right 1 1000"]) GRAB.compare(testcase) ############################ TestCase 92 ########################################## testcase = 92 status("manual") GRAB.compare(testcase) ############################ TestCase 93 ########################################## testcase = 93 status("manual") GRAB.compare(testcase) ############################ TestCase 94 ########################################## testcase = 94 status("active") RC.push(["left 1 1000", "VolUp 1 1000"]) GRAB.compare(testcase) ############################ TestCase 95 ########################################## testcase = 95 status("active") RC.push(["VolDown 1 1000"]) GRAB.compare(testcase) ############################ TestCase 96 ########################################## testcase = 96 status("manual") GRAB.compare(testcase) ############################ TestCase 97 ########################################## testcase = 97 status("active") RC.push(["standby 1 10000", "standby 1 10000", "exit 1 1000"]) GRAB.compare(testcase) ############################ TestCase 98 ########################################## testcase = 98 status("active") RC.push(["guide 1 10000", "left 1 1000", "stb 1 1000"]) GRAB.compare(testcase) ############################ TestCase 99 ########################################## testcase = 99 status("active") RC.push(["exit 1 1000"]) GRAB.compare(testcase) ############################ TestCase 100 ########################################## testcase = 100 status("active") RC.push(["left 1 1000", "menu 1 1000"]) GRAB.compare(testcase) ############################ TestCase 101 ########################################## testcase = 101 status("manual") GRAB.compare(testcase) ############################ TestCase 102 ########################################## testcase = 102 status("active") RC.push(["exit 1 1500", "guide 1 1000", "left 1 1000", "guide 1 1000"]) GRAB.compare(testcase) ############################ TestCase 103 ########################################## testcase = 103 status("active") RC.push(["0 1 3500", "6 1 3500", "guide 1 1000", "up 1 1000", "up 1 1000", "up 1 1000", "up 1 1000", "up 1 1000", "up 1 1000", "left 1 1000", "last 1 2200"]) GRAB.compare(testcase) ############################ TestCase 164 ######################################### testcase = 164 status("active") RC.push(["exit 1 1500", "0 1 7000", "guide 1 10000", "left 1 3500", "blue 1 2000"]) GRAB.compare(testcase) ############################ TestCase 104 ########################################## testcase = 104 status("active") MOD.stop(Modulator) MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) RC.push(["standby 1 15000", "standby 1 15000", "exit 1 1000", "0 1 3500", "guide 1 1000", "right 1 1000", "down 1 1000", "ok 1 1000"]) GRAB.compare(testcase) ############################ TestCase 105 ########################################## testcase = 105 status("active") RC.push(["up 1 1000", "up 1 1000", "up 1 1000", "up 1 1000"]) GRAB.compare(testcase) ############################ TestCase 106 ########################################## testcase = 106 status("active") RC.push(["down 1 1000", "down 1 1000", "down 1 1000", "down 1 1000"]) GRAB.compare(testcase) ############################ TestCase 107 ########################################## testcase = 107 status("active") RC.push(["left 1 1000"]) GRAB.compare(testcase) ############################ TestCase 169 ########################################## testcase = 169 status("active") RC.push(["right 1 1000", "up 1 1000", "left 1 1000"]) GRAB.compare(testcase) ############################ TestCase 170 ########################################## testcase = 170 status("active") RC.push(["exit 1 1000", "left 1 1000", "down 1 1000", "right 1 1000", "down 1 1000", "OK 1 1000", "left 1 1000"]) GRAB.compare(testcase) ############################ TestCase 171 ########################################## testcase = 171 status("inactive") GRAB.compare(testcase) ############################ TestCase 108 ########################################## testcase = 108 status("active") RC.push(["exit 1 1000", "left 1 1000", "up 1 1000", "right 1 1000", "down 1 1000", "OK 1 1000", "right 1 1000"]) GRAB.compare(testcase) ############################ TestCase 172 ########################################## testcase = 172 status("inactive") GRAB.compare(testcase) ############################ TestCase 173 ########################################## testcase = 173 status("active") RC.push(["up 1 1000", "OK 1 1000", "right 1 1000"]) GRAB.compare(testcase) ############################ TestCase 109 ########################################## testcase = 109 status("active") RC.push(["OK 1 1000", "up 1 1000", "ChUp 1 1000"]) GRAB.compare(testcase) ############################ TestCase 110 ########################################## testcase = 110 status("active") RC.push(["ChDown 1 1000"]) GRAB.compare(testcase) ############################ TestCase 111 ########################################## testcase = 111 status("active") RC.push(["VolUp 1 1000"]) GRAB.compare(testcase) ############################ TestCase 112 ########################################## testcase = 112 status("active") RC.push(["VolDown 1 1000"]) GRAB.compare(testcase) ############################ TestCase 113 ########################################## testcase = 113 status("manual") GRAB.compare(testcase) ############################ TestCase 114 ########################################## testcase = 114 status("active") RC.push(["standby 1 10000", "standby 1 10000", "exit 1 1000"]) GRAB.compare(testcase) ############################ TestCase 115 ########################################## testcase = 115 status("active") MOD.stop(Modulator) MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) RC.push(["guide 1 1000", "right 1 1000", "down 1 1000", "ok 1 1000", "menu 1 1000"]) GRAB.compare(testcase) ############################ TestCase 116 ########################################## testcase = 116 status("active") RC.push(["standby 1 10000", "standby 1 10000", "exit 1 1000", "guide 1 10000", "right 1 1000", "down 1 1000", "ok 1 1000", "exit 1 1000"]) GRAB.compare(testcase) ############################ TestCase 117 ########################################## testcase = 117 status("active") RC.push(["ok 1 1000", "guide 1 1000"]) GRAB.compare(testcase) ############################ TestCase 118 ########################################## testcase = 118 status("active") MOD.stop(Modulator) MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) RC.push(["standby 1 10000", "standby 1 10000", "exit 1 1000", "0 1 3500", "guide 1 1000", "right 1 1000", "down 1 1000", "ok 1 1000", "up 1 1000", "ok 1 1000"]) GRAB.compare(testcase) ############################ TestCase 119 ########################################## testcase = 119 status("manual") GRAB.compare(testcase) ############################ TestCase 120 ########################################## testcase = 120 status("active") RC.push(["ok 1 1000", "down 1 1000", "ok 1 1000"]) GRAB.compare(testcase) ############################ TestCase 121 ########################################## testcase = 121 status("inactive") #Test was deleted for unknown reason RC.push(["ok 1 1000", "up 1 1000", "ok 1 1000", "up 1 1000", "ok 1 2000"]) GRAB.compare(testcase) ############################ TestCase 122 ########################################## testcase = 122 status("active") RC.push(["ok 1 1000", "left 1 1000"]) GRAB.compare(testcase) ############################ TestCase 123 ########################################## testcase = 123 status("active") RC.push(["ok 1 1000"]) GRAB.compare(testcase) ############################ TestCase 124 ########################################## testcase = 124 status("active") RC.push(["down 1 1000", "down 1 1000", "up 1 1000"]) GRAB.compare(testcase) ############################ TestCase 125 ########################################## testcase = 125 status("active") RC.push(["down 1 1000"]) GRAB.compare(testcase) ############################ TestCase 126 ########################################## testcase = 126 status("active") RC.push(["left 1 1000"]) GRAB.compare(testcase) ############################ TestCase 127 ########################################## testcase = 127 status("active") RC.push(["right 1 1000"]) GRAB.compare(testcase) ############################ TestCase 128 ########################################## testcase = 128 status("active") RC.push(["left 1 1000", "ChDown 1 1000", "ChUp 1 1000"]) GRAB.compare(testcase) ############################ TestCase 129 ########################################## testcase = 129 status("active") RC.push(["ChDown 1 1000"]) GRAB.compare(testcase) ############################ TestCase 130 ########################################## testcase = 130 status("active") RC.push(["VolUp 1 1000"]) GRAB.compare(testcase) ############################ TestCase 131 ########################################## testcase = 131 status("active") RC.push(["VolDown 1 1000"]) GRAB.compare(testcase) ############################ TestCase 132 ########################################## testcase = 132 status("manual") GRAB.compare(testcase) ############################ TestCase 133 ########################################## testcase = 133 status("active") RC.push(["standby 1 10000", "standby 1 10000", "exit 1 1000"]) GRAB.compare(testcase) ############################ TestCase 134 ########################################## testcase = 134 status("active") RC.push(["guide 1 1000", "right 1 1000", "down 1 1000", "ok 1 1000", "left 1 1000", "menu 1 1000"]) GRAB.compare(testcase) ############################ TestCase 135 ########################################## testcase = 135 status("active") RC.push(["standby 1 10000", "standby 1 10000", "exit 1 1000", "guide 1 10000", "right 1 1000", "down 1 1000", "ok 1 1000", "left 1 1000", "exit 1 1000"]) GRAB.compare(testcase) ############################ TestCase 136 ########################################## testcase = 136 status("active") RC.push(["standby 1 10000", "standby 1 10000", "exit 1 1000", "guide 1 1000", "right 1 1000", "down 1 1000", "ok 1 1000", "left 1 1000", "guide 1 1000"]) GRAB.compare(testcase) ############################ TestCase 165 ######################################### testcase = 165 status("active") MOD.stop(Modulator) MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) RC.push(["exit 1 1500", "exit 1 1500", "guide 1 1000", "right 1 1000", "OK 1 1000"]) sleep(350) GRAB.compare(testcase) ############################ TestCase 166 ######################################### testcase = 166 status("active") RC.push(["exit 1 1500"]) GRAB.compare(testcase) ############################ TestCase 137 ########################################## testcase = 137 status("active") MOD.stop(Modulator) MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) RC.push(["standby 1 10000", "standby 1 10000", "exit 1 1000", "2 1 3500", "guide 1 10000", "cinemahalls 1 3000"]) GRAB.compare(testcase) ############################ TestCase 138 ########################################## testcase = 138 status("active") RC.push(["standby 1 10000", "standby 1 10000", "exit 1 1000", "2 1 3500", "guide 1 10000", "help 1 1000"]) GRAB.compare(testcase) ############################ TestCase 139 ########################################## testcase = 139 status("active") MOD.stop(Modulator) MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) sleep(5) RC.push(["standby 1 12000", "standby 1 12000", "exit 1 1500", "5 1 3500"]) UART.start_app("scheduler") RC.push(["red 1 3000", "ok 1 3000", "ok 1 3000", "ok 1 3000", "1 1 1000", "1 1 1000", "1 1 1000", "8 1 1000", "ok 1 1000", "ok 1 1000", "exit 1 1000", "exit 1 1000", "exit 1 1000", "2 1 4000", "guide 1 10000"]) sleep(115) GRAB.compare(testcase) ############################ TestCase 140 ########################################## testcase = 140 status("manual") GRAB.compare(testcase) ############################ TestCase 141 ########################################## testcase = 141 status("manual") GRAB.compare(testcase) ############################ TestCase 142 ########################################## testcase = 142 status("manual") GRAB.compare(testcase) ############################ TestCase 143 ########################################## testcase = 143 status("manual") GRAB.compare(testcase) ############################ TestCase 144 ########################################## testcase = 144 status("active") MOD.stop(Modulator) MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) RC.push(["standby 1 10000", "standby 1 10000", "exit 1 1000", "2 1 3500", "guide 1 10000", "www 1 1000"]) GRAB.compare(testcase) ############################ TestCase 145 ########################################## testcase = 145 status("active") RC.push(["standby 1 10000", "standby 1 10000", "exit 1 4000", "2 1 3500", "guide 1 10000", "Tv/chat 1 1000"]) GRAB.compare(testcase) ############################ TestCase 146 ########################################## testcase = 146 status("manual") GRAB.compare(testcase) ############################ TestCase 147 ########################################## testcase = 147 status("active") UART.default_settings() sleep(10) MOD.stop(Modulator) MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) if platform in ["E501", "E502", "A230"]: RC.push(["ok 1 2000", "ok 1 2000", "ok 1 2000", "right 1 2000", "ok 1 2000", "ok 1 60000", "ok 1 15000", "ok 1 5000", "ok 1 10000", "exit 2 2000"]) else: RC.push(["ok 1 2000", "ok 1 2000", "right 1 2000", "ok 1 2000", "ok 1 15000", "ok 1 60000", "ok 1 5000", "exit 2 2000"]) sleep(3) RC.push(["0 1 3500", "guide 1 12000"]) GRAB.compare(testcase) ############################ TestCase 148 ########################################## testcase = 148 status("active") RC.push(["right 1 1000"]) GRAB.compare(testcase) ############################ TestCase 149 ########################################## testcase = 149 status("active") #RC.push(["standby 1 10000", "standby 1 10000", "exit 1 1000", "0 1 3500", "guide 1 1000", "right 1 1000", "up 1 1000", "up 1 1000", "up 1 1000", "up 1 1000", "left 1 1000", "right 1 1000"]) RC.push(["standby 1 10000", "standby 1 10000", "exit 1 1000", "0 1 3500", "guide 1 10000", "right 1 1000", "down 1 1000", "down 1 1000", "left 1 1000", "right 1 1000"]) GRAB.compare(testcase) ############################ TestCase 150 ########################################## testcase = 150 status("active") RC.push(["standby 1 10000", "standby 1 10000", "exit 1 1000", "0 1 3500", "guide 1 5000", "right 1 1500", "left 1 1500", "down 1 10000", "right 1 1500"]) GRAB.compare(testcase) ############################ TestCase 151 ########################################## testcase = 151 status("active") RC.push(["right 1 1000", "down 1 1000", "left 1 1000"]) GRAB.compare(testcase) ############################ TestCase 174 ########################################## testcase = 174 status("active") RC.push(["ChDown 1 1000", "ChDown 1 1000", "ChDown 1 1000", "ChDown 1 1000", "ChDown 1 1000", "ChDown 1 1000", "ChDown 1 1000", "ChDown 1 1000", "ChDown 1 1000", "ChDown 1 1000", "ChDown 1 1000", "ChDown 1 1000", "ChDown 1 1000"]) GRAB.compare(testcase) ############################ TestCase 175 ########################################## testcase = 175 status("active") RC.push(["left 1 1000", "up 1 1000", "right 1 10000"]) GRAB.compare(testcase) ############################ TestCase 152 ########################################## testcase = 152 status("active") RC.push(["standby 1 10000", "standby 1 10000", "exit", "guide 1 10000", "down 1 1000", "left 1 1000", "down 1 3000", "right 1 10000"]) GRAB.compare(testcase) ############################ TestCase 153 ########################################## testcase = 153 status("active") RC.push(["standby 1 15000", "standby 1 15000", "exit 1 1000", "0 1 3500", "guide 1 1000", "down 1 10000", "left 1 1000", "right 1 1000"]) GRAB.compare(testcase) ############################ TestCase 154 ########################################## testcase = 154 status("active") #RC.push(["standby 1 10000", "standby 1 10000", "exit 1 1000", "0 1 4000", "guide 1 7000", "down 1 10000", "right 1 5000", "down 1 2000", "down 1 1500", "down 1 1500", "right 1 1500", "left 1 1500"]) RC.push(["standby 1 10000", "standby 1 10000", "exit 1 1000", "0 1 4000", "guide 1 7000", "down 1 10000", "right 1 5000", "right 1 1500", "left 1 1500"]) GRAB.compare(testcase) ############################ TestCase 160 ########################################## testcase = 160 status("manual") GRAB.compare(testcase) ################################################################################### status("active") MOD.stop(Modulator) GRAB.stop_capture()
def runTest(): status("active") TestName = "Settings" ScriptName = "01-navigation" ScriptIndex = "1" Grabber = DO.grab_define() platform = DO.load_platform() Modulation = "DVBS" FEC = "3/4" SR = "27500000" Stream = "\\X_0000_00000_MUX_32000_EPG_Software_20130328a.ts" Frequency = 1476 Modulator = "1" COM = "COM7" settings = [ScriptName, ScriptIndex, Grabber, Modulation, FEC, SR, Stream, Frequency, Modulator, COM] DO.save_settings(settings) GRAB.start_capture() MOD.stop(Modulator) # macros searching_from_wizard_general_E501 = ["ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_general_english_E501 = ["up 2 3400", "right 1 1000", "down 2 3400", "ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_centre_E501 = ["ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "down", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_centre_english_E501 = ["up 3 3400", "right 1 1000", "down 3 3400", "ok 1 3400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 22200", "ok 1 10000", "exit 2 3000"] searching_from_wizard_south_E501 = ["ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "down", "down", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_general_ALL = ["ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_general_english_ALL = ["up 2 3400", "right 1 1000", "down 2 3400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 22200", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_centre_ALL = ["ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "down", "ok 1 5000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_centre_english_ALL = ["up 3 3400", "right 1 1000", "down 3 3400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 22200", "down 1 1000", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_south_ALL = ["ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "down", "down", "ok 1 15000", "ok 1 10000", "exit 2 3000"] load_regions_E501 = ["ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200"] load_regions_english_E501 = ["up 2 2400", "right 1 1000", "down 2 2400", "ok 1 3400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 22200"] load_regions_ALL = ["ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200"] load_regions_english_ALL = ["up 2 2400", "right 1 1000", "down 2 2400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 22200"] """############################ TestCase 1 ########################################## testcase = 1 status("active") MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) UART.default_settings() UART.start_app("") RC.push(["key_1", "key_2", "key_3"]) # set of the RC buttons sleep(0) RC.push("[macros_name]") # RC macros from remote_control.ini file GRAB.compare(testcase)""" ############################ TestCase 1 ########################################## testcase = 1 status("active") UART.default_settings() MOD.stop(Modulator) MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) OPER.search() UART.start_app("settings") GRAB.compare(testcase) ############################ TestCase 2 ########################################## testcase = 2 status("active") GRAB.compare(testcase) ############################ TestCase 3 ########################################## testcase = 3 status("active") GRAB.compare(testcase) ############################ TestCase 4 ########################################## testcase = 4 status("active") GRAB.compare(testcase) ############################ TestCase 5 ########################################## testcase = 5 status("active") GRAB.compare(testcase) ############################ TestCase 6 ########################################## testcase = 6 status("active") RC.push(["exit 1 1000", "exit 1 1000", "menu 1 2000"]) GRAB.compare(testcase) ############################ TestCase 7 ########################################## testcase = 7 status("active") RC.push(["exit 1 1000", "exit 1 1000", "menu 1 1000", "left 1 1000", "OK 1 1000", "exit 1 1000"]) GRAB.compare(testcase) ############################ TestCase 8 ########################################## testcase = 8 status("manual") GRAB.compare(testcase) ############################ TestCase 9 ########################################## testcase = 9 status("active") UART.start_app("settings") RC.push(["menu 1 1000"]) GRAB.compare(testcase) ############################ TestCase 10 ########################################## testcase = 10 status("active") UART.start_app("settings") RC.push(["last 1 1000"]) GRAB.compare(testcase) ############################ TestCase 11 ########################################## testcase = 11 status("active") UART.start_app("settings") RC.push(["down 1 1000", "exit 1 1000"]) GRAB.compare(testcase) ############################ TestCase 12 ########################################## testcase = 12 status("active") RC.push(["exit 1 1000", "exit 1 1000", "exit 1 1000"]) UART.start_app("settings") RC.push(["down 1 1000", "menu 1 1000"]) GRAB.compare(testcase) ############################ TestCase 13 ########################################## testcase = 13 status("active") RC.push(["exit 1 1000", "exit 1 1000", "exit 1 1000"]) UART.start_app("settings") RC.push(["down 1 1000", "last 1 1000"]) GRAB.compare(testcase) ############################ TestCase 14 ########################################## testcase = 14 status("active") RC.push(["exit 1 1000", "exit 1 1000", "exit 1 1000"]) UART.start_app("settings") RC.push(["up 1 1000"]) GRAB.compare(testcase) ############################ TestCase 15 ########################################## testcase = 15 status("active") RC.push(["exit 1 1000", "exit 1 1000", "exit 1 1000"]) UART.start_app("settings") RC.push(["down 1 1000", "up 1 1000"]) GRAB.compare(testcase) ############################ TestCase 16 ########################################## testcase = 16 status("active") RC.push(["exit 1 1000", "exit 1 1000", "exit 1 1000"]) UART.start_app("settings") RC.push(["down 1 1000", "down 1 1000", "up 1 1000"]) GRAB.compare(testcase) ############################ TestCase 17 ########################################## testcase = 17 status("active") RC.push(["exit 1 1000", "exit 1 1000", "exit 1 1000"]) UART.start_app("settings") RC.push(["down 1 1000"]) GRAB.compare(testcase) ############################ TestCase 18 ########################################## testcase = 18 status("active") RC.push(["exit 1 1000", "exit 1 1000", "exit 1 1000"]) UART.start_app("settings") RC.push(["down 1 1000", "down 1 1000"]) GRAB.compare(testcase) ############################ TestCase 19 ########################################## testcase = 19 status("active") RC.push(["exit 1 1000", "exit 1 1000", "exit 1 1000"]) UART.start_app("settings") RC.push(["up 1 1000", "down 1 1000"]) GRAB.compare(testcase) ############################ TestCase 20 ########################################## testcase = 20 status("active") RC.push(["exit 1 1000", "exit 1 1000", "exit 1 1000"]) UART.start_app("settings") RC.push(["right 10 3000", "right 1 1000"]) GRAB.compare(testcase) ############################ TestCase 21 ########################################## testcase = 21 status("active") RC.push(["exit 1 1000", "exit 1 1000", "exit 1 1000"]) UART.start_app("settings") RC.push(["left 10 3000", "right 1 1000"]) GRAB.compare(testcase) ############################ TestCase 22 ########################################## testcase = 22 status("active") RC.push(["exit 1 1000", "exit 1 1000", "exit 1 1000"]) UART.start_app("settings") RC.push(["left 10 3000", "left 1 1000"]) GRAB.compare(testcase) ############################ TestCase 23 ########################################## testcase = 23 status("active") RC.push(["exit 1 1000", "exit 1 1000", "exit 1 1000"]) UART.start_app("settings") RC.push(["right 10 1000", "left 1 1000"]) GRAB.compare(testcase) ############################ TestCase 24 ########################################## testcase = 24 status("active") RC.push(["exit 1 1000", "exit 1 1000", "exit 1 1000"]) UART.start_app("settings") RC.push(["left 10 3000", "right 1 1000", "ChUp 1 1000"]) GRAB.compare(testcase) ############################ TestCase 25 ########################################## testcase = 25 status("active") RC.push(["exit 1 1000", "exit 1 1000", "exit 1 1000"]) UART.start_app("settings") RC.push(["left 10 3000", "ChUp 1 1000"]) GRAB.compare(testcase) ############################ TestCase 26 ########################################## testcase = 26 status("active") RC.push(["exit 1 1000", "exit 1 1000", "exit 1 1000"]) UART.start_app("settings") RC.push(["left 10 3000", "ChDown 1 1000"]) GRAB.compare(testcase) ############################ TestCase 27 ########################################## testcase = 27 status("active") RC.push(["exit 1 1000", "exit 1 1000", "exit 1 1000"]) UART.start_app("settings") RC.push(["right 10 3000", "ChDown 1 1000"]) GRAB.compare(testcase) ############################ TestCase 28 ########################################## testcase = 28 status("active") RC.push(["exit 1 1000", "exit 1 1000", "exit 1 1000"]) UART.start_app("settings") RC.push(["left 10 1000", "ok 1 1000"]) GRAB.compare(testcase) ############################ TestCase 29 ########################################## testcase = 29 status("active") RC.push(["exit 1 1000", "exit 1 1000", "exit 1 1000"]) UART.start_app("settings") RC.push(["stb 1 1000"]) GRAB.compare(testcase) ############################ TestCase 30 ########################################## testcase = 30 status("inactive") GRAB.compare(testcase) ############################ TestCase 31 ########################################## testcase = 31 status("active") RC.push(["exit 1 1000", "exit 1 1000", "exit 1 1000"]) UART.start_app("settings") RC.push(["standby 1 10000", "standby 1 10000"]) GRAB.compare(testcase) ############################ TestCase 32 ########################################## testcase = 32 status("active") RC.push(["exit 1 1000", "exit 1 1000", "exit 1 1000"]) UART.start_app("settings") RC.push(["VolUp 1 1000"]) GRAB.compare(testcase) ############################ TestCase 33 ########################################## testcase = 33 status("active") RC.push(["exit 1 1000", "exit 1 1000", "exit 1 1000"]) UART.start_app("settings") RC.push(["VolDown 1 1000"]) GRAB.compare(testcase) ############################ TestCase 34 ########################################## testcase = 34 status("active") RC.push(["exit 1 1000", "exit 1 1000", "exit 1 1000"]) UART.start_app("settings") RC.push(["mute 1 1000"]) GRAB.compare(testcase) ############################ TestCase 35 ########################################## testcase = 35 status("active") UART.default_settings() MOD.stop(Modulator) MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) OPER.search() RC.push(["menu 1 2000", "left 1 1000", "OK 1 2000", "right 1 1000", "right 1 1000", "exit 1 1000", "OK 1 1000"]) GRAB.compare(testcase) ############################ TestCase 36 ########################################## testcase = 36 status("active") RC.push(["exit 1 1000", "exit 1 1000", "exit 1 1000"]) sleep(60) RC.push(["menu 1 2000", "left 1 1000", "OK 1 2000", "right 1 1000", "right 1 1000", "menu 1 1000", "left 1 1000", "OK 1 1000"]) GRAB.compare(testcase) ############################ TestCase 37 ########################################## testcase = 37 status("active") RC.push(["exit 1 1000", "exit 1 1000", "exit 1 1000"]) sleep(60) RC.push(["menu 1 2000", "left 1 1000", "OK 1 2000", "right 1 1000", "right 1 1000", "last 1 1000", "menu 1 1000", "left 1 1000", "OK 1 1000"]) GRAB.compare(testcase) ############################ TestCase 38 ########################################## testcase = 38 status("active") RC.push(["exit 1 1000", "exit 1 1000", "exit 1 1000"]) sleep(60) RC.push(["menu 1 2000", "left 1 1000", "OK 1 2000", "right 1 1500", "right 1 1500", "exit 1 2000"]) UART.start_app("settings") GRAB.compare(testcase) ############################ TestCase 39 ########################################## testcase = 39 status("active") RC.push(["exit 1 1000", "exit 1 1000", "exit 1 1000"]) sleep(60) RC.push(["menu 1 2000", "left 1 1000", "OK 1 2000", "right 1 1000", "right 1 1000", "menu 1 2000"]) UART.start_app("settings") GRAB.compare(testcase) ############################ TestCase 40 ########################################## testcase = 40 status("active") RC.push(["exit 1 1000", "exit 1 1000", "exit 1 1000"]) sleep(60) RC.push(["menu 1 2000", "left 1 1000", "OK 1 2000", "right 1 1000", "right 1 1000", "last 1 1000"]) UART.start_app("settings") GRAB.compare(testcase) ############################ TestCase 41 ########################################## testcase = 41 status("active") RC.push(["exit 1 1000", "exit 1 1000", "exit 1 1000"]) sleep(60) UART.start_app("settings") RC.push(["right 1 1000", "right 1 1000", "exit 1 1000", "exit 1 1000"]) RC.push(["menu 1 2000", "left 1 1000", "OK 1 2000"]) GRAB.compare(testcase) ############################ TestCase 42 ########################################## testcase = 42 status("active") RC.push(["exit 1 1000", "exit 1 1000", "exit 1 1000"]) sleep(60) UART.start_app("settings") RC.push(["right 1 1000", "right 1 1000", "menu 1 1000"]) RC.push(["left 1 1000", "OK 1 2000"]) GRAB.compare(testcase) ############################ TestCase 43 ########################################## testcase = 43 status("active") RC.push(["exit 1 1000", "exit 1 1000", "exit 1 1000"]) sleep(60) UART.start_app("settings") RC.push(["right 1 1000", "right 1 1000", "last 1 1000"]) RC.push(["menu 1 1000", "left 1 1000", "OK 1 2000"]) GRAB.compare(testcase) ############################ TestCase 44 ########################################## testcase = 44 status("active") RC.push(["exit 1 1000", "exit 1 1000", "exit 1 1000"]) sleep(60) UART.start_app("settings") RC.push(["right 1 1000", "right 1 1000", "exit 1 1000"]) UART.start_app("settings") GRAB.compare(testcase) ############################ TestCase 45 ########################################## testcase = 45 status("active") RC.push(["exit 1 1000", "exit 1 1000", "exit 1 1000"]) sleep(60) UART.start_app("settings") RC.push(["right 1 1000", "right 1 1000", "menu 1 1000"]) UART.start_app("settings") GRAB.compare(testcase) ############################ TestCase 46 ########################################## testcase = 46 status("active") RC.push(["exit 1 1000", "exit 1 1000", "exit 1 1000"]) sleep(60) UART.start_app("settings") RC.push(["right 1 1000", "right 1 1000", "last 1 1000"]) UART.start_app("settings") GRAB.compare(testcase) ############################ TestCase 47 ########################################## testcase = 47 status("active") RC.push(["exit 1 1000", "exit 1 1000", "exit 1 1000"]) sleep(60) UART.start_app("settings") RC.push(["right 1 1000", "right 1 6000", "standby 1 15000", "standby 1 15000"]) UART.start_app("settings") GRAB.compare(testcase) ############################ TestCase 48 ########################################## testcase = 48 status("manual") GRAB.compare(testcase) ################################################################################### status("active") MOD.stop(Modulator) GRAB.stop_capture()
def runTest(): status("active") TestName = "Settings" ScriptName = "09-activation" ScriptIndex = "9" Grabber = DO.grab_define() platform = DO.load_platform() Modulation = "DVBS" FEC = "3/4" SR = "27500000" Stream = "\\X_0000_00000_MUX_32000_EPG_Software_20130328a.ts" Frequency = 1476 Modulator = "1" COM = "COM7" settings = [ScriptName, ScriptIndex, Grabber, Modulation, FEC, SR, Stream, Frequency, Modulator, COM] DO.save_settings(settings) GRAB.start_capture() MOD.stop(Modulator) # macros searching_from_wizard_general_E501 = ["ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_general_english_E501 = ["up 2 3400", "right 1 1000", "down 2 3400", "ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_centre_E501 = ["ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "down", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_centre_english_E501 = ["up 3 3400", "right 1 1000", "down 3 3400", "ok 1 3400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 22200", "ok 1 10000", "exit 2 3000"] searching_from_wizard_south_E501 = ["ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "down", "down", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_general_ALL = ["ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_general_english_ALL = ["up 2 3400", "right 1 1000", "down 2 3400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 22200", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_centre_ALL = ["ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "down", "ok 1 5000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_centre_english_ALL = ["up 3 3400", "right 1 1000", "down 3 3400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 22200", "down 1 1000", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_south_ALL = ["ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "down", "down", "ok 1 15000", "ok 1 10000", "exit 2 3000"] load_regions_E501 = ["ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200"] load_regions_english_E501 = ["up 2 2400", "right 1 1000", "down 2 2400", "ok 1 3400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 22200"] load_regions_ALL = ["ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200"] load_regions_english_ALL = ["up 2 2400", "right 1 1000", "down 2 2400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 22200"] ############################ TestCase 1 ########################################## testcase = 1 status("active") MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) UART.default_settings() if platform in ["E501", "E502", "A230"]: RC.push(searching_from_wizard_general_E501) else: RC.push(searching_from_wizard_general_ALL) UART.start_app("settings") RC.push(["right 7 3000"]) GRAB.compare(testcase) ############################ TestCase 2 ########################################## testcase = 2 status("active") GRAB.compare(testcase) ############################ TestCase 3 ########################################## testcase = 3 status("active") GRAB.compare(testcase) ############################ TestCase 4 ########################################## testcase = 4 status("active") GRAB.compare(testcase) ############################ TestCase 5 ########################################## testcase = 5 status("active") GRAB.compare(testcase) ############################ TestCase 6 ########################################## testcase = 6 status("active") RC.push(["down 1 2000", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]) GRAB.compare(testcase) ############################ TestCase 7 ########################################## testcase = 7 status("active") RC.push(["left"]) GRAB.compare(testcase) ############################ TestCase 8 ########################################## testcase = 8 status("active") RC.push(["left 10 3000"]) RC.push(["2 4 2000", "1 16 2000"]) GRAB.compare(testcase) ############################ TestCase 9 ########################################## testcase = 9 status("active") GRAB.compare(testcase) ############################ TestCase 10 ########################################## testcase = 10 status("active") GRAB.compare(testcase) ############################ TestCase 11 ########################################## testcase = 11 status("active") RC.push(["1 4 2000", "2 4 2000", "3 4 2000", "4 4 2000", "5 4 2000"]) GRAB.compare(testcase) ############################ TestCase 12 ########################################## testcase = 12 status("active") RC.push(["1", "5", "1 18 2000"]) GRAB.compare(testcase) ############################ TestCase 13 ########################################## testcase = 13 status("active") GRAB.compare(testcase) ############################ TestCase 14 ########################################## testcase = 14 status("active") GRAB.compare(testcase) ############################ TestCase 15 ########################################## testcase = 15 status("active") GRAB.compare(testcase) ############################ TestCase 16 ########################################## testcase = 16 status("active") RC.push(["4", "3", "2", "1", "1 16 2000"]) GRAB.compare(testcase) ############################ TestCase 17 ########################################## testcase = 17 status("active") GRAB.compare(testcase) ############################ TestCase 18 ########################################## testcase = 18 status("active") RC.push(["exit 4 2000", "menu 1 3000", "ok 1 3000"]) GRAB.compare(testcase) ############################ TestCase 19 ########################################## testcase = 19 status("active") RC.push(["right 1 2000", "down 1 2000", "ok 1 5000"]) GRAB.compare(testcase) ################################################################################### status("active") MOD.stop(Modulator) GRAB.stop_capture()
def runTest(): status("active") TestName = "Help" ScriptName = "faq_content" ScriptIndex = "2" Grabber = DO.grab_define() platform = DO.load_platform() Modulation = "DVBS" FEC = "3/4" SR = "27500000" Stream = "\\X_0000_00000_MUX_32000_EPG_Software_20130328a.ts" Frequency = 1476 Modulator = "1" COM = "COM7" settings = [ScriptName, ScriptIndex, Grabber, Modulation, FEC, SR, Stream, Frequency, Modulator, COM] DO.save_settings(settings) GRAB.start_capture() MOD.stop(Modulator) ############################ TestCase 1 ########################################## testcase = 1 status("active") UART.default_settings() RC.push(["exit 3 2400", "help 1 2000", "ok 1 2400"]) GRAB.compare(testcase) ############################ TestCase 2 ########################################## testcase = 2 status("active") RC.push(["down 1 3000", "right 1 3000"]) GRAB.compare(testcase) ############################ TestCase 3 ########################################## testcase = 3 status("active") RC.push(["down 13 3000"]) GRAB.compare(testcase) ############################ TestCase 4 ########################################## testcase = 4 status("active") RC.push(["down 13 3000"]) GRAB.compare(testcase) ############################ TestCase 5 ########################################## testcase = 5 status("active") RC.push(["left", "down 1 3000"]) GRAB.compare(testcase) ############################ TestCase 6 ########################################## testcase = 6 status("active") RC.push(["down 1 3000"]) GRAB.compare(testcase) ############################ TestCase 7 ########################################## testcase = 7 status("active") RC.push(["down 1 3000", "right 1 3000"]) GRAB.compare(testcase) ############################ TestCase 8 ########################################## testcase = 8 status("active") RC.push(["down 5 3000"]) GRAB.compare(testcase) ############################ TestCase 9 ########################################## testcase = 9 status("active") RC.push(["left", "down 1 3000"]) GRAB.compare(testcase) ############################ TestCase 10 ########################################## testcase = 10 status("active") RC.push(["down 1 3000", "right 1 3000"]) GRAB.compare(testcase) ############################ TestCase 11 ########################################## testcase = 11 status("active") RC.push(["down 13 3000"]) GRAB.compare(testcase) ############################ TestCase 12 ########################################## testcase = 12 status("active") RC.push(["down 13 3000"]) GRAB.compare(testcase) ############################ TestCase 13 ########################################## testcase = 13 status("active") RC.push(["down 13 3000"]) GRAB.compare(testcase) ############################ TestCase 14 ########################################## testcase = 14 status("active") RC.push(["down 13 3000"]) GRAB.compare(testcase) ############################ TestCase 15 ########################################## testcase = 15 status("active") RC.push(["down 4 3000"]) GRAB.compare(testcase) ############################ TestCase 16 ########################################## testcase = 16 status("active") RC.push(["left", "down 1 3000"]) GRAB.compare(testcase) ############################ TestCase 17 ########################################## testcase = 17 status("active") RC.push(["down 1 3000"]) GRAB.compare(testcase) ############################ TestCase 18 ########################################## testcase = 18 status("active") RC.push(["down 1 3000"]) GRAB.compare(testcase) ############################ TestCase 19 ########################################## testcase = 19 status("active") RC.push(["down 1 3000"]) GRAB.compare(testcase) ############################ TestCase 20 ########################################## testcase = 20 status("active") RC.push(["down 1 3000"]) GRAB.compare(testcase) ############################ TestCase 21 ########################################## testcase = 21 status("active") RC.push(["down 1 3000"]) GRAB.compare(testcase) ############################ TestCase 22 ########################################## testcase = 22 status("active") RC.push(["down 1 3000"]) GRAB.compare(testcase) ############################ TestCase 23 ########################################## testcase = 23 status("active") RC.push(["down 1 3000"]) GRAB.compare(testcase) ############################ TestCase 24 ########################################## testcase = 24 status("active") RC.push(["down 1 3000"]) GRAB.compare(testcase) ############################ TestCase 25 ########################################## testcase = 25 status("active") RC.push(["down 1 3000"]) GRAB.compare(testcase) ################################################################################### status("active") MOD.stop(Modulator) GRAB.stop_capture()
def runTest(): status("active") TestName = "EPG" ScriptName = "content" ScriptIndex = "1" Grabber = DO.grab_define() platform = DO.load_platform() Modulation = "DVBS" FEC = "3/4" SR = "27500000" Stream = "\\X_0000_00000_MUX_32000_EPG_Software_20130328a.ts" Frequency = 1476 Modulator = "1" COM = "COM7" settings = [ScriptName, ScriptIndex, Grabber, Modulation, FEC, SR, Stream, Frequency, Modulator, COM] DO.save_settings(settings) GRAB.start_capture() MOD.stop(Modulator) # macros searching_from_wizard_general_E501 = ["ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 45000", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_general_english_E501 = ["ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 45000", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_centre_E501 = ["ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 45000", "down", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_centre_english_E501 = ["up 3 3400", "right 1 1000", "down 3 3400", "ok 1 3400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 45000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_south_E501 = ["ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 45000", "down", "down", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_general_ALL = ["ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 45000", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_general_english_ALL = ["up 3 3400", "right 1 1000", "down 3 3400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 45000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_centre_ALL = ["ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 45000", "down", "ok 1 5000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_centre_english_ALL = ["up 3 3400", "right 1 1000", "down 3 3400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 45000", "down 1 1000", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_south_ALL = ["ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 45000", "down", "down", "ok 1 15000", "ok 1 10000", "exit 2 3000"] load_regions_E501 = ["ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 45000"] load_regions_english_E501 = ["up 3 2400", "right 1 1000", "down 3 2400", "ok 1 3400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 45000"] load_regions_ALL = ["ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 45000"] load_regions_english_ALL = ["up 3 2400", "right 1 1000", "down 3 2400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 45000"] """############################ TestCase 1 ########################################## testcase = 1 status("active") MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) UART.default_settings() UART.start_app("") RC.push(["key_1", "key_2", "key_3"]) # set of the RC buttons sleep(0) RC.push("[macros_name]") # RC macros from remote_control.ini file GRAB.compare(testcase)""" ############################ TestCase 1 ########################################## testcase = 1 status("active") UART.default_settings() # RC.push(["exit 1 500", "exit 1 500", "exit 1 500", "menu 1 1000", "left 1 1000", "left 1 1000", "ok 1 1000", "right 1 1000", "right 1 1000", "right 1 1000", "right 1 1000", "right 1 1000", "right 1 1000", "right 1 1000", "right 1 1000", "down 1 1500", "ok 1 1500", "left 1 1000", "ok 1 1000"]) sleep(15) MOD.stop(Modulator) MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) OPER.search() sleep(3) MOD.stop(Modulator) MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) RC.push(["guide 1 7000", "right 1 5000", "down 1 1000", "ok 1 1000", "left 1 1000"]) #1ST SHOW GRAB.compare(testcase) ############################ TestCase 2 ########################################## testcase = 2 status("active") RC.push(["down 1 1000", "down 1 1000", "down 1 1000", "down 1 1000"]) GRAB.compare(testcase) ############################ TestCase 3 ########################################## testcase = 3 status("active") RC.push(["down 1 1000", "down 1 1000", "down 1 1000", "down 1 1000"]) GRAB.compare(testcase) ############################ TestCase 4 ########################################## testcase = 4 status("active") RC.push(["down 1 1500", "down 1 1500", "down 1 1500", "down 1 1500"]) GRAB.compare(testcase) ############################ TestCase 5 ########################################## testcase = 5 status("active") RC.push(["down 1 1500", "down 1 1500", "down 1 1500", "down 1 1500"]) GRAB.compare(testcase) ############################ TestCase 6 ########################################## testcase = 6 status("active") RC.push(["down 1 1500", "down 1 1500", "down 1 1500", "down 1 1500"]) GRAB.compare(testcase) ############################ TestCase 7 ########################################## testcase = 7 status("active") RC.push(["down 1 1500", "down 1 1500", "down 1 1500", "down 1 1500"]) GRAB.compare(testcase) ############################ TestCase 8 ########################################## testcase = 8 status("active") RC.push(["down 1 1500", "down 1 1500", "down 1 1500", "down 1 1500"]) GRAB.compare(testcase) ############################ TestCase 9 ########################################## testcase = 9 status("active") RC.push(["exit 1 1000"]) MOD.stop(Modulator) MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) RC.push(["down 1 1000", "down 1 1000", "ok 1 1000", "left 1 1000"]) #2ND SHOW GRAB.compare(testcase) ############################ TestCase 10 ########################################## testcase = 10 status("active") RC.push(["down 1 1500", "down 1 1500", "down 1 1500", "down 1 1500"]) GRAB.compare(testcase) ############################ TestCase 11 ########################################## testcase = 11 status("active") RC.push(["down 1 1500", "down 1 1500", "down 1 1500", "down 1 1500"]) GRAB.compare(testcase) ############################ TestCase 12 ########################################## testcase = 12 status("active") RC.push(["down 1 1500", "down 1 1500", "down 1 1500", "down 1 1500"]) GRAB.compare(testcase) ############################ TestCase 13 ########################################## testcase = 13 status("active") RC.push(["down 1 1500", "down 1 1500", "down 1 1500", "down 1 1500"]) GRAB.compare(testcase) ############################ TestCase 14 ########################################## testcase = 14 status("active") RC.push(["down 1 1500", "down 1 1500", "down 1 1500", "down 1 1500"]) GRAB.compare(testcase) ############################ TestCase 15 ########################################## testcase = 15 status("active") RC.push(["down 1 1500", "down 1 1500", "down 1 1500", "down 1 1500"]) GRAB.compare(testcase) ############################ TestCase 16 ########################################## testcase = 16 status("active") RC.push(["down 1 1500", "down 1 1500", "down 1 1500", "down 1 1500"]) GRAB.compare(testcase) ############################ TestCase 17 ########################################## testcase = 17 status("active") RC.push(["exit 1 1000"]) MOD.stop(Modulator) MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) RC.push(["down 1 1000", "ok 1 1000", "left 1 1000"]) #3RD SHOW GRAB.compare(testcase) ############################ TestCase 18 ########################################## testcase = 18 status("active") RC.push(["down 1 1500", "down 1 1500", "down 1 1500", "down 1 1500"]) GRAB.compare(testcase) ############################ TestCase 19 ########################################## testcase = 19 status("active") RC.push(["down 1 1500", "down 1 1500", "down 1 1500", "down 1 1500"]) GRAB.compare(testcase) ############################ TestCase 20 ########################################## testcase = 20 status("active") RC.push(["down 1 1500", "down 1 1500", "down 1 1500", "down 1 1500"]) GRAB.compare(testcase) ############################ TestCase 21 ########################################## testcase = 21 status("active") RC.push(["down 1 1500", "down 1 1500", "down 1 1500", "down 1 1500"]) GRAB.compare(testcase) ############################ TestCase 22 ########################################## testcase = 22 status("active") RC.push(["down 1 1500", "down 1 1500", "down 1 1500", "down 1 1500"]) GRAB.compare(testcase) ############################ TestCase 23 ########################################## testcase = 23 status("active") RC.push(["down 1 1500", "down 1 1500", "down 1 1500", "down 1 1500"]) GRAB.compare(testcase) ############################ TestCase 24 ########################################## testcase = 24 status("active") RC.push(["down 1 1500", "down 1 1500", "down 1 1500", "down 1 1500"]) GRAB.compare(testcase) ############################ TestCase 25 ########################################## testcase = 25 status("active") RC.push(["exit 1 1000"]) MOD.stop(Modulator) MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) RC.push(["down 1 1000", "ok 1 1000", "left 1 1000"]) #4TH SHOW GRAB.compare(testcase) ############################ TestCase 26 ########################################## testcase = 26 status("active") RC.push(["down 1 1500", "down 1 1500", "down 1 1500", "down 1 1500"]) GRAB.compare(testcase) ############################ TestCase 27 ########################################## testcase = 27 status("active") RC.push(["down 1 1500", "down 1 1500", "down 1 1500", "down 1 1500"]) GRAB.compare(testcase) ############################ TestCase 28 ########################################## testcase = 28 status("active") RC.push(["down 1 1500", "down 1 1500", "down 1 1500", "down 1 1500"]) GRAB.compare(testcase) ############################ TestCase 29 ########################################## testcase = 29 status("active") RC.push(["down 1 1500", "down 1 1500", "down 1 1500", "down 1 1500"]) GRAB.compare(testcase) ############################ TestCase 30 ########################################## testcase = 30 status("active") RC.push(["down 1 1500", "down 1 1500", "down 1 1500", "down 1 1500"]) GRAB.compare(testcase) ############################ TestCase 31 ########################################## testcase = 31 status("active") RC.push(["down 1 1500", "down 1 1500", "down 1 1500", "down 1 1500"]) GRAB.compare(testcase) ############################ TestCase 32 ########################################## testcase = 32 status("active") RC.push(["down 1 1500", "down 1 1500", "down 1 1500", "down 1 1500"]) GRAB.compare(testcase) ############################ TestCase 33 ########################################## testcase = 33 status("active") RC.push(["exit 1 1000", "down 1 1000", "ok 1 1000", "left 1 1000"]) #5TH SHOW GRAB.compare(testcase) ############################ TestCase 34 ########################################## testcase = 34 status("active") RC.push(["down 1 1500", "down 1 1500", "down 1 1500", "down 1 1500"]) GRAB.compare(testcase) ############################ TestCase 35 ########################################## testcase = 35 status("active") RC.push(["down 1 1500", "down 1 1500", "down 1 1500", "down 1 1500"]) GRAB.compare(testcase) ############################ TestCase 36 ########################################## testcase = 36 status("active") RC.push(["down 1 1500", "down 1 1500", "down 1 1500", "down 1 1500"]) GRAB.compare(testcase) ############################ TestCase 37 ########################################## testcase = 37 status("active") RC.push(["down 1 1500", "down 1 1500", "down 1 1500", "down 1 1500"]) GRAB.compare(testcase) ############################ TestCase 38 ########################################## testcase = 38 status("active") RC.push(["down 1 1500", "down 1 1500", "down 1 1500", "down 1 1500"]) GRAB.compare(testcase) ############################ TestCase 39 ########################################## testcase = 39 status("active") RC.push(["down 1 1500", "down 1 1500", "down 1 1500", "down 1 1500"]) GRAB.compare(testcase) ############################ TestCase 40 ########################################## testcase = 40 status("active") RC.push(["down 1 1500", "down 1 1500", "down 1 1500", "down 1 1500"]) GRAB.compare(testcase) ############################ TestCase 41 ########################################## testcase = 41 status("active") RC.push(["down 1 1500", "down 1 1500", "down 1 1500", "down 1 1500"]) GRAB.compare(testcase) ############################ TestCase 42 ########################################## testcase = 42 status("active") RC.push(["exit 1 1000"]) MOD.stop(Modulator) MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) RC.push(["down 1 1000", "ok 1 1000", "left 1 1000"]) #6TH SHOW GRAB.compare(testcase) ############################ TestCase 43 ########################################## testcase = 43 status("active") RC.push(["down 1 1500", "down 1 1500", "down 1 1500", "down 1 1500"]) GRAB.compare(testcase) ############################ TestCase 44 ########################################## testcase = 44 status("active") RC.push(["down 1 1500", "down 1 1500", "down 1 1500", "down 1 1500"]) GRAB.compare(testcase) ############################ TestCase 45 ########################################## testcase = 45 status("active") RC.push(["down 1 1500", "down 1 1500", "down 1 1500", "down 1 1500"]) GRAB.compare(testcase) ############################ TestCase 46 ########################################## testcase = 46 status("active") RC.push(["down 1 1500", "down 1 1500", "down 1 1500", "down 1 1500"]) GRAB.compare(testcase) ############################ TestCase 47 ########################################## testcase = 47 status("active") RC.push(["down 1 1500", "down 1 1500", "down 1 1500", "down 1 1500"]) GRAB.compare(testcase) ############################ TestCase 48 ########################################## testcase = 48 status("active") RC.push(["down 1 1500", "down 1 1500", "down 1 1500", "down 1 1500"]) GRAB.compare(testcase) ############################ TestCase 49 ########################################## testcase = 49 status("active") RC.push(["down 1 1500", "down 1 1500", "down 1 1500", "down 1 1500"]) GRAB.compare(testcase) ############################ TestCase 50 ########################################## testcase = 50 status("active") RC.push(["down 1 1500", "down 1 1500", "down 1 1500", "down 1 1500"]) GRAB.compare(testcase) ############################ TestCase 51 ########################################## testcase = 51 status("active") RC.push(["down 1 1500", "down 1 1500", "down 1 1500", "down 1 1500"]) GRAB.compare(testcase) ############################ TestCase 52 ########################################## testcase = 52 status("active") RC.push(["exit 1 1000", "down 1 1000", "ok 1 1000", "left 1 1000"]) #7TH SHOW GRAB.compare(testcase) ############################ TestCase 53 ########################################## testcase = 53 status("active") RC.push(["down 1 1500", "down 1 1500", "down 1 1500", "down 1 1500"]) GRAB.compare(testcase) ############################ TestCase 54 ########################################## testcase = 54 status("active") RC.push(["down 1 1500", "down 1 1500", "down 1 1500", "down 1 1500"]) GRAB.compare(testcase) ############################ TestCase 55 ########################################## testcase = 55 status("active") RC.push(["down 1 1500", "down 1 1500", "down 1 1500", "down 1 1500"]) GRAB.compare(testcase) ############################ TestCase 56 ########################################## testcase = 56 status("active") RC.push(["exit 1 1000", "down 1 1000", "ok 1 1000", "left 1 1000"]) #8TH SHOW GRAB.compare(testcase) ############################ TestCase 57 ########################################## testcase = 57 status("active") RC.push(["down 1 1500", "down 1 1500", "down 1 1500", "down 1 1500"]) GRAB.compare(testcase) ############################ TestCase 58 ########################################## testcase = 58 status("active") RC.push(["down 1 1500", "down 1 1500", "down 1 1500", "down 1 1500"]) GRAB.compare(testcase) ############################ TestCase 59 ########################################## testcase = 59 status("active") RC.push(["down 1 1500", "down 1 1500", "down 1 1500", "down 1 1500"]) GRAB.compare(testcase) ############################ TestCase 60 ########################################## testcase = 60 status("active") RC.push(["exit 1 1000", "down 1 1000", "ok 1 1000", "left 1 1000"]) #9TH SHOW GRAB.compare(testcase) ############################ TestCase 61 ########################################## testcase = 61 status("active") RC.push(["down 1 1500", "down 1 1500", "down 1 1500", "down 1 1500"]) GRAB.compare(testcase) ############################ TestCase 62 ########################################## testcase = 62 status("active") RC.push(["down 1 1500", "down 1 1500", "down 1 1500", "down 1 1500"]) GRAB.compare(testcase) ############################ TestCase 63 ########################################## testcase = 63 status("active") RC.push(["down 1 1500", "down 1 1500", "down 1 1500", "down 1 1500"]) GRAB.compare(testcase) ################################################################################### status("active") MOD.stop(Modulator) GRAB.stop_capture()
### Precharge ### precharge_motor_status = tk.StringVar(value="Motor Precharge: ") precharge_motor_ = tk.Label(master=precharge_frame, textvariable=precharge_motor_status) precharge_motor_.grid(row=0, column=0, sticky="nsew") precharge_array_status = tk.StringVar(value="Array Precharge: ") precharge_array_txt = tk.Label( master=precharge_frame, textvariable=precharge_array_status ) precharge_array_txt.grid(row=1, column=0, sticky="nsew") ### UART messages input ### uart_input = tk.Entry(master=messages_frame) uart_input.grid(row=0, column=0) uart_button = tk.Button( master=messages_frame, text="Send", command=lambda: UART.write(uart_input.get()) ) uart_button.grid(row=1, column=0) ### Charging Checkbox ### chargingBool = tk.BooleanVar() chargingBool.set(0) charging_checkbox = tk.Checkbutton( master=charging_frame, text="Charging? Check if Yes", command=update_MotorDisable, variable=chargingBool, ) charging_checkbox.grid(row=0, sticky="nsew") # Sets up periodic updates
def runTest(): status("active") TestName = "Gallery" ScriptName = "test_flash" ScriptIndex = "3" Grabber = DO.grab_define() platform = DO.load_platform() Modulation = "DVBS" FEC = "3/4" SR = "27500000" Stream = "\\X_0000_00000_MUX_32000_EPG_Software_20130328a.ts" Frequency = 1476 Modulator = "1" COM = "COM7" settings = [ScriptName, ScriptIndex, Grabber, Modulation, FEC, SR, Stream, Frequency, Modulator, COM] DO.save_settings(settings) GRAB.start_capture() MOD.stop(Modulator) # macros searching_from_wizard_general_E501 = ["ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_general_english_E501 = ["up 2 3400", "right 1 1000", "down 2 3400", "ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_centre_E501 = ["ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "down", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_centre_english_E501 = ["up 3 3400", "right 1 1000", "down 3 3400", "ok 1 3400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 22200", "ok 1 10000", "exit 2 3000"] searching_from_wizard_south_E501 = ["ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "down", "down", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_general_ALL = ["ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_general_english_ALL = ["up 2 3400", "right 1 1000", "down 2 3400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 22200", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_centre_ALL = ["ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "down", "ok 1 5000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_centre_english_ALL = ["up 3 3400", "right 1 1000", "down 3 3400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 22200", "down 1 1000", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_south_ALL = ["ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "down", "down", "ok 1 15000", "ok 1 10000", "exit 2 3000"] load_regions_E501 = ["ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200"] load_regions_english_E501 = ["up 2 2400", "right 1 1000", "down 2 2400", "ok 1 3400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 22200"] load_regions_ALL = ["ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200"] load_regions_english_ALL = ["up 2 2400", "right 1 1000", "down 2 2400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 22200"] ############################ TestCase 1 ########################################## testcase = 1 status("active") MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) UART.default_settings() if platform in ["E501", "E502", "A230"]: RC.push(searching_from_wizard_general_E501) else: RC.push(searching_from_wizard_general_ALL) UART.start_app("photos") sleep(60) GRAB.compare(testcase) ############################ TestCase 2 ########################################## testcase = 2 status("active") RC.push(["left 1 3000"]) GRAB.compare(testcase) ############################ TestCase 3 ########################################## testcase = 3 status("active") RC.push(["right 1 5000"]) GRAB.compare(testcase) ############################ TestCase 4 ########################################## testcase = 4 status("active") RC.push(["left 1 3000", "up 1 3000"]) GRAB.compare(testcase) ############################ TestCase 5 ########################################## testcase = 5 status("active") RC.push(["down 1 3000", "down 1 3000"]) GRAB.compare(testcase) ############################ TestCase 6 ########################################## testcase = 6 status("active") RC.push(["up 1 3000", "ok 1 3000"]) GRAB.compare(testcase) ############################ TestCase 7 ########################################## testcase = 7 status("active") RC.push(["exit 1 3000", "menu 1 3000"]) GRAB.compare(testcase) ############################ TestCase 8 ########################################## testcase = 8 status("active") UART.start_app("photos") RC.push(["last 1 2500"]) GRAB.compare(testcase) ############################ TestCase 9 ########################################## testcase = 9 status("active") UART.start_app("photos") RC.push(["exit 1 2500"]) GRAB.compare(testcase) ############################ TestCase 10 ########################################## testcase = 10 status("active") UART.start_app("photos") RC.push(["standby 1 5000", "standby 1 10000"]) GRAB.compare(testcase) ############################ TestCase 11 ########################################## testcase = 11 status("active") UART.start_app("photos") RC.push(["ok", "right", "left 1 3000"]) GRAB.compare(testcase) ############################ TestCase 12 ########################################## testcase = 12 status("active") RC.push(["right 1 3000"]) GRAB.compare(testcase) ############################ TestCase 13 ########################################## testcase = 13 status("active") RC.push(["down 1 3000", "ok 1 3000", "up 1 3000"]) GRAB.compare(testcase) ############################ TestCase 14 ########################################## testcase = 14 status("active") RC.push(["ok 1 3000", "down 1 3000"]) GRAB.compare(testcase) ############################ TestCase 15 ########################################## testcase = 15 status("active") RC.push(["up 1 3000", "ok 1 3000", "left 1 3000"]) GRAB.compare(testcase) ############################ TestCase 16 ########################################## testcase = 16 status("active") RC.push(["right 1 3000"]) GRAB.compare(testcase) ############################ TestCase 17 ########################################## testcase = 17 status("active") RC.push(["exit 1 3000"]) GRAB.compare(testcase) ############################ TestCase 18 ########################################## testcase = 18 status("active") RC.push(["ok 1 3000", "menu 1 3000"]) GRAB.compare(testcase) ############################ TestCase 19 ########################################## testcase = 19 status("active") UART.start_app("photos") RC.push(["ok 1 3000", "last 1 2500"]) GRAB.compare(testcase) ############################ TestCase 20 ########################################## testcase = 20 status("active") UART.start_app("photos") RC.push(["standby 1 5000", "standby 1 10000"]) GRAB.compare(testcase) ############################ TestCase 21 ########################################## testcase = 21 status("active") UART.start_app("photos") RC.push(["ok 1 3000", "ok 1 5000"]) GRAB.compare(testcase) ############################ TestCase 23 ########################################## testcase = 23 status("active") RC.push(["left", "ok 1 3000", "right 2 2000", "ok 1 5000"]) GRAB.compare(testcase) ############################ TestCase 24 ########################################## testcase = 24 status("active") RC.push(["exit 1 3000", "right 1 6000"]) GRAB.compare(testcase) ############################ TestCase 25 ########################################## testcase = 25 status("active") RC.push(["right 1 3000", "left 2 6000"]) GRAB.compare(testcase) ############################ TestCase 26 ########################################## testcase = 26 status("active") RC.push(["right 1 3000", "right 1 6000"]) GRAB.compare(testcase) ############################ TestCase 27 ########################################## testcase = 27 status("active") RC.push(["up 1 6000"]) GRAB.compare(testcase) ############################ TestCase 28 ########################################## testcase = 28 status("active") RC.push(["down 2 6000"]) GRAB.compare(testcase) ############################ TestCase 29 ########################################## testcase = 29 status("active") RC.push(["ok 1 90000"]) GRAB.compare(testcase) ############################ TestCase 30 ########################################## testcase = 30 status("active") RC.push(["exit 1 3000", "menu 1 6000"]) GRAB.compare(testcase) ############################ TestCase 31 ########################################## testcase = 31 status("active") UART.start_app("photos") RC.push(["right 1 3000", "last 1 2500"]) GRAB.compare(testcase) ############################ TestCase 32 ########################################## testcase = 32 status("active") UART.start_app("photos") RC.push(["right 1 3000", "exit 1 2500"]) GRAB.compare(testcase) ############################ TestCase 33 ########################################## testcase = 33 status("active") RC.push(["right 1 3000", "standby 1 5000", "standby 1 10000"]) GRAB.compare(testcase) ############################ TestCase 34 ########################################## testcase = 34 status("inactive") UART.start_app("photos") RC.push(["right 1 3000", "up 1 6000"]) GRAB.compare(testcase) ############################ TestCase 35 ########################################## testcase = 35 status("inactive") RC.push(["left 1 3000"]) GRAB.compare(testcase) ############################ TestCase 36 ########################################## testcase = 36 status("inactive") RC.push(["right 1 3000"]) GRAB.compare(testcase) ############################ TestCase 37 ########################################## testcase = 37 status("inactive") RC.push(["up 1 5000"]) GRAB.compare(testcase) ############################ TestCase 38 ########################################## testcase = 38 status("inactive") RC.push(["up 1 3000", "down 1 6000"]) GRAB.compare(testcase) ############################ TestCase 39 ########################################## testcase = 39 status("inactive") RC.push(["up 1 3000", "ok 1 5000"]) GRAB.compare(testcase) ############################ TestCase 40 ########################################## testcase = 40 status("inactive") RC.push(["menu 1 3000"]) GRAB.compare(testcase) ############################ TestCase 41 ########################################## testcase = 41 status("inactive") UART.start_app("photos") RC.push(["right 1 3000", "up 1 6000", "last 1 2500"]) GRAB.compare(testcase) ############################ TestCase 42 ########################################## testcase = 42 status("inactive") UART.start_app("photos") RC.push(["right 1 3000", "up 1 6000", "exit 1 4500"]) GRAB.compare(testcase) ############################ TestCase 43 ########################################## testcase = 43 status("inactive") RC.push(["exit 3 3000"]) UART.start_app("photos") RC.push(["right 1 3000", "up 1 6000", "standby 1 5000", "standby 1 10000"]) GRAB.compare(testcase) ############################ TestCase 44 ########################################## testcase = 44 status("active") UART.start_app("photos") RC.push(["right 1 6000"]) GRAB.compare(testcase) ############################ TestCase 45 ########################################## testcase = 45 status("active") RC.push(["left 1 6000"]) GRAB.compare(testcase) ############################ TestCase 46 ########################################## testcase = 46 status("active") RC.push(["right 2 6000"]) GRAB.compare(testcase) ############################ TestCase 47 ########################################## testcase = 47 status("active") RC.push(["up 1 6000"]) GRAB.compare(testcase) ############################ TestCase 48 ########################################## testcase = 48 status("active") RC.push(["down 1 6000"]) GRAB.compare(testcase) ############################ TestCase 49 ########################################## testcase = 49 status("active") RC.push(["ok 1 6000"]) sleep(30) GRAB.compare(testcase) ############################ TestCase 50 ########################################## testcase = 50 status("active") RC.push(["exit 1 3000", "menu 1 3000"]) GRAB.compare(testcase) ############################ TestCase 51 ########################################## testcase = 51 status("active") UART.start_app("photos") RC.push(["right 1 6000"]) RC.push(["last 1 2500"]) GRAB.compare(testcase) ############################ TestCase 52 ########################################## testcase = 52 status("active") UART.start_app("photos") RC.push(["right 1 6000"]) RC.push(["exit 1 2500"]) GRAB.compare(testcase) ############################ TestCase 53 ########################################## testcase = 53 status("active") RC.push(["exit 3 2500"]) UART.start_app("photos") RC.push(["right 1 6000"]) RC.push(["standby 1 5000", "standby 1 10000"]) GRAB.compare(testcase) ############################ TestCase 54 ########################################## testcase = 54 status("active") UART.start_app("photos") RC.push(["right 1 6000", "ok 1 30000", "up 1 2000", "ok 2 5000"]) GRAB.compare(testcase) ############################ TestCase 55 ########################################## testcase = 55 status("active") RC.push(["left 1 2000"]) GRAB.compare(testcase) ############################ TestCase 56 ########################################## testcase = 56 status("active") RC.push(["right 1 2000"]) GRAB.compare(testcase) ############################ TestCase 57 ########################################## testcase = 57 status("active") RC.push(["up 1 6000"]) GRAB.compare(testcase) ############################ TestCase 58 ########################################## testcase = 58 status("active") RC.push(["left 1 3000", "up 1 3000", "down 1 6000"]) GRAB.compare(testcase) ############################ TestCase 59 ########################################## testcase = 59 status("active") RC.push(["up 1 3000", "ok 1 6000"]) GRAB.compare(testcase) ############################ TestCase 60 ########################################## testcase = 60 status("inactive") RC.push(["right 1 3000", "ok 1 4000"]) GRAB.compare(testcase) ############################ TestCase 61 ########################################## testcase = 61 status("active") RC.push(["menu 1 6000"]) GRAB.compare(testcase) ############################ TestCase 62 ########################################## testcase = 62 status("active") UART.start_app("photos") RC.push(["right 1 6000", "up 1 3000"]) RC.push(["last 1 2500"]) GRAB.compare(testcase) ############################ TestCase 63 ########################################## testcase = 63 status("active") UART.start_app("photos") RC.push(["right 1 6000", "up 1 3000"]) RC.push(["exit 1 2500"]) GRAB.compare(testcase) ############################ TestCase 64 ########################################## testcase = 64 status("active") UART.start_app("photos") RC.push(["right 1 6000", "up 1 3000"]) RC.push(["standby 1 5000", "standby 1 10000"]) GRAB.compare(testcase) ############################ TestCase 65 ########################################## testcase = 65 status("active") UART.start_app("photos") RC.push(["right 1 6000", "right 1 6000", "ok 1 20000", "ok 1 6000", "right 1 60000"]) GRAB.compare(testcase) ############################ TestCase 66 ########################################## testcase = 66 status("active") RC.push(["exit 1 3000", "down 7 6000", "ok 1 60000"]) GRAB.compare(testcase) ############################ TestCase 67 ########################################## testcase = 67 status("active") RC.push(["exit 1 3000", "down 11 6000", "ok 1 120000"]) GRAB.compare(testcase) ############################ TestCase 68 ########################################## testcase = 68 status("active") RC.push(["exit 1 3000", "down 1 3000"]) GRAB.compare(testcase) ############################ TestCase 69 ########################################## testcase = 69 status("active") GRAB.compare(testcase) ############################ TestCase 70 ########################################## testcase = 70 status("active") RC.push(["exit 1 15000"]) GRAB.compare(testcase) ############################ TestCase 71 ########################################## testcase = 71 status("active") GRAB.compare(testcase) ############################ TestCase 72 ########################################## testcase = 72 status("active") RC.push(["ok 1 3000", "up 1 5000", "ok 2 6000"]) GRAB.compare(testcase) ############################ TestCase 73 ########################################## testcase = 73 status("active") RC.push(["ok 1 6000"]) GRAB.compare(testcase) ############################ TestCase 74 ########################################## testcase = 74 status("active") RC.push(["ok 1 6000"]) GRAB.compare(testcase) ############################ TestCase 75 ########################################## testcase = 75 status("inactive") RC.push(["right 1 7000", "ok 1 4000"]) GRAB.compare(testcase) ############################ TestCase 76 ########################################## testcase = 76 status("active") UART.start_app("settings") RC.push(["right 5 6000", "down 4 3000"]) RC.push(["ok 1 5000"]) GRAB.compare(testcase) ############################ TestCase 77 ########################################## testcase = 77 status("inactive") UART.start_app("photos") RC.push(["ok 1 4000", "ok 1 4000", "up 1 2000", "ok 1 3000"]) GRAB.compare(testcase) ############################ TestCase 78 ########################################## testcase = 78 status("inactive") UART.start_app("settings") RC.push(["ok 1 5000"]) GRAB.compare(testcase) ############################ TestCase 79 ########################################## testcase = 79 status("active") RC.push(["exit 3 5000"]) UART.start_app("photos") GRAB.compare(testcase) ############################ TestCase 80 ########################################## testcase = 80 status("active") RC.push(["right 1 6000"]) GRAB.compare(testcase) ############################ TestCase 81 ########################################## testcase = 81 status("manual") GRAB.compare(testcase) ############################ TestCase 82 ########################################## testcase = 82 status("active") RC.push(["right 1 3000", "right 1 3000", "ok 1 5000", "exit 1 4000"]) GRAB.compare(testcase) ############################ TestCase 83 ########################################## testcase = 83 status("active") RC.push(["exit 1 3000", "right 1 3000"]) GRAB.compare(testcase) ############################ TestCase 84 ########################################## testcase = 84 status("active") RC.push(["right 1 3000", "ok 1 5000", "menu 1 4000"]) UART.start_app("photos") RC.push(["ok 2 6000"]) GRAB.compare(testcase) ############################ TestCase 85 ########################################## testcase = 85 status("active") RC.push(["right 1 3000", "ok 1 5000", "last 1 4000"]) UART.start_app("photos") RC.push(["ok 2 6000"]) GRAB.compare(testcase) ############################ TestCase 86 ########################################## testcase = 86 status("active") RC.push(["right 1 3000", "ok 1 5000", "standby 1 5000", "standby 1 10000"]) UART.start_app("photos") RC.push(["ok 2 6000"]) GRAB.compare(testcase) ############################ TestCase 22 ########################################## testcase = 22 status("active") RC.push(["left 1 3000", "down 1 5000", "ok 1 4000", "right 1 3000", "ok 1 3000"]) GRAB.compare(testcase) ################################################################################### status("active") MOD.stop(Modulator) GRAB.stop_capture()
def runTest(): status("active") TestName = "Gallery" ScriptName = "empty_flash" ScriptIndex = "2" Grabber = DO.grab_define() platform = DO.load_platform() Modulation = "DVBS" FEC = "3/4" SR = "27500000" Stream = "\\X_0000_00000_MUX_32000_EPG_Software_20130328a.ts" Frequency = 1476 Modulator = "1" COM = "COM7" settings = [ScriptName, ScriptIndex, Grabber, Modulation, FEC, SR, Stream, Frequency, Modulator, COM] DO.save_settings(settings) GRAB.start_capture() MOD.stop(Modulator) # macros searching_from_wizard_general_E501 = ["ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_general_english_E501 = ["up 2 3400", "right 1 1000", "down 2 3400", "ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_centre_E501 = ["ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "down", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_centre_english_E501 = ["up 3 3400", "right 1 1000", "down 3 3400", "ok 1 3400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 22200", "ok 1 10000", "exit 2 3000"] searching_from_wizard_south_E501 = ["ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "down", "down", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_general_ALL = ["ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_general_english_ALL = ["up 2 3400", "right 1 1000", "down 2 3400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 22200", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_centre_ALL = ["ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "down", "ok 1 5000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_centre_english_ALL = ["up 3 3400", "right 1 1000", "down 3 3400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 22200", "down 1 1000", "ok 1 15000", "ok 1 10000", "exit 2 3000"] searching_from_wizard_south_ALL = ["ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200", "down", "down", "ok 1 15000", "ok 1 10000", "exit 2 3000"] load_regions_E501 = ["ok 1 3400", "ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200"] load_regions_english_E501 = ["up 2 2400", "right 1 1000", "down 2 2400", "ok 1 3400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 22200"] load_regions_ALL = ["ok 1 3400", "ok 1 3400", "right 1 3400", "ok 1 3400", "ok 1 22200"] load_regions_english_ALL = ["up 2 2400", "right 1 1000", "down 2 2400", "ok 1 3400", "ok 1 3400", "right", "ok 1 3400", "ok 1 22200"] ############################ TestCase 1 ########################################## testcase = 1 status("active") MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) UART.default_settings() if platform in ["E501", "E502", "A230"]: RC.push(searching_from_wizard_general_E501) else: RC.push(searching_from_wizard_general_ALL) UART.start_app("photos") sleep(60) RC.push(["down 1 3000"]) GRAB.compare(testcase) ############################ TestCase 2 ########################################## testcase = 2 status("active") RC.push(["ok 1 3000"]) GRAB.compare(testcase) ############################ TestCase 3 ########################################## testcase = 3 status("active") RC.push(["exit 1 3000", "menu 1 3000"]) GRAB.compare(testcase) ############################ TestCase 4 ########################################## testcase = 4 status("active") UART.start_app("photos") RC.push(["down 1 3000", "last 1 2500"]) GRAB.compare(testcase) ############################ TestCase 5 ########################################## testcase = 5 status("active") UART.start_app("photos") RC.push(["down 1 3000", "exit 1 2500"]) GRAB.compare(testcase) ############################ TestCase 6 ########################################## testcase = 6 status("active") UART.start_app("photos") RC.push(["down 1 3000", "standby 1 5000", "standby 1 10000"]) GRAB.compare(testcase) ############################ TestCase 7 ########################################## testcase = 7 status("active") UART.start_app("photos") RC.push(["down 1 3000", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "clock", "stb", "www", "id", "format", "tv/radio", "guide", "red", "green", "blue", "yellow", "cinemahalls", "rec", "reclist", "forward", "backward", "play", "stop", "mute", "VolUp", "VolDown 1 2500"]) GRAB.compare(testcase) ############################ TestCase 8 ########################################## testcase = 8 status("active") RC.push(["exit 3 3500"]) UART.start_app("photos") RC.push(["down 1 2000", "ok 1 3000"]) GRAB.compare(testcase) ############################ TestCase 9 ########################################## testcase = 9 status("active") RC.push(["right 1 3000", "left 2 3000"]) GRAB.compare(testcase) ############################ TestCase 10 ########################################## testcase = 10 status("active") RC.push(["exit 1 2000", "ok 1 3000", "right 3 3000"]) GRAB.compare(testcase) ############################ TestCase 11 ########################################## testcase = 11 status("active") RC.push(["exit 1 2000", "ok 1 3000", "up 1 3000"]) GRAB.compare(testcase) ############################ TestCase 12 ########################################## testcase = 12 status("active") RC.push(["down", "ok 1 3000", "down 1 3000"]) GRAB.compare(testcase) ############################ TestCase 13 ########################################## testcase = 13 status("active") if platform in ["E502"]: RC.push(["up 1 3000"]) RC.push(["ok 1 3000", "left 1 3000"]) GRAB.compare(testcase) ############################ TestCase 14 ########################################## testcase = 14 status("active") RC.push(["exit 1 2000", "ok 1 3000", "right 3 3000"]) GRAB.compare(testcase) ############################ TestCase 15 ########################################## testcase = 15 status("active") RC.push(["ok 1 3000", "exit 1 3000"]) GRAB.compare(testcase) ############################ TestCase 16 ########################################## testcase = 16 status("active") RC.push(["ok 1 3000", "menu 1 3000"]) GRAB.compare(testcase) ############################ TestCase 17 ########################################## testcase = 17 status("active") UART.start_app("photos") RC.push(["down 1 3000", "ok 1 3000", "last 1 3000"]) GRAB.compare(testcase) ############################ TestCase 18 ########################################## testcase = 18 status("active") UART.start_app("photos") RC.push(["down 1 3000", "ok 1 3000", "standby 1 5000", "standby 1 10000"]) GRAB.compare(testcase) ############################ TestCase 19 ########################################## testcase = 19 status("active") UART.start_app("photos") RC.push(["down 1 3000", "ok 1 3000", "ok 1 3000"]) GRAB.compare(testcase) ############################ TestCase 21 ########################################## testcase = 21 status("active") RC.push(["exit 3 3000"]) UART.start_app("photos") RC.push(["down 1 3000", "ok 1 3000", "right 2 3000", "ok 1 3000"]) GRAB.compare(testcase) ############################ TestCase 20 ########################################## testcase = 20 status("active") RC.push(["exit 3 3000"]) UART.start_app("photos") RC.push(["down 1 3000", "ok 1 3000", "right 1 3000", "ok 1 15000"]) GRAB.compare(testcase) ################################################################################### status("active") MOD.stop(Modulator) GRAB.stop_capture()
def runTest(): status("active") TestName = "Popular_channels" ScriptName = "functionality" ScriptIndex = "1" Grabber = DO.grab_define() platform = DO.load_platform() Modulation = "DVBS" FEC = "3/4" SR = "27500000" Stream = "\\12226MHz.ts" Stream2 = "\\036E_LCN-01_20140409a.ts" Frequency = 1476 Modulator = "1" Modulator2 = "2" COM = "COM7" settings = [ScriptName, ScriptIndex, Grabber, Modulation, FEC, SR, Stream, Frequency, Modulator, COM] DO.save_settings(settings) GRAB.start_capture() MOD.stop(Modulator) MOD.stop(Modulator2) ############################ TestCase 1 ########################################## # testcase = 1 # status("active") # MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) # UART.default_settings() # UART.start_app("") # RC.push(["key_1", "key_2", "key_3"]) # set of the RC buttons # sleep(0) # RC.push("[macros_name]") # RC macros from remote_control.ini file # GRAB.compare(testcase) ############################ TestCase 1 ########################################## """testcase = 1 status("active") UART.default_settings() MOD.stop(Modulator) MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) if platform in ["E501", "E502", "A230"]: RC.push(["ok 1 2000", "ok 1 2000", "ok 1 2000", "right 1 2000", "ok 1 2000", "ok 1 30000", "ok 1 400000", "ok 1 5000", "ok 1 10000", "exit 2 2000"]) else: RC.push(["ok 1 2000", "ok 1 2000", "right 1 2000", "ok 1 2000", "ok 1 15000", "ok 1 180000", "ok 1 5000", "exit 2 2000"]) RC.push(["down 1 5500"]) UART.start_app("mostPopular") GRAB.compare(testcase) ############################ TestCase 2 ########################################## testcase = 2 status("active") UART.default_settings() RC.push(["Exit 2 500"]) UART.start_app("mostPopular") sleep(5) GRAB.compare(testcase) ############################ TestCase 3 ########################################## testcase = 3 status("manual") UART.default_settings() MOD.stop(Modulator) MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) if platform in ["E501", "E502", "A230"]: RC.push(["ok 1 2000", "ok 1 2000", "ok 1 2000", "right 1 2000", "ok 1 2000", "ok 1 30000", "ok 1 400000", "ok 1 5000", "ok 1 10000", "exit 2 2000"]) else: RC.push(["ok 1 2000", "ok 1 2000", "right 1 2000", "ok 1 2000", "ok 1 15000", "ok 1 180000", "ok 1 5000", "exit 2 2000"]) RC.push(["down 1 5500"]) UART.start_app("mostPopular") GRAB.compare(testcase) ############################ TestCase 4 ########################################## testcase = 4 status("active") UART.default_settings() MOD.stop(Modulator) MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) if platform in ["E501", "E502", "A230"]: RC.push(["ok 1 2000", "ok 1 2000", "ok 1 2000", "right 1 2000", "ok 1 2000", "ok 1 30000", "ok 1 400000", "ok 1 5000", "ok 1 10000", "exit 2 2000"]) else: RC.push(["ok 1 2000", "ok 1 2000", "right 1 2000", "ok 1 2000", "ok 1 15000", "ok 1 180000", "ok 1 5000", "exit 2 2000"]) RC.push(["0 1 20000", "up 1 40000", "up 1 60000", "up 1 80000", "up 1 100000", "up 1 500"]) UART.start_app("mostPopular") GRAB.compare(testcase) ############################ TestCase 5 ########################################## testcase = 5 status("active") RC.push(["exit 1 2000"]) GRAB.compare(testcase) ############################ TestCase 6 ########################################## testcase = 6 status("active") UART.start_app("mostPopular") RC.push(["menu 1 1500"]) GRAB.compare(testcase) ############################ TestCase 7 ########################################## testcase = 7 status("active") RC.push(["standby 1 17000", "standby 1 15000"]) UART.start_app("mostPopular") GRAB.compare(testcase) ############################ TestCase 8 ########################################## testcase = 8 status("manual") UART.default_settings() MOD.stop(Modulator) MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) GRAB.compare(testcase)""" ############################ TestCase 9 ########################################## testcase = 9 status("active") UART.default_settings() MOD.stop(Modulator) MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) RC.push(["exit 2 2000"]) UART.start_app("mostPopular") RC.push(["ok"]) GRAB.compare(testcase) ############################ TestCase 10 ########################################## testcase = 10 status("manual") ############################ TestCase 11 ########################################## testcase = 11 status("active") UART.start_app("wizard") if platform in ["E501", "E502", "A230"]: RC.push(["ok 1 2000", "ok 1 2000", "ok 1 2000", "right 1 2000", "ok 1 2000", "ok 1 30000", "ok 1 400000", "ok 1 5000", "ok 1 10000", "exit 2 2000"]) else: RC.push(["ok 1 2000", "ok 1 2000", "right 1 2000", "ok 1 2000", "ok 1 15000", "ok 1 180000", "ok 1 5000", "exit 2 2000"]) RC.push(["0 1 20000", "up 1 40000", "up 1 60000", "up 1 80000", "up 1 100000"]) UART.start_app("mostPopular") RC.push(["down 1 1500", "ok 1 5500", "exit 1 1500", "red 1 1500"]) GRAB.compare(testcase) ############################ TestCase 12 ########################################## testcase = 12 status("active") UART.default_settings() MOD.stop(Modulator) MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) if platform in ["E501", "E502", "A230"]: RC.push(["ok 1 2000", "ok 1 2000", "ok 1 2000", "right 1 2000", "ok 1 2000", "ok 1 30000", "ok 1 400000", "ok 1 5000", "ok 1 10000", "exit 2 2000"]) else: RC.push(["ok 1 2000", "ok 1 2000", "right 1 2000", "ok 1 2000", "ok 1 15000", "ok 1 180000", "ok 1 5000", "exit 2 2000"]) sleep(3) RC.push(["up 1 10000", "up 1 15000", "up 1 20000", "up 1 25000", "up 1 30000", "up 1 35000", "up 1 40000", "up 1 45000", "up 1 1500", "standby 1 7000", "standby 1 10000", "down 1 500", "down 1 500", "down 1 500", "down 1 500", "down 1 500", "down 1 500", "down 1 500", "down 1 500", "down 1 1500"]) UART.start_app("mostPopular") GRAB.compare(testcase) ############################ TestCase 13 ########################################## testcase = 13 status("manual") UART.default_settings() UART.start_app("") RC.push([""]) sleep(0) GRAB.compare(testcase) ############################ TestCase 14 ########################################## testcase = 14 status("manual") UART.default_settings() MOD.stop(Modulator) MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) if platform in ["E501", "E502", "A230"]: RC.push(["ok 1 2000", "ok 1 2000", "ok 1 2000", "right 1 2000", "ok 1 2000", "ok 1 30000", "ok 1 400000", "ok 1 5000", "ok 1 10000", "exit 2 2000"]) else: RC.push(["ok 1 2000", "ok 1 2000", "right 1 2000", "ok 1 2000", "ok 1 15000", "ok 1 180000", "ok 1 5000", "exit 2 2000"]) sleep(1) RC.push(["down 1 5500"]) UART.start_app("mostPopular") GRAB.compare(testcase) ############################ TestCase 15 ########################################## testcase = 15 status("active") RC.push(["exit 1 2000"]) UART.default_settings() MOD.stop(Modulator) MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) if platform in ["E501", "E502", "A230"]: RC.push(["ok 1 2000", "ok 1 2000", "ok 1 2000", "right 1 2000", "ok 1 2000", "ok 1 30000", "ok 1 400000", "ok 1 5000", "ok 1 10000", "exit 2 2000"]) else: RC.push(["ok 1 2000", "ok 1 2000", "right 1 2000", "ok 1 2000", "ok 1 15000", "ok 1 180000", "ok 1 5000", "exit 2 2000"]) sleep(3) RC.push(["0 1 5500", "down 1 300000", "down 1 240000", "down 1 5000", "standby 1 600000", "standby 1 25000"]) UART.start_app("mostPopular") sleep(3) GRAB.compare(testcase) ############################ TestCase 16 ########################################## testcase = 16 status("active") UART.default_settings() MOD.stop(Modulator) MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) if platform in ["E501", "E502", "A230"]: RC.push(["ok 1 2000", "ok 1 2000", "ok 1 2000", "right 1 2000", "ok 1 2000", "ok 1 30000", "ok 1 400000", "ok 1 5000", "ok 1 10000", "exit 2 2000"]) else: RC.push(["ok 1 2000", "ok 1 2000", "right 1 2000", "ok 1 2000", "ok 1 15000", "ok 1 180000", "ok 1 5000", "exit 2 2000"]) sleep(3) RC.push(["0 1 5500", "up 1 10000", "up 1 15000", "up 1 20000", "up 1 25000", "up 1 30000", "up 1 35000", "up 1 40000", "up 1 45000", "cinemahalls 1 15000", "right 1 1500", "OK 1 1500", "OK 1 240000", "exit 1 1500", "OK 1 1500", "exit 1 1500", "exit 1 1500"]) UART.start_app("mostPopular") GRAB.compare(testcase) ############################ TestCase 17 ########################################## testcase = 17 status("manual") GRAB.compare(testcase) ############################ TestCase 18 ########################################## testcase = 18 status("active") UART.default_settings() MOD.stop(Modulator) MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) if platform in ["E501", "E502", "A230"]: RC.push(["ok 1 2000", "ok 1 2000", "ok 1 2000", "right 1 2000", "ok 1 2000", "ok 1 30000", "ok 1 400000", "ok 1 5000", "ok 1 10000", "exit 2 2000"]) else: RC.push(["ok 1 2000", "ok 1 2000", "right 1 2000", "ok 1 2000", "ok 1 15000", "ok 1 180000", "ok 1 5000", "exit 2 2000"]) sleep(3) RC.push(["0 1 5500", "up 1 10000", "up 1 15000", "up 1 20000", "up 1 25000", "up 1 30000", "up 1 35000", "up 1 40000", "up 1 45000", "up 1 50000", "up 1 55000"]) UART.start_app("mostPopular") RC.push(["red 1 3000"]) GRAB.compare(testcase) ############################ TestCase 19 ########################################## testcase = 19 status("active") RC.push(["exit"]) UART.start_app("settings") RC.push(["exit", "right", "right", "right", "right", "right", "right", "down", "ok", "1", "1", "1", "1", "1", "1", "1", "1", "OK", "exit", "exit", "exit"]) UART.start_app("channelseditor") RC.push(["right 1 1000"]) OPER.channel_block() RC.push(["exit 1 1000", "exit 1 1000"]) UART.start_app("mostPopular") GRAB.compare(testcase) ############################ TestCase 20 ########################################## testcase = 20 status("active") UART.default_settings() MOD.stop(Modulator) MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) if platform in ["E501", "E502", "A230"]: RC.push(["ok 1 2000", "ok 1 2000", "ok 1 2000", "right 1 2000", "ok 1 2000", "ok 1 30000", "ok 1 400000", "ok 1 5000", "ok 1 10000", "exit 2 2000"]) else: RC.push(["ok 1 2000", "ok 1 2000", "right 1 2000", "ok 1 2000", "ok 1 15000", "ok 1 180000", "ok 1 5000", "exit 2 2000"]) RC.push(["down 1 5500", "www 1 2000"]) GRAB.compare(testcase) ############################ TestCase 21 ########################################## testcase = 21 status("active") RC.push(["www 1 1500"]) GRAB.compare(testcase) ############################ TestCase 22 ########################################## testcase = 22 status("active") UART.reboot() RC.push(["exit 1 1500", "down 1 5500", "www 1 1500", "exit 1 1000"]) GRAB.compare(testcase) ############################ TestCase 23 ########################################## testcase = 23 status("active") UART.reboot() RC.push(["exit 1 1500", "down 1 5500", "www 1 1500", "last 1 1000"]) GRAB.compare(testcase) ############################ TestCase 24 ########################################## testcase = 24 status("active") UART.reboot() RC.push(["exit 1 1500", "down 1 5500", "www 1 1500", "menu 1 1000"]) GRAB.compare(testcase) ############################ TestCase 25 ########################################## testcase = 25 status("manual") GRAB.compare(testcase) ############################ TestCase 26 ########################################## testcase = 26 status("manual") GRAB.compare(testcase) ############################ TestCase 27 ########################################## testcase = 27 status("manual") GRAB.compare(testcase) ############################ TestCase 28 ########################################## testcase = 28 status("manual") GRAB.compare(testcase) ############################ TestCase 29 ########################################## testcase = 29 status("manual") GRAB.compare(testcase) ############################ TestCase 30 ########################################## testcase = 30 status("manual") GRAB.compare(testcase) ############################ TestCase 31 ########################################## testcase = 31 status("manual") GRAB.compare(testcase) ############################ TestCase 32 ########################################## testcase = 32 status("manual") GRAB.compare(testcase) ############################ TestCase 33 ########################################## testcase = 33 status("manual") GRAB.compare(testcase) ############################ TestCase 34 ########################################## testcase = 34 status("manual") GRAB.compare(testcase) ############################ TestCase 35 ########################################## testcase = 35 status("active") UART.reboot() sleep(30) RC.push(["OK 1 1000", "exit 1 1000", "exit 1 1000", "down 1 5500", "www 1 1500", "www 1 1500", "menu 1 1500", "down 1 1500", "OK 1 1500"]) GRAB.compare(testcase) ############################ TestCase 36 ########################################## testcase = 36 status("active") RC.push(["www 1 1500"]) GRAB.compare(testcase) ############################ TestCase 37 ########################################## testcase = 37 status("active") UART.reboot() RC.push(["exit 1 1500", "down 1 5500", "1 1 1500", "9 1 1500", "1 1 1500", "www 1 1500", "www 1 1500", "menu 1 1500", "down 1 1500", "OK 1 1500", "exit 1 1500"]) GRAB.compare(testcase) ############################ TestCase 38 ########################################## testcase = 38 status("active") UART.reboot() RC.push(["www 1 1500", "www 1 1500", "down 1 5500", "menu 1 1500", "down 1 1500", "OK 1 1500", "last 1 3500", "red 1 1500"]) GRAB.compare(testcase) ############################ TestCase 39 ########################################## testcase = 39 status("active") UART.reboot() sleep(30) RC.push(["OK 1 1000", "exit 1 1000", "exit 1 1500", "down 1 5000", "www 1 1500", "www 1 1500", "menu 1 1500", "down 1 1500", "OK 1 1500", "menu 1 1500"]) GRAB.compare(testcase) ############################ TestCase 40 ########################################## testcase = 40 status("active") UART.default_settings() MOD.stop(Modulator) MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) if platform in ["E501", "E502", "A230"]: RC.push(["ok 1 2000", "ok 1 2000", "ok 1 2000", "right 1 2000", "ok 1 2000", "ok 1 30000", "ok 1 400000", "ok 1 5000", "ok 1 10000", "exit 2 2000"]) else: RC.push(["ok 1 2000", "ok 1 2000", "right 1 2000", "ok 1 2000", "ok 1 15000", "ok 1 180000", "ok 1 5000", "exit 2 2000"]) sleep(3) RC.push(["down 1 5500"]) UART.start_app("mostPopular") sleep(3) GRAB.compare(testcase) ############################ TestCase 41 ########################################## testcase = 41 status("manual") GRAB.compare(testcase) ############################ TestCase 42 ########################################## testcase = 42 status("active") RC.push(["VolUp 1 2500"]) GRAB.compare(testcase) ############################ TestCase 43 ########################################## testcase = 43 status("active") RC.push(["VolDown 1 2500"]) GRAB.compare(testcase) ############################ TestCase 44 ########################################## testcase = 44 status("active") RC.push(["ChUp 1 1500"]) GRAB.compare(testcase) ############################ TestCase 45 ########################################## testcase = 45 status("active") RC.push(["ChDown 1 1500"]) GRAB.compare(testcase) ############################ TestCase 46 ########################################## testcase = 46 status("active") RC.push(["up 1 1000"]) GRAB.compare(testcase) ############################ TestCase 47 ########################################## testcase = 47 status("active") RC.push(["down 1 1000"]) GRAB.compare(testcase) ############################ TestCase 48 ########################################## testcase = 48 status("active") RC.push(["right 1 1000"]) GRAB.compare(testcase) ############################ TestCase 49 ########################################## testcase = 49 status("active") RC.push(["left 1 1000"]) GRAB.compare(testcase) ############################ TestCase 50 ########################################## testcase = 50 status("active") RC.push(["exit 1 1000", "down 1 4000", "www 1 1000", "ok 1 2500"]) GRAB.compare(testcase) ############################ TestCase 51 ########################################## testcase = 51 status("active") RC.push(["exit 1 1000", "down 1 5500", "www 1 1000", "standby 1 10000", "standby 1 10000"]) GRAB.compare(testcase) ############################ TestCase 52 ########################################## testcase = 52 status("inactive") GRAB.compare(testcase) ############################ TestCase 53 ########################################## testcase = 53 status("manual") GRAB.compare(testcase) ############################ TestCase 54 ########################################## testcase = 54 status("manual") GRAB.compare(testcase) ############################ TestCase 55 ########################################## testcase = 55 status("active") UART.default_settings() MOD.stop(Modulator) MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) if platform in ["E501", "E502", "A230"]: RC.push(["ok 1 2000", "ok 1 2000", "ok 1 2000", "right 1 2000", "ok 1 2000", "ok 1 30000", "ok 1 400000", "ok 1 5000", "ok 1 10000", "exit 2 2000"]) else: RC.push(["ok 1 2000", "ok 1 2000", "right 1 2000", "ok 1 2000", "ok 1 15000", "ok 1 180000", "ok 1 5000", "exit 2 2000"]) sleep(30) RC.push(["OK 1 1000", "exit 1 1000", "exit 1 1000", "0 1 5500", "down 1 120000"]) UART.start_app("settings") RC.push(["exit", "right", "right", "right", "right", "right", "right", "down", "ok", "1", "1", "1", "1", "1", "1", "1", "1", "OK", "exit", "exit", "exit"]) UART.start_app("channelseditor") RC.push(["right", "exit", "exit", "0 1 5500", "down 1 5500", "www 1 1000", "2 1 5500"]) OPER.channel_block() RC.push(["down 1 1000"]) OPER.channel_block() RC.push(["down 1 1000"]) OPER.channel_block() RC.push(["down 1 1000"]) OPER.channel_block() RC.push(["exit", "exit", "exit 1 3000", "0 1 5500", "down 1 5500", "www 1 1000", "2 1 5500"]) GRAB.compare(testcase) ############################ TestCase 56 ########################################## testcase = 56 status("active") UART.default_settings() MOD.stop(Modulator) MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) if platform in ["E501", "E502", "A230"]: RC.push(["ok 1 2000", "ok 1 2000", "ok 1 2000", "right 1 2000", "ok 1 2000", "ok 1 30000", "ok 1 400000", "ok 1 5000", "ok 1 10000", "exit 2 2000"]) else: RC.push(["ok 1 2000", "ok 1 2000", "right 1 2000", "ok 1 2000", "ok 1 15000", "ok 1 180000", "ok 1 5000", "exit 2 2000"]) sleep(3) UART.activate_app("dvbsmanualscanner") RC.push(["0 1 5500", "down 1 120000", "down 1 90000", "down 1 60000", "down 1 5500"]) UART.start_app("dvbsmanualscanner") sleep(60) RC.push(["exit"]) UART.start_app("mostPopular") sleep(5) GRAB.compare(testcase) ############################ TestCase 57 ########################################## testcase = 57 status("active") UART.default_settings() MOD.stop(Modulator) MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) if platform in ["E501", "E502", "A230"]: RC.push(["ok 1 2000", "ok 1 2000", "ok 1 2000", "right 1 2000", "ok 1 2000", "ok 1 30000", "ok 1 400000", "ok 1 5000", "ok 1 10000", "exit 2 2000"]) else: RC.push(["ok 1 2000", "ok 1 2000", "right 1 2000", "ok 1 2000", "ok 1 15000", "ok 1 180000", "ok 1 5000", "exit 2 2000"]) sleep(3) UART.activate_app("dvbsmanualscanner") RC.push(["0 1 5500", "down 1 120000", "down 1 90000", "down 1 60000", "down 1 5500"]) UART.start_app("dvbsmanualscanner") RC.push(["1", "2", "2", "2", "6", "OK 1 5000", "OK 1 5000", "exit 1 1500", "exit 1 1500"]) sleep(50) RC.push(["exit 1 1500", "exit 1 1500", "exit 1 1500"]) UART.start_app("mostPopular") sleep(5) GRAB.compare(testcase) ############################ TestCase 58 ########################################## testcase = 58 status("active") UART.default_settings() MOD.stop(Modulator) MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) if platform in ["E501", "E502", "A230"]: RC.push(["ok 1 2000", "ok 1 2000", "ok 1 2000", "right 1 2000", "ok 1 2000", "ok 1 30000", "ok 1 400000", "ok 1 5000", "ok 1 10000", "exit 2 2000"]) else: RC.push(["ok 1 2000", "ok 1 2000", "right 1 2000", "ok 1 2000", "ok 1 15000", "ok 1 180000", "ok 1 5000", "exit 2 2000"]) sleep(3) RC.push(["0 1 5500", "down 1 120000", "down 1 90000", "down 1 60000", "down 1 5500"]) UART.start_app("tricolorsearch") sleep(60) RC.push(["exit 1 1500", "exit 1 1500", "exit 1 1500"]) UART.start_app("mostPopular") sleep(5) GRAB.compare(testcase) ############################ TestCase 59 ########################################## testcase = 59 status("active") UART.default_settings() MOD.stop(Modulator) MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) if platform in ["E501", "E502", "A230"]: RC.push(["ok 1 2000", "ok 1 2000", "ok 1 2000", "right 1 2000", "ok 1 2000", "ok 1 30000", "ok 1 400000", "ok 1 5000", "ok 1 10000", "exit 2 2000"]) else: RC.push(["ok 1 2000", "ok 1 2000", "right 1 2000", "ok 1 2000", "ok 1 15000", "ok 1 180000", "ok 1 5000", "exit 2 2000"]) sleep(3) RC.push(["0 1 5500", "down 1 120000", "down 1 90000", "down 1 60000", "down 1 5500"]) UART.start_app("tvmail") sleep(60) RC.push(["exit 1 1500", "exit 1 1500", "exit 1 1500"]) UART.start_app("mostPopular") sleep(5) GRAB.compare(testcase) ############################ TestCase 60 ########################################## testcase = 60 status("manual") GRAB.compare(testcase) ############################ TestCase 61 ##########################################?????????????????????????????? testcase = 61 status("manual") GRAB.compare(testcase) ############################ TestCase 62 ########################################## testcase = 62 status("active") UART.default_settings() MOD.stop(Modulator) MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) if platform in ["E501", "E502", "A230"]: RC.push(["ok 1 2000", "ok 1 2000", "ok 1 2000", "right 1 2000", "ok 1 2000", "ok 1 30000", "ok 1 400000", "ok 1 5000", "ok 1 10000", "exit 2 2000"]) else: RC.push(["ok 1 2000", "ok 1 2000", "right 1 2000", "ok 1 2000", "ok 1 15000", "ok 1 180000", "ok 1 5000", "exit 2 2000"]) sleep(30) RC.push(["OK 1 1000", "exit 1 1000", "exit 1 1000", "0 1 5500", "up 1 120000", "up 1 240000", "0 1 5500"]) UART.reboot() sleep(5) RC.push(["exit 1 1000", "up 1 4000"]) UART.start_app("mostPopular") sleep(5) GRAB.compare(testcase) ################################################################################### status("active") MOD.stop(Modulator) GRAB.stop_capture()
def runTest(): status("active") TestName = "ManualSearch" ScriptName = "searching" ScriptIndex = "2" Grabber = DO.grab_define() platform = DO.load_platform() Modulation = "DVBS" FEC = "3/4" SR = "27500000" Stream = "\\X_0000_00000_MUX_32000_EPG_Software_20130328a.ts" Stream_2 = "\\S_036E_12226_ASI_27500_3k_TTX_20110707a.ts" Frequency = 1476 Modulator = "1" COM = "COM7" settings = [ScriptName, ScriptIndex, Grabber, Modulation, FEC, SR, Stream, Frequency, Modulator, COM] DO.save_settings(settings) GRAB.start_capture() MOD.stop(Modulator) ############################ TestCase 1 ########################################## testcase = 1 status("active") MOD.play_stream(Modulation, FEC, SR, Stream_2, Frequency, Modulator) UART.default_settings() RC.push(["exit 2 2400"]) UART.activate_app("dvbsmanualscanner") UART.start_app("dvbsmanualscanner") RC.push(["1", "2", "2", "2", "6", "ok 1 1000"]) GRAB.compare(testcase) ############################ TestCase 2 ########################################## testcase = 2 status("active") RC.push(["exit 2 2400"]) UART.start_app("dvbsmanualscanner") RC.push(["left 6 2400", "1", "2", "2", "2", "6", "ok 1 1500", "menu 1 3000"]) GRAB.compare(testcase) ############################ TestCase 3 ########################################## testcase = 3 status("active") RC.push(["exit 2 2400"]) UART.start_app("dvbsmanualscanner") RC.push(["left 6 2400", "1", "2", "2", "2", "6", "ok 1 2500", "exit 1 3000"]) GRAB.compare(testcase) ############################ TestCase 4 ########################################## testcase = 4 status("active") RC.push(["exit 2 2400"]) UART.start_app("dvbsmanualscanner") RC.push(["left 6 2400", "1", "2", "2", "2", "6", "ok 1 2500", "last 1 3000"]) GRAB.compare(testcase) ############################ TestCase 5 ########################################## testcase = 5 status("active") RC.push(["exit 2 2400"]) UART.start_app("dvbsmanualscanner") RC.push(["left 6 2400", "1", "2", "2", "2", "6", "ok 1 1500", "standby 1 5000", "standby 1 15000"]) GRAB.compare(testcase) ############################ TestCase 6 ########################################## testcase = 6 status("active") RC.push(["exit 2 2400"]) UART.start_app("dvbsmanualscanner") RC.push(["left 6 2400", "1", "2", "2", "2", "6", "ok 1 1500", "ok 1 3000"]) GRAB.compare(testcase) ############################ TestCase 7 ########################################## testcase = 7 status("active") RC.push(["exit 2 2400"]) UART.start_app("dvbsmanualscanner") RC.push(["left 6 2400", "1", "2", "2", "2", "6", "ok 1 2500", "VolUp 1 2400"]) GRAB.compare(testcase) ############################ TestCase 8 ########################################## testcase = 8 status("active") RC.push(["exit 2 2400"]) UART.start_app("dvbsmanualscanner") RC.push(["left 6 2400", "1", "2", "2", "2", "6", "ok 1 2500", "VolDown 1 2400"]) GRAB.compare(testcase) ############################ TestCase 9 ########################################## testcase = 9 status("active") RC.push(["exit 2 2400"]) UART.start_app("dvbsmanualscanner") RC.push(["left 6 2400", "1", "2", "2", "2", "6", "ok 1 2500", "mute 1 3000"]) GRAB.compare(testcase) ############################ TestCase 10 ########################################## testcase = 10 status("active") RC.push(["exit 2 2400"]) UART.start_app("dvbsmanualscanner") RC.push(["left 6 2400", "1", "2", "2", "2", "6 1 2000", "ok 1 20000"]) GRAB.compare(testcase) ############################ TestCase 11 ########################################## testcase = 11 status("active") RC.push(["exit 2 2400"]) UART.start_app("dvbsmanualscanner") RC.push(["left 6 2400", "1", "2", "2", "2", "6", "ok 1 2500", "ok 1 3000"]) GRAB.compare(testcase) ############################ TestCase 12 ########################################## testcase = 12 status("active") RC.push(["exit 2 2400"]) UART.start_app("dvbsmanualscanner") RC.push(["left 6 2400", "1", "2", "2", "2", "6", "ok 1 1500", "exit 1 3000"]) GRAB.compare(testcase) ############################ TestCase 13 ########################################## testcase = 13 status("active") RC.push(["exit 2 2400"]) UART.start_app("dvbsmanualscanner") RC.push(["left 6 2400", "1", "2", "2", "2", "6", "ok 1 7500", "menu 1 3000"]) GRAB.compare(testcase) ############################ TestCase 14 ########################################## testcase = 14 status("active") RC.push(["exit 2 2400"]) UART.start_app("dvbsmanualscanner") RC.push(["left 6 2400", "1", "2", "2", "2", "6 1 2000", "ok 1 70000"]) GRAB.compare(testcase) ############################ TestCase 15 ########################################## testcase = 15 status("active") RC.push(["left 1 2400"]) GRAB.compare(testcase) ############################ TestCase 16 ########################################## testcase = 16 status("active") RC.push(["right 1 2400"]) GRAB.compare(testcase) ############################ TestCase 17 ########################################## testcase = 17 status("active") MOD.play_stream(Modulation, FEC, SR, Stream, Frequency, Modulator) UART.default_settings() RC.push(["exit 2 2400"]) UART.start_app("dvbsmanualscanner") RC.push(["left 5 2400", "1", "2", "2", "2", "6 1 2000", "ok 1 20000", "right", "ok 1 5000", "exit 3 5000"]) GRAB.compare(testcase) ############################ TestCase 18 ########################################## testcase = 18 status("active") RC.push(["exit 2 2400"]) UART.start_app("dvbsmanualscanner") RC.push(["left 5 2400", "1", "2", "2", "2", "6 1 2000", "ok 1 20000", "ok 1 5000", "exit 3 5000"]) GRAB.compare(testcase) ############################ TestCase 19 ########################################## testcase = 19 status("active") UART.default_settings() RC.push(["exit 2 2400"]) UART.activate_app("dvbsmanualscanner") UART.start_app("dvbsmanualscanner") RC.push(["1", "2", "2", "2", "6 1 2000", "ok 1 20000", "exit 3 5000"]) GRAB.compare(testcase) ############################ TestCase 20 ########################################## testcase = 20 status("active") UART.start_app("dvbsmanualscanner") RC.push(["left 5 2400", "1", "2", "2", "2", "6 1 2000", "ok 1 20000", "standby 1 5000", "standby 1 15000"]) GRAB.compare(testcase) ############################ TestCase 21 ########################################## testcase = 21 status("active") RC.push(["exit 2 2400"]) UART.start_app("dvbsmanualscanner") RC.push(["left 5 2400", "1", "2", "2", "2", "6 1 2000", "ok 1 20000", "mute 1 2400"]) GRAB.compare(testcase) ############################ TestCase 22 ########################################## testcase = 22 status("active") RC.push(["exit 2 2400"]) UART.start_app("dvbsmanualscanner") RC.push(["left 5 2400", "1", "2", "2", "2", "6 1 2000", "ok 1 20000", "VolUp 1 2400"]) GRAB.compare(testcase) ############################ TestCase 23 ########################################## testcase = 23 status("active") RC.push(["VolDown 1 2400"]) GRAB.compare(testcase) ############################ TestCase 24 ########################################## testcase = 24 status("active") MOD.stop(Modulator) UART.default_settings() RC.push(["exit 2 2400"]) UART.activate_app("dvbsmanualscanner") UART.start_app("dvbsmanualscanner") RC.push(["1", "2", "2", "2", "6", "ok 1 70000"]) GRAB.compare(testcase) ############################ TestCase 25 ########################################## testcase = 25 status("active") RC.push(["left 1 2400"]) GRAB.compare(testcase) ############################ TestCase 26 ########################################## testcase = 26 status("active") RC.push(["right 1 2400"]) GRAB.compare(testcase) ############################ TestCase 27 ########################################## testcase = 27 status("active") RC.push(["left 1 2400", "ok 1 30000"]) GRAB.compare(testcase) ############################ TestCase 28 ########################################## testcase = 28 status("active") RC.push(["ok 1 3000"]) GRAB.compare(testcase) ############################ TestCase 29 ########################################## testcase = 29 status("active") RC.push(["ok 1 30400", "right 1 2000", "ok 1 5000"]) GRAB.compare(testcase) ############################ TestCase 30 ########################################## testcase = 30 status("active") RC.push(["exit 2 2400"]) UART.start_app("dvbsmanualscanner") RC.push(["left 5 2400", "1", "2", "2", "2", "6 1 2000", "ok 1 20000", "exit 1 2400"]) GRAB.compare(testcase) ############################ TestCase 31 ########################################## testcase = 31 status("active") RC.push(["exit 2 2400"]) UART.start_app("dvbsmanualscanner") RC.push(["left 5 2400", "1", "2", "2", "2", "6 1 2000", "ok 1 20000", "standby 1 5000", "standby 1 15000"]) GRAB.compare(testcase) ############################ TestCase 32 ########################################## testcase = 32 status("active") RC.push(["exit 2 2400"]) UART.start_app("dvbsmanualscanner") RC.push(["left 5 2400", "1", "2", "2", "2", "6 1 2000", "ok 1 20000", "mute 1 2400"]) GRAB.compare(testcase) ############################ TestCase 33 ########################################## testcase = 33 status("active") RC.push(["VolUp 1 2400"]) GRAB.compare(testcase) ############################ TestCase 34 ########################################## testcase = 34 status("active") RC.push(["VolDown 1 2400"]) GRAB.compare(testcase) ############################ TestCase 35 ########################################## testcase = 35 status("active") MOD.pause(Modulator) UART.default_settings() RC.push(["exit 2 2400"]) UART.activate_app("dvbsmanualscanner") UART.start_app("dvbsmanualscanner") RC.push(["3 1 2000", "4 1 2000", "0 1 2000", "0 1 2000", "down 5 2400", "ok 1 5000"]) GRAB.compare(testcase) ############################ TestCase 36 ########################################## testcase = 36 status("active") RC.push(["ok 1 2400"]) GRAB.compare(testcase) ############################ TestCase 37 ########################################## testcase = 37 status("active") RC.push(["ok 1 5000", "left", "ok 1 3000"]) GRAB.compare(testcase) ############################ TestCase 38 ########################################## testcase = 38 status("active") RC.push(["right", "ok 1 3000"]) GRAB.compare(testcase) ############################ TestCase 39 ########################################## testcase = 39 status("active") RC.push(["exit 2 2400"]) UART.start_app("dvbsmanualscanner") RC.push(["left 6 2400", "1", "2", "2", "2", "6 1 2000", "ok 1 20000"]) GRAB.compare(testcase) ############################ TestCase 40 ########################################## testcase = 40 status("active") RC.push(["right", "ok 1 5000", "exit 3 5000"]) GRAB.compare(testcase) ############################ TestCase 41 ########################################## testcase = 41 status("active") RC.push(["exit 2 2400"]) UART.start_app("dvbsmanualscanner") RC.push(["left 5 2400", "1", "2", "2", "2", "6 1 2000", "ok 1 20000", "ok 1 5000", "exit 3 5000"]) GRAB.compare(testcase) ################################################################################### status("active") MOD.stop(Modulator) GRAB.stop_capture()
import pyb form pyb import UART uart1 = UART(1, baudrate=9600)