Esempio n. 1
0
        public void SingleMetric(string metricName)

        {
            Options("Metric").Clicks();

            MetricLabel.ClearText();

            MetricLabel.EnterText("MetricLabel");

            SelectMetric.Clicks();

            Metric(metricName).Clicks();

            if (metricName.Contains("Average"))

            {
                AverageAxis.SelectDropdown("Hour");
            }

            AddFilter("metric").Clicks();

            SingleFilter.WaitUntil();

            SingleFilter.SelectDropdown("Department");

            ItemsCheck("metric").Clicks(); WaitforIt(Properties.LittlePause);

            //CheckItem("70").WaitUntil();

            CheckItem("(70)").Clicks(); CheckItem("(85)").Clicks(); CheckItem("(80)").Clicks(); CheckItem("(75)").Clicks();

            MetricLabel.Clicks();

            //SingleFilter.Clicks();
        }
Esempio n. 2
0
        public void CustomMetricFilter()

        {
            AddFilter("metric").Clicks();

            SingleFilter.WaitUntil();

            SingleFilter.SelectDropdown("Department");

            ItemsCheck("metric").Clicks();

            CheckItem("(70)").Clicks(); CheckItem("(85)").Clicks(); CheckItem("(80)").Clicks(); CheckItem("(75)").Clicks();

            //SingleFilter.Clicks();

            MetricLabel.Clicks();

            BackToList.Clicks();
        }
Esempio n. 3
0
        public void StackedComparison(string widgetName)

        {
            //DashboardInitialize(widgetName);

            ResetFilter.Clicks();

            AddWidget(widgetName);

            Options("Metric").Click();

            for (int i = 0; i <= 3; i++)

            {
                AddMetric.Clicks();
            }

            if (widgetName == "Stacked")

            {
                CustomMetricEdit(1).Clicks();

                SingleMetric("Total Completed Planned Volume");

                BackToList.Clicks();

                CustomMetricEdit(2).Clicks();

                SingleMetric("OEE");

                BackToList.Clicks();

                CustomMetricEdit(3).Clicks();

                SingleMetric("Accountable Hours");

                BackToList.Clicks();

                CustomMetricEdit(4).Clicks();

                SingleMetric("Average Planned Volume");

                BackToList.Clicks();
            }

            else if (widgetName == "Comparison")

            {
                CustomMetricEdit(1).Clicks();

                RatioMetric();

                MetricLabel.Clicks(); BackToList.Clicks();

                CustomMetricEdit(2).Clicks();

                RatioMetric();

                MetricLabel.Clicks(); BackToList.Clicks();

                CustomMetricEdit(3).Clicks();

                RatioMetric();

                MetricLabel.Clicks(); BackToList.Clicks();

                CustomMetricEdit(4).Clicks();

                RatioMetric();

                MetricLabel.Clicks(); BackToList.Clicks();
            }

            Filter();

            Axis(widgetName);

            Options("Base").Clicks();

            BasenGoal(.5, .98);

            Options("Formatting").Clicks();

            Formatting(widgetName);

            Link();

            Apply(); WaitforIt(Properties.InactivePhase); LinkClick.Clicks();
        }