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

Đang mở
#244 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 (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
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.