Example #1
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();
        }
Example #2
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();
        }