diff --git a/Test/UITest/SpecFlowProjectBDD/Features/ViewAggregatedListings.feature b/Test/UITest/SpecFlowProjectBDD/Features/ViewAggregatedListings.feature index e50bd385..0fd68366 100644 --- a/Test/UITest/SpecFlowProjectBDD/Features/ViewAggregatedListings.feature +++ b/Test/UITest/SpecFlowProjectBDD/Features/ViewAggregatedListings.feature @@ -1,7 +1,7 @@ Feature: ViewAggregatedListings Link to a feature: https://hous-hpb.atlassian.net/browse/DSS-505 -@LandingPage +@ViewAggregatedListings Scenario: ViewAggregatedListings #User Authentication #Given that I am an authenticated user "" with the necessary permissions to view listings View listings (listing_read) and the expected result is diff --git a/Test/UITest/SpecFlowProjectBDD/Features/ViewAggregatedListings.feature.cs b/Test/UITest/SpecFlowProjectBDD/Features/ViewAggregatedListings.feature.cs index 9da6db6f..a8ccd80e 100644 --- a/Test/UITest/SpecFlowProjectBDD/Features/ViewAggregatedListings.feature.cs +++ b/Test/UITest/SpecFlowProjectBDD/Features/ViewAggregatedListings.feature.cs @@ -75,12 +75,12 @@ public void ScenarioCleanup() [NUnit.Framework.TestAttribute()] [NUnit.Framework.DescriptionAttribute("ViewAggregatedListings")] - [NUnit.Framework.CategoryAttribute("LandingPage")] + [NUnit.Framework.CategoryAttribute("ViewAggregatedListings")] [NUnit.Framework.TestCaseAttribute("STRDSSLg1Dev", "lg_staff", "dev", "pass", null)] public void ViewAggregatedListings(string userName, string userType, string environment, string expectedResult, string[] exampleTags) { string[] @__tags = new string[] { - "LandingPage"}; + "ViewAggregatedListings"}; if ((exampleTags != null)) { @__tags = System.Linq.Enumerable.ToArray(System.Linq.Enumerable.Concat(@__tags, exampleTags)); diff --git a/Test/UITest/SpecFlowProjectBDD/Hooks/SeleniumSpecFlowHooks.cs b/Test/UITest/SpecFlowProjectBDD/Hooks/SeleniumSpecFlowHooks.cs index 4ec160fc..be94c1a3 100644 --- a/Test/UITest/SpecFlowProjectBDD/Hooks/SeleniumSpecFlowHooks.cs +++ b/Test/UITest/SpecFlowProjectBDD/Hooks/SeleniumSpecFlowHooks.cs @@ -24,7 +24,7 @@ public SeleniumSpecFlowHooks(IObjectContainer container) public void SetupDrivers() { CleanupDrivers(); - SeleniumDriver webDriver = new SeleniumDriver(SeleniumDriver.DRIVERTYPE.CHROME, Headless:true); + SeleniumDriver webDriver = new SeleniumDriver(SeleniumDriver.DRIVERTYPE.CHROME, Headless: false); webDriver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(5); _Container.RegisterInstanceAs(webDriver); diff --git a/Test/UITest/SpecFlowProjectBDD/SpecFlowProjectBDD.csproj b/Test/UITest/SpecFlowProjectBDD/SpecFlowProjectBDD.csproj index 408d33f6..c4171062 100644 --- a/Test/UITest/SpecFlowProjectBDD/SpecFlowProjectBDD.csproj +++ b/Test/UITest/SpecFlowProjectBDD/SpecFlowProjectBDD.csproj @@ -42,6 +42,7 @@ + diff --git a/Test/UITest/SpecFlowProjectBDD/StepDefinitions/UploadListingDataPlatformUser.cs b/Test/UITest/SpecFlowProjectBDD/StepDefinitions/UploadListingDataPlatformUser.cs index 38ac8408..880a414e 100644 --- a/Test/UITest/SpecFlowProjectBDD/StepDefinitions/UploadListingDataPlatformUser.cs +++ b/Test/UITest/SpecFlowProjectBDD/StepDefinitions/UploadListingDataPlatformUser.cs @@ -16,6 +16,7 @@ namespace SpecFlowProjectBDD.StepDefinitions { [Binding] + [Scope(Scenario = "ViewAggregatedListings")] public class UploadListingDataPlatformUser { private IDriver _Driver; diff --git a/Test/UITest/TestFrameWork/TestDriver/SeleniumDriver.cs b/Test/UITest/TestFrameWork/TestDriver/SeleniumDriver.cs index 41df24b8..47da4ba4 100644 --- a/Test/UITest/TestFrameWork/TestDriver/SeleniumDriver.cs +++ b/Test/UITest/TestFrameWork/TestDriver/SeleniumDriver.cs @@ -76,6 +76,13 @@ public SeleniumDriver(DRIVERTYPE DriverType, bool Headless = false) } case DRIVERTYPE.FIREFOX: { + var options = new FirefoxOptions(); + options.SetLoggingPreference(LogType.Driver, LogLevel.All); + options.AddArgument("--ignore-ssl-errors=yes"); + options.AddArgument("--ignore-certificate-errors"); + options.AddArgument("--start-maximized"); + if (Headless) + options.AddArgument("--headless"); Driver = new FirefoxDriver(assemblyDirectory); break; } diff --git a/Test/UITest/TestFrameWork/TestFrameWork.csproj b/Test/UITest/TestFrameWork/TestFrameWork.csproj index 91d0707d..f68a5762 100644 --- a/Test/UITest/TestFrameWork/TestFrameWork.csproj +++ b/Test/UITest/TestFrameWork/TestFrameWork.csproj @@ -10,6 +10,7 @@ +