public void BeforeScenario()
 {
     //Following Variable needs to be filled accordingly for each Test Method. Do not have spaces within Module & Test name
     //******************************************************************************************************
     Reporter.strCurrentModule = "Manager_Account";
     Reporter.strCurrentScenarioID = "SC1";
     Reporter.strCurrentTestID = "TC1";
     Reporter.strCurrentTestDesc = "Create New Customer";
     //*******************************************************************************************************
     //Default Reporting function call for Test Method. Please do not REMOVE this functions calls
     Reporter.HTML_TestCase_Initialize();
     LoginPage oLoginPage = new LoginPage();
     oLoginPage.launchApplication();
 }
Пример #2
0
        public void TC1_CreateNewCustomer()
        {
            //Following Variable needs to be filled accordingly for each Test Method. Do not have spaces within Module & Test name
            //******************************************************************************************************
            Reporter.strCurrentModule = "Manager_Account";
            Reporter.strCurrentScenarioID = "SC1";
            Reporter.strCurrentTestID = "TC1";
            Reporter.strCurrentTestDesc = "Create New Customer";
            //*******************************************************************************************************
            //Default Reporting function call for Test Method. Please do not REMOVE this functions calls
            Reporter.HTML_TestCase_Initialize();

            DataTable oTable = ExcelUtil.ExcelToTable(GlbVar.strRelativePath + "03_Application_Tier" + GlbVar.sysFileSeperator + "TestData" + GlbVar.sysFileSeperator + "TestData.xlsx", "Data");

            DataRow[] oDataRows = oTable.Select("TestCaseID = '" + Reporter.strCurrentTestID + "' and ExecutionFlag = 'Y'");
            foreach (DataRow oDataRow in oDataRows)
            {
                //Default Test data Fetching code. Please do not remove it
                ExcelUtil.oCurrentDataRow = oDataRow;
                string CustName = oDataRow["CustName"].ToString();
                int.TryParse(oDataRow["Iteration"].ToString(), out  Reporter.intCurrentIteration);
                //Default Reporting function call for Test Method. Please do not REMOVE this functions calls
                Reporter.HTML_TC_Iteration_Initialize();

                //Start Point for Coding the Test case. 
                //*****************************************************************************************************
                Console.WriteLine(CustName);
                LoginPage oLoginPage = new LoginPage();
                oLoginPage.loginToApplication()
                    .navigateToNewCustPage()
                    .fillNewCustDetails()
                    .SubmitNewCustDetails()

                    .navigateToHomePage()
                    .applicationLogout();

                //this.UIMap.GDrive();



                //*****************************************************************************************************
                //End Point for Coding the Test case. 
            }

            //Default Reporting function call for Test Method. Please do not REMOVE this functions calls
            Reporter.HTML_Execution_Summary_TCAddLink();
            Reporter.HTML_TC_Iteration_Footer();
        }
Пример #3
0
        public void GivenIHaveLoggedIntoGuruManagerHomepage(int p0)
        {
            Console.WriteLine(GlbVar.strRelativePath);
             DataTable oTable = ExcelUtil.ExcelToTable(GlbVar.strRelativePath + "03_Application_Tier" + GlbVar.sysFileSeperator + "TestData" + GlbVar.sysFileSeperator + "TestData.xlsx", "Data");

            DataRow[] oDataRows = oTable.Select("TestCaseID = '" + Reporter.strCurrentTestID + "' and ExecutionFlag = 'Y'");
            foreach (DataRow oDataRow in oDataRows)
            {
                //Default Test data Fetching code. Please do not remove it
                ExcelUtil.oCurrentDataRow = oDataRow;
                string CustName = oDataRow["CustName"].ToString();
                int.TryParse(oDataRow["Iteration"].ToString(), out  Reporter.intCurrentIteration);
                //Default Reporting function call for Test Method. Please do not REMOVE this functions calls
                Reporter.HTML_TC_Iteration_Initialize();

                //Start Point for Coding the Test case. 
                //*****************************************************************************************************
                Console.WriteLine(CustName);
              
                    
            }
            oLoginPage = new LoginPage();
            oHomePage = oLoginPage.loginToApplication();
        }
Пример #4
0
 public void SetAppLaunch(){
     LoginPage oLoginPage = new LoginPage();
     oLoginPage.launchApplication();
 }