Exemplo n.º 1
0
        public void StartTest()
        {
            // make sure everything is closed before another test is started
            CloseProcess("TamXML7");
            CloseProcess("InsureTam");
            CloseProcess("clntfile");
            CloseProcess("Homebase");
            CloseProcess("AcroRd32");
            CloseProcess("iexplore");
            CloseProcess("Regress_IETam_Policy");
            CloseProcess("RLoader");

            Tests.Renewals.CleanRenewals();

            UiMap.CleanDocuments();
            Playback.PlaybackSettings.SearchTimeout = Configs.SearchTimeout;
            TestName = TestContext.TestName;
            TestLinkInitialize();

            var login = new Login();

            login.LoginParams.ExePath          = "J:\\WINTAM\\HOMEBASE.EXE";
            login.LoginParams.AlternateExePath = "J:\\WINTAM\\HOMEBASE.EXE";
            login.DoLogin();
            login.LoginEnterDate();
            login.WarningOk();
            UiMap.AppStartedExpectedValues.UITheAgencyManagerWindow1Name = "The Agency Manager";
        }
Exemplo n.º 2
0
 protected void RenewalLoader()
 {
     UiMap.RenewalLoaderOpen();
     UiMap.RenewalLoaderRun();
     UiMap.CloseBrowser();
     UiMap.RenewalLoaderClose();
 }
 public void Can_Filter_Price_Over_1000()
 {
     UiMap.OpenHomePageOnIE();
     UiMap.OpenTVVideoPage();
     UiMap.SortByPriceAndFilterOver1000();
     UiMap.IsPriceGreaterThen1000();
 }
 public void Can_Add_To_Wishlist()
 {
     UiMap.OpenHomePageOnIE();
     UiMap.AddToWishListSdCard();
     UiMap.LoginAdmin();
     UiMap.OpenWishList();
     UiMap.IsSDCardInWishlist();
 }
 public void Can_Apply_Test_Coupon()
 {
     UiMap.OpenHomePageOnIE();
     UiMap.AddToCartSamsungLN26D450();
     UiMap.OpenMyCartPage();
     UiMap.ApplyTestCoupon();
     UiMap.IsDiscountApplied();
 }
Exemplo n.º 6
0
 protected void RegressApp(string policyType)
 {
     // UiMap.HighlightCustomer();
     UiMap.RegressApp(UiMap.CustomerCode);
     UiMap.RegressAppPolicyTypeSelection(policyType);
     UiMap.RegressAppDate();
     UiMap.RegressAppFinish();
     UiMap.CloseRegressApp();
 }
Exemplo n.º 7
0
 protected void RenewalModule(string customerCode, string policyType)
 {
     UiMap.RenewalModuleEDI();
     UiMap.RenewalModuleConfirm();
     UiMap.RenewalModuleEdi1(false);
     UiMap.RenewalModuleFilter(policyType);
     UiMap.RenewalModuleSort();
     UiMap.RenewalModuleDisplay(UiMap.CommonParams.SendHomeKeys);
     UiMap.RenewalCheckRecord(1, customerCode);
 }
Exemplo n.º 8
0
        protected void SiteForRenewal(string policyNumber, string policyType, string renewalPremium)
        {
            UiMap.OpenBrowser();
            if (policyType == "Household")
            {
                House.HomeSiteRenewal(policyNumber, renewalPremium, InsurerName);
            }
            else
            {
                Moto.MotoCreateSiteRenewal(policyNumber, renewalPremium, InsurerName);
            }

            Playback.Wait(5000);
            UiMap.CloseBrowser();
            UiMap.ChangeDatePolicy();
        }
        public void Can_Edit_EditAccountInformation()
        {
            UiMap.OpenHomePageOnIE();
            if (UiMap.UIOnlineshoppingfromagWindow1.UIOnlineshoppingfromagDocument.UILayoutPane.UILoginHyperlink.Exists)
            {
                UiMap.LoginAdmin();
            }

            UiMap.OpenAccountPage();
            UiMap.IsMyDashboardOpened();

            UiMap.OpenAccountInformationPage();
            UiMap.IsEditAccountInformationVisible();

            UiMap.AccountRenameToJohnSmith();
            UiMap.IsJohnSmithWelcome();
        }
 public void Can_Create_New_Order()
 {
     UiMap.OpenHomePageOnIE();
     UiMap.AddToCartSamsungLN26D450();
     UiMap.OpenCheckoutPage();
     UiMap.CheckoutUsingPaypal();
     //if (UiMap.UICheckoutElectronicsSWindow.UIPaywithaPayPalaccounDocument1.UILogInButton.WaitForControlExist(5000) == false)
     //{
     // This shoud work but doesnt!
     //    UiMap.ClickLoginToPaypal();
     //}
     UiMap.LoginToPaypal();
     UiMap.UICheckoutElectronicsSWindow.UIReviewyourinformatioDocument.UIContinueButton.WaitForControlExist(5000);
     UiMap.FinishPaypal();
     UiMap.UISuccessInternetExploWindow.UISuccessDocument.UIORDER2014032000000Hyperlink.WaitForControlExist(10000);
     UiMap.IsOrderTrackingNrValidFormat();
 }
Exemplo n.º 11
0
 public void Admin_CanPerform_CrudActions()
 {
     // To generate code for this test, select "Generate Code for Coded UI Test"
     // from the shortcut menu and select one of the menu items.
     UiMap.Admin_LogsIn();
     UiMap.Admin_AddsFirstJobType();
     UiMap.Admin_AddsSecondJobType();
     UiMap.Admin_AddsFirstJobCategory();
     UiMap.Admin_ChecksFirstJobCategoryDetails();
     UiMap.Admin_AddsSecondJobCategory();
     UiMap.Admin_AddsFirstJobOffer();
     UiMap.Admin_UpdatesFirstJobOffer();
     UiMap.Admin_LogsOut_AndChecksAddedJobOffer();
     UiMap.Admin_LogsInAgain();
     UiMap.Admin_DeletesJobOffer();
     UiMap.Admin_DeletesJobTypes();
     UiMap.Admin_DeletesJobCategories();
     UiMap.Admin_NavigatesToHome_AndLogsOut();
 }
 public void Can_Open_AccessoriesCategory()
 {
     UiMap.OpenHomePageOnIE();
     UiMap.OpenAccessoriesPage();
     UiMap.IsAccessoriesInBreadcrumb();
 }
 public void Can_Open_ComputersAndTabletsCategory()
 {
     UiMap.OpenHomePageOnIE();
     UiMap.OpenComputersAndTabletsPage();
     UiMap.IsComputersAndTabletsInBreadcrumb();
 }
 public void Can_Open_CamerasCategory()
 {
     UiMap.OpenHomePageOnIE();
     UiMap.OpenCamerasCategory();
     UiMap.IsCamerasInBreadcrumb();
 }
 public void Can_Open_AudioMP3Category()
 {
     UiMap.OpenHomePageOnIE();
     UiMap.OpenAudioMp3Page();
     UiMap.IsAudioMP3InBreadcrumb();
 }
 public void Can_Open_TVVideoCategory()
 {
     UiMap.OpenHomePageOnIE();
     UiMap.OpenTVVideoPage();
     UiMap.IsTVVideoInBreadcrumb();
 }
 public void Can_Filter_Samsung_From_Menu()
 {
     UiMap.OpenHomePageOnIE();
     UiMap.FilterSamsungComputersFromMenu();
     UiMap.IsFilteredBySamsung();
 }
 public void Can_Add_Samsung_UN19D4003_To_Cart()
 {
     UiMap.OpenHomePageOnIE();
     UiMap.AddToCartSamsungLN26D450();
     UiMap.IsSamsungLN26D450InCart();
 }