public void SparkLine() { //DashboardInitialize(); AddWidget("Sparkline"); Options("Metric").Clicks(); for (int i = 0; i <= 3; i++) { AddMetric.Clicks(); } CustomMetricEdit(1).Clicks(); CustomMetric(); Formatting(); BackToList.Clicks(); CustomMetricEdit(2).Clicks(); RatioMetric(); Formatting(); BackToList.Clicks(); CustomMetricEdit(3).Clicks(); CustomMetric(); Formatting(); BackToList.Clicks(); CustomMetricEdit(4).Clicks(); SingleMetric("Total Barrier Hours"); Formatting(); BackToList.Clicks(); Filter("Sparkline"); Axis("Sparkline"); Apply(); }
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(); }
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(); }
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(); }