Пример #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();
        }
Пример #2
0
        public void RatioMetric()

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

            MetricRadio("Ratio").Clicks();

            MetricLabel.ClearText();

            MetricLabel.EnterText("MetricLabel");

            //SelectMetric.Clicks();

            Numerator.Clicks();

            MetricNumereator("Total Completed Hours").Click();

            Denominator.Clicks();

            MetricDenominator("Total Completed Volume").Clicks();

            AddFilter("numerator").Clicks();

            NumeratorFilter.WaitUntil();

            NumeratorFilter.SelectDropdown("Program");

            ItemsCheck("numerator").Clicks();

            CheckItem("25").Clicks();

            //Options("Metric List Selection").Clicks();

            AddFilter("denominator").Clicks();

            DenominatorFilter.WaitUntil();

            DenominatorFilter.SelectDropdown("Program");

            ItemsCheck("denominator").Clicks();

            CheckItemDenominator("25").Clicks();
        }
Пример #3
0
        public void CapacityWidget()

        {
            AddWidget("Capacity");

            CapacityWidget(1).Clicks();

            MetricLabel.ClearText(); MetricLabel.EnterText("Capacity Metric 1");

            SelectMetric.Clicks();

            Metric("Total Planned Hours").Click();

            AddFilter("metric").Clicks();

            SingleFilter.WaitUntil();

            SingleFilter.SelectDropdown("Department");

            ItemsCheck("metric").Clicks();

            CheckItem("Alton - Alt (70)").Clicks();

            Options("Metric List Selection").Clicks();

            //CheckAll.Clicks();

            BackToList.Clicks();

            CapacityWidget(2).Clicks();

            MetricLabel.ClearText(); MetricLabel.EnterText("Capacity Metric 2");

            MetricRadio("Ratio").Clicks();

            //SelectMetric.Clicks();

            Numerator.Clicks();

            MetricNumereator("Total Completed Hours").Click();

            AddFilter("numerator").Clicks();

            NumeratorFilter.WaitUntil();

            NumeratorFilter.SelectDropdown("Department");

            ItemsCheck("numerator").Clicks();

            CheckItem("Alton - Alt (70)").Clicks();

            Options("Metric List Selection").Clicks();

            Denominator.Clicks();

            MetricDenominator("Total Completed Volume").Clicks();

            AddFilter("denominator").Clicks();

            DenominatorFilter.WaitUntil();

            DenominatorFilter.SelectDropdown("Department");

            ItemsCheck("denominator").Clicks();

            CheckItemDenominator("Alton - Alt (70)").Clicks();

            Options("Metric List Selection").Clicks();

            BackToList.Clicks();

            CapacityWidget(3).Clicks();

            MetricLabel.ClearText(); MetricLabel.EnterText("Capacity Metric 3");

            SelectMetric.Clicks();

            Metric("Total Completed Hours").Click();

            AddFilter("metric").Clicks();

            SingleFilter.WaitUntil();

            SingleFilter.SelectDropdown("Department");

            ItemsCheck("metric").Clicks();

            CheckItem("Alton - Alt (70)").Clicks();

            Options("Metric List Selection").Clicks();

            //CheckAll.Clicks();

            BackToList.Clicks();

            CapacityWidget(4).Clicks();

            MetricLabel.ClearText(); MetricLabel.EnterText("Capacity Metric 4");

            MetricRadio("Custom").Clicks();

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

            {
                AddMetric.Clicks();
            }

            CustomMetricEdit(1).Clicks();

            SelectMetric.Clicks();

            Metric("Total Completed Hours").Click();

            AddFilter("metric").Clicks();

            SingleFilter.WaitUntil();

            SingleFilter.SelectDropdown("Department");

            ItemsCheck("metric").Clicks();

            CheckItem("Alton - Alt (70)").Clicks();

            Options("Metric List Selection").Clicks();

            BackToList.Clicks();

            CustomMetricEdit(2).Clicks();

            SelectMetric.Clicks();

            Metric("Total Completed Volume").Clicks();

            AddFilter("metric").Clicks();

            SingleFilter.WaitUntil();

            SingleFilter.SelectDropdown("Department");

            ItemsCheck("metric").Clicks();

            CheckItem("Alton - Alt (70)").Clicks();

            Options("Metric List Selection").Clicks();

            BackToList.Clicks();

            CustomMetricEdit(3).Clicks();

            SelectMetric.Clicks();

            Metric("Total Completed Tasks").Click();

            AddFilter("metric").Clicks();

            SingleFilter.WaitUntil();

            SingleFilter.SelectDropdown("Department");

            ItemsCheck("metric").Clicks();

            CheckItem("Alton - Alt (70)").Clicks();

            Options("Metric List Selection").Clicks();

            BackToList.Clicks();

            CustomMetricEdit(4).Clicks();

            SelectMetric.Clicks();

            Metric("Total Planned Volume").Clicks();

            AddFilter("metric").Clicks();

            SingleFilter.WaitUntil();

            SingleFilter.SelectDropdown("Department");

            ItemsCheck("metric").Clicks();

            CheckItem("Alton - Alt (70)").Clicks();

            Options("Metric List Selection").Clicks();

            BackToList.Clicks();

            CustomMetricEdit(5).Clicks();

            SelectMetric.Clicks();

            Metric("Total Planned Tasks").Click();

            AddFilter("metric").Clicks();

            SingleFilter.WaitUntil();

            SingleFilter.SelectDropdown("Department");

            ItemsCheck("metric").Clicks();

            CheckItem("Alton - Alt (70)").Clicks();

            Options("Metric List Selection").Clicks();

            BackToList.Clicks();

            CustomMetricEdit(6).Clicks();

            SelectMetric.Clicks();

            Metric("Total Completed Planned Tasks").Clicks();

            AddFilter("metric").Clicks();

            SingleFilter.WaitUntil();

            SingleFilter.SelectDropdown("Department");

            ItemsCheck("metric").Clicks();

            CheckItem("Alton - Alt (70)").Clicks();

            Options("Metric List Selection").Clicks();

            BackToList.Clicks();

            var input = $"(A+(B-(C-D)*((E/F)*2)/9))".ToCharArray();

            foreach (var c in input)
            {
                EnterCalc("" + c).Clicks();
            }

            Apply();
        }
Пример #4
0
        public void CustomMetric()

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

            MetricRadio("Custom").Clicks();

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

            {
                AddMetric.Clicks();
            }

            CustomMetricEdit(1).Clicks();

            SelectMetric.Clicks();

            Metric("Total Completed Hours").Click();

            CustomMetricFilter();

            CustomMetricEdit(2).Clicks();

            SelectMetric.Clicks();

            Metric("Total Completed Volume").Clicks();

            CustomMetricFilter();

            MetricLabel.ClearText();

            MetricLabel.EnterText("MetricLabel");

            CustomMetricEdit(3).Clicks();

            SelectMetric.Clicks();

            Metric("Total Completed Tasks").Click();

            CustomMetricFilter();

            CustomMetricEdit(4).Clicks();

            SelectMetric.Clicks();

            Metric("Total Planned Volume").Clicks();

            CustomMetricFilter();

            CustomMetricEdit(5).Clicks();

            SelectMetric.Clicks();

            Metric("Total Planned Tasks").Click();

            CustomMetricFilter();

            CustomMetricEdit(6).Clicks();

            SelectMetric.Clicks();

            Metric("Total Completed Planned Tasks").Clicks();

            CustomMetricFilter();

            var input = $"(A+(B-(C-D)*((E/F)*2)/9))".ToCharArray();

            foreach (var c in input)
            {
                EnterCalc("" + c).Clicks();
            }
        }