示例#1
0
        public void DIR_Packages_Recreate()
        {
            WF_QaRcrdCtrl_QaDIR.LoginToDirPage(UserType.DIRMgrQA);
            QaRcrdCtrl_QaDIR.ClickTab_Packages();
            WF_QaRcrdCtrl_QaDIR.FilterRecreateColumnWithoutButtonAscending();

            string weekStartDate = QaRcrdCtrl_QaDIR.GetDirPackageWeekStartFromRow();
            string packageNumber = QaRcrdCtrl_QaDIR.GetDirPackageNumberFromRow();

            string[] dirNumbers = QaRcrdCtrl_QaDIR.GetDirPackageDirNumbersFromRow(PackagesColumnNameType.DIRs);
            LogoutToLoginPage();

            WF_QaRcrdCtrl_QaDIR.LoginToDirPage(UserType.DIRTechQA);
            string newDirNumber = WF_QaRcrdCtrl_QaDIR.Create_DirRevision_For_Package_Recreate_ComplexWF_EndToEnd(weekStartDate, packageNumber, dirNumbers);

            LogoutToLoginPage();

            WF_QaRcrdCtrl_QaDIR.LoginToDirPage(UserType.DIRMgrQA, true);
            WF_QaRcrdCtrl_QaDIR.Verify_DIR_then_Approve_inReview(newDirNumber);
            WF_QaRcrdCtrl_QaDIR.Verify_DIR_then_Approve_inAuthorization(newDirNumber);

            WF_QaRcrdCtrl_QaDIR.LoginToDirPage(UserType.DIRMgrQA);
            AddAssertionToList(QaRcrdCtrl_QaDIR.VerifyDirIsDisplayed(GridTabType.Attachments, newDirNumber), "VerifyDirIsDisplayed in 'Attachments' tab");
            GridHelper.ClickEditBtnForRow();
            QaRcrdCtrl_QaDIR.ClickBtn_Save_Forward();

            AddAssertionToList(QaRcrdCtrl_QaDIR.VerifyDirIsDisplayed(GridTabType.QC_Review, newDirNumber), "VerifyDirIsDisplayed in 'QC Review' tab");
            GridHelper.ClickEditBtnForRow();
            WF_QaRcrdCtrl_QaDIR.ClickBtn_ApproveOrNoError();

            AddAssertionToList(QaRcrdCtrl_QaDIR.VerifyDirIsDisplayed(GridTabType.To_Be_Closed, newDirNumber), "VerifyDirIsDisplayed in 'To Be Closed' tab");
            GridHelper.ClickCloseDirBtnForRow(newDirNumber);

            QaRcrdCtrl_QaDIR.ClickTab_Packages();
            QaRcrdCtrl_QaDIR.VerifyRecreateBtnIsDisplayed(packageNumber, newDirNumber);

            //need DB cleanup
            AssertAll();
        }