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

Abierto
#245 0 comentarios 0 reacciones 1 asignado Ver en GitHub

Los mantenedores suelen responder en 6 días

@AnSergioFern ya está trabajando en esto.

Desde el 23/11/2026.

Evaluación

Este issue todavía no se ha evaluado.

Descripción

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
Lenguaje dominante
Python
Estrellas
3
Forks
1
Merge medio
5 d 9 h
PR fusionados (30 d)
23

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de ansys/Visual-Interactive-Simulation-Object-Renderer

Todos los issues de ansys/Visual-Interactive-Simulation-Object-Renderer

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.