public void Create_And_Save_CDR_Document()
        {
            string cdrDescription = WF_QaRcrdCtrl_GeneralCDR.CreateAndSaveForwardCDRDocument(UserType.CDRTech);

            AddAssertionToList(QaRcrdCtrl_GeneralCDR.VerifyCDRDocIsDisplayed(TableTab.QC_Review), "VerifyCDRDocIsDisplayedinQCReviewTab");
            AssertAll();
        }
        public void CDR_ComplexWF_End_To_End()
        {
            string cdrDescription = WF_QaRcrdCtrl_GeneralCDR.CreateAndSaveForwardCDRDocument(UserType.CDRTech);

            AddAssertionToList(QaRcrdCtrl_GeneralCDR.VerifyCDRDocIsDisplayed(TableTab.QC_Review, cdrDescription), "VerifyCDRDocIsDisplayed(TableTab.QC_Review)");
            GridHelper.ClickEditBtnForRow();
            Report.Step("STEP:------------send to revise from Review------------");
            QaRcrdCtrl_GeneralCDR.ClickBtn_Revise();
            AddAssertionToList(QaRcrdCtrl_GeneralCDR.VerifyCDRDocIsDisplayed(TableTab.Revise, cdrDescription), "VerifyCDRDocIsDisplayed(TableTab.Revise)");
            GridHelper.ClickEditBtnForRow();

            Report.Step("STEP:------------cancel, edit/saveonly in Revise------------");
            QaRcrdCtrl_GeneralCDR.EnterDescription("New CDR Description", true);
            QaRcrdCtrl_GeneralCDR.ClickBtn_Cancel();
            AddAssertionToList(QaRcrdCtrl_GeneralCDR.VerifyCDRDocIsDisplayed(TableTab.Revise, cdrDescription), "VerifyCDRDocIsDisplayed(TableTab.Revise)");
            GridHelper.ClickEditBtnForRow();
            cdrDescription = QaRcrdCtrl_GeneralCDR.EnterDescription();
            QaRcrdCtrl_GeneralCDR.ClickBtn_SaveOnly();
            AddAssertionToList(QaRcrdCtrl_GeneralCDR.VerifyCDRDocIsDisplayed(TableTab.Revise, cdrDescription), "VerifyCDRDocIsDisplayed(TableTab.Revise)");
            GridHelper.ClickEditBtnForRow();

            Report.Step("STEP:------------save&fwd in Review------------");
            QaRcrdCtrl_GeneralCDR.ClickBtn_SaveForward();
            AddAssertionToList(QaRcrdCtrl_GeneralCDR.VerifyCDRDocIsDisplayed(TableTab.QC_Review, cdrDescription), "VerifyCDRDocIsDisplayed(TableTab.QC_Review)");
            GridHelper.ClickEditBtnForRow();

            Report.Step("STEP:------------save&fwd in Disposition------------");
            QaRcrdCtrl_GeneralCDR.ClickBtn_SaveForward();
            AddAssertionToList(QaRcrdCtrl_GeneralCDR.VerifyCDRDocIsDisplayed(TableTab.Disposition, cdrDescription), "VerifyCDRDocIsDisplayed(TableTab.Disposition)");
            GridHelper.ClickEditBtnForRow();


            Report.Step("STEP:------------save&fwd in ToBeClosed------------");
            QaRcrdCtrl_GeneralCDR.ClickBtn_SaveForward();
            AddAssertionToList(QaRcrdCtrl_GeneralCDR.VerifyCDRDocIsDisplayed(TableTab.To_Be_Closed, cdrDescription), "VerifyCDRDocIsDisplayed(TableTab.To_Be_Closed)");
            GridHelper.ClickEditBtnForRow();

            Report.Step("STEP:------------send Back to Disposition from ToBeClosed------------");
            QaRcrdCtrl_GeneralCDR.ClickBtn_Back_To_Disposition();
            AddAssertionToList(QaRcrdCtrl_GeneralCDR.VerifyCDRDocIsDisplayed(TableTab.Disposition, cdrDescription), "VerifyCDRDocIsDisplayed(TableTab.Disposition)");
            GridHelper.ClickEditBtnForRow();

            Report.Step("STEP:------------send back to QC review from Disposition------------");
            QaRcrdCtrl_GeneralCDR.ClickBtn_Back_To_QC_Review();
            AddAssertionToList(QaRcrdCtrl_GeneralCDR.VerifyCDRDocIsDisplayed(TableTab.QC_Review, cdrDescription), "VerifyCDRDocIsDisplayed(TableTab.QC_Review)");
            GridHelper.ClickEditBtnForRow();

            Report.Step("STEP:------------save&fwd in Disposition------------");
            QaRcrdCtrl_GeneralCDR.ClickBtn_SaveForward();
            AddAssertionToList(QaRcrdCtrl_GeneralCDR.VerifyCDRDocIsDisplayed(TableTab.Disposition, cdrDescription), "VerifyCDRDocIsDisplayed(TableTab.Disposition)");
            GridHelper.ClickEditBtnForRow();

            Report.Step("STEP:------------verify closed in Closed tab------------");
            QaRcrdCtrl_GeneralCDR.ClickBtn_SaveForward();
            AddAssertionToList(QaRcrdCtrl_GeneralCDR.VerifyCDRDocIsDisplayed(TableTab.To_Be_Closed, cdrDescription), "VerifyCDRDocIsDisplayed(TableTab.To_Be_Closed)");
            GridHelper.ClickEditBtnForRow();
            QaRcrdCtrl_GeneralCDR.ClickBtn_CloseCDR();
            AddAssertionToList(QaRcrdCtrl_GeneralCDR.VerifyCDRDocIsDisplayed(TableTab.Closed_DN, cdrDescription), "VerifyCDRDocIsDisplayed(TableTab.Closed_DN)");
            AssertAll();
        }
        public void QC_Review_of_CDR_document_by_CDR_Manager()
        {
            string cdrDescription = WF_QaRcrdCtrl_GeneralCDR.CreateAndSaveForwardCDRDocument(UserType.CDRTech);

            LogoutToLoginPage();
            WF_QaRcrdCtrl_GeneralCDR.ReviewCDRDocument(UserType.CDRTech, cdrDescription);
            Assert.True(QaRcrdCtrl_GeneralCDR.VerifyCDRDocIsDisplayed(TableTab.To_Be_Closed, cdrDescription));
        }
        public void Revise_the_CDR_Document()
        {
            string cdrDescription = WF_QaRcrdCtrl_GeneralCDR.CreateAndSaveForwardCDRDocument(UserType.CDRTech);

            LogoutToLoginPage();
            WF_QaRcrdCtrl_GeneralCDR.ReviewAndReviseCDRDocument(UserType.CDRTech, cdrDescription);

            Assert.True(QaRcrdCtrl_GeneralCDR.VerifyCDRDocIsDisplayed(TableTab.Revise, cdrDescription));
        }
        public void Disposition_Of_the_CDR_Document()
        {
            string cdrDescription = WF_QaRcrdCtrl_GeneralCDR.CreateAndSaveForwardCDRDocument(UserType.CDRTech);

            LogoutToLoginPage();
            WF_QaRcrdCtrl_GeneralCDR.ReviewCDRDocument(UserType.CDRTech, cdrDescription);
            Assert.True(QaRcrdCtrl_GeneralCDR.VerifyCDRDocIsDisplayed(TableTab.Disposition, cdrDescription));
            LogoutToLoginPage();
            WF_QaRcrdCtrl_GeneralCDR.DispositionCDRDocument(UserType.CDRTech, cdrDescription);
            Assert.True(QaRcrdCtrl_GeneralCDR.VerifyCDRDocIsDisplayed(TableTab.To_Be_Closed, cdrDescription));
        }
        public void KickBack_To_QC_Review_the_CDR_Document()
        {
            // string cdrDescription = "UASpeuycVMIunVSWlLAYEEypBS";
            string cdrDescription = WF_QaRcrdCtrl_GeneralCDR.CreateAndSaveForwardCDRDocument(UserType.CDRTech);

            LogoutToLoginPage();
            WF_QaRcrdCtrl_GeneralCDR.ReviewCDRDocument(UserType.CDRTech, cdrDescription);
            Assert.True(QaRcrdCtrl_GeneralCDR.VerifyCDRDocIsDisplayed(TableTab.Disposition, cdrDescription));
            LogoutToLoginPage();
            WF_QaRcrdCtrl_GeneralCDR.KickBackToQCReviewCDR(UserType.CDRTech, cdrDescription);
            Assert.True(QaRcrdCtrl_GeneralCDR.VerifyCDRDocIsDisplayed(TableTab.QC_Review, cdrDescription));
        }
        public void QC_Review_of_CDR_document()
        {
            //string cdrDescription = "UASpeuycVMIunVSWlLAYEEypBS"; //chnage the name once you create new CDR
            //WF_QaRcrdCtrl_GeneralCDR.ReviewAndApproveCDRDocument(UserType.CDRTech, cdrDescription);
            //string cdrDescription = WF_QaRcrdCtrl_GeneralCDR.CreateAndSaveForwardCDRDocument(UserType.CDRTech);
            //LogoutToLoginPage();
            string cdrDescription = WF_QaRcrdCtrl_GeneralCDR.CreateAndSaveForwardCDRDocument(UserType.CDRTech);

            LogoutToLoginPage();
            WF_QaRcrdCtrl_GeneralCDR.ReviewCDRDocument(UserType.CDRTech, cdrDescription);
            Assert.True(QaRcrdCtrl_GeneralCDR.VerifyCDRDocIsDisplayed(TableTab.Disposition, cdrDescription));
        }