Beispiel #1
0
            public void edittest()
            {
                // Home Page - clicking on adminsitration and time n materials
                HomePage instanceName = new HomePage(GlobalDriver.driver);

                instanceName.clickAdminstration();
                instanceName.clickTimenMaterial();

                // Time & Material Page - Click on Edit Button and Edit Time and Material Value.
                TimeandMaterialPage instanceNameTandM = new TimeandMaterialPage(GlobalDriver.driver);

                ExcelLibHelpers.PopulateInCollection(@"E:\TestData\TestDataForHorseDev.xlsx", "EditTimeAndMaterials");
                instanceNameTandM.EditTimenMaterail();
            }
Beispiel #2
0
            public void deletetest()
            {
                // Home Page - clicking on adminsitration and time n materials
                HomePage instanceName = new HomePage(GlobalDriver.driver);

                instanceName.clickAdminstration();
                instanceName.clickTimenMaterial();

                // Time & Material Page - Click on Delete and Confirm Delete Time and Material value.
                TimeandMaterialPage instanceNameTandM = new TimeandMaterialPage(GlobalDriver.driver);

                ExcelLibHelpers.PopulateInCollection(@"E:\TestData\TestDataForHorseDev.xlsx", "DeleteTimeAndMaterials");
                instanceNameTandM.deleteTimenMaterial();
            }
Beispiel #3
0
            public void CreateTest()
            {
                // Home Page - clicking on adminsitration and time n materials
                HomePage instanceName = new HomePage(GlobalDriver.driver);

                instanceName.clickAdminstration();
                instanceName.clickTimenMaterial();

                TimeandMaterialPage inssatnceNameTandM = new TimeandMaterialPage(GlobalDriver.driver);

                inssatnceNameTandM.Clickcreate();
                //inssatnceNameTandM.Savebutton1();
                ExcelLibHelpers.PopulateInCollection(@"E:\TestData\TestDataForHorseDev.xlsx", "CreateTimeAndMaterials");
                inssatnceNameTandM.CreateTimeAndMaterial();
            }
Beispiel #4
0
        static void Main(string[] args)
        {
            //Creating instance of chrome driver
            IWebDriver driver = new ChromeDriver();

            driver.Navigate().GoToUrl("http://horse-dev.azurewebsites.net/Account/Login");

            // login page :: Identifying and sending valid inputs
            LoginPage loginPage = new LoginPage(driver);

            loginPage.LoginSuccess();

            // Home Page - clicking on adminsitration and time n materials
            HomePage instanceName = new HomePage(driver);

            instanceName.clickAdminstration();
            instanceName.clickTimenMaterial();

            // Time & Material Page - Click on Create New record and Submit Time and Material Value.
            TimeandMaterialPage instanceNameTandM = new TimeandMaterialPage(driver);

            instanceNameTandM.Clickcreate();
            instanceNameTandM.Savebutton1();
            instanceNameTandM.Editbutoon();



            //Time and Material Page - create new and adding valid details

            //Time and Material Page  - validating the record created

            //Closing driver instance
            driver.Close();


            //IWebDriver driver1 = new ChromeDriver();
            //driver1.Navigate().GoToUrl("http://www.industryconnect.io");

            //driver1.FindElement(By.Id("Email")).SendKeys("*****@*****.**");
            //driver1.FindElement(By.Id("Password")).SendKeys("Test@123");

            //driver1.FindElement(By.XPath("//input[@class='btn btn-xl  signinbtn']")).Click();
        }