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


Python MozTrapManageRunsPage.click_create_run_button方法代码示例

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


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

示例1: test_that_pinning_filter_on_product_version_set_defaults_in_new_run

# 需要导入模块: from pages.manage_runs_page import MozTrapManageRunsPage [as 别名]
# 或者: from pages.manage_runs_page.MozTrapManageRunsPage import click_create_run_button [as 别名]
    def test_that_pinning_filter_on_product_version_set_defaults_in_new_run(self, mozwebqa_logged_in):
        product = self.create_product(mozwebqa_logged_in)
        product_version_name = u'%s %s' % (product['name'], product['version']['name'])

        from pages.manage_runs_page import MozTrapManageRunsPage
        manage_runs_pg = MozTrapManageRunsPage(mozwebqa_logged_in)
        manage_runs_pg.go_to_manage_runs_page()
        filter_item = manage_runs_pg.filter_form.filter_by(lookup='productversion', value=product_version_name)

        #check that filter is not orange before it's pinned
        Assert.not_equal(
            filter_item.get_filter_color(),
            PINNED_FILTER_COLOR,
            u'filter is orange before it was pinned')

        filter_item.pin_filter()

        #check that filter is orange after it's been pinned
        Assert.equal(
            filter_item.get_filter_color(),
            PINNED_FILTER_COLOR,
            u'pinned filter\'s color is not orange')

        create_run_pg = manage_runs_pg.click_create_run_button()

        Assert.equal(
            create_run_pg.product_version_value,
            product_version_name,
            u'default product version is incorrect')
开发者ID:AndreiH,项目名称:moztrap-tests,代码行数:31,代码来源:test_pinning_filters.py

示例2: test_that_pinning_filter_on_product_version_set_defaults_in_new_run

# 需要导入模块: from pages.manage_runs_page import MozTrapManageRunsPage [as 别名]
# 或者: from pages.manage_runs_page.MozTrapManageRunsPage import click_create_run_button [as 别名]
    def test_that_pinning_filter_on_product_version_set_defaults_in_new_run(self, mozwebqa, login, product):
        product_version_name = u'%s %s' % (product['name'], product['version']['name'])

        manage_runs_pg = MozTrapManageRunsPage(mozwebqa)
        manage_runs_pg.go_to_manage_runs_page()
        filter_item = manage_runs_pg.filter_form.filter_by(lookup='productversion', value=product_version_name)

        # check that filter is not orange before it's pinned
        self.check_pinned_filter(filter_item, is_pinned=False)
        filter_item.pin_filter()

        # check that filter is orange after it's been pinned
        self.check_pinned_filter(filter_item, is_pinned=True)

        create_run_pg = manage_runs_pg.click_create_run_button()

        assert product_version_name == create_run_pg.product_version_value
开发者ID:bobsilverberg,项目名称:moztrap-tests,代码行数:19,代码来源:test_pinning_filters.py


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