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); }
public void WhenIClickOnAnswerValueLinkForTableQuestionInRow_(string AnswerValue, string TableName, string QuestionPrompt, int RowNum) { BP_CRFUtilities.ClickAnswerLinkOfTableQuestion(TableName, RowNum.ToString(), QuestionPrompt, AnswerValue); }
public void WhenIClickOnAnswerValueLinkForFlatQuestion_(string AnswerValue, string QuestionPrompt) { BP_CRFUtilities.ClickAnswerLinkOfFlatQuestion(QuestionPrompt, AnswerValue); }