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);
            }
        }