public void WhenICreateANewTimeAndMaterial()
        {
            //creating instance of time & material page
            TimeMaterial time_material_page = new TimeMaterial(Wbdriver);

            time_material_page.createNewRecord("GARRY", "INTELLIGENT");
        }
コード例 #2
0
        public void Execute()
        {
            var loginpage = new Login(driver);

            loginpage.LoginSuccess();

            var homePage = new Home(driver);

            homePage.clickAdminstration();
            homePage.clickTimenMaterials();


            TimeMaterial timeMaterial = new TimeMaterial(driver);

            timeMaterial.clickCreateNew();


            Thread.Sleep(2000);

            seleniumsetmethod.EnterText(driver, "Code", "111", "Id");

            Console.WriteLine("the code is   " + seleniumGetMethod.GetText(driver, "Code", "Id"));

            seleniumsetmethod.EnterText(driver, "Description", "testing", "Id");

            Console.WriteLine("the description is   " + seleniumGetMethod.GetText(driver, "Description", "Id"));


            seleniumsetmethod.Click(driver, "SaveButton", "Id");
        }
        public void WhenICreateMultipleTimeAndMaterialRecodrsWithBelow(string p1, string p2)
        {
            //creating instance of time & material page
            TimeMaterial time_material_page = new TimeMaterial(Wbdriver);

            time_material_page.createNewRecord(p1, p2);
        }
コード例 #4
0
        public void ThenTheRecordShouldBeEditedSuccessfully()
        {
            TimeMaterial timeMaterial = new TimeMaterial(driver);

            timeMaterial.ValidateRecord("edit");
            driver.Quit();
        }
        public void WhenIHaveEditedTheNewRecord()
        {
            //creating instance of time & material page
            TimeMaterial time_material_page = new TimeMaterial(Wbdriver);

            time_material_page.EditNewRoecord();
        }
        public void WhenIHaveCreatedNewRecord()
        {
            //creating instance of time & material page
            TimeMaterial time_material_page = new TimeMaterial(Wbdriver);

            time_material_page.createNewRecord("TOM", "SINGING");
        }
        public void WhenIGoTheRecordWhichIWantToDelete()
        {
            //creating instance of time & material page
            TimeMaterial time_material_page = new TimeMaterial(Wbdriver);

            //deleting any record from any page(here i have choosen 6 th record from 3 rd page thats why for loop goes upto int i=3
            time_material_page.deleteAnyRecord();
        }
コード例 #8
0
        public void GivenICreateANewTimeAndMaterialRecord()
        {
            //Creating instance of time and material
            TimeMaterial timematerial = new TimeMaterial();

            timematerial.ClickCreatenew();
            timematerial.CreateNewRecord("jack1", "jack1Desc");
            timematerial.ValidateNewRecord("jack1", "jack1Desc");
        }
コード例 #9
0
        public void GivenICreateANewTimeAndMaterialWithBelowTestdec(string p0, string p1)
        {
            //Creating instance of time and material
            TimeMaterial timematerial = new TimeMaterial();

            timematerial.ClickCreatenew();
            timematerial.CreateNewRecord(p0, p1);
            timematerial.ValidateNewRecord(p0, p1);
        }
コード例 #10
0
        public void WhenICreateNewTimeAndMaterialForm()

        {
            TimeMaterial timeMaterial = new TimeMaterial(driver);

            timeMaterial.clickCreateNew();

            timeMaterial.CreateNewRecord("ck", "des1");
            // timeMaterial.validateRecord();
        }
コード例 #11
0
        public void GivenIEditAnExistingTimeAndMaterialRecord()
        {
            // Creating an instance of home page
            var homePage = new Home(driver);

            homePage.clickAdminstration();
            homePage.clickTimenMaterials();

            TimeMaterial timeMaterial = new TimeMaterial(driver);

            timeMaterial.EditNewRecord();
        }
コード例 #12
0
        public void GivenICreateATimeAndMaterial()
        {
            // Creating an instance of home page
            var homePage = new Home(driver);

            homePage.clickAdminstration();
            homePage.clickTimenMaterials();


            TimeMaterial timeMaterial = new TimeMaterial(driver);

            timeMaterial.clickCreateNew();
            timeMaterial.CreateNewRecord("test", "testDescription");
            //timeMaterial.EditNewRecord();
            //timeMaterial.DeleteNewRecord();
            timeMaterial.ValidateRecord("test");
        }
コード例 #13
0
        public void GivenICreateATimeAndMaterialWithBelow(string p0, string p1)
        {
            // Creating an instance of home page
            var homePage = new Home(driver);

            homePage.clickAdminstration();
            homePage.clickTimenMaterials();


            TimeMaterial timeMaterial = new TimeMaterial(driver);

            timeMaterial.clickCreateNew();
            timeMaterial.CreateNewRecord(p0, p1);
            //timeMaterial.EditNewRecord();
            //timeMaterial.DeleteNewRecord();
            timeMaterial.ValidateRecord(p0);
        }
コード例 #14
0
        public void VerifyUserCanLoginIntoIC()
        {
            //login page code in loginpage
            var login = new Loginpage(driver);
            login.login1();

            //dashboard page code in dashboard
            var dashboard = new Dashboard(driver);
            dashboard.Dashboard1();

            //time and material code in TimeMaterial
            var TimeMaterial = new TimeMaterial(driver);
            TimeMaterial.TimeMaterial1();



            //client page 
            var client = new Client(driver);
            client.Client1();


        }
コード例 #15
0
 void Start()
 {
     _timeMaterial = GetComponent <TimeMaterial>();
     _transform    = transform;
 }
コード例 #16
0
        public void WhenIEditAnExistingTimeAndMaterial()
        {
            TimeMaterial timeMaterial = new TimeMaterial(driver);

            timeMaterial.EditNewRecord();
        }
コード例 #17
0
        public void WhenIAddTimeAndMaterialRecords_()
        {
            var TimeMaterial = new TimeMaterial(driver);

            TimeMaterial.TimeMaterial1();
        }
コード例 #18
0
        public void GivenIEditAnExistingTimeAndMaterialRecord()
        {
            TimeMaterial timematerial = new TimeMaterial();

            timematerial.EditNewRecord();
        }