[Test Case]: TC-1 SERVER mode startup: no wasm, first frame and reload

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

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

@AnSergioFern がすでに取り組んでいます。

2026年11月23日 から。

評価

この issue はまだ評価されていません。

説明

test case
📝 Description

Automated E2E regression (P1). Verify that SERVER rendering mode starts without downloading VTK.wasm, streams frames to the browser and recovers after a page reload. CLIENT mode is the control.

This test case also delivers the shared test infrastructure:

  • rendering_mode option in tests/e2e/conftest.py (default client, existing tests unchanged)
  • a function-scoped fresh-instance fixture
  • a frame-readiness helper. SERVER: the stream img in .visor-viewer-background is visible, complete, naturalWidth > 0, with a blob: source, and two distinct frames have arrived. CLIENT: the existing WebGL helpers on canvas.vtk-wasm-1.
  • tests/helpers/utils/remote.py with capture_wasm_requests, reload_and_wait_for_frame, saved_state and collect_page_errors
  • a remote marker in pytest.ini
📜 Steps
  1. Start a fresh instance with the sphere scene and metadata, rendering_mode="server".
  2. Open index.html with network capture enabled.
  3. Wait for frame readiness (two decoded frames).
  4. Reload the page and wait for frame readiness again.
  5. Control: repeat steps 1-3 with rendering_mode="client".
🧪 Expected Results
  • SERVER: zero requests whose URL path ends in .wasm. The stream image is ready within 15 s before and after the reload. There is no canvas.vtk-wasm-1 element. The tree shows the dataset and its 9 leaf parts.
  • CLIENT: at least one .wasm request and a canvas.vtk-wasm-1 element.
  • No unexpected console or page errors in either mode.
  • Negative validation: running the SERVER assertions against the CLIENT instance fails on the wasm assertion. Positive and negative reports are attached here.
📁 Test Data
  • examples/assets/vtk_scene_sphere_l2_b3_r32_v3_c1_z3.vtm
  • examples/assets/vtk_scene_sphere_l2_b3_r32_v3_c1_z3.json
🔗 Related Issues
  • Stories: #26, #27, #28
  • Parent story: linked as sub-issue
主要言語
Python
スター
3
フォーク
1
平均マージ
5日 9時間
マージ済み PR(30日)
23

環境構築

はじめの一歩

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

ansys/Visual-Interactive-Simulation-Object-Renderer のほかの issue

ansys/Visual-Interactive-Simulation-Object-Renderer の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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