Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Master update post Ginger 2024.4 Beta 1 release #4001

Merged
merged 53 commits into from
Nov 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
8ef9ea2
Merge pull request #3980 from Ginger-Automation/master
Maheshkale447 Oct 28, 2024
8d86a5f
Updated COreCOmmon version to 24.5.1.0
Maheshkale447 Oct 28, 2024
cd51c0b
Fixed bug 43068, 43071, 43072, 43075, 44051.
IamRanjeetSingh Oct 29, 2024
1f342dc
Runset actions issue
Oct 29, 2024
f8c3249
Merge pull request #3981 from Ginger-Automation/BugFix/RunSetActionsV…
Maheshkale447 Nov 5, 2024
fa95ade
Merge pull request #3982 from Ginger-Automation/BugFix/KatalonImportB…
Maheshkale447 Nov 5, 2024
75b5873
Space was not supporting
GokulBothe99 Nov 5, 2024
bc90fa4
RQM Changes for Dynamic Field Mapping
prashelke Nov 6, 2024
9330ed2
Remove Commented code
prashelke Nov 6, 2024
f1fd282
regx enhancement
GokulBothe99 Nov 6, 2024
bab8666
Added Code review suggestion
prashelke Nov 6, 2024
89e433f
Code Review Updated
prashelke Nov 6, 2024
c72a392
updated
prashelke Nov 6, 2024
6e96c86
Merge pull request #3984 from Ginger-Automation/Beta/BugFix/RQMChanges
Maheshkale447 Nov 6, 2024
19f4991
Merge pull request #3983 from Ginger-Automation/BugFix/44065_Deeplink…
Maheshkale447 Nov 6, 2024
a89315f
AzureDevOps Defect Update and Web Client Screenshot folder fix
Nov 6, 2024
608a69b
Merge pull request #3985 from Ginger-Automation/BugFix/ADO
Maheshkale447 Nov 6, 2024
3a8e4cc
D44105_D44104_D44103 RQM BugFix related to dynamic filed mapping
prashelke Nov 8, 2024
795a229
GInger HBase Data type convertor
Maheshkale447 Nov 8, 2024
e98f0df
Code Re factor
prashelke Nov 8, 2024
708cfa0
Merge branch 'Releases/Beta' into Beta/BugFix/RQMChanges
prashelke Nov 8, 2024
bfb055f
Code Re factor
prashelke Nov 8, 2024
6130030
D44106_Ocatne In Run set level userPop up Removed
prashelke Nov 8, 2024
77d1dad
codacy Fixed
prashelke Nov 8, 2024
a77e2f2
Merge pull request #3987 from Ginger-Automation/Beta/BugFix/RQMChanges
Maheshkale447 Nov 8, 2024
6a67103
Merge pull request #3988 from Ginger-Automation/Beta/BugFix/44106_Oca…
Maheshkale447 Nov 8, 2024
d1b3850
Handled VRT version mismatch issue
Maheshkale447 Nov 8, 2024
d6bf707
Merge pull request #3989 from Ginger-Automation/BugFix/VRTMismatch
Maheshkale447 Nov 8, 2024
f1efb85
Error Handler Action View and
Nov 8, 2024
c345690
Merge pull request #3990 from Ginger-Automation/BugFix/ErrorHandlerAc…
Maheshkale447 Nov 8, 2024
4d5852b
added summary page
IamRanjeetSingh Nov 8, 2024
083aa8b
Handled Exception while saving item
GokulBothe99 Nov 11, 2024
dc0e866
Merge pull request #3991 from Ginger-Automation/Enhancement/KatalonMa…
Maheshkale447 Nov 12, 2024
c4fe7c0
Updated Import Katalon Introduction
Maheshkale447 Nov 12, 2024
30864a7
Merge branch 'Releases/Beta' of https://github.com/Ginger-Automation/…
Maheshkale447 Nov 12, 2024
3d3a325
able to save changes and Git download working for deeplink
GokulBothe99 Nov 12, 2024
e5c1196
removed unwanted code
GokulBothe99 Nov 12, 2024
fb9db15
Handled Variable creation from Value expression window
Maheshkale447 Nov 12, 2024
cc49889
Merge pull request #3992 from Ginger-Automation/BugFix/44064_ReloadSo…
Maheshkale447 Nov 12, 2024
c0eeb83
Handled report Generation issue from Report generation menu. Also han…
Maheshkale447 Nov 12, 2024
473e670
Merge pull request #3994 from Ginger-Automation/BugFix/ReportIssueFix
Maheshkale447 Nov 12, 2024
49aa80d
Account Report CleanUp Activity fix
Nov 13, 2024
af2c59d
git soluion supporting for deeplink
GokulBothe99 Nov 13, 2024
16ea756
Merge pull request #3995 from Ginger-Automation/BugFix/44064_ReloadSo…
Maheshkale447 Nov 13, 2024
570e01d
Merge pull request #3996 from Ginger-Automation/BugFix/AccountReportC…
Maheshkale447 Nov 13, 2024
0b37611
RQM fixes for customAttributes
prashelke Nov 13, 2024
0ee48a6
RQM Fixed
prashelke Nov 14, 2024
0e194ef
Updated
prashelke Nov 14, 2024
97e3be2
Update RQM Fixed
prashelke Nov 14, 2024
e35d8dc
Merge pull request #3997 from Ginger-Automation/Beta/BugFix/RQMChanges
Maheshkale447 Nov 14, 2024
65a48cf
update RQM DLL
prashelke Nov 14, 2024
5571b61
Merge branch 'Releases/Beta' into Beta/BugFix/RQMChanges
prashelke Nov 14, 2024
a4cdca6
Merge pull request #4000 from Ginger-Automation/Beta/BugFix/RQMChanges
Maheshkale447 Nov 14, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 25 additions & 17 deletions Ginger/Ginger/ALM/ALMDefectsProfilesPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ private void DeleteDefectsProfile(object sender, RoutedEventArgs e)
if (grdDefectsProfiles.Grid.SelectedItems.Count > 0)
{
if (Reporter.ToUser(eUserMsgKey.AskBeforeDefectProfileDeleting) == Amdocs.Ginger.Common.eUserMsgSelection.Yes)
{
{
foreach (ALMDefectProfile profileToDelete in grdDefectsProfiles.Grid.SelectedItems)
{
WorkSpace.Instance.SolutionRepository.DeleteRepositoryItem(profileToDelete);
Expand All @@ -242,27 +242,35 @@ private void RefreshgrdDefectsProfilesHandler(object sender, RoutedEventArgs e)

private void RefreshgrdDefectsFieldsHandler(object sender, RoutedEventArgs e)
{
ALMDefectProfile AlmDefectProfile = (ALMDefectProfile)grdDefectsProfiles.CurrentItem;
try
{
mALMDefectProfileFields = FetchDefectFields(AlmDefectProfile.AlmType);
mALMDefectProfileFields.Where(z => z.Mandatory).ToList().ForEach(x => x.SelectedValue = string.Empty);
mALMDefectProfileFieldsExisted = [];
foreach (ExternalItemFieldBase aLMDefectProfileField in mALMDefectProfileFields)
ALMDefectProfile AlmDefectProfile = (ALMDefectProfile)grdDefectsProfiles.CurrentItem;
{
ExternalItemFieldBase aLMDefectProfileFieldExisted = (ExternalItemFieldBase)aLMDefectProfileField.CreateCopy();
if (!string.IsNullOrEmpty(aLMDefectProfileField.ExternalID))
{
aLMDefectProfileFieldExisted.ExternalID = string.Copy(aLMDefectProfileField.ExternalID);
}
ExternalItemFieldBase field = AlmDefectProfile.ALMDefectProfileFields.FirstOrDefault(x => x.ID == aLMDefectProfileField.ID);
if (field != null)
mALMDefectProfileFields = FetchDefectFields(AlmDefectProfile.AlmType);
mALMDefectProfileFields.Where(z => z.Mandatory).ToList().ForEach(x => x.SelectedValue = string.Empty);
mALMDefectProfileFieldsExisted = [];
foreach (ExternalItemFieldBase aLMDefectProfileField in mALMDefectProfileFields)
{
aLMDefectProfileFieldExisted.SelectedValue = field.SelectedValue;
ExternalItemFieldBase aLMDefectProfileFieldExisted = (ExternalItemFieldBase)aLMDefectProfileField.CreateCopy();
if (!string.IsNullOrEmpty(aLMDefectProfileField.ExternalID))
{
aLMDefectProfileFieldExisted.ExternalID = string.Copy(aLMDefectProfileField.ExternalID);
}
ExternalItemFieldBase field = AlmDefectProfile.ALMDefectProfileFields.FirstOrDefault(x => x.ID == aLMDefectProfileField.ID);
if (field != null)
{
aLMDefectProfileFieldExisted.SelectedValue = field.SelectedValue;
}
aLMDefectProfileFieldExisted.PossibleValues = aLMDefectProfileField.PossibleValues;
mALMDefectProfileFieldsExisted.Add(aLMDefectProfileFieldExisted);
}
aLMDefectProfileFieldExisted.PossibleValues = aLMDefectProfileField.PossibleValues;
mALMDefectProfileFieldsExisted.Add(aLMDefectProfileFieldExisted);
AlmDefectProfile.ALMDefectProfileFields = mALMDefectProfileFieldsExisted;
}
AlmDefectProfile.ALMDefectProfileFields = mALMDefectProfileFieldsExisted;
}
catch (Exception ex)
{
Reporter.ToLog(eLogLevel.ERROR, "No Defect Profile is created");
Reporter.ToUser(eUserMsgKey.NoDefectProfileCreated);
}
}
private void FetchgrdDefectsFieldsHandler(object sender, RoutedEventArgs e)
Expand Down
35 changes: 23 additions & 12 deletions Ginger/Ginger/ALM/Repository/OctaneRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -169,26 +169,37 @@ public override bool ExportBusinessFlowToALM(BusinessFlow businessFlow, bool per
if (!String.IsNullOrEmpty(businessFlow.ExternalID))
{
matchingTS = ((OctaneCore)ALMIntegration.Instance.AlmCore).GetTestSuiteById(businessFlow.ExternalID);
if (matchingTS != null)
if (businessFlow.ALMTestSetLevel.Equals("RunSet", StringComparison.CurrentCultureIgnoreCase))
{
//ask user if want to continute
userSelec = Reporter.ToUser(eUserMsgKey.BusinessFlowAlreadyMappedToTC, businessFlow.Name, matchingTS.Name);
if (userSelec == eUserMsgSelection.Cancel)
{
return false;
}
else if (userSelec == eUserMsgSelection.No)
if (String.IsNullOrEmpty(testPlanUploadPath))
{
matchingTS = null;
testPlanUploadPath = matchingTS.ParentId;
}
else
}
else
{
if (matchingTS != null)
{
if (String.IsNullOrEmpty(testPlanUploadPath))
//ask user if want to continute
userSelec = Reporter.ToUser(eUserMsgKey.BusinessFlowAlreadyMappedToTC, businessFlow.Name, matchingTS.Name);
if (userSelec == eUserMsgSelection.Cancel)
{
testPlanUploadPath = matchingTS.ParentId;
return false;
}
else if (userSelec == eUserMsgSelection.No)
{
matchingTS = null;
}
else
{
if (String.IsNullOrEmpty(testPlanUploadPath))
{
testPlanUploadPath = matchingTS.ParentId;
}
}
}
}

}


Expand Down
8 changes: 6 additions & 2 deletions Ginger/Ginger/ALM/Repository/RQMRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ limitations under the License.

using amdocs.ginger.GingerCoreNET;
using Amdocs.Ginger.Common;
using Amdocs.Ginger.Repository;
using Ginger.ALM.RQM;
using GingerCore;
using GingerCore.Activities;
Expand Down Expand Up @@ -240,7 +241,9 @@ public override bool ExportBusinessFlowToALM(BusinessFlow businessFlow, bool per
{
return false;
}
if (WorkSpace.Instance.Solution.ExternalItemsFields.Where(x => x.ItemType == "TestCase").ToList().Count == 0)
var originalExternalFields = GingerCoreNET.GeneralLib.General.GetExternalFields();

if (!originalExternalFields.Any(x => x.ItemType == "TestCase"))
{
Reporter.ToUser(eUserMsgKey.StaticInfoMessage, "Current solution have no predefined values for RQM's mandatory fields. Please configure before doing export. ('ALM'-'ALM Items Fields Configuration')");
return false;
Expand All @@ -256,7 +259,7 @@ public override bool ExportBusinessFlowToALM(BusinessFlow businessFlow, bool per
string res = string.Empty;
Reporter.ToStatus(eStatusMsgKey.ExportItemToALM, null, businessFlow.Name);

exportRes = ((RQMCore)ALMIntegration.Instance.AlmCore).ExportBusinessFlowToRQM(businessFlow, WorkSpace.Instance.Solution.ExternalItemsFields, ref res);
exportRes = ((RQMCore)ALMIntegration.Instance.AlmCore).ExportBusinessFlowToRQM(businessFlow, originalExternalFields, ref res);

if (exportRes)
{
Expand Down Expand Up @@ -288,6 +291,7 @@ public override bool ExportBusinessFlowToALM(BusinessFlow businessFlow, bool per
return exportRes;
}


#region External Item Fields

public override eUserMsgKey GetDownloadPossibleValuesMessage()
Expand Down
14 changes: 7 additions & 7 deletions Ginger/Ginger/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,6 @@ private async void Application_Startup(object sender, StartupEventArgs e)

bool startGrid = ShouldStartGrid(e.Args);
WorkSpace.Init(new WorkSpaceEventHandler(), startGrid);

var parserResult = ParseCommandLineArguments(e.Args);

DoOptions doOptions = ExtractDoOptions(parserResult);
Expand All @@ -271,9 +270,7 @@ private async void Application_Startup(object sender, StartupEventArgs e)
WorkSpace.Instance.RunningInExecutionMode = true;
Reporter.ReportAllAlsoToConsole = true;
}

InitializeGingerCore();

if (!WorkSpace.Instance.RunningInExecutionMode)
{
ProcessGingerUIStartup(doOptions);
Expand All @@ -287,8 +284,8 @@ private async void Application_Startup(object sender, StartupEventArgs e)
{
Reporter.ToLog(eLogLevel.ERROR, "Unhandled exception in Application_Startup", ex);
}
}
}


/// <summary>
/// Initializes the logging mechanism for the application using log4net.
Expand Down Expand Up @@ -325,11 +322,16 @@ private ParserResult<object> ParseCommandLineArguments(string[] args)
if (args.Length == 1)
{
string input = args[0];
input = input.Replace("\n", "").Replace("\r", "");
input = System.Web.HttpUtility.UrlDecode(input);
if (input.StartsWith("ginger://"))
{
input = input.Substring("ginger://".Length);
}
if (input.EndsWith("/"))
{
input = input.Substring(0, input.Length - 1);
}
List<string> resultList = General.SplitWithPaths(input).Select(s => s.Trim('\"', '\'')).ToList();
arguments = resultList.ToArray();
}
Expand All @@ -338,11 +340,9 @@ private ParserResult<object> ParseCommandLineArguments(string[] args)
arguments = args;
}


cliProcessor = new CLIProcessor();
return arguments.Length != 0 ? cliProcessor.ParseArguments(arguments) : null;
}

/// <summary>
/// Extracts the DoOptions object from the parser result if available and the operation is 'open'.
/// Otherwise, returns null.
Expand Down
7 changes: 0 additions & 7 deletions Ginger/Ginger/AutomatePageLib/ExecutionSummaryPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -148,13 +148,6 @@ public void SwitchLegend(string status)

private void ShowStatus()
{
// Why we create new GR? !!!
GingerExecutionEngine Gr = new GingerExecutionEngine(new GingerRunner());
foreach (Activity activity in mContext.BusinessFlow.Activities)
{
Gr.CalculateActivityFinalStatus(activity);
}
Gr.CalculateBusinessFlowFinalStatus(mContext.BusinessFlow);
StatusLabel.Content = mContext.BusinessFlow.RunStatus;
StatusLabel.Foreground = General.GetStatusBrush(mContext.BusinessFlow.RunStatus);
}
Expand Down
Loading
Loading