[Bug]: Playwright MSTest.Sdk Uses MSTest Runner, Ignoring runsettings Configuration / Microsoft.Testing.Platform

オープン
#3,124 コメント 12 件 リアクション 9 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
42/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
静か
技術スタック
csharp
領域
testing-qa

調査の方向性

記載されている .csproj および runsettings 構成を使用して、Playwright 1.50.0、MSTest.Sdk 3.8.1、net8.0 で問題を再現します。true の有無による動作を比較し、その後、各 runner で Playwright 固有の設定がどのように読み込まれるかを追跡します。完了条件は、BrowserName、ExpectedTimeout、Headless、Channel が MSTest と VSTest で一貫して適用されることです。

索引モデルが issue の本文から書いたものです。

説明

Version

1.50.0

Steps to reproduce

When using Playwright version 1.50.0 with MSTest.Sdk version 3.8.1, the MSTest runner is used instead of the expected VSTest runner. As a result, the Playwright configuration section in the runsettings file is ignored. Key settings such as BrowserName, ExpectedTimeout, Headless, and Channel do not work.

However, when <UseVSTest>true</UseVSTest> is explicitly set in the .csproj file, and the VSTest runner is used, the Playwright settings in the runsettings file work as expected.

Expected behavior
  • Playwright should respect the runsettings file when running tests with MSTest.Sdk.
  • Playwright-specific settings such as BrowserName, ExpectedTimeout, Headless, and Channel should be applied correctly, regardless of whether MSTest or VSTest is used.
Actual behavior
  • With MSTest runner, the Playwright settings in runsettings are ignored.
  • With VSTest runner (<UseVSTest>true</UseVSTest>), the settings work as expected.
Additional context

This issue suggests that MSTest.Sdk is defaulting to the MSTest runner instead of the VSTest runner, which does not properly load the Playwright settings from runsettings. It would be helpful if Playwright could support runsettings consistently across different test runners.

Would appreciate any insights or fixes on this issue. Thanks!

Environment
- Playwright Version: 1.50.0
- MSTest.Sdk Version: 3.8.1
- .NET Version: net8.0
主要言語
C#
スター
3k
フォーク
307
平均マージ
1日 14時間
マージ済み PR(30日)
32

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

microsoft/playwright-dotnet のほかの issue

microsoft/playwright-dotnet の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。