public void Filter_of_DIR_Table_ComplexWF() { string dirRev = "A"; var currentUser = UserType.DIRTechQA; WF_QaRcrdCtrl_QaDIR.LoginToDirPage(currentUser); string dirNumber = WF_QaRcrdCtrl_QaDIR.Create_and_SaveOnly_DIR(); WF_QaRcrdCtrl_QaDIR.Edit_DIR_inCreate_and_Verify_AutoSaveTimerRefresh_then_Save(dirNumber); WF_QaRcrdCtrl_QaDIR.Verify_Column_Filter_In_Create(currentUser, dirNumber, dirRev, false, true); LogoutToLoginPage(); currentUser = UserType.DIRMgrQA; WF_QaRcrdCtrl_QaDIR.LoginToDirPage(currentUser, true); WF_QaRcrdCtrl_QaDIR.Verify_Column_Filter_ForTabs_In_QaFieldMenu(currentUser, dirNumber, dirRev); //2nd half of ComplexWF WF_QaRcrdCtrl_QaDIR.Verify_Column_Filter_In_Attachments(currentUser, dirNumber, dirRev, true); WF_QaRcrdCtrl_QaDIR.Verify_Column_Filter_In_Revise(currentUser, dirNumber, dirRev); WF_QaRcrdCtrl_QaDIR.Verify_Column_Filter_In_QcReview(currentUser, dirNumber, dirRev); WF_QaRcrdCtrl_QaDIR.Verify_Column_Filter_In_ToBeClosed(currentUser, dirNumber, dirRev, true); AddAssertionToList(QaSearch_DIR.VerifyDirWorkflowLocationBySearch(dirNumber, WorkflowLocation.Closed), "QaSearch_DIR.VerifyDirWorkflowLocationBySearch"); WF_QaRcrdCtrl_QaDIR.VerifyDbCleanupForDIR(dirNumber); AssertAll(); }
public void DIR_ComplexWF_End_To_End() { Report.Step("Workflow: SimpleWF portion of ComplexWF (QaField menu)"); WF_QaRcrdCtrl_QaDIR.LoginToDirPage(UserType.DIRTechQA); string dirNumber = WF_QaRcrdCtrl_QaDIR.Create_and_SaveForward_DIR(); LogoutToLoginPage(); WF_QaRcrdCtrl_QaDIR.LoginToDirPage(UserType.DIRMgrQA, true); WF_QaRcrdCtrl_QaDIR.Return_DIR_ForRevise_FromQcReview_then_Edit_SaveForward(dirNumber); WF_QaRcrdCtrl_QaDIR.Modify_Cancel_Verify_inCreateRevise(dirNumber); WF_QaRcrdCtrl_QaDIR.Modify_Save_Verify_and_SaveForward_inCreateRevise(dirNumber); WF_QaRcrdCtrl_QaDIR.Verify_DIR_then_Approve_inReview(dirNumber); WF_QaRcrdCtrl_QaDIR.Return_DIR_ForRevise_FromAuthorization_then_ForwardToAuthorization(dirNumber); WF_QaRcrdCtrl_QaDIR.Verify_DIR_then_Approve_inAuthorization(dirNumber); AddAssertionToList(WF_QaRcrdCtrl_QaDIR.VerifyWorkflowLocationAfterSimpleWF(dirNumber), "VerifyWorkflowLocationAfterSimpleWF"); Report.Step("Workflow: ComplexWF portion (QaRecordControl menu)"); NavigateToPage.QARecordControl_QA_DIRs(); AddAssertionToList(QaRcrdCtrl_QaDIR.VerifyDirIsDisplayed(GridTabType.Attachments, dirNumber), "VerifyDirIsDisplayed in Attachments Tab"); GridHelper.ClickEditBtnForRow(); QaRcrdCtrl_QaDIR.ClickBtn_Back_To_Field(); NavigateToPage.QAField_QA_DIRs(); AddAssertionToList(WF_QaRcrdCtrl_QaDIR.VerifyDirIsDisplayedInRevise(dirNumber), "VerifyDirIsDisplayed in >>QA Field>>QA DIRs in Revise Tab after (clicked 'Back To Field')"); GridHelper.ClickEditBtnForRow(); QaRcrdCtrl_QaDIR.ClickBtn_Save_Forward(); WF_QaRcrdCtrl_QaDIR.Verify_DIR_then_Approve_inReview(dirNumber); WF_QaRcrdCtrl_QaDIR.Verify_DIR_then_Approve_inAuthorization(dirNumber); Report.Step("Workflow: Modify_Upload_and_VerifyCancel_VerifySave_inAttachments"); NavigateToPage.QARecordControl_QA_DIRs(); AddAssertionToList(QaRcrdCtrl_QaDIR.VerifyDirIsDisplayed(GridTabType.Attachments, dirNumber), "VerifyDirIsDisplayed in Attachments Tab"); GridHelper.ClickEditBtnForRow(); string fileName = UploadFile(); AddAssertionToList(VerifyUploadedFileNames(fileName, true), "VerifyUploadedFileNames Before 'Edit DIR, Cancel' - (Expected) File 'test.xlsx' should be seen"); QaRcrdCtrl_QaDIR.ClickBtn_Cancel(); AddAssertionToList(QaRcrdCtrl_QaDIR.VerifyDirIsDisplayed(GridTabType.Attachments, dirNumber), "VerifyDirIsDisplayed in Attachments Tab"); GridHelper.ClickEditBtnForRow(); AddAssertionToList(VerifyUploadedFileNames(""), "VerifyUploadedFileNames After 'Edit DIR, Cancel' - (Expected) No files are seen"); fileName = UploadFile(); QaRcrdCtrl_QaDIR.ClickBtn_Save(); AddAssertionToList(QaRcrdCtrl_QaDIR.VerifyDirIsDisplayed(GridTabType.Attachments, dirNumber), "VerifyDirIsDisplayed in Attachments Tab"); GridHelper.ClickEditBtnForRow(); AddAssertionToList(VerifyUploadedFileNames(fileName), "VerifyUploadedFileNames After 'Edit DIR, Save' - (Expected) File 'test.xlsx' should be seen"); Report.Step("Workflow: 01"); WF_QaRcrdCtrl_QaDIR.ClickBtn_KickBackOrRevise();//1 AddAssertionToList(QaRcrdCtrl_QaDIR.VerifyDirIsDisplayed(GridTabType.Revise, dirNumber), "VerifyDirIsDisplayed in (QaRecordControl) Revise Tab after (clicked 'Revise' from Attachments)"); GridHelper.ClickEditBtnForRow(); AddAssertionToList(VerifyUploadedFileNames(fileName), "VerifyUploadedFileNames After 'Return DIR for Revise' - (Expected) File 'test.xlsx' should be seen"); Report.Step("Workflow: 02"); QaRcrdCtrl_QaDIR.ClickBtn_Send_To_Attachment();//2 AddAssertionToList(QaRcrdCtrl_QaDIR.VerifyDirIsDisplayed(GridTabType.Attachments, dirNumber), "VerifyDirIsDisplayed in Attachments Tab after (clicked 'Send To Attachments' from Revise)"); GridHelper.ClickEditBtnForRow(); Report.Step("Workflow: 03"); QaRcrdCtrl_QaDIR.ClickBtn_Save_Forward();//3 AddAssertionToList(QaRcrdCtrl_QaDIR.VerifyDirIsDisplayed(GridTabType.QC_Review, dirNumber), "VerifyDirIsDisplayed in QC Review Tab after (clicked 'Save Forward' from Attachments)"); GridHelper.ClickEditBtnForRow(); Report.Step("Workflow: 04"); WF_QaRcrdCtrl_QaDIR.ClickBtn_KickBackOrRevise();//4 AddAssertionToList(QaRcrdCtrl_QaDIR.VerifyDirIsDisplayed(GridTabType.Revise, dirNumber), "VerifyDirIsDisplayed in (QaRecordControl) Revise Tab after (clicked 'Revise' from QC Review)"); GridHelper.ClickEditBtnForRow(); Report.Step("Workflow: 05"); QaRcrdCtrl_QaDIR.ClickBtn_Save_Forward();//5 AddAssertionToList(QaRcrdCtrl_QaDIR.VerifyDirIsDisplayed(GridTabType.QC_Review, dirNumber), "VerifyDirIsDisplayed in QC Review Tab after (clicked 'Save Forward' from Revise)"); GridHelper.ClickEditBtnForRow(); Report.Step("Workflow: 06"); WF_QaRcrdCtrl_QaDIR.ClickBtn_ApproveOrNoError();//6 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); Report.Step("Workflow: 07"); WF_QaRcrdCtrl_QaDIR.ClickBtn_KickBackOrRevise();//7 AddAssertionToList(QaRcrdCtrl_QaDIR.VerifyDirIsDisplayed(GridTabType.Revise, dirNumber), "VerifyDirIsDisplayed in (QaRecordControl) Revise Tab after (clicked 'Revise' from To Be Closed)"); GridHelper.ClickEditBtnForRow(); Report.Step("Workflow: 08"); QaRcrdCtrl_QaDIR.ClickBtn_Save_Forward();//8 AddAssertionToList(QaRcrdCtrl_QaDIR.VerifyDirIsDisplayed(GridTabType.QC_Review, dirNumber), "VerifyDirIsDisplayed in QC Review Tab after (clicked 'Save Forward' from Revise - 2ndRound)"); GridHelper.ClickEditBtnForRow(); Report.Step("Workflow: 09"); WF_QaRcrdCtrl_QaDIR.ClickBtn_ApproveOrNoError();//9 AddAssertionToList(QaRcrdCtrl_QaDIR.VerifyDirIsDisplayed(GridTabType.To_Be_Closed, dirNumber), "VerifyDirIsDisplayed in To Be Closed Tab after (clicked 'No Error' from QC Review - 2ndRound)"); GridHelper.ToggleCheckBoxForRow(dirNumber); Report.Step("Workflow: 10"); QaRcrdCtrl_QaDIR.ClickBtn_Close_Selected(); AddAssertionToList(QaSearch_DIR.VerifyDirWorkflowLocationBySearch(dirNumber, WorkflowLocation.Closed), "QaSearch_DIR.VerifyDirWorkflowLocationBySearch"); WF_QaRcrdCtrl_QaDIR.VerifyDbCleanupForDIR(dirNumber); AssertAll(); }