当前位置: 首页>>代码示例>>Python>>正文


Python Helpers.saveNewObjectAndWait方法代码示例

本文整理汇总了Python中helpers.Helpers.Helpers.saveNewObjectAndWait方法的典型用法代码示例。如果您正苦于以下问题:Python Helpers.saveNewObjectAndWait方法的具体用法?Python Helpers.saveNewObjectAndWait怎么用?Python Helpers.saveNewObjectAndWait使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在helpers.Helpers.Helpers的用法示例。


在下文中一共展示了Helpers.saveNewObjectAndWait方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: testHideShowNewModalPeople

# 需要导入模块: from helpers.Helpers import Helpers [as 别名]
# 或者: from helpers.Helpers.Helpers import saveNewObjectAndWait [as 别名]
    def testHideShowNewModalPeople(self):
        self.testname="TestHideShowNewModalPeople"
        self.setup()
        util = WebdriverUtilities()
        util.setDriver(self.driver)
        element = Elements()
        do = Helpers(self)
        do.setUtils(util)
        do.login()

        list_all = "all"
        list_items = "enabled_user, company"
        a_few_items = "company"
 
        print "TEST THAT YOU CAN SHOW OR HIDE FIELDS/ELEMENTS IN CREATE NEW OBJECT MODAL."
        
        # fill in mandatory fields only
        do.openCreateNewObjectWindowFromLhn("Person")
 
        # hide_all, show_all, then hide individual
        do.hideInNewModal(list_all, True, "person")
        do.hideInNewModal(list_all, False, "person")
        
        # hide individually
        do.hideInNewModal(list_items, True, "person")
                
        # show all again, hide a few will cause show_all to display, now reshow_all
        do.hideInNewModal(list_all, False, "person")
        do.hideInNewModal(a_few_items, True, "person")
        do.hideInNewModal(list_all, False, "person")
        
        do.populateNewObjectData(do.generateNameForTheObject("person"))
        do.saveNewObjectAndWait()
开发者ID:amrishs,项目名称:ggrc-test,代码行数:35,代码来源:TestHideShowNewModalPeople.py

示例2: testHideShowNewModalWorkflow

# 需要导入模块: from helpers.Helpers import Helpers [as 别名]
# 或者: from helpers.Helpers.Helpers import saveNewObjectAndWait [as 别名]
    def testHideShowNewModalWorkflow(self):
        self.testname="TestHideShowNewModalWorkflow"
        self.setup()
        util = WebdriverUtilities()
        util.setDriver(self.driver)
        element = Elements()
        do = Helpers(self)
        do.setUtils(util)
        do.login()

        list_all = "all"
        list_items = "description, owner, frequency, email_preferences, first_task_groups_title, custom_email_message"
        a_few_items = "frequency, custom_email_message"
 
        print "TEST THAT YOU CAN SHOW OR HIDE FIELDS/ELEMENTS IN CREATE NEW OBJECT MODAL."
        
        # fill in mandatory fields only
        do.openCreateNewObjectWindowFromLhn("Workflow")
   
        # hide_all, show_all, then hide individual
        do.hideInNewModal(list_all, True, "workflow")
        do.hideInNewModal(list_all, False, "workflow")
          
        # hide individually
        do.hideInNewModal(list_items, True)
                  
        # show all again, hide a few will cause show_all to display, now reshow_all
        do.hideInNewModal(list_all, False, "workflow")
        do.hideInNewModal(a_few_items, True, "workflow")
        do.hideInNewModal(list_all, False, "workflow")        
          
        do.populateNewObjectData(do.generateNameForTheObject("workflow"))
        do.saveNewObjectAndWait()
        do.delay(15) # 15 seconds more
        do.selectInnerNavTab("info")
        do.clickInfoPageEditLink()
               
        # now start testing hide/show after clicking on the Edit link
        do.hideInNewModal(list_all, True, "workflow", "", "edit")
        do.hideInNewModal(list_all, False, "workflow", "", "edit")        
        do.hideInNewModal(a_few_items, True, "workflow", "", "edit")
        do.hideInNewModal(list_all, False, "workflow", "", "edit")
开发者ID:amrishs,项目名称:ggrc-test,代码行数:44,代码来源:TestHideShowNewModalWorkflow.py

示例3: testHideShowNewModalControl

# 需要导入模块: from helpers.Helpers import Helpers [as 别名]
# 或者: from helpers.Helpers.Helpers import saveNewObjectAndWait [as 别名]
    def testHideShowNewModalControl(self):
        self.testname="TestHideShowNewModalControl"
        self.setup()
        util = WebdriverUtilities()
        util.setDriver(self.driver)
        element = Elements()
        do = Helpers(self)
        do.setUtils(util)
        do.login()

        list_all = "all"
        list_items = "kind_nature, fraud_related, significance, type_means, frequency_dd, assertions, categories, principal_assessor, secondary_assessor" \
                     "description, note, owner, contact, url, reference_url, code, effective_date, stop_date, state"
        a_few_items = "type_means, frequency_dd"
 
        print "TEST THAT YOU CAN SHOW OR HIDE FIELDS/ELEMENTS IN CREATE NEW OBJECT MODAL."
        
        # fill in mandatory fields only
        do.openCreateNewObjectWindowFromLhn("Control")
 
        # hide_all, show_all, then hide individual
        do.hideInNewModal(list_all, True, "control")
        do.hideInNewModal(list_all, False, "control")
        
        # hide individually
        do.hideInNewModal(list_items, True)
                
        # show all again, hide a few will cause show_all to display, now reshow_all
        do.hideInNewModal(list_all, False, "control")
        do.hideInNewModal(a_few_items, True, "control")
        do.hideInNewModal(list_all, False, "control")
        
        do.populateNewObjectData(do.generateNameForTheObject("control"))
        do.saveNewObjectAndWait()
        do.clickInfoPageEditLink()
               
        # now start testing hide/show after clicking on the Edit link
        do.hideInNewModal(list_all, True, "control")
        do.hideInNewModal(list_all, False, "control")         
        do.hideInNewModal(a_few_items, True, "control")
        do.hideInNewModal(list_all, False, "control") 
开发者ID:amrishs,项目名称:ggrc-test,代码行数:43,代码来源:TestHideShowNewModalControl.py

示例4: testHideShowNewModalProcess

# 需要导入模块: from helpers.Helpers import Helpers [as 别名]
# 或者: from helpers.Helpers.Helpers import saveNewObjectAndWait [as 别名]
    def testHideShowNewModalProcess(self):
        self.testname="TestHideShowNewModalProcess"
        self.setup()
        util = WebdriverUtilities()
        util.setDriver(self.driver)
        element = Elements()
        do = Helpers(self)
        do.setUtils(util)
        do.login()

        list_all = "all"
        list_items = "description, note, owner, contact, url, reference_url, code, effective_date, network_zone, stop_date, state"
        a_few_items = "url, network_zone"
 
        print "TEST THAT YOU CAN SHOW OR HIDE FIELDS/ELEMENTS IN CREATE NEW OBJECT MODAL."
        
        # fill in mandatory fields only
        do.openCreateNewObjectWindowFromLhn("Process")
 
        # hide_all, show_all, then hide individual
        do.hideInNewModal(list_all, True, "process")
        do.hideInNewModal(list_all, False, "process")
        
        # hide individually
        do.hideInNewModal(list_items, True, "process")
                
        # show all again, hide a few will cause show_all to display, now reshow_all
        do.hideInNewModal(list_all, False, "process")
        do.hideInNewModal(a_few_items, True, "process")
        do.hideInNewModal(list_all, False, "process")
        
        do.populateNewObjectData(do.generateNameForTheObject("process"))
        do.saveNewObjectAndWait()
        do.clickInfoPageEditLink()
               
        # now start testing hide/show after clicking on the Edit link
        do.hideInNewModal(list_all, True, "process")
        do.hideInNewModal(list_all, False, "process")         
        do.hideInNewModal(a_few_items, True, "process")
        do.hideInNewModal(list_all, False, "process") 
开发者ID:amrishs,项目名称:ggrc-test,代码行数:42,代码来源:TestHideShowNewModalProcess.py


注:本文中的helpers.Helpers.Helpers.saveNewObjectAndWait方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。