Skip to content

Commit bafbeaf

Browse files
authored
Fix tests parallelization (#134)
1 parent ae9fbce commit bafbeaf

File tree

7 files changed

+8
-13
lines changed

7 files changed

+8
-13
lines changed

Aquality.Selenium/tests/Aquality.Selenium.Tests/Integration/UITest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using Aquality.Selenium.Browsers;
22
using NUnit.Framework;
33

4-
[assembly: LevelOfParallelism(15)]
4+
[assembly: LevelOfParallelism(10)]
55
namespace Aquality.Selenium.Tests.Integration
66
{
77
[TestFixture]

Aquality.Selenium/tests/Aquality.Selenium.Tests/Integration/Usecases/CustomBrowserFactoryTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
namespace Aquality.Selenium.Tests.Integration.Usecases
1313
{
1414
[TestFixture]
15+
[Parallelizable(ParallelScope.All)]
1516
internal class CustomBrowserFactoryTests
1617
{
1718
private static readonly string OverriddenDownloadDir = "custom download dir";

Aquality.Selenium/tests/Aquality.Selenium.Tests/Integration/Usecases/CustomElementTests.cs

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
using Aquality.Selenium.Browsers;
2-
using Aquality.Selenium.Elements;
1+
using Aquality.Selenium.Elements;
32
using Aquality.Selenium.Tests.Integration.TestApp.TheInternet.Forms;
43
using NUnit.Framework;
54
using OpenQA.Selenium;
65

76
namespace Aquality.Selenium.Tests.Integration.Usecases
87
{
9-
[TestFixture]
10-
internal class CustomElementTests
8+
internal class CustomElementTests : UITest
119
{
1210
[Test]
1311
public void ShouldBe_PossibleTo_CreateCustomTextBox()
@@ -22,12 +20,6 @@ public void ShouldBe_PossibleTo_CreateCustomTextBox()
2220
Assert.AreEqual(userNameTxb.Value, userNameCustomTxb.Text);
2321
}
2422

25-
[TearDown]
26-
public void TearDown()
27-
{
28-
BrowserManager.Browser.Quit();
29-
}
30-
3123
private class CustomTextBox : TextBox
3224
{
3325
public CustomTextBox(By locator, string name) : base(locator, name, ElementState.ExistsInAnyState)

Aquality.Selenium/tests/Aquality.Selenium.Tests/Unit/BrowserManagerTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66
namespace Aquality.Selenium.Tests.Unit
77
{
8+
[TestFixture]
9+
[Parallelizable(ParallelScope.All)]
810
internal class BrowserManagerTests
911
{
1012
[Test]

Aquality.Selenium/tests/Aquality.Selenium.Tests/Unit/ConfigurationTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace Aquality.Selenium.Tests.Unit
66
{
7-
[Parallelizable(ParallelScope.All)]
7+
[TestFixture]
88
internal class ConfigurationTests
99
{
1010
[Test]

Aquality.Selenium/tests/Aquality.Selenium.Tests/Unit/JavaScriptTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
namespace Aquality.Selenium.Tests.Unit
77
{
8+
[TestFixture]
89
[Parallelizable(ParallelScope.All)]
910
internal class JavaScriptTests
1011
{

Aquality.Selenium/tests/Aquality.Selenium.Tests/Unit/LoggerTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
namespace Aquality.Selenium.Tests.Unit
88
{
99
[TestFixture]
10-
[Parallelizable(ParallelScope.All)]
1110
internal class LoggerTests
1211
{
1312
private const string AddTargetLogFile = "AddTargetTestLog.log";

0 commit comments

Comments
 (0)