Skip to content

Commit e62733f

Browse files
committed
Clean up BrowserStack tests
* Remove detritus from old non-SDK integration * Clean up some unused using statements * Tidy up README docco (technique changes) * Delete old unused YAML
1 parent d88f155 commit e62733f

20 files changed

Lines changed: 11 additions & 320 deletions

Tests/CSF.Screenplay.Selenium.Tests/Actions/ClearLocalStorageTests.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
1-
2-
using System;
3-
using CSF.Extensions.WebDriver;
4-
using CSF.Extensions.WebDriver.Factories;
5-
using CSF.Screenplay.Performables;
61
using CSF.Screenplay.Selenium.Elements;
7-
using Moq;
8-
using OpenQA.Selenium;
92
using static CSF.Screenplay.PerformanceStarter;
103
using static CSF.Screenplay.Selenium.PerformableBuilder;
114

Tests/CSF.Screenplay.Selenium.Tests/Actions/OpenUrlTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11

22
using System;
33
using CSF.Screenplay.Selenium.Elements;
4-
using OpenQA.Selenium;
54
using static CSF.Screenplay.PerformanceStarter;
65
using static CSF.Screenplay.Selenium.PerformableBuilder;
76

Tests/CSF.Screenplay.Selenium.Tests/BrowserStack/BrowserStackDriverFactory.cs

Lines changed: 0 additions & 67 deletions
This file was deleted.

Tests/CSF.Screenplay.Selenium.Tests/BrowserStack/BrowserStackEnvironment.cs

Lines changed: 0 additions & 36 deletions
This file was deleted.

Tests/CSF.Screenplay.Selenium.Tests/BrowserStack/BrowserStackExtension.cs

Lines changed: 0 additions & 96 deletions
This file was deleted.

Tests/CSF.Screenplay.Selenium.Tests/BrowserStack/BrowserStackSessionIdProvider.cs

Lines changed: 0 additions & 21 deletions
This file was deleted.

Tests/CSF.Screenplay.Selenium.Tests/CSF.Screenplay.Selenium.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
<PackageReference Include="System.Text.Json" Version="9.0.7" />
2727
</ItemGroup>
2828

29+
<!-- Activate BrowserStack CBT if this props file exists, find the original in the Tools directory -->
2930
<Import Project="BrowserStack.props" Condition="Exists('BrowserStack.props')" />
3031

3132
<ItemGroup>
@@ -40,7 +41,6 @@
4041
<Content Include="appsettings.json">
4142
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
4243
</Content>
43-
<Compile Remove="BrowserStack\**\*"/>
4444
</ItemGroup>
4545

4646
</Project>

Tests/CSF.Screenplay.Selenium.Tests/NamedUriTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using System;
2-
using CSF.Screenplay.Selenium;
32

43
namespace CSF.Screenplay.Selenium;
54

Tests/CSF.Screenplay.Selenium.Tests/README.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,18 +46,15 @@ The presence of this props file will activate two changes in the `.csproj` file
4646
* It will disable NUnit's parallelism feature
4747
* _When NUnit parallelism is enabled, it interferes with BrowserStack's own parallelism, creating confusing results_
4848

49-
### Add a `browserstack.yml` configuration
49+
### Review the `browserstack.yml` configuration
5050

5151
To use the BrowserStack SDK, you must provide a configuration file.
52-
The configuration file must be named `browserstack.yml` and it must be in the directory which contains the tests `.csproj` file _(IE: this directory, which contains this README file)_.
52+
There is a `browserstack.yml` already present in this directory but it is configured so that most of its settings are read from environment variables.
5353

54-
There are seven sample configuration files available in the `Tools/` directory, which target seven different web browser/OS combinations.
55-
These happen to be the targets for the CBT CI run.
56-
You are welcome to copy one of these YAML files into the `CSF.Screenplay.Selenium.Tests` directory and rename it to `browserstack.yml`.
57-
Alternatively [you may craft your own BrowserStack configuration file].
58-
59-
If you use one of the sample configurations, note that the `userName` and `accessKey` properties are omitted.
54+
You may wish to adjust the configuration file and replace the environment variable usage with selections of your own choice.
55+
Also note that the `userName` and `accessKey` properties are omitted in the provided configuration file, as these are secrets.
6056
_You will need to provide your own BrowserStack credentials_.
57+
Alternatively [you may craft your own BrowserStack configuration file].
6158

6259
[you may craft your own BrowserStack configuration file]: https://www.browserstack.com/docs/automate/capabilities
6360

Tests/CSF.Screenplay.Selenium.Tests/ScreenplayFactory.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
using CSF.Extensions.WebDriver;
21
using Microsoft.Extensions.Configuration;
32
using Microsoft.Extensions.DependencyInjection;
43
using Microsoft.Extensions.Logging;

0 commit comments

Comments
 (0)