testcontainers / testcontainers/testcontainers-java

VNC recording not working correctly if BrowserWebDriverContainer used as @ClassRule

オープン
#707 コメント 0 件 リアクション 2 件 担当者 0 名 GitHub で見る

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

modules/selenium resolution/acknowledged type/bug
主要言語
Java
スター
8.7k
フォーク
1.9k
平均マージ
2日 17時間
マージ済み PR(30日)
9

説明

The following test won't record any videos:

public class ChromeRecordingWebDriverContainerClassRuleTest extends BaseWebDriverContainerTest {

    @ClassRule
    public static BrowserWebDriverContainer chrome = new BrowserWebDriverContainer()
        .withDesiredCapabilities(DesiredCapabilities.chrome())
        .withRecordingMode(RECORD_FAILING, new File("./build/"))
        .withRecordingFileFactory(new DefaultRecordingFileFactory());

    @Test
    public void recordingTestThatShouldBeRecordedButDeleted() {
        doSimpleExplore(chrome);
    }

    @Test
    public void failingTest() {
        doSimpleExplore(chrome);
        assert false;
    }
}

If recording mode is set to RECORD_ALL, only a single file is created:
PASSED-ChromeRecordingWebDriverContainerClassRuleTest-null-20180523-095412.flv

If the container is used as @Rule with RECORD_ALL, the two expected files are created:
FAILED-ChromeRecordingWebDriverContainerClassRuleTest-failingTest-20180523-095506.flv
PASSED-ChromeRecordingWebDriverContainerClassRuleTest-recordingTestThatShouldBeRecordedButDeleted-20180523-095511.flv

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

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

調査の方向性

ChromeRecordingWebDriverContainerClassRuleTest から始め、RECORD_ALL を使って @ClassRule と @Rule の違いを再現します。クラススコープのテストにおける BrowserWebDriverContainer の記録ライフサイクルと記録ファイルの命名を追跡します。各テストがテスト名を含む期待どおりの記録を生成すれば完了です。

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

評価

技術スタック
docker, java
領域
testing
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
45/100

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

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