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

Đang mở
#245 0 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 6 ngày

@AnSergioFern đang làm issue này rồi.

Từ ngày 23/11/2026.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

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
Ngôn ngữ chính
Python
Star
3
Fork
1
Merge trung bình
5 ngày 9 giờ
Pull request đã merge (30 ngày)
23

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của ansys/Visual-Interactive-Simulation-Object-Renderer

Tất cả issue của ansys/Visual-Interactive-Simulation-Object-Renderer

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.