Esempio n. 1
0
        public void TC_VerifyProgressCheckinReport()
        {
            Page_ManagingStressProgressCheckIn pprogress = new Page_ManagingStressProgressCheckIn(softassertions);

            is_soft_assert = true;
            pprogress.VerifyProgressCheckinReportBottomLinks(clientname);
            softassertions.AssertAll();
        }
Esempio n. 2
0
        public void TC_FillManageStressProgressCheckIn()
        {
            Page_ManagingStressProgressCheckIn mspc = new Page_ManagingStressProgressCheckIn(softassertions);

            is_soft_assert = true;
            mspc.CompleteProgressCheckIn();
            softassertions.AssertAll();
        }
Esempio n. 3
0
        public void TC_ValidateProgressCheckInReportButtomLink()
        {
            //Page_Login plogin = new Page_Login();
            //plogin.Login();
            //Page_HAPrompt haprompt = new Page_HAPrompt();
            //haprompt.GoToDashboard();
            //cmn.ClickProgressCheckinMenu();
            Page_ManagingStressProgressCheckIn pprogress = new Page_ManagingStressProgressCheckIn(softassertions);

            is_soft_assert = true;
            pprogress.VerifyProgressCheckinReportBottomLinks(GlobalVariables.clientname);
            softassertions.AssertAll();
            cmn.ClickFooterDashboardLink();
            cmn.LogOut();
        }
Esempio n. 4
0
        //[Category("ProdSanity")]
        public void TC_FillProgressCheckin()
        {
            //To call the Page Login Method
            Page_Login plogin = new Page_Login();

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

            haprompt.GoToDashboard();
            // points = cmn.GetPoints();
            Common coursemenu = new Common();

            coursemenu.ClickCourseMenu();
            //Page_WeightManagementCourse pcourse = new Page_WeightManagementCourse();
            Page_ManageStressCourse pcourse = new Page_ManageStressCourse();

            pcourse.NavigateToCourse();
            CommonCourses cmnc = new CommonCourses();

            cmnc.GoToProgressCheckin();
            Page_ManagingStressProgressCheckIn pc = new Page_ManagingStressProgressCheckIn(softassertions);

            pc.FillProgresscheckinFromCourse();
            is_soft_assert = true;
            softassertions.AssertAll();
            ////List<string[]> result = pc.VerifyProgressCheckIn();
            //is_soft_assert = false;
            //Assert.Multiple(() =>
            //{
            //    for (int i = 0; i < result.Count; i++)
            //    {
            //        bool textmatchresult = Convert.ToBoolean(result.ElementAt(i)[1]);
            //        string msg = result.ElementAt(i)[0];
            //        Assert.IsTrue(textmatchresult, msg);
            //    }
            //}
            //);
            //cmn.LogOut();
        }
Esempio n. 5
0
        public void TC_VerifyManagingStressProgressCheckin()
        {
            //To call the Page Login Method
            Page_Login plogin = new Page_Login();

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

            haprompt.GoToDashboard();
            isenabled = cmn.GetConfig("IncentiveEnabled").ElementAt(0)[1].ToLower();
            if (isenabled.Equals("true"))
            {
                points = cmn.GetPoints(GlobalVariables.clientname);
            }
            cmn.ClickProgressCheckinMenu();
            Page_ManagingStressProgressCheckIn mspc = new Page_ManagingStressProgressCheckIn(softassertions);

            is_soft_assert = true;
            mspc.CompleteProgressCheckIn();

            softassertions.AssertAll();
        }