Skip to content

Commit

Permalink
Merge pull request #3599 from Ginger-Automation/Beta/BugFix/D37427_RQ…
Browse files Browse the repository at this point in the history
…MActivityStatusFixed

RQM Activity Status is not update correctly
  • Loading branch information
prashelke committed Apr 11, 2024
2 parents 63a59a1 + 3c14847 commit 2ed1693
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ public bool Init(ObservableList<BusinessFlow> bfs, ValueExpression VE, Context C
xALMTestSetLevelCbx.Init(PublishToALMConfig.eALMTestSetLevel.BusinessFlow, nameof(RunSetActionPublishToQC.ALMTestSetLevel), Enum.GetValues(typeof(eALMTestSetLevel)).Cast<eALMTestSetLevel>().ToList(), ComboBox.SelectedValueProperty);
xALMTypeCbx.ComboBox.SelectedValue = AlmConfig.AlmType;
xALMTestSetLevelCbx.ComboBox.SelectedValue = PublishToALMConfig.eALMTestSetLevel.BusinessFlow;
SearchALMEntityByNamePnl.Visibility = Visibility.Collapsed;
xALMTestSetLevelCbx.IsEnabled = false;
xALMTypeCbx.IsEnabled = false;
mBfs = bfs;
Expand Down
2 changes: 1 addition & 1 deletion Ginger/GingerCore/ALM/RQM/RQMConnect.cs
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ private void GetRQMProjectListConfiguration()
{
XmlSerializer serializer = new XmlSerializer(typeof(RQMProjectListConfiguration));

FileStream fs = new FileStream(importConfigTemplate, FileMode.Open);
FileStream fs = new FileStream(importConfigTemplate, FileMode.Open,FileAccess.Read);
reader = XmlReader.Create(fs);
RQMProjectListConfig = (RQMProjectListConfiguration)serializer.Deserialize(reader);
fs.Close();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,8 @@ private BusinessFlow ConvertRunSetToBF(IReportInfo reportInfo)
virtualAG.Description = runSetBF.Description;
virtualAG.ExternalID = !string.IsNullOrEmpty(runSetBF.ExternalID) ? runSetBF.ExternalID : string.Empty;
virtualAG.ParentGuid = runSetBF.Guid;//Business flow instance Guid passing in Parent Guid to Update External Id back
virtualAG.StartTimeStamp = runSetBF.StartTimeStamp;
virtualAG.EndTimeStamp = runSetBF.EndTimeStamp;
if (Enum.IsDefined(typeof(eActivitiesGroupRunStatus), runSetBF.RunStatus.ToString()))
{
virtualAG.RunStatus = (eActivitiesGroupRunStatus)Enum.Parse(typeof(eActivitiesGroupRunStatus), runSetBF.RunStatus.ToString());
Expand All @@ -190,7 +192,9 @@ private BusinessFlow ConvertRunSetToBF(IReportInfo reportInfo)
virtualBF.AddActivitiesGroup(virtualAG);
foreach (Activity runSetAct in runSetBF.Activities)
{
virtualBF.AddActivity((Activity)runSetAct.CreateCopy(false), virtualAG, -1, false);
Activity activitycopy = (Activity)runSetAct.CreateCopy(false);
activitycopy.Status = runSetAct.Status;
virtualBF.AddActivity(activitycopy, virtualAG, -1, false);
}
}
}
Expand Down

0 comments on commit 2ed1693

Please sign in to comment.