Skip to content

Merge pull request #85 from ERNI-Academy/fix/sonar-scanner #94

Merge pull request #85 from ERNI-Academy/fix/sonar-scanner

Merge pull request #85 from ERNI-Academy/fix/sonar-scanner #94

Triggered via push October 7, 2023 11:23
Status Success
Total duration 4m 0s
Artifacts
Fit to window
Zoom out
Zoom in

Annotations

12 errors and 11 warnings
TestWare.Samples.API.Features.AgeCalculationsFeature ► ScenarioThatCombinesTwoDifferentApis: ./results/results.trx#L0
Failed test found in: ./results/results.trx Error: Expected string to be "45", but "44" differs near "4" (index 1).
TestWare.Samples.API.Features.AgeCalculationsFeature ► ScenarioThatCombinesTwoDifferentApis: ./results/results.trx#L0
Failed test found in: ./results/results.trx Error: Expected string to be "45", but "44" differs near "4" (index 1).
TestWare.Samples.API.Features.AgeCalculationsFeature ► ScenarioThatCombinesTwoDifferentApis: ./results/results.trx#L0
Failed test found in: ./results/results.trx Error: Expected string to be "45", but "44" differs near "4" (index 1).
TestWare.Samples.Selenium.Web.Features.Stinto.Chat_MultibrowserFeature ► ChatBetweenTwoUsers: ./results/results.trx#L0
Failed test found in: ./results/results.trx Error: Test method TestWare.Samples.Selenium.Web.Features.Stinto.Chat_MultibrowserFeature.ChatBetweenTwoUsers threw exception: Autofac.Core.DependencyResolutionException: T
TestWare.Samples.Selenium.Web.Features.SwagLabs.Login_MultibrowserFeature ► LoginOnMultipleBrowsers: ./results/results.trx#L0
Failed test found in: ./results/results.trx Error: Test method TestWare.Samples.Selenium.Web.Features.SwagLabs.Login_MultibrowserFeature.LoginOnMultipleBrowsers threw exception: OpenQA.Selenium.DriverServiceNotFoundException: The file C:\workspace\Drivers\chromedriver.exe does not exist. The driver can be downloaded at http://chromedriver.storage.googleapis.com/index.html TestCleanup method TestWare.Samples.Selenium.Web.Features.SwagLabs.Login_MultibrowserFeature.TestTearDown threw exception. System.ObjectDisposedException: System.ObjectDisposedException: Instances cannot be resolved and nested lifetimes cannot be created from this LifetimeScope as it (or one of its parent scopes) has already been disposed..
TestWare.Samples.Selenium.Web.Features.SwagLabs.Login_MultibrowserFeature ► LoginOnMultipleBrowsersAndLogoutBrowser2: ./results/results.trx#L0
Failed test found in: ./results/results.trx Error: Test method TestWare.Samples.Selenium.Web.Features.SwagLabs.Login_MultibrowserFeature.LoginOnMultipleBrowsersAndLogoutBrowser2 threw exception: OpenQA.Selenium.DriverServiceNotFoundException: The file C:\workspace\Drivers\chromedriver.exe does not exist. The driver can be downloaded at http://chromedriver.storage.googleapis.com/index.html TestCleanup method TestWare.Samples.Selenium.Web.Features.SwagLabs.Login_MultibrowserFeature.TestTearDown threw exception. System.ObjectDisposedException: System.ObjectDisposedException: Instances cannot be resolved and nested lifetimes cannot be created from this LifetimeScope as it (or one of its parent scopes) has already been disposed..
TestWare.Samples.Selenium.Web.Features.Stinto.Chat_MultibrowserFeature ► ChatBetweenTwoUsers: ./results/results.trx#L0
Failed test found in: ./results/results.trx Error: Test method TestWare.Samples.Selenium.Web.Features.Stinto.Chat_MultibrowserFeature.ChatBetweenTwoUsers threw exception: Autofac.Core.DependencyResolutionException: T
TestWare.Samples.Selenium.Web.Features.SwagLabs.Login_MultibrowserFeature ► LoginOnMultipleBrowsers: ./results/results.trx#L0
Failed test found in: ./results/results.trx Error: Test method TestWare.Samples.Selenium.Web.Features.SwagLabs.Login_MultibrowserFeature.LoginOnMultipleBrowsers threw exception: OpenQA.Selenium.DriverServiceNotFoundException: The file C:\workspace\Drivers\chromedriver.exe does not exist. The driver can be downloaded at http://chromedriver.storage.googleapis.com/index.html TestCleanup method TestWare.Samples.Selenium.Web.Features.SwagLabs.Login_MultibrowserFeature.TestTearDown threw exception. System.ObjectDisposedException: System.ObjectDisposedException: Instances cannot be resolved and nested lifetimes cannot be created from this LifetimeScope as it (or one of its parent scopes) has already been disposed..
TestWare.Samples.Selenium.Web.Features.SwagLabs.Login_MultibrowserFeature ► LoginOnMultipleBrowsersAndLogoutBrowser2: ./results/results.trx#L0
Failed test found in: ./results/results.trx Error: Test method TestWare.Samples.Selenium.Web.Features.SwagLabs.Login_MultibrowserFeature.LoginOnMultipleBrowsersAndLogoutBrowser2 threw exception: OpenQA.Selenium.DriverServiceNotFoundException: The file C:\workspace\Drivers\chromedriver.exe does not exist. The driver can be downloaded at http://chromedriver.storage.googleapis.com/index.html TestCleanup method TestWare.Samples.Selenium.Web.Features.SwagLabs.Login_MultibrowserFeature.TestTearDown threw exception. System.ObjectDisposedException: System.ObjectDisposedException: Instances cannot be resolved and nested lifetimes cannot be created from this LifetimeScope as it (or one of its parent scopes) has already been disposed..
TestWare.Samples.Selenium.Web.Features.Stinto.Chat_MultibrowserFeature ► ChatBetweenTwoUsers: ./results/results.trx#L0
Failed test found in: ./results/results.trx Error: Test method TestWare.Samples.Selenium.Web.Features.Stinto.Chat_MultibrowserFeature.ChatBetweenTwoUsers threw exception: Autofac.Core.DependencyResolutionException: T
TestWare.Samples.Selenium.Web.Features.SwagLabs.Login_MultibrowserFeature ► LoginOnMultipleBrowsers: ./results/results.trx#L0
Failed test found in: ./results/results.trx Error: Test method TestWare.Samples.Selenium.Web.Features.SwagLabs.Login_MultibrowserFeature.LoginOnMultipleBrowsers threw exception: OpenQA.Selenium.DriverServiceNotFoundException: The file C:\workspace\Drivers\chromedriver.exe does not exist. The driver can be downloaded at http://chromedriver.storage.googleapis.com/index.html TestCleanup method TestWare.Samples.Selenium.Web.Features.SwagLabs.Login_MultibrowserFeature.TestTearDown threw exception. System.ObjectDisposedException: System.ObjectDisposedException: Instances cannot be resolved and nested lifetimes cannot be created from this LifetimeScope as it (or one of its parent scopes) has already been disposed..
TestWare.Samples.Selenium.Web.Features.SwagLabs.Login_MultibrowserFeature ► LoginOnMultipleBrowsersAndLogoutBrowser2: ./results/results.trx#L0
Failed test found in: ./results/results.trx Error: Test method TestWare.Samples.Selenium.Web.Features.SwagLabs.Login_MultibrowserFeature.LoginOnMultipleBrowsersAndLogoutBrowser2 threw exception: OpenQA.Selenium.DriverServiceNotFoundException: The file C:\workspace\Drivers\chromedriver.exe does not exist. The driver can be downloaded at http://chromedriver.storage.googleapis.com/index.html TestCleanup method TestWare.Samples.Selenium.Web.Features.SwagLabs.Login_MultibrowserFeature.TestTearDown threw exception. System.ObjectDisposedException: System.ObjectDisposedException: Instances cannot be resolved and nested lifetimes cannot be created from this LifetimeScope as it (or one of its parent scopes) has already been disposed..
sonarScan
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/setup-dotnet@v1, actions/setup-java@v1, actions/checkout@v2, actions/cache@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
sonarScan: src/Core/TestWare.Core/EngineManagerBase.cs#L6
Remove this empty class, write its code or make it an "interface".
sonarScan: src/Core/TestWare.Core/AutomationLifeCycleBase.cs#L145
Pass a timeout to limit the execution time.
sonarScan: src/Core/TestWare.Core/ContainerManager.cs#L48
"Find" method should be used instead of the "FirstOrDefault" extension method.
sonarScan: src/Core/TestWare.Core/ContainerManager.cs#L109
Collection-specific "Exists" method should be used instead of the "Any" extension.
sonarScan: src/Core/TestWare.Core/ContainerManager.cs#L102
Collection-specific "Exists" method should be used instead of the "Any" extension.
sonarScan: src/Core/TestWare.Core/ContainerManager.cs#L144
"Find" method should be used instead of the "FirstOrDefault" extension method.
sonarScan: src/Core/TestWare.Core/ContainerManager.cs#L144
'_dependencies.FirstOrDefault(x => x.Instance.Equals(instance))' is null on at least one execution path.
sonarScan: src/Engines/TestWare.Engines.Selenium/SeleniumManager.cs#L21
'singleCapability' is null on at least one execution path.
sonarScan: src/Engines/TestWare.Engines.Selenium/SeleniumManager.cs#L74
Either remove or fill this block of code.
sonarScan: src/Engines/TestWare.Engines.Selenium/SeleniumManager.cs#L99
Either remove or fill this block of code.