Ejemplo n.º 1
0
        public void TestCase1()
        {
            dataR = new Data();
            FI    = dataR.DataRecord();


            demoHome = new DemoQAHome(driver);
            demoForm = new DemoQAForm(driver);



            demoHome.CLickForm();

            string strHead = demoForm.getHeaderTextFrom();

            Assert.AreEqual(strHead, "Forms");


            demoForm.CLickPractice();

            // demoForm.verifyfirstNameRequired();


            demoForm.setFirstName(FI.firstname);
            demoForm.setLastName(FI.lastname);
            demoForm.selectGender(FI.gender);
            demoForm.setNumber(FI.nummber);

            demoForm.submitForm();

            string str = demoForm.verifyMessage();

            Assert.AreEqual(str, "Thanks for submitting the form");
        }
Ejemplo n.º 2
0
        public FormInputs DataRecord()
        {
            FI = new FormInputs
            {
                firstname = "Abid",
                lastname  = "Ali",
                gender    = 'M',
                nummber   = "3472467552"
            };

            return(FI);
        }