本文整理汇总了Python中Utils.InitCase.task_options方法的典型用法代码示例。如果您正苦于以下问题:Python InitCase.task_options方法的具体用法?Python InitCase.task_options怎么用?Python InitCase.task_options使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Utils.InitCase
的用法示例。
在下文中一共展示了InitCase.task_options方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test
# 需要导入模块: from Utils import InitCase [as 别名]
# 或者: from Utils.InitCase import task_options [as 别名]
def test(self):
self.verificationErrors = []
Config.find_element(Config.openSettings).click()
time.sleep(1)
self.user = Config.find_element(Config.settings_email).text
listID = Config.find_element(Config.main_listByName, "Shared").get_attribute("id")
InitCase.init_case(menu=listID, taskNo=1)
CreateLoadedTask.create_loaded_task()
Config.sync()
ChangeUser.change_user(self.other_user())
self.user = self.other_user()
InitCase.init_case(menu="ALL", taskOption="subtasks")
try: self.assertEqual("subtask", Config.find_element(Config.subtasks_title).text)
except AssertionError as e: self.verificationErrors.append(str(e))
InitCase.task_options("note")
try: self.assertTrue(len(Config.find_element(Config.note).text) != 0)
except AssertionError as e: self.verificationErrors.append(str(e))
InitCase.task_options("files")
try: self.assertEqual("2015-03-29.png", Config.find_element(Config.files_name).text)
except AssertionError as e: self.verificationErrors.append(str(e))
try: self.assertTrue(Config.is_element_present(Config.files_thumbnailByType, "image"))
except AssertionError as e: self.verificationErrors.append(str(e))
InitCase.close_task()
try: self.assertTrue(Config.is_element_present(Config.taskPriority))
except AssertionError as e: self.verificationErrors.append(str(e))
self.assertEqual([], self.verificationErrors)
示例2: test
# 需要导入模块: from Utils import InitCase [as 别名]
# 或者: from Utils.InitCase import task_options [as 别名]
def test(self):
InitCase.init_case(menu="ALL", taskOption="note")
self.verificationErrors = []
noteText = "test test test test test test test test test test test test test test test test test test test test test test "
Config.find_element(Config.note).send_keys(noteText)
try: self.assertEqual(" ", Config.find_element(Config.task_badgeByIconName, "note").get_attribute("data-badge"))
except AssertionError as e: self.verificationErrors.append(str(e))
Config.find_element(Config.task_closeButton).click()
InitCase.task_options("note")
try: self.assertEqual(noteText, Config.find_element(Config.note).text)
except AssertionError as e: self.verificationErrors.append(str(e))
示例3: test
# 需要导入模块: from Utils import InitCase [as 别名]
# 或者: from Utils.InitCase import task_options [as 别名]
def test(self):
InitCase.init_case(taskOption="note")
self.verificationErrors = []
noteText = "edit edit edit edit"
Config.find_element(Config.note).clear()
Config.find_element(Config.note).send_keys(noteText)
try: self.assertEqual(" ", Config.find_element(Config.task_badgeByIconName, "note").get_attribute("data-badge"))
except AssertionError as e: self.verificationErrors.append(str(e))
Config.find_element(Config.task_closeButton).click()
Config.wait_for_element(Config.task_closeButton, present=False)
InitCase.task_options("note")
time.sleep(1)
try: self.assertEqual(noteText, Config.find_element(Config.note).text)
except AssertionError as e: self.verificationErrors.append(str(e))
示例4: test
# 需要导入模块: from Utils import InitCase [as 别名]
# 或者: from Utils.InitCase import task_options [as 别名]
def test(self):
self.verificationErrors = []
Config.find_element(Config.openSettings).click()
time.sleep(1)
user = Config.find_element(Config.settings_email).text
sender = Config.get_sender()
receiver = Config.get_receiver()
InitCase.init_case(menu="ALL")
CreateLoadedTask.create_loaded_task()
Config.sync()
if user == receiver: user = sender
else: user = receiver
ChangeUser.change_user(user)
InitCase.init_case(menu="ALL", taskOption="subtasks")
try: self.assertEqual("subtask", Config.find_element(Config.subtasks_title).text)
except AssertionError as e: self.verificationErrors.append(str(e))
InitCase.task_options("note")
try: self.assertTrue(len(Config.find_element(Config.note).text) != 0)
except AssertionError as e: self.verificationErrors.append(str(e))
InitCase.task_options("files")
try: self.assertEqual("2015-03-29.png", Config.find_element(Config.files_name).text)
except AssertionError as e: self.verificationErrors.append(str(e))
try: self.assertTrue(Config.is_element_present(Config.files_thumbnailByType, "image"))
except AssertionError as e: self.verificationErrors.append(str(e))
InitCase.close_task()
try: self.assertTrue(Config.is_element_present(Config.taskPriority))
except AssertionError as e: self.verificationErrors.append(str(e))