Esempio n. 1
0
        public void Verify_SignUp_Bonus_Registration()
        {
            #region Declaration
            Registration_Data regData = new Registration_Data();
            Ladbrokes_IMS_TestRepository.Common commTest = new Ladbrokes_IMS_TestRepository.Common();
            Login_Data  loginData = new Login_Data();
            MyAcct_Data acctData  = new MyAcct_Data();

            #endregion
            #region DriverInitiation
            IWebDriver driverObj;
            ISelenium  iBrowser = commonFramework.GetDriverByTestCaseName(SeleniumContainer, Gallio.Framework.TestContext.CurrentContext.Test.Name);
            driverObj = browserInitialize(iBrowser);
            #endregion

            try
            {
                AddTestCase("Excecute Verify_SignUp_Bonus_Registration", "Verify_SignUp_Bonus_Registration : Pass");
                AddTestCase("Register a customer selecting Indonesia as country and currency as AUD", "Registration should be successfull");

                regData.update_Registration_Data(ReadxmlData("regdata", "Fname", DataFilePath.Accounts_Wallets), ReadxmlData("regdata", "country_indonesia", DataFilePath.Accounts_Wallets), ReadxmlData("regdata", "City_Web", DataFilePath.Accounts_Wallets), ReadxmlData("regdata", "Password", DataFilePath.Accounts_Wallets));
                regData.currency = ReadxmlData("regdata", "currency_AUD", DataFilePath.Accounts_Wallets);

                wAction._Click(driverObj, ICE.ObjectRepository.ORFile.Accounts_Wallets_Registration, wActions.locatorType.xpath, "createAcct_Xpath", "Find Address button not found", 0, false);
                AnW.Registration_PlaytechPages(driverObj, ref regData);
                Pass("Customer registered succesfully");

                AddTestCase("Verify the Bonus after registration", "Bonus should be credited to the customer");

                if (AnW.OpenMyAcct(driverObj, false) != null)
                {
                    if (!AnW.MyAccount_VerifyFreeBet(driverObj, ReadxmlData("bonus", "signup", DataFilePath.Accounts_Wallets), ReadxmlData("bonus", "signup_amt", DataFilePath.Accounts_Wallets)))
                    {
                        Fail("Freebet not added");
                    }
                }
                else
                {
                    Fail("Navigation to My account page is failed");
                }

                Pass("Bonus is credited to the customer as expected");

                WriteCommentToMailer("UserName: "******";\nPassword: "******"Username:"******" Password:"******"");
                Pass();
            }
            catch (Exception e)
            {
                exceptionStack(e);
                CaptureScreenshot(driverObj, "Portal");
                Fail("Verify_SignUp_Bonus_Registration : scenario failed");
            }
        }
Esempio n. 2
0
            public void Verify_Title_Russian()
            {
                #region Declaration
                IMS_Base baseIMS = new IMS_Base();
                IMS_AdminSuite.Common commIMS = new IMS_AdminSuite.Common();
                Registration_Data     regData = new Registration_Data();
                Ladbrokes_IMS_TestRepository.Common commTest = new Ladbrokes_IMS_TestRepository.Common();
                Login_Data  loginData = new Login_Data();
                MyAcct_Data acctData  = new MyAcct_Data();
                #endregion
                #region DriverInitiation
                IWebDriver driverObj;
                ISelenium  iBrowser = commonFramework.GetDriverByTestCaseName(SeleniumContainer, Gallio.Framework.TestContext.CurrentContext.Test.Name);
                driverObj = browserInitialize(iBrowser);
                #endregion
                Ladbrokes_IMS_TestRepository.Common Testcomm = new Ladbrokes_IMS_TestRepository.Common();
                string temp = Registration_Data.title;
                try
                {
                    Registration_Data.title = "Г - н";
                    AddTestCase("Russian Language", "Registration should be successfull");

                    regData.update_Registration_Data(ReadxmlData("regdata", "Fname", DataFilePath.Accounts_Wallets), ReadxmlData("regdata", "country_germany_german", DataFilePath.Accounts_Wallets), ReadxmlData("regdata", "City_Web", DataFilePath.Accounts_Wallets), ReadxmlData("regdata", "Password", DataFilePath.Accounts_Wallets));

                    //Change the language
                    wAction._ClickAndMove(driverObj, ORFile.Ladbrokes_Header, wActions.locatorType.xpath, "LanguageMenu", FrameGlobals.elementTimeOut, "Header element Change language menu not found");
                    wAction._Click(driverObj, ORFile.Ladbrokes_Header, wActions.locatorType.xpath, "Language_Russian", "Language Russian in menu not found", 0, false);

                    //register in Russian
                    wAction._Click(driverObj, ICE.ObjectRepository.ORFile.Accounts_Wallets_Registration, wActions.locatorType.xpath, "Join_Russian_Btn", "Join button not found", 0, false);
                    AnW.Registration_PlaytechPages(driverObj, ref regData);
                    // Testcomm.Createcustomer_PostMethod(ref regData, Registration_Data.title);
                    Pass("Customer registered succesfully");

                    baseIMS.Init();
                    commIMS.SearchCustomer_Newlook(baseIMS.IMSDriver, regData.username);
                    baseIMS.IMSDriver.SwitchTo().DefaultContent();
                    BaseTest.Assert.IsTrue(baseIMS.IMSDriver.FindElement(By.Id("title")).GetAttribute("value") == Registration_Data.title, "title did not match in IMS Admin. Expected:" +
                                           Registration_Data.title + " Actual:" + baseIMS.IMSDriver.FindElement(By.Id("title")).GetAttribute("value"));
                }
                catch (Exception e)
                {
                    exceptionStack(e);
                    CaptureScreenshot(driverObj, "Portal");
                    CaptureScreenshot(baseIMS.IMSDriver, "IMS");
                    Fail("Verify title : scenario failed");
                }
                finally
                {
                    Registration_Data.title = temp;
                }
            }
Esempio n. 3
0
        public void Verify_Transfer_Portal_AllWallets()
        {
            #region DriverInitiation
            IWebDriver driverObj;
            ISelenium  iBrowser = commonFramework.GetDriverByTestCaseName(SeleniumContainer, Gallio.Framework.TestContext.CurrentContext.Test.Name);
            driverObj = browserInitialize(iBrowser);
            #endregion

            #region Declaration
            Login_Data  loginData = new Login_Data();
            MyAcct_Data acctData  = new MyAcct_Data();
            // Configuration testdata = TestDataInit();
            Registration_Data regData = new Registration_Data();
            #endregion

            AddTestCase("Verify Transfer is successful", "Transfer should be successful.");
            try
            {
                //acctData.Update_deposit_withdraw_Card(testdata.AppSettings.Settings["CDCC1"].Value, testdata.AppSettings.Settings["MaxAmount"].Value, testdata.AppSettings.Settings["CDDepAmount"].Value, testdata.AppSettings.Settings["CDDepWallet"].Value, testdata.AppSettings.Settings["CDWithWallet"].Value);

                loginData.update_Login_Data(ReadxmlData("depdata", "user", DataFilePath.Accounts_Wallets),
                                            ReadxmlData("depdata", "pwd", DataFilePath.Accounts_Wallets),
                                            ReadxmlData("depdata", "CCFname", DataFilePath.Accounts_Wallets));

                acctData.Update_deposit_withdraw_Card(ReadxmlData("depdata", "CCard", DataFilePath.Accounts_Wallets),
                                                      ReadxmlData("depdata", "wAmt", DataFilePath.Accounts_Wallets),
                                                      ReadxmlData("depdata", "wAmt", DataFilePath.Accounts_Wallets),
                                                      ReadxmlData("depdata", "depWallet", DataFilePath.Accounts_Wallets), ReadxmlData("depdata", "ToWallet", DataFilePath.Accounts_Wallets), null);

                WriteCommentToMailer("UserName: "******";\nPassword: "******"depdata", "TransWalletDropDown", DataFilePath.Accounts_Wallets),
                                        ReadxmlData("depdata", "TransWalletTable", DataFilePath.Accounts_Wallets));

                Pass();
            }

            catch (Exception e)
            {
                exceptionStack(e);
                CaptureScreenshot(driverObj, "Portal");
                Fail("Fund transfer among all wallets is failed for an exception");
            }
        }
Esempio n. 4
0
        public void Verify_Transfer_Insufficient_Fund()
        {
            #region DriverInitiation
            IWebDriver driverObj;
            ISelenium  iBrowser = commonFramework.GetDriverByTestCaseName(SeleniumContainer, Gallio.Framework.TestContext.CurrentContext.Test.Name);
            driverObj = browserInitialize(iBrowser);
            #endregion

            #region Declaration


            Login_Data        loginData = new Login_Data();
            MyAcct_Data       acctData  = new MyAcct_Data();
            Registration_Data regData   = new Registration_Data();

            #endregion
            AddTestCase("Verify the wallet transfer functionality across wallets to Verify transfer amount lesser than non withdrawable amount ", "Insufficient fund error should be displayed");
            try
            {
                loginData.update_Login_Data(ReadxmlData("depdata", "user", DataFilePath.Accounts_Wallets),
                                            ReadxmlData("depdata", "pwd", DataFilePath.Accounts_Wallets),
                                            ReadxmlData("depdata", "CCFname", DataFilePath.Accounts_Wallets));

                acctData.Update_deposit_withdraw_Card(ReadxmlData("depdata", "CCard", DataFilePath.Accounts_Wallets),
                                                      ReadxmlData("depdata", "CCAmt", DataFilePath.Accounts_Wallets),
                                                      ReadxmlData("depdata", "CCAmt", DataFilePath.Accounts_Wallets),
                                                      ReadxmlData("depdata", "depWallet", DataFilePath.Accounts_Wallets), ReadxmlData("depdata", "ToWallet", DataFilePath.Accounts_Wallets), null);

                WriteCommentToMailer("UserName: "******";\nPassword: "******"depdata", "FromWallet", DataFilePath.Accounts_Wallets),
                                                   ReadxmlData("depdata", "ToWallet", DataFilePath.Accounts_Wallets));

                Pass();
            }
            catch (Exception e)
            {
                exceptionStack(e);
                CaptureScreenshot(driverObj, "Portal");
                Fail("Verify_Transfer_Insufficient_Fund failed");
            }
        }
Esempio n. 5
0
        //Verify the Deposit type bonus /promotion
        public void Verify_Deposit_Netteller_Bonus()
        {
            #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();
            Login_Data  loginData = new Login_Data();
            MyAcct_Data acctData  = new MyAcct_Data();
            #endregion

            #region DriverInitiation
            IWebDriver driverObj;
            ISelenium  iBrowser = commonFramework.GetDriverByTestCaseName(SeleniumContainer, Gallio.Framework.TestContext.CurrentContext.Test.Name);
            driverObj = browserInitialize(iBrowser, FrameGlobals.VegasURL);
            #endregion

            try
            {
                AddTestCase("Verify Netteller deposit is successful", "Deposit through netteller should be successful.");

                loginData.update_Login_Data(ReadxmlData("depdata", "user", DataFilePath.Accounts_Wallets),
                                            ReadxmlData("depdata", "pwd", DataFilePath.Accounts_Wallets),
                                            ReadxmlData("depdata", "CCFname", DataFilePath.Accounts_Wallets));

                acctData.Update_deposit_withdraw_Card(ReadxmlData("netdata", "account_pwd", DataFilePath.Accounts_Wallets),
                                                      ReadxmlData("depdata", "wAmt", DataFilePath.Accounts_Wallets),
                                                      ReadxmlData("bonus", "depoAmnt", DataFilePath.Accounts_Wallets),
                                                      ReadxmlData("bonus", "bonusWallet", DataFilePath.Accounts_Wallets), ReadxmlData("bonus", "bonusWallet", DataFilePath.Accounts_Wallets), null);

                WriteCommentToMailer("UserName: "******";\nPassword: "******"netdata", "account_id", DataFilePath.Accounts_Wallets), ReadxmlData("bonus", "depoProm", DataFilePath.Accounts_Wallets));

                BaseTest.Pass();
            }
            catch (Exception e)
            {
                exceptionStack(e);
                CaptureScreenshot(driverObj, "Portal");
                Fail("Deposit bonus scenario failed");
            }
        }
Esempio n. 6
0
 /******Login******/
 public List <Login_Model> GetUserLogin(string v1, string v2)
 {
     return(Usuario = Login_Data.Login(v1, v2));
 }
Esempio n. 7
0
        public void Verify_Games_Login_Logout_1908()
        {
            #region DriverInitiation
            IWebDriver driverObj;
            ISelenium  iBrowser = commonFramework.GetDriverByTestCaseName(SeleniumContainer, Gallio.Framework.TestContext.CurrentContext.Test.Name);
            driverObj = browserInitialize(iBrowser, FrameGlobals.GamesURL);
            #endregion

            #region Declaration
            Registration_Data regData = new Registration_Data();
            // Configuration testdata = TestDataInit();
            IMS_Base baseIMS = new IMS_Base();
            IMS_AdminSuite.Common commIMS = new IMS_AdminSuite.Common();
            Ladbrokes_IMS_TestRepository.Common commTest = new Ladbrokes_IMS_TestRepository.Common();
            Login_Data  loginData = new Login_Data();
            MyAcct_Data acctData  = new MyAcct_Data();
            #endregion

            AddTestCase("Verify login is successfull in games", "Login should be successfully");
            try
            {
                #region NewCustTestData
                regData.email = "*****@*****.**";
                commTest.Createcustomer_PostMethod(ref regData);
                loginData.username = regData.username;
                loginData.password = regData.password;
                #endregion
                WriteCommentToMailer("UserName: "******";\nPassword: "******"log", "ClientPlatform_games", DataFilePath.IP2_Authetication));
                commIMS.Validate_SessionLogin(baseIMS.IMSDriver, IMS_Control_PlayerDetails.LoginTime_XP, DateTime.Now.ToString("yyyy-MM-dd"));
                commIMS.Open_CheckLog(baseIMS.IMSDriver);
                commIMS.Validate_CheckLog(baseIMS.IMSDriver, IMS_Control_CasinoLog.SessionLogin_XP, ReadxmlData("log", "ClientPlatform_games", DataFilePath.IP2_Authetication));
                commIMS.Validate_CheckLog(baseIMS.IMSDriver, IMS_Control_CasinoLog.SessionLogin_XP, Generic.GetPublic_IPAddress());



                ip2.Logout_Games(driverObj);
                commIMS.SearchCustomer_Newlook(baseIMS.IMSDriver, loginData.username, false);
                commIMS.Validate_SessionLogin(baseIMS.IMSDriver, IMS_Control_PlayerDetails.ClientPlatform_XP, ReadxmlData("log", "ClientPlatform_games", DataFilePath.IP2_Authetication));
                commIMS.Validate_SessionLogin(baseIMS.IMSDriver, IMS_Control_PlayerDetails.LoginTime_XP, DateTime.Now.ToString("yyyy-MM-dd"));
                commIMS.Validate_SessionLogin(baseIMS.IMSDriver, IMS_Control_PlayerDetails.LogoutTime_XP, DateTime.Now.ToString("yyyy-MM-dd"));

                commIMS.Open_CheckLog(baseIMS.IMSDriver);
                commIMS.Validate_CheckLog(baseIMS.IMSDriver, IMS_Control_CasinoLog.SessionLogout_XP, ReadxmlData("log", "ClientPlatform_games", DataFilePath.IP2_Authetication));
                commIMS.Validate_CheckLog(baseIMS.IMSDriver, IMS_Control_CasinoLog.SessionLogout_XP, Generic.GetPublic_IPAddress());


                Pass("games login successfully");
            }
            catch (Exception e)
            {
                exceptionStack(e);
                CaptureScreenshot(driverObj, "portal");
                CaptureScreenshot(baseIMS.IMSDriver, "IMS");
                Fail("Verify_Games_Login_Logout - failed");
            }
            finally
            {
                baseIMS.Quit();
            }
        }