예제 #1
0
파일: functionality.py 프로젝트: yupasik/AT
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()
예제 #2
0
파일: 08-blocking.py 프로젝트: yupasik/AT
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()
예제 #3
0
파일: main.py 프로젝트: yupasik/AT
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()
예제 #4
0
파일: functionality.py 프로젝트: yupasik/AT
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()
예제 #5
0
파일: 12-scripts.py 프로젝트: yupasik/AT
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()
예제 #6
0
파일: functionality.py 프로젝트: yupasik/AT
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()
예제 #7
0
파일: functionality.py 프로젝트: yupasik/AT
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()
예제 #8
0
파일: main.py 프로젝트: yupasik/AT
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()