Motus.Testing.MSTest
1.0.5
See the version list below for details.
dotnet add package Motus.Testing.MSTest --version 1.0.5
NuGet\Install-Package Motus.Testing.MSTest -Version 1.0.5
<PackageReference Include="Motus.Testing.MSTest" Version="1.0.5" />
<PackageVersion Include="Motus.Testing.MSTest" Version="1.0.5" />
<PackageReference Include="Motus.Testing.MSTest" />
paket add Motus.Testing.MSTest --version 1.0.5
#r "nuget: Motus.Testing.MSTest, 1.0.5"
#:package Motus.Testing.MSTest@1.0.5
#addin nuget:?package=Motus.Testing.MSTest&version=1.0.5
#tool nuget:?package=Motus.Testing.MSTest&version=1.0.5
Motus.Testing.MSTest
MSTest integration for the Motus browser automation framework.
Overview
Provides MotusTestBase, a base class that shares a single browser across all tests in the assembly and creates an isolated IBrowserContext and IPage per test. Compatible with [Parallelize]. Failure tracing is built in and captures a trace ZIP when a test fails, controlled by motus.config.json or the MOTUS_FAILURES_TRACE environment variable.
Installation
dotnet add package Motus.Testing.MSTest
Quick Start
using Motus.Testing.MSTest;
[TestClass]
public class SearchTests : MotusTestBase
{
[AssemblyInitialize]
public static async Task Setup(TestContext _) => await LaunchBrowserAsync();
[AssemblyCleanup]
public static async Task Cleanup() => await CloseBrowserAsync();
[TestMethod]
public async Task SearchBox_AcceptsInput()
{
await Page.GotoAsync("https://example.com");
await Page.Locator("[name=q]").FillAsync("motus");
var value = await Page.Locator("[name=q]").InputValueAsync();
Assert.AreEqual("motus", value);
}
}
Customization
Override LaunchOptions or ContextOptions to configure the browser or viewport:
protected override LaunchOptions LaunchOptions => new() { Headless = false };
protected override ContextOptions ContextOptions => new() { Viewport = new ViewportSize(1920, 1080) };
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Motus.Abstractions (>= 1.0.5)
- Motus.Testing (>= 1.0.5)
- MSTest.TestFramework (>= 3.5.2)
-
net8.0
- Motus.Abstractions (>= 1.0.5)
- Motus.Testing (>= 1.0.5)
- MSTest.TestFramework (>= 3.5.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.1.0 | 88 | 9/15/2026 |
| 1.0.15 | 129 | 7/29/2026 |
| 1.0.14 | 123 | 6/10/2026 |
| 1.0.13 | 118 | 6/4/2026 |
| 1.0.12 | 120 | 5/26/2026 |
| 1.0.11 | 112 | 5/2/2026 |
| 1.0.10 | 112 | 4/21/2026 |
| 1.0.9 | 121 | 4/14/2026 |
| 1.0.8 | 114 | 4/10/2026 |
| 1.0.7 | 118 | 4/5/2026 |
| 1.0.6 | 113 | 3/30/2026 |
| 1.0.5 | 117 | 3/30/2026 |
| 1.0.4 | 112 | 3/30/2026 |
| 1.0.3 | 116 | 3/30/2026 |
| 1.0.2 | 111 | 3/29/2026 |
| 1.0.1 | 120 | 3/29/2026 |