Exemple #1
0
        public void Testcase2()
        {
            demoHome = new DemoQAHome(driver);
            demoForm = new DemoQAForm(driver);



            demoHome.CLickForm();

            string strHead = demoForm.getHeaderTextFrom();

            Assert.AreEqual(strHead, "Forms");


            demoForm.CLickPractice();

            demoForm.submitForm();



            Assert.IsTrue(demoForm.verifyfirstNameRequired());
            Assert.IsTrue(demoForm.verifylastNameRequired());

            Assert.IsTrue(demoForm.verifgenderFRequired());
            Assert.IsTrue(demoForm.verifgenderMRequired());
            Assert.IsTrue(demoForm.verifgenderORequired());
        }
Exemple #2
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");
        }