public void VerifySchoolUsersCreationLimitValidationForNewUser()
        {
            comFunc.StartApplication();

            string dyanmicEmailAddress = DateTime.Now.ToString("yyyyMMddhhmmss") + "@capita.co.uk";

            // fill user creation form
            CmUserCreationLib.FillUserCreationForm(excelUtil.GetDataFromExcel("Option"), excelUtil.GetDataFromExcel("userType"), dyanmicEmailAddress, excelUtil.GetDataFromExcel("NewContactFirstName"), excelUtil.GetDataFromExcel("NewContactSurname"), excelUtil.GetDataFromExcel("JobTitle"), excelUtil.GetDataFromExcel("TelephoneNo"));

            // Submit form
            CmUserCreationLib.CheckMaximumUserCreationLimitMsg(excelUtil.GetDataFromExcel("MaximumUserCreationLimitMsg"));
        }
Пример #2
0
        public void VerifySchoolUsersCreation()
        {
            // search case referance and navigate to respective form
            commFunc.SearchCaseReferance(excelUtil.GetDataFromExcel("CaseRefeNo"), excelUtil.GetDataFromExcel("Email"), null);

            commFunc.CreateNewFrom(excelUtil.GetDataFromExcel("FormName"));

            string dyanmicEmailAddress = DateTime.Now.ToString("yyyyMMddhhmmss") + "@capita.co.uk";

            // fill user creation form
            CmUserCreationLib.FillUserCreationForm(excelUtil.GetDataFromExcel("Option"), excelUtil.GetDataFromExcel("userType"), dyanmicEmailAddress, excelUtil.GetDataFromExcel("NewContactFirstName"), excelUtil.GetDataFromExcel("NewContactSurname"), excelUtil.GetDataFromExcel("JobTitle"), excelUtil.GetDataFromExcel("TelephoneNo"));

            // Submit form
            commFunc.SubmitForm();
            string expectedResult = (excelUtil.GetDataFromExcel("FormSubmissionConfMsg") + dyanmicEmailAddress.Trim()).Replace(" : ", "_");
            string actualResult   = commFunc.GetFormSubmissionConfirmationMsg().Replace(" : ", "_");

            // verify application submission confirmation message
            VerifyIsEquals(expectedResult, actualResult, "Check School user creation confrmation message.");
        }