/// <summary> /// Fills the actual step with information of another test case /// </summary> /// <param name="previousStep"></param> /// <param name="keepManualTranslations">Indicates that manual translation for be kept during import</param> public void Merge(Step previousStep, bool keepManualTranslations) { if (keepManualTranslations) { setAllSubSteps(previousStep.SubSteps); } setGuid(previousStep.getGuid()); setComment(previousStep.Comment); setTranslated(previousStep.getTranslated()); setTranslationRequired(previousStep.getTranslationRequired()); int cnt = 0; foreach (DBMessage message in StepMessages) { if (cnt < previousStep.StepMessages.Count) { message.Merge((DBMessage)previousStep.StepMessages[cnt]); } cnt += 1; } foreach (ReqRef reqRef in previousStep.Requirements) { appendRequirements(reqRef); } }
/// <summary> /// Fills the actual step with information of another test case /// </summary> /// <param name="oldTestCase"></param> public void Merge(Step aStep) { setAllSubSteps(aStep.SubSteps); setComment(aStep.Comment); setTranslated(aStep.getTranslated()); setTranslationRequired(aStep.getTranslationRequired()); }
public override void visit(Generated.Step obj, bool visitSubNodes) { DataDictionary.Tests.Step step = (DataDictionary.Tests.Step)obj; if (step.getTranslationRequired() && !step.getTranslated()) { step.AddInfo("Not translated step"); } base.visit(obj, visitSubNodes); }