예제 #1
0
        public string GetOrganizationUnitNo()
        {
            LoggerPage.LogReturn(MethodBase.GetCurrentMethod().Name);

            var organizationUnitValue = this.GetOrganizationUnit();

            var leftBracket  = organizationUnitValue.IndexOf("(", StringComparison.Ordinal) + 1;
            var rightBracket = organizationUnitValue.LastIndexOf(")", StringComparison.Ordinal);

            return(organizationUnitValue.Substring(leftBracket, rightBracket - leftBracket));
        }
예제 #2
0
        private bool ValidateSortColumnLabel(int columnNumber)
        {
            LoggerPage.LogReturn(MethodBase.GetCurrentMethod().Name);

            var sortColumnLabel = this.SortColumnLabels.GetText(columnNumber);

            var reportDate = this.GetCurrentReportDate();

            if (reportDate.Contains(sortColumnLabel))
            {
                return(true);
            }

            switch (sortColumnLabel)
            {
            case "CM":
            case "Overall Trg Achv%":
            case "Gross Sales in mCHF":
                return(true);

            default:
                return(false);
            }
        }
예제 #3
0
        internal bool ValidateSortedColumn(int columnNumber)
        {
            LoggerPage.LogReturn(MethodBase.GetCurrentMethod().Name, columnNumber);

            return(this.SortColumnSigns.GetText(columnNumber) == "u");
        }
예제 #4
0
        public string GetTimeView()
        {
            LoggerPage.LogReturn(MethodBase.GetCurrentMethod().Name);

            return(this.SingleTimeView.GetValue());
        }
예제 #5
0
        public string GetCurrency()
        {
            LoggerPage.LogReturn(MethodBase.GetCurrentMethod().Name);

            return(this.CurrencyValue.GetText());
        }
예제 #6
0
        public string GetBusinessFunction()
        {
            LoggerPage.LogReturn(MethodBase.GetCurrentMethod().Name);

            return(this.BusinessFunctionValue.GetText());
        }
예제 #7
0
        public string GetOrganizationUnit()
        {
            LoggerPage.LogReturn(MethodBase.GetCurrentMethod().Name);

            return(this.OrganizationUnitValue.GetText());
        }
예제 #8
0
        private bool ExpandButtonActive()
        {
            LoggerPage.LogReturn(MethodBase.GetCurrentMethod().Name);

            return(this.ExpandNextLevelLink.IsLinkActive());
        }
예제 #9
0
        private bool CollapseAllActive()
        {
            LoggerPage.LogReturn(MethodBase.GetCurrentMethod().Name);

            return(this.CollapseAllLevelsLink.IsLinkActive());
        }
예제 #10
0
        public int GetReportRowElementsCount()
        {
            LoggerPage.LogReturn(MethodBase.GetCurrentMethod().Name);

            return(this.ReportRowElements.Count());
        }