Connection Handling
Use a DataProcessing/CircuitSimulator/Hierarchical project type for the following tests.
Note
Test the hierarchical service explicitly separately. Test the branch connection tests with the Circuit Simulator Service.
Connection tests
# |
Name |
Setup |
Execution |
Expectation |
|---|---|---|---|---|
1 |
Create connection |
Open a project and select a Blockeditor. |
|
Connection is created successfully without errors. |
2 |
Delete connection |
Open a project and select a Blockeditor with two connected blocks. |
|
Connection is deleted successfully without errors. |
3 |
Create connection - Undo/Redo |
Open a project and select a Blockeditor. |
|
|
4 |
Delete connection - Undo/Redo |
Open a project and select a Blockeditor with two connected blocks. |
|
|
5 |
Change position of connection |
Open a project and select a Blockeditor with two connected blocks. |
|
|
6 |
Create a branch connection |
Open a CircuitSimulator project and select a Circuit. |
|
Branch connection is created successfully in one modelstate without errors. |
7 |
Delete a branch connection |
Open a CircuitSimulator project and select a Circuit with three blocks connected via a branch connection. |
|
Branch connection is deleted successfully without errors. |
8 |
Create a branch connection - Undo/Redo |
Open a CircuitSimulator project and select a Circuit. |
|
|
9 |
Delete a branch connection - Undo/Redo |
Open a CircuitSimulator project and select a Circuit with three blocks connected via a branch connection. |
|
|
10 |
Change position of branch connection |
Open a CircuitSimulator project and select a Circuit with three blocks connected via a branch connection. |
|
|
11 |
Create connection between Branch connector and Block |
Open a CircuitSimulator project and select a Circuit with three blocks connected via a branch connection. |
|
Connection is created successfully without errors. |
Connection snapping tests
# |
Name |
Setup |
Execution |
Expectation |
|---|---|---|---|---|
1 |
Connection unsnapping (one sided) |
Open a project and select a Blockeditor with 2 unconnected blocks. |
|
Connection is unsnapped and is only connected to one block without errors. |
2 |
Connection unsnapping (both sides) |
Open a project and select a Blockeditor with 2 connected blocks. |
|
Connection is unsnapped from both blocks without errors. |
3 |
Connection snapping (use dragging of the block) |
Open a project and select a Blockeditor with 2 blocks and one connection which is connected with one block. |
|
Connection is snapped without errors. |
4 |
Connection snapping (use dragging of the connection) |
Open a project and select a Blockeditor with 2 blocks and one connection which is connected with one block. |
|
Connection is snapped without errors. |
5 |
Branch connection unsnapping |
Open a CircuitSimulator project and select a Circuit with 3 connected blocks via a branch connection. |
|
One connection of the branch is unsnapped from one block without errors while the other connections remain connected. |
6 |
Branch connection snapping |
Open a CircuitSimulator project and select a Circuit with 3 blocks which are connected via a branch connection |
|
Connection is snapped back to the block without errors. |
7 |
Position change of unsnapped connection |
Open a project and select a Blockeditor with 2 blocks and one connection which is fully unsnapped. |
|
|
8 |
Snap connection after block removed |
Open a project and select a Blockeditor with 2 blocks and one connection which is connected to both blocks. |
|
Connection is snapped to the newly dropped block without errors. |
9 |
Snap one connection to two blocks in single action (use dragging of the connection) |
Open a project and select blockeditor with 2 blocks and one connection which is unconnected. |
|
Connection is snapped to both blocks without errors. |
10 |
Snap one Connection to two blocks in single action (use dragging of the blocks) |
Open a project and select blockeditor with 2 blocks and one connection which is unconnected. |
|
Connection is snapped to both blocks without errors. |
11 |
Snap two or more connections to one block in single action |
Open a CircuitSimulator project and select Circuit with 3 blocks and two connections which are unconnected. |
|
Both connections are snapped to the block without errors. |
12 |
Snap two or more connections to one block in single action (use dragging of the block) |
Open a CircuitSimulator project and select Circuit with 3 blocks and two connections which are unconnected. |
|
Both connections are snapped to the block without errors. |