Пример #1
0
        [Test]//run the test case ----make method as a calleable
        public void PageObjectModel_RefactoringCustomeExecuteTest_PageObjectRefactoringCustomGetMethod()
        {
            StudentPageObject studentPageObject = new StudentPageObject();
            //EAPageObject PageEA = studentPageObject.CreateStudent("prashant", "pimpalkar", "01/01/2012");
            EAPageObject PageEA = studentPageObject.CreateStudent_PageObjectRefactoringCustomSetMethod("prashant", "pimpalkar", "01/01/2012");

            ///EAPageObject PageEA = new EAPageObject();
            PageEA.FillStudentFormUsing_PageObjectRefactoringCustomSetMethod("sw");
        }
Пример #2
0
        [Test]//run the test case ----make method as a calleable
        public void ExtenstionMethodcl()
        {
            StudentPageObject studentPageObject = new StudentPageObject();
            //EAPageObject PageEA = studentPageObject.CreateStudent("prashant", "pimpalkar", "01/01/2012");
            EAPageObject PageEA = studentPageObject.CreateStudentUsing_ExtensionMethod("prashant", "pimpalkar", "01/01/2012");

            ///EAPageObject PageEA = new EAPageObject();
            PageEA.FillStudentFormUsing_ExtensionMethod("sw");
        }
Пример #3
0
        [Test]//run the test case ----make method as a calleable
        public void PageObjectModel_RefactoringCustomeExecuteTest()
        {
            StudentPageObject studentPageObject = new StudentPageObject();

            //EAPageObject PageEA = studentPageObject.CreateStudent("prashant", "pimpalkar", "01/01/2012");
            studentPageObject.CreateStudent("prashant", "pimpalkar", "01/01/2012");

            EAPageObject PageEA = new EAPageObject();

            // PageEA.txtfirstname.SendKeys("prashant");
            PageEA.FillStudentForm("sw");
        }