diff --git a/case/test_dde_1892517.py b/case/test_dde_1892517.py new file mode 100644 index 0000000000000000000000000000000000000000..3c22d1f482b32dbf703049a10a86c80bcc34eac4 --- /dev/null +++ b/case/test_dde_1892517.py @@ -0,0 +1,31 @@ +from time import sleep +from src import Src +import pytest +from src import CmdCtl as Cmd + +from apps.dde_autotest_euler.case.base_case import BaseCase +from apps.dde_autotest_euler.method.dde_method import DdeMethod + + +class TestDdeCase(BaseCase): + + def test_dde_1892517_1(self): + """启动器打开设备管理器""" + euler = DdeMethod() + euler.open_software_by_launcher("shebeiguanliqi") + sleep(5) + self.assert_process_status(True, "deepin-devicemanager") + + def test_dde_1892517_2(self): + """终端打开设备管理器""" + Cmd.run_cmd("deepin-devicemanager &") + sleep(5) + self.assert_process_status(True, "deepin-devicemanager") + + @pytest.fixture(autouse=True) + def clear(self): + DdeMethod().kill_process("deepin-devicemanager") + yield + DdeMethod().kill_process("deepin-devicemanager") + DdeMethod().click_restore() + DdeMethod().esc() diff --git a/dde.csv b/dde.csv index a9f77fc230299bab48f22c21dec0d06a9705858f..374f42be92a1fbbf3ba28b9f8530e2bb4bfd3413 100644 --- a/dde.csv +++ b/dde.csv @@ -67,3 +67,4 @@ 159819,,, 159842,,, 1892511,,, +1892517,,, diff --git a/method/image_res/deepin_devicemanager_icon.png b/method/image_res/deepin_devicemanager_icon.png new file mode 100644 index 0000000000000000000000000000000000000000..27840ca4e252ed4597764d00c94541dd840a5d48 Binary files /dev/null and b/method/image_res/deepin_devicemanager_icon.png differ