Example #1
0
        public void Verify_Fundtransfer_IMS_All_History()
        {
            #region declaration
            IMS_Base imsAdmin             = new IMS_Base();
            IMS_AdminSuite.Common commIMS = new IMS_AdminSuite.Common();
            Ladbrokes_IMS_TestRepository.Common commTest = new Ladbrokes_IMS_TestRepository.Common();
            Registration_Data regData   = new Registration_Data();
            AdminSuite.Common adminComm = new AdminSuite.Common();
            #endregion

            AddTestCase("Verifying fund transfer through IMS admin", "Fund should be transferred successfully");
            try
            {
                imsAdmin.Init();
                commIMS.SearchCustomer_Newlook(imsAdmin.IMSDriver, ReadxmlData("depdata", "user", DataFilePath.Accounts_Wallets));

                List <string> wallet = ReadxmlData("depdata", "TransWalletDropDown", DataFilePath.Accounts_Wallets).ToString().Split(';').ToList <string>();

                commIMS.FundTransfer_History(imsAdmin.IMSDriver, ReadxmlData("depdata", "AuditFromWallet", DataFilePath.Accounts_Wallets), ReadxmlData("depdata", "AuditToWallet", DataFilePath.Accounts_Wallets), ReadxmlData("depdata", "AuditAmt", DataFilePath.Accounts_Wallets));
            }
            catch (Exception e)
            {
                exceptionStack(e);
                // CaptureScreenshot(MyBrowser, "Portal");
                CaptureScreenshot(imsAdmin.IMSDriver, "IMS");
                Fail("Affiliate Customer Registration/Validation has failed");
                Pass();
            }
            finally { imsAdmin.Quit(); }
        }
Example #2
0
        public void Verify_ExistinguserCheck_Registration()
        {
            #region Declaration
            Registration_Data regData = new Registration_Data();

            IMS_Base baseIMS = new IMS_Base();
            IMS_AdminSuite.Common commIMS = new IMS_AdminSuite.Common();
            Ladbrokes_IMS_TestRepository.Common commTest = new Ladbrokes_IMS_TestRepository.Common();
            AdminTests        Ob       = new AdminTests();
            AdminSuite.Common comAdmin = new AdminSuite.Common();
            #endregion
            #region DriverInitiation
            IWebDriver driverObj;
            string     regUrl   = ReadxmlData("regUrl", "vegas_reg", DataFilePath.IP2_Authetication);
            ISelenium  iBrowser = commonFramework.GetDriverByTestCaseName(SeleniumContainer, Gallio.Framework.TestContext.CurrentContext.Test.Name);
            driverObj = browserInitialize(iBrowser, regUrl);
            #endregion


            try
            {
                AddTestCase("Register using an existing username", "Given Passwordformat should be as expected");

                #region NewCustTestData
                regData.email = "*****@*****.**";
                commTest.Createcustomer_PostMethod(ref regData);
                WriteCommentToMailer("UserName: "******";\nPassword: "******"regdata", "Fname", DataFilePath.IP2_Authetication), ReadxmlData("regdata", "country_UK", DataFilePath.IP2_Authetication), ReadxmlData("regdata", "City_Web", DataFilePath.IP2_Authetication), ReadxmlData("regdata", "Password", DataFilePath.IP2_Authetication));
                ip2.Registration_UsernameCheck(driverObj, ref regData);

                BaseTest.Pass();
            }
            catch (Exception e)
            {
                exceptionStack(e);
                CaptureScreenshot(driverObj, "Portal");
                Fail("Verify_ExistinguserCheck_Registration failed");
            }
        }