예제 #1
0
        public void REVerifyIncorrectInputForCommitteeType(Dictionary <string, string> parameters)
        {
            var loginPage = new LoginPage(this.DriverContext);
            var homePage  = new HomePage(this.DriverContext);
            var committeManagementPage = new CommitteManagementPage(this.DriverContext);
            var manageCommiteeTypePage = new ManageCommitteeTypesPage(this.DriverContext);

            loginPage.OpenLandingPage();
            string uname    = parameters["uname"].Trim();
            string password = parameters["password"].Trim();

            loginPage.IsUserAbletoLoginMCSApp(uname, password);
            homePage.IsLoggedInUserDisplayed(uname);
            homePage.IsCommitteeManagementSectionClickable();
            string manageCommiteeTypesTitlelink = parameters["manageCommiteeTypesTitlelink"].Trim();

            committeManagementPage.IsManageCommitteTypeClickable(manageCommiteeTypesTitlelink);
            string header = parameters["header"].Trim();

            manageCommiteeTypePage.IsManageCommitteTypeHeaderDisplayed(header);
            manageCommiteeTypePage.IsAddCommitteeTypeButtonClickable();
            string committeeTypeNameText        = parameters["committeeTypeNameText"].Trim() + DateHelper.RandomString(3, false);
            string manageCommitteeHierarchyText = parameters["manageCommitteeHierarchy"].Trim();

            manageCommiteeTypePage.IsUserAbletoEnterCommitteeTypeInTextBox(committeeTypeNameText);
            manageCommiteeTypePage.IsLimitedPersonsSelectedAndEnterNumber("-23");
            manageCommiteeTypePage.IsAddNewCommitteeTypeSaveButtonClickable();
            string errorMessage = parameters["errorMessage"].Trim();

            manageCommiteeTypePage.IserrorMsgDisplayedForIncorrectInput(errorMessage);
        }
예제 #2
0
        public void VerifyAddCommiteeTypeFromCommitteManagement(Dictionary <string, string> parameters)
        {
            var loginPage = new LoginPage(this.DriverContext);
            var homePage  = new HomePage(this.DriverContext);
            var committeManagementPage = new CommitteManagementPage(this.DriverContext);
            var manageCommiteeTypePage = new ManageCommitteeTypesPage(this.DriverContext);

            loginPage.OpenLandingPage();
            loginPage.IsCustomerLogoDisplayed();
            string uname    = parameters["uname"].Trim();
            string password = parameters["password"].Trim();

            loginPage.IsUserAbletoLoginMCSApp(uname, password);
            homePage.IsCustomerLogoDisplayed();
            homePage.IsLoggedInUserDisplayed(uname);
            homePage.IsCommitteeManagementSectionClickable();
            string manageCommiteeTypesTitlelink = parameters["manageCommiteeTypesTitlelink"].Trim();

            committeManagementPage.IsManageCommitteTypeClickable(manageCommiteeTypesTitlelink);
            string header = parameters["header"].Trim();

            manageCommiteeTypePage.IsManageCommitteTypeHeaderDisplayed(header);
            manageCommiteeTypePage.IsAddCommitteeTypeButtonClickable();
            string manageCommitteeHierarchyHeader = parameters["manageCommitteeHierarchyHeader"].Trim();

            manageCommiteeTypePage.IsManageCommitteeHierarchyHeaderDisplayed(manageCommitteeHierarchyHeader);
            string membershipTypeEligibleTojoinHeader = parameters["membershipTypeEligibleTojoinHeader"].Trim();

            manageCommiteeTypePage.IsMembershipTypeEligibleTojoinHeaderDisplayed(membershipTypeEligibleTojoinHeader);
            string balanceRequiredHeader = parameters["balanceRequiredHeader"].Trim();

            manageCommiteeTypePage.IsBalanceRequiredHeaderDisplayed(balanceRequiredHeader);
            string enableCommitteeTypeonwebHeader = parameters["enableCommitteeTypeonwebHeader"].Trim();

            manageCommiteeTypePage.IsEnableCommitteeTypeonwebHeaderDisplayed(enableCommitteeTypeonwebHeader);
            string committeeTypeNameText        = parameters["committeeTypeNameText"].Trim() + DateHelper.RandomString(3, false);
            string manageCommitteeHierarchyText = parameters["manageCommitteeHierarchy"].Trim();

            manageCommiteeTypePage.IsUserAbletoEnterCommitteeTypeInTextBox(committeeTypeNameText);
            manageCommiteeTypePage.IsUserAbletoEnterCommitteeHierarcyInTextBox(manageCommitteeHierarchyText);
            manageCommiteeTypePage.IsAddLevelButtonClickable();
            manageCommiteeTypePage.IsAddNewCommitteeTypeSaveButtonClickable();
            string successmgs = parameters["message"].Trim();

            manageCommiteeTypePage.IsNewCommitteeTypeaddedsuccessfullyDisplayed(successmgs);
        }
예제 #3
0
        public void REFieldValidationForOperator(Dictionary <string, string> parameters)
        {
            var loginPage = new LoginPage(this.DriverContext);
            var homePage  = new HomePage(this.DriverContext);
            var committeManagementPage = new CommitteManagementPage(this.DriverContext);
            var manageCommiteeTypePage = new ManageCommitteeTypesPage(this.DriverContext);

            loginPage.OpenLandingPage();
            loginPage.IsCustomerLogoDisplayed();
            string uname    = parameters["uname"].Trim();
            string password = parameters["password"].Trim();

            loginPage.IsUserAbletoLoginMCSApp(uname, password);
            homePage.IsCustomerLogoDisplayed();
            homePage.IsLoggedInUserDisplayed(uname);
            homePage.IsCommitteeManagementSectionClickable();
            string manageCommiteeTypesTitlelink = parameters["manageCommiteeTypesTitlelink"].Trim();

            committeManagementPage.IsManageCommitteTypeClickable(manageCommiteeTypesTitlelink);
            string header = parameters["header"].Trim();

            manageCommiteeTypePage.IsManageCommitteTypeHeaderDisplayed(header);
            manageCommiteeTypePage.IsAddCommitteeTypeButtonClickable();
            string committeeTypeNameText        = parameters["committeeTypeNameText"].Trim() + DateHelper.RandomString(3, false);
            string manageCommitteeHierarchyText = parameters["manageCommitteeHierarchy"].Trim();

            manageCommiteeTypePage.IsUserAbletoEnterCommitteeTypeInTextBox(committeeTypeNameText);
            manageCommiteeTypePage.IsUserAbletoEnterCommitteeHierarcyInTextBox(manageCommitteeHierarchyText);
            manageCommiteeTypePage.IsAddLevelButtonClickable();
            manageCommiteeTypePage.IsUserAbleToClickYesButtonForBalancerequired();
            manageCommiteeTypePage.SelectMembershipTypefromFirstListInBalanceRequired();
            manageCommiteeTypePage.SelectMembershipTypefromSecondListInBalanceRequired();
            manageCommiteeTypePage.IsAddNewCommitteeTypeSaveButtonClickable();
            string errorMessage = parameters["errorMessage"].Trim();

            manageCommiteeTypePage.IsErrorMessageDisplayedForNotSelectingOperator(errorMessage);
            manageCommiteeTypePage.IsOperatorFieldADropdown();
        }