[Test Case]: TC-5 Cross-mode state load and tensor magnitude color map

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

维护者通常 6 天内回复

@AnSergioFern 已经在做这个了。

开始于 2026年11月23日。

评估

这个 Issue 还没有评估数据。

描述

test case
📝 Description

Automated E2E regression (P2, only after the P1 test cases are done, otherwise moved to a follow-up story). Verify that a state saved in one rendering mode loads correctly in the other mode, including a 9-component tensor variable colored by magnitude.

Same-mode save/load is already covered by tests/integration/test_save_load_state.py and tests/e2e/regressions/test_save_load_state.py and is not repeated here.

📜 Steps
  1. CLIENT instance with tensors9.vtp. Color by Tensors9, component Magnitude. Change the camera and a part opacity. Save state to a temp dir.
  2. Start a fresh SERVER instance without input (empty scene), open the page, call load_state(dir), then reload.
  3. Repeat in the reverse direction (SERVER save, CLIENT load).

Note: load_state restores datasets from snapshots only when the scene is empty. On a non-empty scene it only applies the state to datasets already loaded. This is by design.

🧪 Expected Results

After load and after reload in the other mode:

  • color_by is Tensors9 and color_by_component is the magnitude value (-1).
  • The legend title and range match the source.
  • The part opacity matches, and the camera matches within 1e-3.
  • Only these named fields are compared. No unexpected console or page errors.
  • Negative validation: positive and negative reports are attached here.
📁 Test Data
  • examples/assets/tensors9.vtp (Tensors9, 9 components)
🔗 Related Issues
  • Stories: #20, #22, #23, #24
  • 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 摘要。