Пример #1
0
        public void IsUserAbleToViewSpecificPermissionsUnderRenewalTasksSection(List <string> expectedRenewalTaskPermissionsList)
        {
            List <string> actualRenewalTaskPermissionsList = new List <string>();

            Verify.WaitUntilElementIsFoundWithSoftAssertion(this.DriverContext, this.renewalTasksPermissions, this.nmRenewalTasksPermissionsList, BaseConfiguration.LongTimeout);
            IList <IWebElement> items = this.Driver.GetElements(this.renewalTasksPermissions);

            foreach (var permission in items)
            {
                actualRenewalTaskPermissionsList.Add(permission.Text);
            }

            string passmessage  = " actual Renewal Task Permissions " + string.Join(",", actualRenewalTaskPermissionsList) + " matching with expected Renewal Task Permissions " + string.Join(",", expectedRenewalTaskPermissionsList) + "| actual Renewal Task Permissions " + string.Join(",", actualRenewalTaskPermissionsList) + " matching with expected Renewal Task Permissions " + string.Join(",", expectedRenewalTaskPermissionsList);
            string errormessage = " actual Renewal Task Permissions " + string.Join(",", actualRenewalTaskPermissionsList) + " matching with expected Renewal Task Permissions " + string.Join(",", expectedRenewalTaskPermissionsList) + "| actual Renewal Task Permissions " + string.Join(",", actualRenewalTaskPermissionsList) + " are not matching with expected Renewal Task Permissions " + string.Join(",", expectedRenewalTaskPermissionsList);

            Verify.CompareActualExpectedListWithSoftAssertion(this.DriverContext, actualRenewalTaskPermissionsList, expectedRenewalTaskPermissionsList, passmessage, errormessage);
        }
Пример #2
0
        public void IsUserAbleToViewPrivilegesOnNewlyAddedRoleCard(string description, List <string> expectedPrivilegeSectionsList)
        {
            List <string> actualPrivilegeSectionsList = new List <string>();

            this.Driver.ScrollToWebElement(this.newlyAddedRoleDescription.Format(description));
            Verify.WaitUntilElementIsFoundWithSoftAssertion(this.DriverContext, this.newlyAddedRolePrivilegesList.Format(description), this.nmnewlyAddedRolePrivilegesList, BaseConfiguration.LongTimeout);
            IList <IWebElement> items = this.Driver.GetElements(this.newlyAddedRolePrivilegesList.Format(description));

            foreach (var permission in items)
            {
                actualPrivilegeSectionsList.Add(permission.Text);
            }

            string passmessage  = " actual Privilege Sections List " + string.Join(",", actualPrivilegeSectionsList) + " matching with expected Privilege Sections List " + string.Join(",", expectedPrivilegeSectionsList) + "| actual Privilege Sections List " + string.Join(",", actualPrivilegeSectionsList) + " matching with expected Privilege Sections List " + string.Join(",", expectedPrivilegeSectionsList);
            string errormessage = " actual Privilege Sections List " + string.Join(",", actualPrivilegeSectionsList) + " matching with expected Privilege Sections List " + string.Join(",", expectedPrivilegeSectionsList) + "| actual Privilege Sections List " + string.Join(",", actualPrivilegeSectionsList) + " are not matching with expected Privilege Sections List " + string.Join(",", expectedPrivilegeSectionsList);

            Verify.CompareActualExpectedListWithSoftAssertion(this.DriverContext, actualPrivilegeSectionsList, expectedPrivilegeSectionsList, passmessage, errormessage);
        }