def setUp(self): self.Step("预制条件1:打开一个文件管理器窗口") for i in range(3): self.p = subprocess.Popen('dde-file-manager') time.sleep(5) if i != 2: self.p.kill() time.sleep(3) self.win_id = dock.get_window_id_by_name() time.sleep(1)
def setUp(self): self.Step("预制条件1:打开一个文件管理器窗口") self.p = subprocess.Popen('dde-file-manager') time.sleep(5) self.win_id = dock.get_window_id_by_name() time.sleep(1)