public void VerifyPhonicsNewUploadedTestMaterial() { uploadTestMaterialLib.SetUpPreCondition(); /*Login to CM */ commFunc.LoginIntoCM("STA_CM", excelUtil.GetDataFromExcel("CM_UserName"), excelUtil.GetDataFromExcel("CM_Password")); /*Search Case Rferance*/ commFunc.SearchCaseReferance(excelUtil.GetDataFromExcel("CaseRefeNo"), null, null); /*Create New form*/ commFunc.CreateNewFrom(excelUtil.GetDataFromExcel("FormName")); uploadTestMaterialLib.selectUploadDocumentType(true, true); /*Fill Forms*/ uploadTestMaterialLib.SelectCategoriesAndSubject(excelUtil.GetDataFromExcel("Category"), excelUtil.GetDataFromExcel("SubCategory"), null); uploadTestMaterialLib.FillUploadTestMaterialSection(excelUtil.GetDataFromExcel("uploadFileName1"), excelUtil.GetDataFromExcel("uploadFileDec1"), commFunc.GetCurrentDate("dd-MMM-yyyy"), commFunc.GetPastOrFutureDate(0, 1, 0, "dd-MMM-yyyy")); commFunc.NaviagteToNextPage(); uploadTestMaterialLib.DeletePreviouslyUploadTestMaterial(); // Submit form commFunc.SubmitForm(); // verify application submission confirmation message VerifyIsEquals(excelUtil.GetDataFromExcel("FormSubmissionConfMsg"), commFunc.GetFormSubmissionConfirmationMsg(), "Check Upload Test Document confrmation message."); // Launch Portal application viewKS1KS2TestMaterialLib.SetUpPreCondition("STA_PORTAL"); // Logint ot portal and naviagte to respective form viewKS1KS2TestMaterialLib.LoginAndNavigatToViewTestMaterialForm(excelUtil.GetDataFromExcel("UserName"), excelUtil.GetDataFromExcel("Password"), "Phonics"); comFunc.StartApplication(); VerifyIsTrue(viewKS1KS2TestMaterialLib.IsUploadedDocDisplayed(excelUtil.GetDataFromExcel("uploadFileDec1")), "Check Uploaded Doucment should displayed view KS1 test Material"); viewKS1KS2TestMaterialLib.DownloadDocument(excelUtil.GetDataFromExcel("uploadFileDec1")); VerifyIsTrue(commFunc.IsDoucmentDownloaded(excelUtil.GetDataFromExcel("uploadFileName1")), "Check Doucment should able to download"); //Verify Event log in cm */ commFunc.LoginIntoCM("STA_CM", excelUtil.GetDataFromExcel("CM_UserName"), excelUtil.GetDataFromExcel("CM_Password")); /*Search Case Rferance*/ commFunc.SearchCaseReferance(excelUtil.GetDataFromExcel("CaseRefeNo"), null, null); /*Create New form*/ commFunc.CreateNewFrom(eventLogOfDownload); eventLogsOfDownloadLib.SetUpPreCondition(); // Fill Event log of download form eventLogsOfDownloadLib.FillEventLogOFDownloadForm(excelUtil.GetDataFromExcel("uploadFileDec1"), comFunc.GetCurrentDate("dd-MMM-yyyy"), comFunc.GetCurrentDate("dd-MMM-yyyy")); // Verify log for dwonlowed doucment eventLogsOfDownloadLib.CheckSearchResult(excelUtil.GetDataFromExcel("SchoolName"), excelUtil.GetDataFromExcel("UserName")); }
public void VerifyUploadDocTestFromCM() { commFunc.LoginIntoCM("STA_CM", excelUtil.GetDataFromExcel("UserName"), excelUtil.GetDataFromExcel("Password")); commFunc.SearchCaseReferance(excelUtil.GetDataFromExcel("CaseRefeNo"), null, null); commFunc.CreateNewFrom(excelUtil.GetDataFromExcel("FormName")); uploadTestMaterialLib.selectUploadDocumentType(true, false); uploadTestMaterialLib.FillUploadTestMaterialSection(excelUtil.GetDataFromExcel("uploadFileName1"), excelUtil.GetDataFromExcel("uploadFileDec1"), excelUtil.GetDataFromExcel("fromDate1"), excelUtil.GetDataFromExcel("Todate1")); commFunc.NaviagteToNextPage(); // Submit form comFunc.SubmitForm(); // verify application submission confirmation message VerifyIsEquals(excelUtil.GetDataFromExcel("FormSubmissionConfMsg"), commFunc.GetFormSubmissionConfirmationMsg(), "Check Upload Test Document confrmation message."); }