Example #1
0
    def ptInitChartAndTable(self):
        self.x_axis_name, self.categories = pt_cut_common_sfx(self.categories)

        self._ptInitChartType()

        if len(self.tests_tags) == 1:
            if self.cmp_obj.tables_type == ptCmpTableType.AUTO:
                self.table_type = ptCmpTableType.HIDE if len(
                    self.tests) > 10 else ptCmpTableType.SHOW
        else:
            if self.cmp_obj.tables_type == ptCmpTableType.AUTO:
                self.table_type = ptCmpTableType.SHOW
Example #2
0
    def pt_init_chart_and_table(self):
        self.x_axis_name, self.categories = pt_cut_common_sfx(self.categories)

        self._pt_init_chart_type()

        if len(self.tests_tags) == 1:
            if self.cmp_obj.tables_type == PTCmpTableType.AUTO:
                self.table_type = PTCmpTableType.HIDE if len(
                    self.tests) > 10 else PTCmpTableType.SHOW
        else:
            if self.cmp_obj.tables_type == PTCmpTableType.AUTO:
                self.table_type = PTCmpTableType.SHOW
Example #3
0
    def pt_init_chart_and_table(self):
        self.x_axis_name, self.x_axis_categories, self.test_cat_to_axis_cat_seqnum = pt_cut_common_sfx(self.tests_categories)

        self._pt_init_chart_type()

        if self.chart_type == PTCmpChartType.XYLINE and self.has_failures:
            self.legends += [{"name": "Failed test", "icon": "diamond"}]

        if len(self.tests_tags) == 1:
            if self.cmp_obj.tables_type == PTCmpTableType.AUTO:
                self.table_type = PTCmpTableType.HIDE if len(self.tests) > 10 else PTCmpTableType.SHOW
        else:
            if self.cmp_obj.tables_type == PTCmpTableType.AUTO:
                self.table_type = PTCmpTableType.SHOW