ISISComputingGroup / ISISComputingGroup/IBEX
Squish Tests: Blocks are displayed correctly in the blocks panel
- Dominant language
- No language data
- Stars
- 6
- Forks
- 2
- Avg merge
- 16h 40m
- Merged PRs (30d)
- 2
Description
As a developer I would like to verify the following behaviour using Squish:
- Create a block.
- Disconnect the connected block.
- Verify that the block appears as disconnected within 5 seconds.
- Reconnect the block after various disconnection times. (Up to 5 minutes)
- Verify that the block appears as connected within 20 seconds.
---
- Set up the SIMPLE IOC.
- Create a block with address `VALUE1`.
- Write 4 to the block.
- Verify that the PV is in MINOR alarm state. (Orange border around the block)
- Write 1 to the block.
- Verify that the PV is in MAJOR alarm state. (Red border around the block)
- Put block into an INVALID-alarm state. (.SEVR field)
- Verify that the PV is INVALID. (Purple border around the block)
---
- Set up the SIMPLE IOC.
- Create blocks using the `P3` and `P5` PVs.
- Set values to `0`.
- Verify that blocks display as `0.000` for `P3` and `0.00000` for `P5`.
- Set values to `0.1`.
- Verify that blocks display as `0.100` for `P3` and `0.10000` for `P5`.
- Set values to `0.01`.
- Verify that blocks display as `0.010` for `P3` and `0.01000` for `P5`.
- Set values to `0.001`.
- Verify that blocks display as `0.001` for `P3` and `0.00100` for `P5`.
- Set values to `-0.001`.
- Verify that blocks display as `-0.001` for `P3` and `-0.00100` for `P5`.
- Set values to `0.001234`.
- Verify that blocks display as `0.001` for `P3` and `0.00123` for `P5`.
- Set values to `-0.001234`.
- Verify that blocks display as `-0.001` for `P3` and `-0.00123` for `P5`.
- Set values to `0.0009`.
- Verify that blocks display as `9.000E-4` for `P3` and `9.00000E-4` for `P5`.
- Set values to `-0.0009`.
- Verify that blocks display as `-9.000E-4` for `P3` and `-9.00000E-4` for `P5`.
- Set values to `15`.
- Verify that blocks display as `15.000` for `P3` and `15.00000` for `P5`.
- Set values to `999999`.
- Verify that blocks display as `999999.000` for `P3` and `999999.00000` for `P5`.
- Set values to `-999999`.
- Verify that blocks display as `-999999.000` for `P3` and `-999999.00000` for `P5`.
- Set values to `1000000`.
- Verify that blocks display as `1.000E6` for `P3` and `1.00000E6` for `P5`.
- Set values to `-1000000`.
- Verify that blocks display as `-1.000E6` for `P3` and `-1.00000E6` for `P5`.
- Set values to `1234567`.
- Verify that blocks display as `1.235E6` for `P3` and `1.23457E6` for `P5`.
- Set values to `-1234567`.
- Verify that blocks display as `-1.235E6` for `P3` and `-1.23457E6` for `P5`.
---
- Set up the SIMPLE IOC.
- Create block using the `LONG` PV.
- Set the block to these values `0, 15, 999999, 1000000, 1234567`, `-0, -15, -999999, -1000000, -1234567`.
- Verify that none of those display in scientific notation.
#### Additional info:
Can use the `Scripting` perspective and `g.cset(BLOCKNAME, VALUE)`.
Helpful script from the spreadsheet for the `longin` PV:
```python
from time import sleep
for val in [0, 15, 999999, 1000000, 1234567]:
g.cset(b.LONG_VAL, val)
sleep(0.5)
g.cset(b.LONG_VAL, -val)
sleep(0.5)
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.