Esempio n. 1
0
        public void Verify_Tier4_Region_Lookup()
        {
            var code = SeleniumHelper.GenerateRandomString(3);

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

                //Add new Reason Admission Rejected
                var tier4RegionTriplet = new LookupTriplet();
                var tier4RegionPage    = tier4RegionTriplet.AddLookupRow("Tier4Region");
                var tier4RegionRow     = tier4RegionPage.TableRow.GetLastRow();

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

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

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