Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,8 @@ test e.g. invalid order records.

* Create a new WebDriver instance per test. This helps ensure test isolation
and makes parallelization simpler.

* If you choose [pytest](https://pytest.org/) as your test runner, this can be
easily done by yielding your driver in a global fixture. This way each test gets its own
driver instance, and you can ensure that drivers always quit after a test is finished
(pass or fail).
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@ aliases: [

* テストごとに新しいWebDriverインスタンスを作成します。
これにより、テストの分離が保証され、並列化がより簡単になります。

* もしテストランナーとして[pytest](https://pytest.org/)を選ぶ場合、グローバルフィクスチャでドライバーを返すことで簡単に実行できます。この方法を使えば、各テストが独自のドライバーインスタンスを取得し、テストが終了した後(成功・失敗にかかわらず)常にドライバーが終了することを保証できます.
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,5 @@ teste, por exemplo registros de pedidos inválidos.

* Crie uma nova instância do WebDriver por teste. Isso ajuda a garantir o isolamento do teste
e torna a paralelização mais simples.

* Se você escolher o [pytest](https://pytest.org/) como seu executor de testes, isso pode ser facilmente feito retornando seu driver em um fixture global. Dessa forma, cada teste terá sua própria instância de driver, e você pode garantir que os drivers sempre sejam encerrados após a conclusão de um teste (seja ele aprovado ou reprovado)
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@ aliases: [

* 每次测试都创建一个新的WebDriver实例.
这在确保测试隔离的同时可以保障并行化更为简单.

* 如果你选择 [pytest](https://pytest.org/) 作为你的测试运行器,可以通过在全局 fixture 中返回你的驱动程序轻松完成。这样,每个测试都会获得自己的驱动程序实例,并且可以确保测试完成后(无论通过还是失败)驱动程序始终会退出