From 90866c6cb0401f0aa2e573059eb9315e88426cc7 Mon Sep 17 00:00:00 2001 From: wangpeng Date: Thu, 19 Sep 2024 15:34:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=94=A8=E4=BE=8B1271327:?= =?UTF-8?q?=E6=A1=8C=E9=9D=A2-=E5=94=A4=E5=87=BA=E5=85=B3=E9=97=AD?= =?UTF-8?q?=E5=89=AA=E5=88=87=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- case/test_dde_1271327.py | 23 +++++++++++++++++++++++ dde.csv | 3 ++- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 case/test_dde_1271327.py diff --git a/case/test_dde_1271327.py b/case/test_dde_1271327.py new file mode 100644 index 0000000..8056291 --- /dev/null +++ b/case/test_dde_1271327.py @@ -0,0 +1,23 @@ +import time +import pylinuxauto +from case.base_case import BaseCase + + +class TestDdeCase(BaseCase): + def test_dde_1271327_1(self): + """快捷键关闭剪贴板""" + pylinuxauto.hot_key('ctrl', 'alt', 'v') + time.sleep(2) + self.assert_ocr_exist("剪贴板") + pylinuxauto.hot_key('ctrl', 'alt', 'v') + time.sleep(2) + self.assert_ocr_not_exist("剪贴板") + + def test_dde_1271327_2(self): + """点击空白处关闭剪贴板""" + pylinuxauto.hot_key('ctrl', 'alt', 'v') + time.sleep(2) + self.assert_ocr_exist("剪贴板") + pylinuxauto.click(1000, 500) + time.sleep(2) + self.assert_ocr_not_exist("剪贴板") diff --git a/dde.csv b/dde.csv index 468b4a8..1756ed0 100644 --- a/dde.csv +++ b/dde.csv @@ -25,4 +25,5 @@ 1271311,,, 1271313,,, 1271315,,, -1271317,,, \ No newline at end of file +1271317,,, +1271327,,, \ No newline at end of file -- Gitee