Exemplo n.º 1
0
        public void Verify_Enquiry_Withdrawn_Reason_Lookup()
        {
            var code = SeleniumHelper.GenerateRandomString(3);

            try
            {
                FeatureBee.FeatureBeeLogin.LoginWithFeatureBee(new[] { "Enquiries" }, FeatureBee.FeatureBeeLogin.iSIMSUserType.AdmissionsOfficer);
                AutomationSugar.NavigateMenu("Lookups", "Admissions", "Enquiry Withdrawn Reason");

                //Add new Reason Admission Rejected
                var marketingSourceTriplet = new LookupTriplet();
                var marketingSourcePage    = marketingSourceTriplet.AddLookupRow("EnquiryWithdrawnReason");
                var marketingSourceRow     = marketingSourcePage.TableRow.GetLastRow();

                marketingSourceRow.Code         = code;
                marketingSourceRow.Description  = string.Format("Selenium Test Entry - {0}", code);
                marketingSourceRow.DisplayOrder = "999";
                marketingSourceRow.IsVisible    = true;

                //Save Reason Admission Rejected record
                marketingSourcePage.ClickSave();

                //Verify success message
                Assert.AreEqual(true, marketingSourcePage.IsSuccessMessageDisplayed(), "Success message do not display");
            }
            finally
            {
                // Tear down
                PurgeLinkedData.DeleteEnquiryWithdrawnreason(code);
            }
        }
Exemplo n.º 2
0
        public void Verify_Tier4_Category_Lookup()
        {
            var code = SeleniumHelper.GenerateRandomString(3);

            try
            {
                FeatureBee.FeatureBeeLogin.LoginWithFeatureBee(new[] { "Tier4" }, FeatureBee.FeatureBeeLogin.iSIMSUserType.AdmissionsOfficer);
                AutomationSugar.NavigateMenu("Lookups", "Admissions", "Tier 4 Category");

                //Add new Reason Admission Rejected
                var tier4CategoryTriplet = new LookupTriplet();
                var tier4CategoryPage    = tier4CategoryTriplet.AddLookupRow("Tier4Category");
                var tier4CategoryRow     = tier4CategoryPage.TableRow.GetLastRow();

                tier4CategoryRow.Code         = code;
                tier4CategoryRow.Description  = string.Format("Selenium Test Entry - {0}", code);
                tier4CategoryRow.DisplayOrder = "999";
                tier4CategoryRow.IsVisible    = true;

                //Save Reason Admission Rejected record
                tier4CategoryPage.ClickSave();

                //Verify success message
                Assert.AreEqual(true, tier4CategoryPage.IsSuccessMessageDisplayed(), "Success message do not display");
            }
            finally
            {
                // Tear down
                PurgeLinkedData.DeleteTier4Category(code);
            }
        }
Exemplo n.º 3
0
        public void Verify_AdmissionTerm_Lookup()
        {
            var AdmissionTerm = SeleniumHelper.GenerateRandomString(3);

            try
            {
                SeleniumHelper.Login(SeleniumHelper.iSIMSUserType.AdmissionsOfficer);
                AutomationSugar.NavigateMenu("Lookups", "Admissions", "Admission Term");

                //Add new Reason Admission Rejected
                var admissionTermTriplet = new LookupTriplet();
                var admissionTermPage    = admissionTermTriplet.AddLookupRow("AdmissionTerm");
                var admissionTermRow     = admissionTermPage.TableRow.GetLastRow();

                admissionTermRow.Code         = AdmissionTerm;
                admissionTermRow.Description  = string.Format("Selenium Test Entry - {0}", AdmissionTerm);
                admissionTermRow.DisplayOrder = "99";
                admissionTermRow.IsVisible    = true;

                //Save Reason Admission Rejected record
                admissionTermPage.ClickSave();

                //Verify success message
                Assert.AreEqual(true, admissionTermPage.IsSuccessMessageDisplayed(), "Success message do not display");
            }
            finally
            {
                // Tear down
                PurgeLinkedData.DeleteAdmissionTerm(AdmissionTerm);
            }
        }
Exemplo n.º 4
0
        public void Verify_Reason_Admission_Rejected_Lookup()
        {
            var reasonCode = SeleniumHelper.GenerateRandomString(3);

            try
            {
                // SeleniumHelper.Login(SeleniumHelper.iSIMSUserType.AdmissionsOfficer);
                String[] featureList = { "AdmissionAppeals" };
                FeatureBee.FeatureBeeLogin.LoginWithFeatureBee(featureList, FeatureBee.FeatureBeeLogin.iSIMSUserType.AdmissionsOfficer);
                AutomationSugar.NavigateMenu("Lookups", "Admissions", "Application Rejection Reason");

                //Add new Reason Admission Rejected
                var reasonAdmissionRejectedTriplet = new LookupTriplet();
                var reasonAdmissionRejectedPage    = reasonAdmissionRejectedTriplet.AddLookupRow("ReasonAdmissionRejected");
                var reasonAdmissionRejectedRow     = reasonAdmissionRejectedPage.TableRow.GetLastRow();

                reasonAdmissionRejectedRow.Code         = reasonCode;
                reasonAdmissionRejectedRow.Description  = string.Format("Selenium Test Entry - {0}", reasonCode);
                reasonAdmissionRejectedRow.DisplayOrder = "99";
                reasonAdmissionRejectedRow.IsVisible    = true;

                //Save Reason Admission Rejected record
                reasonAdmissionRejectedPage.ClickSave();

                //Verify success message
                Assert.AreEqual(true, reasonAdmissionRejectedPage.IsSuccessMessageDisplayed(), "Success message do not display");
            }
            finally
            {
                // Tear down
                PurgeLinkedData.DeleteReasonAdmissionRejected(reasonCode);
            }
        }
Exemplo n.º 5
0
        public void Verify_Appeal_Outcome_Lookup()
        {
            var appealOutcomeCode = SeleniumHelper.GenerateRandomString(3);

            try
            {
                //  SeleniumHelper.Login(SeleniumHelper.iSIMSUserType.AdmissionsOfficer);
                String[] featureList = { "AdmissionAppeals" };
                FeatureBee.FeatureBeeLogin.LoginWithFeatureBee(featureList, FeatureBee.FeatureBeeLogin.iSIMSUserType.AdmissionsOfficer);

                AutomationSugar.NavigateMenu("Lookups", "Admissions", "Admissions Appeal Hearing Outcome");

                //Add new Appeal Result
                var appealOutcomeTriplet = new LookupTriplet();
                var appealOutcomePage    = appealOutcomeTriplet.AddRow("AppealOutcome");
                var appealOutcomeRow     = appealOutcomePage.TableRow.GetLastRow();

                appealOutcomeRow.Code         = appealOutcomeCode;
                appealOutcomeRow.Description  = string.Format("Selenium Test Entry - {0}", appealOutcomeCode);
                appealOutcomeRow.DisplayOrder = "99";
                appealOutcomeRow.IsVisible    = true;
                appealOutcomeRow.Category     = "Upheld";

                //Save Appeal Outcome record
                appealOutcomePage.ClickSave();

                //Verify success message
                Assert.AreEqual(true, appealOutcomePage.IsSuccessMessageDisplayed(), "Success message do not display");
            }
            finally
            {
                // Tear down
                PurgeLinkedData.DeleteAppealOutcome(appealOutcomeCode);
            }
        }
Exemplo n.º 6
0
        public void Add_Application_Status()
        {
            var statusCode = SeleniumHelper.GenerateRandomString(3);

            try
            {
                SeleniumHelper.Login(SeleniumHelper.iSIMSUserType.AdmissionsOfficer);
                AutomationSugar.NavigateMenu("Lookups", "Admissions", "Application Status");

                //Add new Application Status
                var applicationStatusTriplet = new LookupTriplet();
                var applicationStatusPage    = applicationStatusTriplet.AddRow("ApplicationStatus");
                var applicationStatusRow     = applicationStatusPage.TableRow.GetLastRow();

                applicationStatusRow.Code         = statusCode;
                applicationStatusRow.Description  = string.Format("Selenium Test Entry - {0}", statusCode);
                applicationStatusRow.DisplayOrder = "99";
                applicationStatusRow.IsVisible    = true;
                applicationStatusRow.Category     = "Rejected";

                //Save Application Status record
                applicationStatusPage.ClickSave();

                //Verify success message
                Assert.AreEqual(true, applicationStatusPage.IsSuccessMessageDisplayed(), "Success message do not display");
            }
            finally
            {
                // Tear down
                PurgeLinkedData.DeleteApplicationStatus(statusCode);
            }
        }