public JsonResult ListarComboEstadoCivil() { Utils.Util util = new Utils.Util(); var combo = util.ListarComboGenerico(0, Utils.Constantes.GrupoParametros.EstadoCivil, true); return(Json(JsonConvert.SerializeObject(combo), JsonRequestBehavior.AllowGet)); }
/// <summary> /// Creates a section for a given test case /// </summary> /// <param name="runner">The runner to be used to execute the tests</param> /// <param name="aTestCase">Test case to be displayed</param> /// <param name="aReportConfig">The report configuration containing display details</param> /// <param name="activatedRuleConditions">The list that will contain the rules activated by this test case</param> /// <param name="createPdf">Indicates if the information about this sub-sequence has to be added to the pdf</param> public void CreateTestCaseSection(Runner runner, TestCase aTestCase, TestsCoverageReportHandler aReportConfig, HashSet <RuleCondition> activatedRuleConditions, bool createPdf) { string title = "Test case " + aTestCase.Name; if (createPdf) { AddSubParagraph(title); if (aTestCase.Requirements.Count > 0) { AddSubParagraph(title + ": verified requirements:"); foreach (ReqRef reqRef in aTestCase.Requirements) { string text = "Requirement " + reqRef.Name; if (!Util.isEmpty(reqRef.Comment)) { text = text + " : " + reqRef.Comment; } AddListItem(text); } CloseSubParagraph(); } } runner.RunUntilStep(null); activatedRuleConditions.UnionWith(runner.EventTimeLine.GetActivatedRules()); if (createPdf) { if (aReportConfig.AddSteps) { foreach (Step step in aTestCase.Steps) { if (step.SubSteps.Count > 0) { SubStep firstSubStep = step.SubSteps[0] as SubStep; SubStep lastSubStep = step.SubSteps[step.SubSteps.Count - 1] as SubStep; double start = runner.EventTimeLine.GetSubStepActivationTime(firstSubStep); double end = runner.EventTimeLine.GetNextSubStepActivationTime(lastSubStep); List <RuleCondition> activatedRules = runner.EventTimeLine.GetActivatedRulesInRange(start, end); CreateStepSection(step, activatedRules, aReportConfig); } } } CreateActivatedRulesSection(title, runner.EventTimeLine.GetActivatedRules(), aReportConfig.Dictionary.ImplementedRules, aReportConfig.AddActivatedRulesInTestCases); CloseSubParagraph(); } }