예제 #1
0
        public void ThenIVerifyBelowItemsAreDisplayedInOnTheCRF_(string FieldType, string QuestionPrompt, Table table)
        {
            IEnumerable <ListItemsDataOnCRF> Data      = table.CreateSet <ListItemsDataOnCRF>();
            List <ListItemsDataOnCRF>        ListItems = (List <ListItemsDataOnCRF>)Data;
            List <string> Items = new List <string>();

            foreach (ListItemsDataOnCRF Item in ListItems)
            {
                Items.Add(Item.ItemToVerify);
            }
            switch (FieldType.ToUpper())
            {
            case "LISTBOX":
            case "LIST BOX":
                if (!BP_CRFUtilities.VerifyAnswerItemsOfFlatQuestionInCRF(QuestionPrompt, "ListBox", Items, true))
                {
                    ScenarioContext.Current["Comments"]  = ScenarioContext.Current["Comments"] + "Not all list items for the question '" + QuestionPrompt + "' are displayed in the CRF. \n";
                    ScenarioContext.Current["ActResult"] = "Failed";
                }
                break;

            case "RADIO":
            case "RADIO GROUP":
            case "RADIOGROUP":
                if (!BP_CRFUtilities.VerifyAnswerItemsOfFlatQuestionInCRF(QuestionPrompt, "RADIO", Items, true))
                {
                    ScenarioContext.Current["Comments"]  = ScenarioContext.Current["Comments"] + "Not all radio items for the question '" + QuestionPrompt + "' are displayed in the CRF. \n";
                    ScenarioContext.Current["ActResult"] = "Failed";
                }
                break;

            case "CHECKBOX":
            case "CHECK BOX":
                if (!BP_CRFUtilities.VerifyAnswerItemsOfFlatQuestionInCRF(QuestionPrompt, "CHECKBOX", Items, true))
                {
                    ScenarioContext.Current["Comments"]  = ScenarioContext.Current["Comments"] + "Not all checkbox items for the question '" + QuestionPrompt + "' are displayed in the CRF. \n";
                    ScenarioContext.Current["ActResult"] = "Failed";
                }
                break;
            }
        }
 public void ThenTheCRFIsSavedAndChecked_InSuccessfully_()
 {
     BP_CRFUtilities.VerifyCRFSavedSuccessfully();
 }
 public void WhenIDeselectEntryCompleteCheckbox_()
 {
     BP_CRFUtilities.DeselectEntryCompleteChkBox();
 }
 public void WhenISelectButtonOnCRF_(string ButtonName, string CRFName)
 {
     BP_CRFUtilities.SelectButtonOnCRF(CRFName, ButtonName);
 }
예제 #5
0
 public void WhenIClickOnAnswerValueLinkForTableQuestionInRow_(string AnswerValue, string TableName, string QuestionPrompt, int RowNum)
 {
     BP_CRFUtilities.ClickAnswerLinkOfTableQuestion(TableName, RowNum.ToString(), QuestionPrompt, AnswerValue);
 }
예제 #6
0
 public void WhenIClickOnAnswerValueLinkForFlatQuestion_(string AnswerValue, string QuestionPrompt)
 {
     BP_CRFUtilities.ClickAnswerLinkOfFlatQuestion(QuestionPrompt, AnswerValue);
 }