Skip to content
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
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
72 changes: 72 additions & 0 deletions BELLATRIX Dependencies License.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
Reference | Version | License Type | License
--------------------------------------------------------|-----------------------|---------------------|-----------------------------------------------------------------------------------------------
Allure.Commons | 3.5.0.73 | | https://www.nuget.org/packages/Allure.Net.Commons/2.14.1/License
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that looks awsome! Good job! you can check btw the new format that I told you that Hero are using with common directory file for dependencies maybe later we can use it so that we can check all versions since in some projects we use different versions of some of the libraries.

AngleSharp | 1.4.0 | MIT | https://licenses.nuget.org/MIT
AngleSharp.XPath | 2.0.5 | MIT | https://licenses.nuget.org/MIT
Appium.WebDriver | 8.0.1 | LICENSE.txt | https://www.nuget.org/packages/Appium.WebDriver/8.0.1/License
AutoFixture | 4.18.1 | MIT | https://licenses.nuget.org/MIT
AutoMapper | 16.0.0 | LICENSE.md | https://www.nuget.org/packages/AutoMapper/16.0.0/License
AWSSDK.Core | 4.0.3.8 | Apache-2.0 | https://licenses.nuget.org/Apache-2.0
AWSSDK.Rekognition | 4.0.3.10 | Apache-2.0 | https://licenses.nuget.org/Apache-2.0
AWSSDK.S3 | 4.0.17 | Apache-2.0 | https://licenses.nuget.org/Apache-2.0
AWSSDK.SecretsManager | 4.0.4.3 | Apache-2.0 | https://licenses.nuget.org/Apache-2.0
Azure.AI.FormRecognizer | 4.1.0 | MIT | https://licenses.nuget.org/MIT
Azure.Identity | 1.17.1 | MIT | https://licenses.nuget.org/MIT
Azure.Security.KeyVault.Secrets | 4.8.0 | MIT | https://licenses.nuget.org/MIT
Azure.Storage.Blobs | 12.26.0 | MIT | https://licenses.nuget.org/MIT
Bellatrix.API.DemoApps | 1.4.1 | | https://bellatrix.solutions/standard-end-user-license-agreement/
Bellatrix.Desktop.DemoApps | 1.3.1 | | https://bellatrix.solutions/standard-end-user-license-agreement/
Bellatrix.ImageRecognition.SikuliX | 1.1.3 | | https://bellatrix.solutions/standard-end-user-license-agreement/
Bellatrix.Mobile.DemoApps | 1.3.0 | | https://bellatrix.solutions/standard-end-user-license-agreement/
coverlet.collector | 6.0.4 | MIT | https://licenses.nuget.org/MIT
CsvHelper | 33.1.0 | MS-PL OR Apache-2.0 | https://licenses.nuget.org/MS-PL%20OR%20Apache-2.0
CsvHelper.Excel.Core | 27.2.1 | | https://github.com/youngcm2/CsvHelper.Excel/blob/master/LICENSE
HtmlAgilityPack | 1.12.4 | MIT | https://licenses.nuget.org/MIT
mailslurp | 17.0.0 | | https://github.com/mailslurp/mailslurp-client/blob/master/LICENSE
Microsoft.ApplicationInsights | 2.23.0 | MIT | https://licenses.nuget.org/MIT
Microsoft.Azure.CognitiveServices.Vision.ComputerVision | 7.0.1 | MIT | https://licenses.nuget.org/MIT
Microsoft.EntityFrameworkCore | 10.0.1 | MIT | https://licenses.nuget.org/MIT
Microsoft.Extensions.Configuration | 10.0.1 | MIT | https://licenses.nuget.org/MIT
Microsoft.Extensions.Configuration.Binder | 10.0.1 | MIT | https://licenses.nuget.org/MIT
Microsoft.Extensions.Configuration.EnvironmentVariables | 10.0.1 | MIT | https://licenses.nuget.org/MIT
Microsoft.Extensions.Configuration.Json | 10.0.1 | MIT | https://licenses.nuget.org/MIT
Microsoft.KernelMemory | 0.98.250508.3+bd8d34e | MIT | https://licenses.nuget.org/MIT
Microsoft.NET.Test.Sdk | 18.0.1 | MIT | https://licenses.nuget.org/MIT
Microsoft.Playwright | 1.57.0 | MIT | https://licenses.nuget.org/MIT
Microsoft.Playwright.NUnit | 1.57.0 | MIT | https://licenses.nuget.org/MIT
Microsoft.SemanticKernel | 1.68.0 | MIT | https://licenses.nuget.org/MIT
Microsoft.TeamFoundationServer.Client | 19.225.1 | license.txt | https://www.nuget.org/packages/Microsoft.TeamFoundationServer.Client/19.225.1/License
Microsoft.TeamFoundationServer.ExtendedClient | 19.225.1 | license.txt | https://www.nuget.org/packages/Microsoft.TeamFoundationServer.ExtendedClient/19.225.1/License
Moq | 4.20.72 | BSD-3-Clause | https://licenses.nuget.org/BSD-3-Clause
MSTest | 4.0.2 | MIT | https://licenses.nuget.org/MIT
MSTest.TestAdapter | 4.0.2 | MIT | https://licenses.nuget.org/MIT
MSTest.TestFramework | 4.0.2 | MIT | https://licenses.nuget.org/MIT
Newtonsoft.Json | 13.0.4 | MIT | https://licenses.nuget.org/MIT
Newtonsoft.Json.Schema | 4.0.1 | LICENSE.md | https://www.nuget.org/packages/Newtonsoft.Json.Schema/4.0.1/License
NJsonSchema | 11.5.2 | MIT | https://licenses.nuget.org/MIT
Npgsql.EntityFrameworkCore.PostgreSQL | 10.0.0 | PostgreSQL | https://licenses.nuget.org/PostgreSQL
NUnit | 4.4.0 | MIT | https://licenses.nuget.org/MIT
NUnit3TestAdapter | 6.0.0 | MIT | https://licenses.nuget.org/MIT
Polly | 8.6.5 | BSD-3-Clause | https://licenses.nuget.org/BSD-3-Clause
ReportPortal.Serilog | 2.0.0 | | https://raw.githubusercontent.com/reportportal/logger-net-serilog/master/LICENSE
ReportPortal.VSTest.TestLogger | 3.8.0 | Apache-2.0 | https://licenses.nuget.org/Apache-2.0
RestSharp | 113.0.0 | Apache-2.0 | https://licenses.nuget.org/Apache-2.0
RestSharp.Serializers.NewtonsoftJson | 113.0.0 | Apache-2.0 | https://licenses.nuget.org/Apache-2.0
Selenium.WebDriver | 4.39.0 | Apache-2.0 | https://licenses.nuget.org/Apache-2.0
Selenium.WebDriver.MSEdgeDriver | 141.0.3537.71 | LICENSE.txt | https://www.nuget.org/packages/Selenium.WebDriver.MSEdgeDriver/141.0.3537.71/License
Serilog.Extensions.Logging.File | 3.0.1-dev-00077 | LICENSE | https://www.nuget.org/packages/Serilog.Extensions.Logging.File/3.0.1-dev-00077/License
Serilog.Settings.Configuration | 10.0.0 | Apache-2.0 | https://licenses.nuget.org/Apache-2.0
Serilog.Sinks.Console | 6.1.1 | Apache-2.0 | https://licenses.nuget.org/Apache-2.0
Serilog.Sinks.Debug | 3.0.0 | Apache-2.0 | https://licenses.nuget.org/Apache-2.0
Serilog.Sinks.File | 7.0.0 | Apache-2.0 | https://licenses.nuget.org/Apache-2.0
System.Composition | 10.0.1 | MIT | https://licenses.nuget.org/MIT
System.Drawing.Common | 10.0.1 | MIT | https://licenses.nuget.org/MIT
System.Management | 10.0.1 | MIT | https://licenses.nuget.org/MIT
System.Security.Permissions | 10.0.1 | MIT | https://licenses.nuget.org/MIT
TextCopy | 6.2.1 | MIT | https://licenses.nuget.org/MIT
Titanium.Web.Proxy | 3.2.0 | | https://github.com/justcoding121/titanium-web-proxy/blob/develop/LICENSE
Twilio | 7.13.8 | | https://github.com/twilio/twilio-csharp/blob/HEAD/LICENSE
Unity | 5.11.10 | | https://github.com/unitycontainer/unity/blob/v5.x/LICENSE
VisualRegressionTracker | 4.9.0 | Apache-2.0 | https://licenses.nuget.org/Apache-2.0
WebDriverManager | 2.17.6 | MIT | https://licenses.nuget.org/MIT
WindowsAzure.Storage | 9.3.3 | | https://github.com/Azure/azure-storage-net/blob/master/LICENSE.txt
2 changes: 1 addition & 1 deletion Bellatrix.LLM/SemanticKernelService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ private static void EnsureInitialized()
return;

var llmSettings = ConfigurationService.GetSection<LargeLanguageModelsSettings>();
if (llmSettings == null)
if (llmSettings is null or { EnableSelfHealing: false, EnableSmartFailureAnalysis: false })
return;

var genSettings = llmSettings.ModelSettings[0];
Expand Down
3 changes: 3 additions & 0 deletions src/Bellatrix.Mobile/Bellatrix.Mobile.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\Bellatrix.LLM\Bellatrix.LLM.csproj" />
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are these additions on purpose? You are planning to use AWS?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is for the LLM services

<ProjectReference Include="..\Bellatrix.Allure\Bellatrix.Results.Allure.csproj" />
<ProjectReference Include="..\Bellatrix.AWS\Bellatrix.AWS.csproj" />
<ProjectReference Include="..\Bellatrix.CognitiveServices\Bellatrix.CognitiveServices.csproj" />
<ProjectReference Include="..\Bellatrix.Core\Bellatrix.Core.csproj" />
<ProjectReference Include="..\Bellatrix.DynamicTestCases\Bellatrix.DynamicTestCases.csproj" />
<ProjectReference Include="..\Bellatrix.Layout\Bellatrix.Layout.csproj" />
Expand Down
3 changes: 0 additions & 3 deletions src/Bellatrix.Web/Bellatrix.Web.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,8 @@
<ProjectReference Include="..\..\Bellatrix.LLM\Bellatrix.LLM.csproj" />
<ProjectReference Include="..\Bellatrix.Allure\Bellatrix.Results.Allure.csproj" />
<ProjectReference Include="..\Bellatrix.Api\Bellatrix.API.csproj" />
<ProjectReference Include="..\Bellatrix.AWS\Bellatrix.AWS.csproj" />
<ProjectReference Include="..\Bellatrix.CognitiveServices\Bellatrix.CognitiveServices.csproj" />
<ProjectReference Include="..\Bellatrix.Core\Bellatrix.Core.csproj" />
<ProjectReference Include="..\Bellatrix.DynamicTestCases\Bellatrix.DynamicTestCases.csproj" />
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't fully understand what we are doing here since here we remove them but at the bottom file we have usings from dynamic test cases?

<ProjectReference Include="..\Bellatrix.ImageRecognition\Bellatrix.ImageRecognition.csproj" />
<ProjectReference Include="..\Bellatrix.KeyVault\Bellatrix.KeyVault.csproj" />
<ProjectReference Include="..\Bellatrix.Layout\Bellatrix.Layout.csproj" />
<ProjectReference Include="..\Bellatrix.Plugins.Screenshots\Bellatrix.Plugins.Screenshots.csproj" />
Expand Down
9 changes: 8 additions & 1 deletion src/Bellatrix.Web/WebPluginsConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
// <site>https://bellatrix.solutions/</site>
using System;
using System.Collections.Generic;
using Bellatrix.DynamicTestCases.core;
using Bellatrix.DynamicTestCases.core.componentHandlers;
using Bellatrix.GoogleLighthouse.MSTest;
using Bellatrix.GoogleLighthouse.NUnit;
using Bellatrix.Layout;
Expand Down Expand Up @@ -241,7 +243,12 @@ public static void ConfigureLLM()
try
{
var settings = ConfigurationService.GetSection<LargeLanguageModelsSettings>();

if (!settings.EnableSelfHealing && !settings.EnableSmartFailureAnalysis)
{
Logger.LogError("LLM Features are disabled.");
return;
}

SemanticKernelService.Kernel.ImportPluginFromObject(new LocatorSkill(), nameof(LocatorSkill));
SemanticKernelService.Kernel.ImportPluginFromObject(new AssertionSkill(), nameof(AssertionSkill));
SemanticKernelService.Kernel.ImportPluginFromObject(new PageObjectSummarizerSkill(), nameof(PageObjectSummarizerSkill));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@
// </copyright>
// <author>Anton Angelov</author>
// <site>https://bellatrix.solutions/</site>

using Bellatrix.Web.Controls.EventHandlers;
using Bellatrix.Web.Events;
using Bellatrix.Web.Extensions;

namespace Bellatrix.Web.Extensions.Controls.Controls.EventHandlers;
namespace Bellatrix.DynamicTestCases.core.componentHandlers;

public class DynamicTestCasesCheckboxEventHandlers : CheckboxEventHandlers
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@
// </copyright>
// <author>Anton Angelov</author>
// <site>https://bellatrix.solutions/</site>

using Bellatrix.Web.Controls.EventHandlers;
using Bellatrix.Web.Events;
using Bellatrix.Web.Extensions;

namespace Bellatrix.Web.Extensions.Controls.Controls.EventHandlers;
namespace Bellatrix.DynamicTestCases.core;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it seems somewhere we have a namespace that is not following the nameconvention for PascalCase? "core" with not capital?> I mean it is fine to be like that I just noticed it.


public class DynamicTestCasesTextFieldEventHandlers : TextFieldEventHandlers
{
Expand Down
7 changes: 0 additions & 7 deletions src/Bellatrix.Web/infrastructure/App.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
using Bellatrix.Api;
using Bellatrix.Api.Configuration;
using Bellatrix.Assertions;
using Bellatrix.AWS;
using Bellatrix.CognitiveServices;
using Bellatrix.DynamicTestCases;
using Bellatrix.LLM;
using Bellatrix.Plugins;
Expand Down Expand Up @@ -51,14 +49,9 @@ public App()
public CookiesService Cookies => ServicesCollection.Current.Resolve<CookiesService>();
public ComponentCreateService Components => ServicesCollection.Current.Resolve<ComponentCreateService>();
public DynamicTestCasesService TestCases => ServicesCollection.Current.Resolve<DynamicTestCasesService>();
public LighthouseService Lighthouse => ServicesCollection.Current.Resolve<LighthouseService>();
public ComputerVision ComputerVision => ServicesCollection.Current.Resolve<ComputerVision>();
public FormRecognizer FormRecognizer => ServicesCollection.Current.Resolve<FormRecognizer>();
public IAssert Assert => ServicesCollection.Current.Resolve<IAssert>();
public ProxyService Proxy => ServicesCollection.Current.Resolve<ProxyService>();

public AWSServicesFactory AWS => ServicesCollection.Current.Resolve<AWSServicesFactory>();

public ApiClientService ApiClient
{
get => _apiClientService;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
using Bellatrix.CognitiveServices;

namespace Bellatrix.Web.GettingStarted;

public static partial class AppExtensions
{
extension(App _)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is this syntax extension doing? I am seeing it for the first time is this something new from new C#?

{
public static FormRecognizer FormRecognizer()
{
return ServicesCollection.Current.Resolve<FormRecognizer>();
}

public static ComputerVision ComputerVision()
{
return ServicesCollection.Current.Resolve<ComputerVision>();
}
}
}
Loading
Loading