Example #1
0
    def test_that_plugin_filters_result(self, mozwebqa):
        """
        https://www.pivotaltracker.com/story/show/17769047
        https://bugzilla.mozilla.org/show_bug.cgi?id=562380
        """
        csp = CrashStatsHomePage(mozwebqa)
        cs_advanced = csp.header.click_advanced_search()
        cs_advanced.adv_select_product('Firefox')
        cs_advanced.deselect_version()
        # Select 2nd Featured Version
        cs_advanced.adv_select_version_by_index(2)
        cs_advanced.adv_select_os('Windows')
        cs_advanced.select_report_process('plugin')

        cs_advanced.click_filter_reports()

        # verify the plugin icon is visible
        for result in cs_advanced.random_results(19):
            Assert.true(result.is_plugin_icon_visible)

        # verify ascending & descending sort
        cs_advanced.results_table_header.click_sort_by_plugin_filename()
        plugin_filename_results_list = [
            row.plugin_filename.lower() for row in cs_advanced.top_results(19)
        ]
        Assert.is_sorted_ascending(plugin_filename_results_list)

        cs_advanced.results_table_header.click_sort_by_plugin_filename()
        plugin_filename_results_list = [
            row.plugin_filename.lower() for row in cs_advanced.top_results(19)
        ]
        Assert.is_sorted_descending(plugin_filename_results_list)
    def test_that_checks_apps_are_sorted_by_name(self, mozwebqa, login):
        dev_home = Home(mozwebqa)
        dev_submissions = dev_home.header.click_my_submissions()
        dev_submissions.sorter.sort_by('Name')

        submitted_app_names = [app.name.lower() for app in dev_submissions.submitted_apps]
        Assert.is_sorted_ascending(submitted_app_names, 'Apps are not sorted ascending.\nApp names = %s' % submitted_app_names)
Example #3
0
    def test_that_plugin_filters_result(self, mozwebqa):
        """
        https://www.pivotaltracker.com/story/show/17769047
        https://bugzilla.mozilla.org/show_bug.cgi?id=562380
        """
        csp = CrashStatsHomePage(mozwebqa)
        cs_advanced = csp.header.click_advanced_search()
        cs_advanced.adv_select_product('Firefox')
        cs_advanced.deselect_version()
        cs_advanced.adv_select_version('Firefox 16.0a2')
        cs_advanced.adv_select_os('Windows')
        cs_advanced.select_report_process('Plugins')

        cs_advanced.click_filter_reports()
        cs_advanced.go_to_random_result_page()

        # verify the plugin icon is visible
        for result in cs_advanced.results:
            Assert.true(result.is_plugin_icon_visible)

        # verify ascending & descending sort
        cs_advanced.results_table_header.click_sort_by_plugin_filename()
        plugin_filename_results_list = [row.plugin_filename.lower() for row in cs_advanced.results]
        Assert.is_sorted_ascending(plugin_filename_results_list)

        cs_advanced.results_table_header.click_sort_by_plugin_filename()
        plugin_filename_results_list = [row.plugin_filename.lower() for row in cs_advanced.results]
        Assert.is_sorted_descending(plugin_filename_results_list)
Example #4
0
    def test_that_plugin_filters_result(self, mozwebqa):
        """
        https://bugzilla.mozilla.org/show_bug.cgi?id=562380
        """
        csp = CrashStatsHomePage(mozwebqa)
        cs_advanced = csp.header.click_advanced_search()
        cs_advanced.adv_select_product('Firefox')
        cs_advanced.deselect_version()
        # Select 2nd Featured Version
        cs_advanced.adv_select_version_by_index(2)
        cs_advanced.adv_select_os('Windows')
        cs_advanced.select_report_process('plugin')

        cs_advanced.click_filter_reports()

        # verify the plugin icon is visible
        for result in cs_advanced.random_results(19):
            Assert.true(result.is_plugin_icon_visible)

        # verify ascending & descending sort
        cs_advanced.results_table_header.click_sort_by_plugin_filename()
        plugin_filename_results_list = [row.plugin_filename.lower() for row in cs_advanced.top_results(19)]
        Assert.is_sorted_ascending(plugin_filename_results_list)

        cs_advanced.results_table_header.click_sort_by_plugin_filename()
        plugin_filename_results_list = [row.plugin_filename.lower() for row in cs_advanced.top_results(19)]
        Assert.is_sorted_descending(plugin_filename_results_list)
Example #5
0
    def test_that_checks_apps_are_sorted_by_name(self, mozwebqa_devhub_logged_in):
        dev_home = Home(mozwebqa_devhub_logged_in)

        dev_submissions = dev_home.header.click_my_submissions()
        dev_submissions.sorter.sort_by('Name')

        submitted_app_names = [app.name.lower() for app in dev_submissions.submitted_apps]
        Assert.is_sorted_ascending(submitted_app_names, 'Apps are not sorted ascending.\nApp names = %s' % submitted_app_names)
    def test_that_checks_apps_are_sorted_by_name(self, mozwebqa):
        dev_hub = DeveloperHub(mozwebqa)
        dev_hub.go_to_developer_hub()
        dev_hub.login(user="******")

        dev_hub.sorter.sort_by('Name')

        submited_app_names = [app.name for app in dev_hub.submited_apps]
        Assert.is_sorted_ascending(submited_app_names, 'Apps are not sorted ascending.\nApp names = %s' % submited_app_names)
Example #7
0
    def test_sort_alphabetically_ascending_should_succeed(self):
        home_page = HomePage(self.driver).open_home_page()
        TV_page = home_page.header.open_TV_page()
        TV_page.sort_alphabetically_ascending()
        sleep(2)
        WebDriverWait(self.driver, 30).until(EC.invisibility_of_element_located(TV_page._processing_info))
        TV_page.get_product_name_table()

        Assert.is_sorted_ascending(TV_page.product_name_table)
    def test_that_checks_apps_are_sorted_by_name(self, mozwebqa):
        dev_home = Home(mozwebqa)
        dev_home.go_to_developers_homepage()
        dev_home.login(user="******")

        dev_submissions = dev_home.header.click_my_submissions()
        dev_submissions.sorter.sort_by('Name')

        submitted_app_names = [app.name for app in dev_submissions.submitted_apps]
        Assert.is_sorted_ascending(submitted_app_names, 'Apps are not sorted ascending.\nApp names = %s' % submitted_app_names)
Example #9
0
    def test_that_checks_apps_are_sorted_by_name(self, mozwebqa):
        dev_home = Home(mozwebqa)
        dev_home.go_to_developers_homepage()
        dev_home.login(user="******")

        dev_submissions = dev_home.header.click_my_submissions()
        dev_submissions.sorter.sort_by('Name')

        submitted_app_names = [app.name.lower() for app in dev_submissions.submitted_apps]
        Assert.is_sorted_ascending(submitted_app_names, 'Apps are not sorted ascending.\nApp names = %s' % submitted_app_names)
Example #10
0
    def test_that_plugin_filename_column_sorts(self, mozwebqa):
        """
        https://bugzilla.mozilla.org/show_bug.cgi?id=562380
        """
        csp = CrashStatsHomePage(mozwebqa)
        cs_advanced = csp.header.click_advanced_search()

        cs_advanced.adv_select_product('Firefox')
        cs_advanced.adv_select_version('All')
        cs_advanced.select_radion_button(2)
        cs_advanced.filter_reports()
        if cs_advanced.results_found:
            cs_advanced.click_plugin_filename_header()
            Assert.is_sorted_ascending(cs_advanced.plugin_filename_results_list())

            cs_advanced.click_plugin_filename_header()
            Assert.is_sorted_descending(cs_advanced.plugin_filename_results_list())
        else:
            Assert.equal(cs_advanced.query_results_text(1), "No results were found.", cs_advanced.get_url_current_page())
Example #11
0
    def test_that_plugin_filename_column_sorts(self, mozwebqa):
        """
        https://bugzilla.mozilla.org/show_bug.cgi?id=562380
        """
        csp = CrashStatsHomePage(mozwebqa)
        cs_advanced = csp.header.click_advanced_search()

        cs_advanced.adv_select_product('Firefox')
        cs_advanced.adv_select_version('All')
        cs_advanced.select_radio_button(2)
        cs_advanced.filter_reports()
        if cs_advanced.results_found:
            cs_advanced.click_plugin_filename_header()
            Assert.is_sorted_ascending(
                cs_advanced.plugin_filename_results_list())

            cs_advanced.click_plugin_filename_header()
            Assert.is_sorted_descending(
                cs_advanced.plugin_filename_results_list())
        else:
            Assert.equal(cs_advanced.query_results_text(1),
                         "No results were found.",
                         cs_advanced.get_url_current_page())
Example #12
0
    def test_that_plugin_filename_column_sorts(self, mozwebqa):
        """
        https://bugzilla.mozilla.org/show_bug.cgi?id=562380
        """
        #Is sort order ok?

        csp = CrashStatsHomePage(mozwebqa)
        cs_advanced = csp.header.click_advanced_search()

        cs_advanced.adv_select_product('Firefox')
        cs_advanced.adv_select_version('All')
        cs_advanced.select_report_process('Plugins')
        cs_advanced.click_filter_reports()

        cs_advanced.results_table_header.click_sort_by_plugin_filename()

        plugin_filename_results_list = [row.plugin_filename.lower() for row in cs_advanced.results]

        Assert.is_sorted_ascending(plugin_filename_results_list)

        cs_advanced.results_table_header.click_sort_by_plugin_filename()

        plugin_filename_results_list = [row.plugin_filename.lower() for row in cs_advanced.results]
        Assert.is_sorted_descending(plugin_filename_results_list)
Example #13
0
 def test_is_sorted_ascending_fail(self):
     try:
         Assert.is_sorted_ascending([1,3,2], "failure message")
     except AssertionError as e:
         assert e.msg == "failure message"
Example #14
0
 def test_is_sorted_ascending_success_3(self):
     Assert.is_sorted_ascending([1,2,3])
Example #15
0
 def test_is_sorted_ascending_success_1(self):
     Assert.is_sorted_ascending([1])
Example #16
0
    def test_that_product_versions_are_ordered_correctly(self, mozwebqa):
        csp = CrashStatsHomePage(mozwebqa)

        Assert.is_sorted_ascending(csp.header.current_versions)
        Assert.is_sorted_ascending(csp.header.other_versions)
 def test_is_sorted_ascending_icase(self):
     args = ['a', 'B', 'c']
     raises_(AssertionError, Assert.is_sorted_ascending, args)
     Assert.is_sorted_ascending(args, icase=True)
 def test_is_sorted_ascending_fail_no_message(self):
     try:
         Assert.is_sorted_ascending([1, 3, 2])
     except AssertionError as e:
         assert e.msg == "2 is not before 3. "
Example #19
0
 def test_is_sorted_ascending_success_1(self):
     Assert.is_sorted_ascending([1])
Example #20
0
 def test_is_sorted_ascending_fail(self):
     try:
         Assert.is_sorted_ascending([1, 3, 2], "failure message")
     except AssertionError as e:
         assert e.msg == "2 is not before 3. failure message"
Example #21
0
 def test_is_sorted_ascending_fail_no_message(self):
     try:
         Assert.is_sorted_ascending([1, 3, 2])
     except AssertionError as e:
         assert e.msg == "2 is not before 3. "
Example #22
0
 def test_is_sorted_ascending_icase(self):
     args = ['a', 'B', 'c']
     raises_(AssertionError, Assert.is_sorted_ascending, args)
     Assert.is_sorted_ascending(args, icase=True)
Example #23
0
 def test_is_sorted_ascending_success_3(self):
     Assert.is_sorted_ascending([1, 2, 3])
Example #24
0
 def test_is_sorted_ascending_empty(self):
     Assert.is_sorted_ascending([])
Example #25
0
 def test_is_sorted_ascending_none(self):
     try:
         Assert.is_sorted_ascending(None)
     except TypeError as e:
         pass
Example #26
0
 def test_is_sorted_ascending_empty(self):
     Assert.is_sorted_ascending([])