public void VerifyIfRecordsAreDisplayedByFilter(Dictionary <ColumnName, string> values)
        {
            bool status = true;

            foreach (var valuePair in values)
            {
                status = status &&
                         GridHelper.VerifyRecordIsDisplayed(
                    valuePair.Key, valuePair.Value, TableHelper.TableType.Single);

                TestUtility.AddAssertionToList(status, string.Format("Filter Validation, Key: {0}, Value: {1}", valuePair.Key, valuePair.Value));
            }

            GridHelper.VerifyRecordIsDisplayed(ColumnName.SubmittalNumber, values[ColumnName.SubmittalNumber], TableHelper.TableType.Single);

            //Open the record
            GridHelper.ClickButtonForRow(Page.TableHelper.TableButton.View, string.Empty, false);

            //Go back to Revise Review Submittal page - so the record gets locked
            NavigateToPage.RMCenter_Review_Revise_Submittal();

            GridHelper.VerifyRecordIsDisplayed(ColumnName.SubmittalNumber, values[ColumnName.SubmittalNumber], TableHelper.TableType.Single);

            //Verify if grid displays as locked by current user
            status = status && GridHelper.VerifyRecordIsDisplayed(
                ColumnName.RecordLockCreatedBy, ConfigUtil.GetCurrentUserEmail(), TableHelper.TableType.Single);

            TestUtility.AddAssertionToList(status, string.Format("Filter Validation, Key: {0}, Value: {1}", ColumnName.RecordLockCreatedBy, ConfigUtil.GetCurrentUserEmail()));
        }
Exemplo n.º 2
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();
        }
Exemplo n.º 3
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();
        }