Exemple #1
0
        public void Verify_Tier4_VisaType_Lookup()
        {
            var code = SeleniumHelper.GenerateRandomString(3);

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

                //Add new Reason Admission Rejected
                var tier4VisaTypeTriplet = new LookupTriplet();
                var tier4VisaTypePage    = tier4VisaTypeTriplet.AddLookupRow("Tier4VisaType");
                var tier4VisaTypeRow     = tier4VisaTypePage.TableRow.GetLastRow();

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

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

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