예제 #1
0
 def test_step(self):
     self.Step("步骤1:通过 LayoutList 方法获取当前可用布局,添加布局")
     self.layouts_list = inputDeviceKeyboard.get_layout_list()
     self.Step("步骤2:调用 GetLayoutDesc 方法,获取键盘布局的说明")
     for option in self.layouts_list:
         inputDeviceKeyboard.getLayoutDesc(option)
         time.sleep(2)
 def test_step(self):
     self.Step("步骤1:通过 LayoutList 方法获取当前可用布局")
     layouts_list = inputDeviceKeyboard.get_layout_list()
     self.Step("步骤2:调用 AddUserLayout 方法,添加可用layout,并检查是否添加成功")
     for layout in layouts_list:
         inputDeviceKeyboard.addUserLayout(layout)
         time.sleep(2)
예제 #3
0
    def test_step(self):
        self.Step("步骤1:通过 LayoutList 方法获取当前可用布局")
        layouts_list = inputDeviceKeyboard.get_layout_list()

        self.Step("步骤2:自定义一个布局名称'ltest;'")
        new_layout = 'ltest;'
        layouts_list.append(new_layout)

        self.Step("步骤3:调用 AddLayoutOption 方法,添加可用layout和自定义布局名称,并检查是否添加成功")
        for option in layouts_list:
            inputDeviceKeyboard.addLayoutOption(option)
            time.sleep(2)
예제 #4
0
 def setUp(self):
     self.Step("预制条件1:通过 LayoutList 方法获取当前可用布局,添加布局")
     self.layouts_list = inputDeviceKeyboard.get_layout_list()
     for option in self.layouts_list:
         inputDeviceKeyboard.addUserLayout(option)
         time.sleep(2)