コード例 #1
0
        [Test]//run the test case ----make method as a calleable
        public void PageObjectModel_RefactoringCustomeExecuteTest_PageObjectRefactoringCustomGetMethod()
        {
            //RefactoringCustomSetMethod.EnterText("firstname", "prashant", Elementtype.Id);
            EAPageObject page = new EAPageObject();

            page.FillStudentFormUsing_PageObjectRefactoringCustomSetMethod("prashant");
        }
コード例 #2
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");
        }