Exemplo n.º 1
0
 def setUp(self):
     print("Initialization Test Environment")
     super(testcase_HomeUI_BasicCheck_0002, self).setUp()
     # 1. 进入Home UI界面
     qw_model_action_util.send_key('HOME')
     # 2. 进入Setup界面
     qw_model_action_util.go_setup()
     # 3.确保resetting成功
     qw_model_action_util.go_all_resetting()
     # 4.确保图标居中
     qw_model_action_util.init_focus_location()
Exemplo n.º 2
0
 def setUp(self):
     print("Initialization Test Environment")
     self.assertTrue(qw_model_action_util.check_USB('QW'),
                     'please Insert the USB correctly.')
     super(testcase_ContentList_BasicCheck_0001, self).setUp()
     # 1. 进入Home UI界面
     qw_model_action_util.send_key('HOME')
     # 2. 进入Setup界面
     qw_model_action_util.go_setup()
     # 3.确保resetting成功
     qw_model_action_util.go_all_resetting()
     qw_model_action_util.send_key('HOME')
Exemplo n.º 3
0
    def testcase_Basic_Check_Setup_WiredWireless_0001(self):
        print("Step1: Enter Into Setup screen")
        qw_model_action_util.go_home()
        qw_model_action_util.go_setup()

        print("Step2: Enter Into Network Setting")
        qw_model_action_util.go_network_setting()

        print("Step3: Enter Into Internet Settings")
        qw_model_action_util.go_internet_settings()

        print("Step4: Retrive Internet Service List")
        qw_model_action_util.set_wired_setup()
Exemplo n.º 4
0
    def testcase_Basic_Check_Setup_SKB_0001(self):
        print("Step1: Enter into Setup screen")
        qw_model_action_util.go_home()
        qw_model_action_util.go_setup()

        print("Step2: Enter into System Settings / Device Name")
        qw_model_action_util.go_system_setting()
        qw_model_action_util.go_device_name()

        print("Step3: Press The Yellow Key And Check The History")
        qw_model_action_util.send_key('YELLOW')
        self.assertTrue(check_result.check_pictures('History_Before.png'),
                        'The History is not clear')

        print("Step4: Enter A Device Name And Check The Yellow Key")
        qw_model_action_util.send_key('BLUE')
        qw_model_action_util.enter_device_name()
        qw_model_action_util.save_device_name()
        qw_model_action_util.send_key('ENTER')
        qw_model_action_util.send_key('YELLOW')
        self.assertTrue(check_result.check_pictures('History_After.png'),
                        'The History is not displayed correctly')

        print("Step5: Press The Blue Key And Check The History")
        qw_model_action_util.send_key('BLUE')
        self.assertTrue(check_result.check_pictures('History_Before.png'),
                        'The History is not clear')

        print("Step6: Press The Red Key And Check The Language")
        qw_model_action_util.send_key('RED')
        self.assertTrue(check_result.check_pictures('Language_Yellow.png'),
                        'The language bar is not displayed correctly')
        qw_model_action_util.send_key("RETURN")

        print(
            "Step7: Press The Green Key And Check The Size Of The Input Mode")
        qw_model_action_util.send_key('GREEN')
        self.assertTrue(check_result.check_pictures('Input_Mode_Blue.png'),
                        'The Input Mode is not displayed correctly')
        qw_model_action_util.send_key('BLUE')

        print("Step8: Enter A Device Name And Press Enter")
        qw_model_action_util.enter_device_name()
        qw_model_action_util.save_device_name()
        self.assertTrue(check_result.check_pictures('Device_Name.png'),
                        'The input word has not been saved')
Exemplo n.º 5
0
    def testcase_Basic_Check_Setup_0001(self):
        print("Step1: Enter into Setup screen")
        qw_model_action_util.go_setup(False)

        print("Step2: Factory Resetting/All Resetting")
        qw_model_action_util.go_all_resetting()

        print("Step3: Power Off")
        qw_model_action_util.go_power_off()

        print("Step4: Power On")
        qw_model_action_util.go_power_on()

        print("Step5: Display EasySetup Step")
        # self.assertTrue(check_result.check_pictures('EasyDisplaySettings.png'),
        #                 'EasySetup Step Not Displayed')

        print("Step6: Finish EasySetup Step")
        qw_model_action_util.go_finish_easySetup_step()

        print("Step7: Select Setup Button")
        qw_model_action_util.go_setup()

        print("Step8: Display Setup List Items")
        # self.assertTrue(check_result.check_pictures('Setup.png'),
        #                 'Setup List Items Not Displayed')

        print("Step9: Choose One Setting Item And "
              "Change The Option Value To Another(not default)")
        qw_model_action_util.change_HDR_output()
        # self.assertTrue(check_result.check_pictures('HDR_Output_Off.png'),
        #                 'Change The Option Value To Another(not default) Failed')

        print("Step10: Enter Into Resettings To Do All Resetting")
        qw_model_action_util.go_home()
        qw_model_action_util.go_setup()
        qw_model_action_util.go_all_resetting()

        print("Step11: Return To This Setting Item")
        qw_model_action_util.go_home()
        qw_model_action_util.go_setup()
        qw_model_action_util.go_HDR_output()

        print("Step12: The Value Change To Default")
        # self.assertTrue(check_result.check_pictures('HDR_Output_Auto.png'),
        #                 'The Value Not Change To Default')

        print("Step13: Enter Into Setup/System Setting")
        qw_model_action_util.go_home()
        qw_model_action_util.go_setup()
        qw_model_action_util.go_system_setting()

        print("Step14: Change The OSD Language To Another")
        qw_model_action_util.change_OSD_language()
        # self.assertTrue(check_result.check_pictures('OSD_Sprache_Deutsch.png'),
        #                 'Change The OSD Language To Another Failed')

        print("Step15: Enter Into Resettings To Do All Resetting")
        qw_model_action_util.go_home()
        qw_model_action_util.go_setup()
        qw_model_action_util.go_all_resetting()

        print("Step16: Return To This Setting Item")
        qw_model_action_util.go_home()
        qw_model_action_util.go_setup()
        qw_model_action_util.go_system_setting()