public void TC_VerifyHealthContentPage()
        {
            //To call the Page Login Method
            Page_Login plogin = new Page_Login();

            plogin.Login();
            Page_HAPrompt haprompt = new Page_HAPrompt();

            //Assert.IsTrue(haprompt.AtHaPrompt(), "Not at HA Prompt Page");
            haprompt.GoToDashboard();

            // Health Content
            Common cmn = new Common();

            cmn.ClickOnResources();
            Page_HealthContent phc       = new Page_HealthContent();
            List <string[]>    actualtxt = CSVReaderDataTable.GetCSVData("ResourcesContent", "HealthContent", "pageheading");
            string             atrval    = phc.VerifyHealthContentPage();

            Console.WriteLine("actualtxt" + atrval + "expected" + actualtxt.ElementAt(0)[4]);
            Assert.AreEqual(actualtxt.ElementAt(0)[4], atrval);

            // Symptom Checker Tab
            Page_SymptomChecker psc = new Page_SymptomChecker();

            atrval    = psc.VerifySymptomCheckerPageFromTab();
            actualtxt = CSVReaderDataTable.GetCSVData("ResourcesContent", "SymptomChecker", "pageheading");
            Console.WriteLine("actualtxt" + atrval + "expected" + actualtxt.ElementAt(0)[4]);
            Assert.AreEqual(actualtxt.ElementAt(0)[4], atrval);

            // Well Being Content Tab
            Page_WellBeingContent wbc = new Page_WellBeingContent();

            atrval    = wbc.VerifyWellBeingFromTab();
            actualtxt = CSVReaderDataTable.GetCSVData("ResourcesContent", "Common", "pageheading");
            Console.WriteLine("actualtxt" + atrval + "expected" + actualtxt.ElementAt(0)[4]);
            Assert.AreEqual(actualtxt.ElementAt(0)[4], atrval);

            //Family Content
            Page_FamilyContent fc = new Page_FamilyContent();

            atrval    = fc.VerifyFamilyContentFromTab();
            actualtxt = CSVReaderDataTable.GetCSVData("ResourcesContent", "Common", "pageheading");
            TestContext.WriteLine("expected" + actualtxt.ElementAt(0)[4]);
            TestContext.WriteLine("actualtxt" + atrval + "expected" + actualtxt.ElementAt(0)[4]);
            Assert.AreEqual(actualtxt.ElementAt(0)[4], atrval);
        }
Пример #2
0
        public void TC_Resources()
        {
            SeleniumKeywords.RefreshPage();
            System.Threading.Thread.Sleep(3000);
            cmn.OpenHamMenu();
            cmn.ClickOnResourcesMenu();
            Page_HealthContent phc       = new Page_HealthContent();
            List <string[]>    actualtxt = CSVReaderDataTable.GetCSVData("ResourcesContent", "HealthContent", "pageheading");
            string             atrval    = phc.VerifyHealthContentPage();

            Console.WriteLine("actualtxt" + atrval + "expected" + actualtxt.ElementAt(0)[4]);
            Assert.AreEqual(actualtxt.ElementAt(0)[4], atrval);

            // Symptom Checker Tab
            Page_SymptomChecker psc = new Page_SymptomChecker();

            atrval    = psc.VerifySymptomCheckerPageFromTab();
            actualtxt = CSVReaderDataTable.GetCSVData("ResourcesContent", "SymptomChecker", "pageheading");
            Console.WriteLine("actualtxt" + atrval + "expected" + actualtxt.ElementAt(0)[4]);
            Assert.AreEqual(actualtxt.ElementAt(0)[4], atrval);

            // Well Being Content Tab
            Page_WellBeingContent wbc = new Page_WellBeingContent();

            atrval    = wbc.VerifyWellBeingFromTab();
            actualtxt = CSVReaderDataTable.GetCSVData("ResourcesContent", "Common", "pageheading");
            Console.WriteLine("actualtxt" + atrval + "expected" + actualtxt.ElementAt(0)[4]);
            Assert.AreEqual(actualtxt.ElementAt(0)[4], atrval);

            //Family Content
            Page_FamilyContent fc = new Page_FamilyContent();

            atrval    = fc.VerifyFamilyContentFromTab();
            actualtxt = CSVReaderDataTable.GetCSVData("ResourcesContent", "Common", "pageheading");
            TestContext.WriteLine("expected" + actualtxt.ElementAt(0)[4]);
            TestContext.WriteLine("actualtxt" + atrval + "expected" + actualtxt.ElementAt(0)[4]);
            Assert.AreEqual(actualtxt.ElementAt(0)[4], atrval);

            Resources rs = new Resources();

            rs.TC_VerifySymptomCheckerPage();
            rs.TC_VerifyWellBeingContentPage();
            rs.TC_VerifyReportsPage();
            rs.TC_VerifyAssessmentsPage();
            rs.TC_VerifyPHRPage();
        }