Exemple #1
0
        public void Inspection_Deficiency_Log_Report_for_QaDIR_With_Deficiencies()
        {
            WF_QaRcrdCtrl_QaDIR.LoginToDirPage(UserType.DIRTechQA);
            string[] dirNumbers = WF_QaRcrdCtrl_QaDIR.Create_and_SaveForward_DIR_with_Failed_Inspection_and_PreviousFailingReports();
            string   dirNumber  = dirNumbers[0];
            string   previousFailedDirNumber = dirNumbers[1];

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

            NavigateToPage.QARecordControl_QA_DIRs();
            AddAssertionToList(QaRcrdCtrl_QaDIR.VerifyDirIsDisplayed(GridTabType.Attachments, dirNumber), "VerifyDirIsDisplayed in Attachments Tab");
            GridHelper.ClickEditBtnForRow();
            AddAssertionToList(QaRcrdCtrl_QaDIR.VerifyPreviousFailingDirEntry(previousFailedDirNumber), $"VerifyPreviousFailingDirEntry in Attachments: {previousFailedDirNumber}");
            QaRcrdCtrl_QaDIR.ClickBtn_Save_Forward();

            AddAssertionToList(QaRcrdCtrl_QaDIR.VerifyDirIsDisplayed(GridTabType.QC_Review, dirNumber), "VerifyDirIsDisplayed in QC Review Tab after (clicked 'Save Forward' from Attachments)");
            GridHelper.ClickEditBtnForRow();
            AddAssertionToList(QaRcrdCtrl_QaDIR.VerifyPreviousFailingDirEntry(previousFailedDirNumber), $"VerifyPreviousFailingDirEntry in QaRcrdCtrl_QcReview: {previousFailedDirNumber}");
            WF_QaRcrdCtrl_QaDIR.ClickBtn_ApproveOrNoError();

            AddAssertionToList(QaRcrdCtrl_QaDIR.VerifyDirIsDisplayed(GridTabType.To_Be_Closed, dirNumber), "VerifyDirIsDisplayed in To Be Closed Tab after (clicked 'No Error' from QC Review)");
            GridHelper.ClickEditBtnForRow(dirNumber, true, true);
            AddAssertionToList(QaRcrdCtrl_QaDIR.VerifyPreviousFailingDirEntry(previousFailedDirNumber), $"VerifyPreviousFailingDirEntry in ToBeClosed: {previousFailedDirNumber}");
            QaRcrdCtrl_QaDIR.ClickBtn_Cancel();

            NavigateToPage.QASearch_Inspection_Deficiency_Log_Report();
            AddAssertionToList(QaSearch_InspctDefncyLogRprt.VerifyDirIsDisplayed(InspectionDeficiencyLogReport.ColumnName.DIR_No, dirNumber), $"InspctDefncyLogRprt.VerifyDirIsDisplayed DIR No: {dirNumber}");
            GridHelper.ClearTableFilters();
            AddAssertionToList(QaSearch_InspctDefncyLogRprt.VerifyDirIsDisplayed(InspectionDeficiencyLogReport.ColumnName.Closed_Dir, previousFailedDirNumber), $"InspctDefncyLogRprt.VerifyDirIsDisplayed Previously Failed DIR No: {previousFailedDirNumber}");
            WF_QaRcrdCtrl_QaDIR.VerifyDbCleanupForDIR(dirNumber);
            AssertAll();
        }
        public void VerifyGridHelper()
        {
            LoginAs(UserType.IQFAdmin);
            NavigateToPage.RMCenter_Design_Documents();
            GridHelper.ClickTab(DesignDocument.TableTab.Pending_Response);
            GridHelper.SortColumnAscending(DesignDocument.ColumnName.Action);
            GridHelper.SortColumnDescending(DesignDocument.ColumnName.Action);
            GridHelper.SortColumnToDefault(DesignDocument.ColumnName.Action);
            GridHelper.FilterColumn(DesignDocument.ColumnName.Number, "AJhZSDRCBLSKvmwANBPbkiVSWn", TableType.MultiTab);
            GridHelper.ClearTableFilters();
            GridHelper.FilterColumn(DesignDocument.ColumnName.Title, "GarnetCommentReviewRegularComment_DsgnDocTtl", TableType.MultiTab, FilterOperator.EqualTo, FilterLogic.Or, "ATM-PLC-T-00011_UTL-ATM_HDPE-RPLMNT");
            GridHelper.ClickEnterBtnForRow();
            //GridHelper.ClickCommentTabNumber(2);
            //DesignDocCommentReview.ClickBtn_BackToList();

            //GridHelper.ClickTab(DesignDocument.TableTab.Requires_Resolution);
            //GridHelper.ClickTab(DesignDocument.TableTab.Pending_Closing);
            //GridHelper.ClickTab(DesignDocument.TableTab.Closed);
            //GridHelper.ClickTab(DesignDocument.TableTab.Requires_Comment);
            //NavigateToPage.RMCenter_Search();
            //GridHelper.GoToPageNumber(5);
            //GridHelper.GoToLastPage();
            //GridHelper.GoToPreviousPage();
            //GridHelper.GoToFirstPage();
            //GridHelper.GoToNextPage();
        }
 public void NCR_FilterAndSort()
 {
     Report.Info($"Testing, UserAccts for {tenantName}");
     LoginAs(UserType.NCRMgr);
     NavigateToPage.QARecordControl_General_NCR();
     QaRcrdCtrl_GeneralNCR.FilterDescription();
     GridHelper.ClearTableFilters();
     QaRcrdCtrl_GeneralNCR.SortTable_Descending();
     Thread.Sleep(2000);
     QaRcrdCtrl_GeneralNCR.SortTable_Ascending();
     Thread.Sleep(2000);
     QaRcrdCtrl_GeneralNCR.SortTable_ToDefault();
 }
Exemple #4
0
        public void Inspection_Deficiency_Log_Report_for_QaDIR_With_Deficiencies()
        {
            WF_QaRcrdCtrl_QaDIR.LoginToDirPage(UserType.DIRTechQA);
            string[] dirNumbers      = WF_QaRcrdCtrl_QaDIR.Create_and_SaveForward_DIR_with_Failed_Inspection_and_PreviousFailingReports();
            string   dirNumber       = dirNumbers[0];
            string   failedDirNumber = dirNumbers[1];

            LogoutToLoginPage();
            WF_QaRcrdCtrl_QaDIR.LoginToDirPage(UserType.DIRMgrQA);
            WF_QaRcrdCtrl_QaDIR.Verify_DIR_then_Approve_inReview(dirNumber);
            WF_QaRcrdCtrl_QaDIR.Verify_DIR_then_Approve_inAuthorization(dirNumber);

            NavigateToPage.QASearch_Inspection_Deficiency_Log_Report();
            AddAssertionToList(QaSearch_InspctDefncyLogRprt.VerifyDirIsDisplayed(InspectionDeficiencyLogReport.ColumnName.DIR_No, dirNumber), $"InspctDefncyLogRprt.VerifyDirIsDisplayed DIR No: {dirNumber}");
            GridHelper.ClearTableFilters();
            AddAssertionToList(QaSearch_InspctDefncyLogRprt.VerifyDirIsDisplayed(InspectionDeficiencyLogReport.ColumnName.Closed_Dir, failedDirNumber), $"InspctDefncyLogRprt.VerifyDirIsDisplayed Previously Failed DIR No: {failedDirNumber}");
            WF_QaRcrdCtrl_QaDIR.VerifyDbCleanupForDIR(dirNumber);
            AssertAll();
        }