Exemple #1
0
        public void Save_Submit_And_Forward_End_To_End()
        {
            UploadOwnerSubmittal.LogintoSubmittal(UserType.Bhoomi);

            //Enter Name and Title
            var valuePair = UploadOwnerSubmittal.PopulateFields(true);

            //Filter record by Number and Validate for "New" Status
            AddAssertionToList(UploadOwnerSubmittal.VerifySubmittalNumberIsDisplayed(valuePair.Value, false, true), "VerifySubmittalNumberIsDisplayed - ReviseReviewSubmittal");

            //Click on Edit in Revise Review page
            PageAction.WaitForPageReady();
            GridHelper.ClickButtonForRow(Page.TableHelper.TableButton.Edit, string.Empty, false);
            ClickSubmitForward();

            //Filter record by Number and Validate for "In Progress" Status
            AddAssertionToList(UploadOwnerSubmittal.VerifySubmittalNumberIsDisplayed(valuePair.Value, false, false), "VerifySubmittalNumberIsDisplayed - ReviseReviewSubmittal");

            //Click on Edit in Revise Review page
            PageAction.WaitForPageReady();
            GridHelper.ClickButtonForRow(Page.TableHelper.TableButton.Edit, string.Empty, false);
            ClickSubmitForward();

            //Go to RMCenter > Search
            NavigateToPage.RMCenter_Search();
            //Filter record by Number
            AddAssertionToList(UploadOwnerSubmittal.VerifySubmittalNumberIsDisplayed(valuePair.Value, true), "VerifySubmittalNumberIsDisplayed - Search");

            //Validate all assertions
            AssertAll();
        }
Exemple #2
0
 public override void LogintoSubmittal(UserType userType)
 {
     LoginAs(userType);
     PageAction.WaitForPageReady();
     NavigateToPage.RMCenter_Upload_DEV_Submittal();
     TestUtility.AddAssertionToList_VerifyPageHeader("Submittal Details", "LogintoQASubmittal()");
 }
        public override bool VerifySearchResultByCriteria(KeyValuePair <string, string> valuePair, SearchCriteria name)
        {
            bool   isDisplayed = false;
            string logMsg      = string.Empty;

            try
            {
                IList <bool> resultsList = new List <bool>();

                PopulateCriteriaByType(SearchCriteria.Title, valuePair.Key);
                ClickBtn_Search();
                //PageAction.WaitForLoading();
                PageAction.WaitForPageReady();
                bool searchResult = GridHelper.VerifyRecordIsDisplayed(ColumnName.Number, valuePair.Value, TableHelper.TableType.Single);
                resultsList.Add(searchResult);

                logMsg = $"Search by Criteria '{SearchCriteria.Title.ToString()}'";
                Report.Info($"{logMsg}  was {(searchResult ? "" : "NOT ")}successful", searchResult);
                TestUtility.AddAssertionToList(searchResult, logMsg);

                ClickBtn_Clear();
                PageAction.WaitForPageReady();

                isDisplayed = resultsList.Contains(false)
                    ? false
                    : true;
            }
            catch (Exception)
            {
                log.Error(logMsg);
            }

            return(isDisplayed);
        }
        public override bool VerifySearchResultByCriteria(string transmittalNumber, IList <KeyValuePair <EntryFieldType, string> > entryFieldValuesList)
        {
            bool   isDisplayed = false;
            string logMsg      = string.Empty;

            try
            {
                SearchCriteria criteria;
                IList <bool>   resultsList = new List <bool>();

                foreach (KeyValuePair <EntryFieldType, string> kvPair in entryFieldValuesList)
                {
                    criteria = GetMatchingSearchCriteriaForEntryField(kvPair.Key);

                    if (tenantSearchCriteriaFields.Contains(criteria))
                    {
                        if (!criteria.Equals(SearchCriteria.NoSelection))
                        {
                            PopulateCriteriaByType(criteria, kvPair.Value);
                            ClickBtn_Search();
                            //PageAction.WaitForLoading();
                            PageAction.WaitForPageReady();
                            bool searchResult = GridHelper.VerifyRecordIsDisplayed(ColumnName.TransmittalNumber, transmittalNumber, TableHelper.TableType.Single);
                            resultsList.Add(searchResult);

                            logMsg = $"Search by Criteria '{criteria}'";
                            Report.Info($"{logMsg}  was {(searchResult ? "" : "NOT ")}successful", searchResult);
                            TestUtility.AddAssertionToList(searchResult, logMsg);

                            ClickBtn_Clear();
                            //PageAction.WaitForLoading();
                            PageAction.WaitForPageReady();
                        }
                    }
                }

                isDisplayed = resultsList.Contains(false)
                    ? false
                    : true;
            }
            catch (Exception)
            {
                log.Error(logMsg);
            }

            return(isDisplayed);
        }
Exemple #5
0
        public void Submit_And_Forward_End_To_End()
        {
            UploadQASubmittal.LogintoSubmittal(UserType.Bhoomi);

            //Enter Name and Title
            var valuePair = UploadQASubmittal.PopulateFields();

            //Filter record by Number
            AddAssertionToList(UploadQASubmittal.VerifySubmittalNumberIsDisplayed(valuePair[Page.PageObjects.RMCenter.UploadQASubmittal.ColumnName.SubmittalNumber]), "VerifySubmittalNumberIsDisplayed - ReviseReviewSubmittal");
            //Click on Edit
            PageAction.WaitForPageReady();
            GridHelper.ClickButtonForRow(Page.TableHelper.TableButton.Edit, string.Empty, false);
            ClickSubmitForward();

            //Go to RMCenter > Search
            NavigateToPage.RMCenter_Search();
            //Filter record by Number
            AddAssertionToList(UploadQASubmittal.VerifySubmittalNumberIsDisplayed(valuePair[Page.PageObjects.RMCenter.UploadQASubmittal.ColumnName.SubmittalNumber], true), "VerifySubmittalNumberIsDisplayed - Search");

            //Validate all assertions
            AssertAll();
        }