コード例 #1
0
ファイル: ApplicationTests.cs プロジェクト: NanaShenley/sel
        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);
            }
        }
コード例 #2
0
ファイル: ApplicationTests.cs プロジェクト: NanaShenley/sel
        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);
            }
        }