[Test Case]: TC-4 Live API scene changes appear without reload in SERVER mode

未关闭
#244 0 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

维护者通常 6 天内回复

@AnSergioFern 已经在做这个了。

开始于 2026年11月23日。

评估

这个 Issue 还没有评估数据。

描述

test case
📝 Description

Automated E2E regression (P1), SERVER mode with a CLIENT control. Verify that scene changes made through the Python API (add_dataset, remove_dataset, update_variables, and add_dataset before start) reach an open browser page without a reload.

📜 Steps
  1. Start a fresh instance with the sphere scene, open the page and wait for frame readiness.
  2. Call add_dataset("tests/files/many_blocks/many_blocks.vtm") from Python.
  3. Call remove_dataset(<id from step 2>).
  4. Color level_1_block_0_part_0 by gradient_variable_0 in the UI, then call update_variables on the sphere dataset with new data for gradient_variable_0 (all values times 10).
  5. #238 scenario on a new fresh instance: call add_dataset(many_blocks), then start(sphere scene).

Do not reload the page at any step.

🧪 Expected Results
  • Step 2: the tree gains the many_blocks dataset node within 10 s, and a new frame arrives (SERVER).
  • Step 3: the node disappears, a new frame arrives and there are no console errors.
  • Step 4: the legend range reflects the new data (about 10 times the previous maximum). Only the visible result is asserted, not whether the frontend rebuilt.
  • Step 5: the sphere dataset is in the tree, list_datasets() contains only it, and the SERVER frame differs from an empty-scene frame. If #238 is still open and reproduces, this step is xfail(strict=True, reason="#238").
  • Same tree and state results in CLIENT and SERVER.
  • Negative validation: positive and negative reports are attached here.
📁 Test Data
  • examples/assets/vtk_scene_sphere_l2_b3_r32_v3_c1_z3.vtm and .json
  • tests/files/many_blocks/many_blocks.vtm (66 leaf parts)
🔗 Related Issues
  • Story: #29
  • Bugs: #220, #236, #238
  • Parent story: linked as sub-issue
主要语言
Python
星标
3
派生
1
平均合并
5 天 9 小时
30 天内合并 PR
23

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

ansys/Visual-Interactive-Simulation-Object-Renderer 的其他 Issue

查看 ansys/Visual-Interactive-Simulation-Object-Renderer 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。