Zum Inhalt

Test Protocol 1.1.9f1

0. Common

Note: First deploy application on controller to have a real live test.

Run Unittest - ng test
Run Protractor integration test - npm run e2e [--configuration=noserve] [--specs="e2e/2-configuration.e2e-spec.ts"]

Green colored text - Unittest or Protractor covers this test.
Expected as true as long tests run without issue.

Light blue colored text - Note from the author.
Slightly red colored text - Some issue.

Statehandling

  • [ ] User should stay login on reload as long as expire time isn't over
  • [ ] If expire time is over, the user should logout and can login again properly
  • [ ] If token is invalid because of restarting from backend then log out
  • [ ] Test valid behaviour after network update

Login

  • [x] User Logs in properly
  • [x] User stays logged in on reload

Logout

  • [x] User Logs logout properly
  • [ ] Buggy behavior after logout without refresh should not occur anymore.
  • [ ]
    (not possible except for blacklist because JWTs are stateless)
    Faking the Session from login time doesn't login again after logout - no session phishing

1. Status

State Group Subgroup
Axis is displayed
Crane is displayed
Trolley is displayed
Slewing is displayed
Hoist is displayed
General is displayed
Fault is displayed
Avoid is displayed
Track is displayed
Camera 0 is displayed
Camera 1 is displayed
Load is displayed
Obstacle is displayed

  • [ ] Obstacles are divides in 2 rows
  • [ ] n/a - parameters displayed greyed out.

2. Configuration

Common

Color coding
  • [ ] Saved changes from Default-Config are some kind of yellow.
  • [ ] Saved changes that have the value of Default-Config are kind of white.
  • [ ] Unsaved change are some kind of red.
  • [ ] Inherited changes are slightly brighter then config column changes.
Inheritance
  • [ ] Changes in config column values are inherited to the sets (if they are not modified by themselfs).
  • [ ] Inheritance is lost if set-column differs from config column.
  • [ ] If input cause in same values for config and sets the inheritance is back.
Completeness
* [x] Checks that all necessary values from the backend are mapped(Except: ID). * [x] Check that no unnecessary values are in application.

Add

  • [x] Popup warns about unsaved data loss.
  • [x] Data reload after confirm.
  • [x] New column is added with name Set %col-number%.

Remove

  • [x] Popup warns that action can not be undone.
  • [x] Data reload after confirm.
  • [x] it should also warn that unsaved data is lost.
  • [x] Last row should be removed until config.

Import

  • [ ] Dialog pops up where the user can select a target parset to override and select file.
  • [ ] unsaved data is not removed.
  • [ ] data is imported and behaves as manual input (see common).
  • [ ] bools should be correctly converted

Export

  • [ ] Dialog opens and you can choose wich set would be exported.
  • [ ]
    Note that unsaved data can not be exported.
  • [ ]
    Note that inherited data is not included in export.
  • [ ] Config export contains every parmeter.
  • [ ] Set export contains only modified parameters.

Copy

  • [ ] Dialog opens where you can select the source and target.
  • [ ] On confirm all modified data (also unsaved), is transferred to target set.
  • [ ] Working inheritance like written in see common.

Default

  • [ ] Dialog opens where you can choose wich set should be overidden by default factory values.
  • [ ]
    Eventually highlight the warning.
  • [ ] Default values are inserted in choosen set.
  • [ ] Inheritance is triggered for sets - no override from set data.

Filter

  • [ ] On typing the config values are filtered.
  • [ ] Complete empty tables due filterprocess aren't displayed.
  • [ ] Filter have no impact on pending changes (e.g. modified values are persistent even if not visible due filter)

Save

  • [ ] Saves the data (e.g. all modified data).
  • [ ] Reloads data.

Reload

  • [ ] Reloads data.
  • [ ] No more pending changes.

3. Chart

  • [ ] SI Units can be selected in the toolbar.
  • [ ] Wether Maximum Expansion, Autoscale or Manual scale can be selected in toolbar.
  • [ ] Two Charts on same scrren should not load their initial data via component but over the shared service.

Display

  • [ ] Should display all selected Parameters.
  • [ ] Pause stops graph.
  • [ ] Switching between SI units didn't trigger chart rebuild.
  • [ ] A tooltip of the current timestep, graphs and values is displayed on mouseover.

Combobox select

  • [ ] A keymap is displayed wich should show names of Properties that are visualized in Graph.
  • [ ] Behind the name is the current received value in []-Symbols.
  • [ ] In front of the names are some configuration possibilities.
  • [ ] Above are different Presets.
Presets
  • [ ] Presets are switchable and default presets are available.
  • [ ] Default preset.
  • [ ] Logic preset.
  • [ ] Slewing Gear preset.
  • [ ] Track preset.
  • [ ] Camera 0 preset.
Gear
  • [ ] The gear allows to switch shown graphs.
  • [ ] Graphs that already are in the preset are shown greyed out in select dialog.
  • [ ] Select dialog allows filtering of all Graphs that can be mapped by Property.
Visibility
  • [ ] Checkbox between gear affects visibility in chart.
  • [ ] Should not affect gear select dialog availibility.
Color field
  • [ ] Allows picking of color wich affects graph and keymap.

4. Oscillation

Stopwatch

  • [ ] Three buttons on default
  • [ ] Play
  • [ ] Transfer data to Average Set
  • [ ] Clear Time
  • [ ] Average Set under the button with following Components
  • [ ] Clear All Items
  • [ ] Item List with delete button and stopped time
  • [ ] The computed average
Stop time
  • [ ] While clicking play on the stopwatch the button it becomes a pause button
  • [ ] The transfer and clear time button are disabled during time stopping

Common Oscillation

Measurement panel
  • [ ] Tabs for Hoist up and Hoist down.
  • [ ] Hoist position can be direct import from state.
  • [ ] Stopwatch values can imported directly.
  • [ ] Periodiacal number is configurable and impacts all periodical fields.
  • [ ] Reset Values - Buttons resets all values (periodical number to 5; all other to empty).
  • [ ] Next Button triggers validator if values are incorrect.
  • [ ] Next Button goes to Apply panel if values are correct.
Apply panel
  • [ ] Shows the processed values.
  • [ ] Apply let you choose an target paramter set, inserts the data there and shows result panel.
Result panel
  • [ ] Shows the set where the data was inserted.
  • [ ] Shows added value.
  • [ ]
    Result should be computed correctly

5. Camera

  • [ ] Shows camera stream in preview panel.
  • [ ] Shows grid with infos about the camera.
  • [ ] Status is read from state.
  • [ ] Change to Activation is always available, independent from status.
  • [ ] Camera 1 option is disabled until implementation.

6. Calibration


No changes yet.

7. Track

  • [ ] Lets configure right deflection and left deflection.
  • [ ] Can be directly insert from Tracking Sensors.
  • [ ] If Tracking Sensors are unavailable 0 is inserted.
  • [ ] Calibrate-Button: Process values.
  • [ ] Apply Button inserts values to Config Set.


Add some kind of description here?

8. Automation

Color coding
  • [ ] Changed rows are colored red.
  • [ ] Marked as removed rows are colored grey.
Vaidation
  • [ ] Failed validation blocks save button.
  • [ ] No doubled names are allowed.
  • [ ] Min values must be lesser then max values.
Reload
  • [ ] Reloads default location data.
Save
  • [ ] Saves only first column checked rows that have been changed or marked as removed.
Add
  • [ ] Adds row at the end.
  • [ ] Scrolls at the end of the list automatically.
Remove
  • [ ] Marks selected values as removed.
  • [ ] On second click de-marks rows.
Export
  • [ ] Opens dialog to export data
  • [ ] On confirm it downloads .json file
Import
  • [ ] Opens dialog to select Json to import
  • [ ] Imports json file directly

  • Highlight the warning.
  • [ ] Show error if import fails
Filter
  • [ ] Only available to obstacles
  • [ ] Doesn't affect marked data

9. Automation-Preview

Toolbar

  • [ ] ZoomIn-Button zooms in
  • [ ] ZoomOut-Button zooms out
  • [ ] Flip-Trolley-Axis flips x axis
  • [ ] Flip-Trolley-Axis stays persistent at refresh
  • [ ] Flip-Crane-Axis flips y axis
  • [ ] Flip-Crane-Axis stays persistent at refresh
  • [ ] Show Clearence shows clearence
  • [ ] Show Clearence stays persistent at refresh

Preview

  • [ ] Shows limit and prelimit in canvas
  • [ ] Shows load-position directly grabbed from state
  • [ ] Shows positions from table
  • [ ] Shows obstacles from table

10. Info

  • [ ] Shows system status
  • [ ] Green is okay
  • [ ] Yellow warning symbol if anything is not correct like multiple pro instances
  • [ ] Shows red symbol if something is wrong
  • [ ] Grey - Module is turned off
  • [ ] Pro modules can be turned on and off

11. Journal

  • [ ] Shows log ouput from selected pro version
  • [ ] Logged module can be switched
  • [ ] Shows message if changing logged module

  • Bug: Shows the message to with offset to log switch
  • [ ] Logged count can be switched
  • [ ] Minimum Loglevel can be switched

  • Bug: There is some loglevel named sysBackend

12. System

  • [x] Loads current network configuration on init
  • [ ] Network configuration can be changed, leads to reboot of controller
  • [ ] Both network configurations can be modified at the same time
  • [x] Correctly validates data in input fields