UI-DEN-5638_Squish Migration

Activity

UI-DEN-5638-1 30

Keyboard shortcuts  
  • Summarize the review outcomes (optional)
     
    #permalink

    Details

    Warning: no files are visible, they have all been filtered.
    Participant Role Time Spent Comments Latest Comment
    plucia  (deleted user)
    Author 5h 6m 14 Nothing has changed about the usage of the SquishQt API, ...
    Reviewer - Complete 2h 33m 16 Still don't feel comfortable with this solution and haven...
    pmontazemi  (deleted user)
    Reviewer completed
    Reviewer - Complete 9m    
    Total   7h 49m 30  
    #permalink

    Objectives

    There are no specific objectives for this review.

    Branches in review

    #permalink

    Issues Raised From Comments

    Key Summary State Assignee
    #permalink

    General Comments

    plucia  (deleted user)

    Related dialin code review: http://dvm-linux02:8060/cru/DIALIN-DEN-5638-1

    Related dialin code review: http://dvm-linux02:8060/cru/DIALIN-DEN-5638-1

    plucia  (deleted user)

    As of 12/30/2020, with these changes: Code Coverage: 100% Squish Tests Passin...

    As of 12/30/2020, with these changes:
    Code Coverage: 100%
    Squish Tests Passing: 100%

    Behrouz NematiPour

    It is wrong to create an instance of HDSimulator each time you want to use an...

    It is wrong to create an instance of HDSimulator each time you want to use any function in that class.
    1 - this class has not been defined as a static class, therefore, all the listers in class will be listening for each instance and the question is which one is going to respond, or all will respond, and then we will have multiple responses.
    2 -This class not only should have the "cmd_" functions as static
    3 - But also it needs to be a singleton class if want to have listers.

    The design and usage of the class are not correct.

    plucia  (deleted user)

    Limiting the HDSimulator to static functions prevents you from maintaining an...

    Limiting the HDSimulator to static functions prevents you from maintaining any state between successive calls and is incompatible with the DenaliCanMessenger. It is an improvement to hold state information and allows us to use the DenaliCanMessenger. Using the DenaliCanMessenger and dialin eliminates the need to maintain duplicated codebases and allows for bidirectional messaging. Your squish folder was doing the same thing as dialin but on a smaller scale.

    1 - The test scripts are run in a consecutive manner, not in parallel. Each test should be self contained.
    2 - (See statement above). This comment is about dialin, not testsuites.
    3 - (See statement above). This comment is about dialin, not testsuites.

    Behrouz NematiPour

    I don't mean to limit the HDSimulator to static functions, it can have static...

    I don't mean to limit the HDSimulator to static functions, it can have static and normal methods.


    1 - The test scripts are run in a consecutive manner, not in parallel. Each test should be self contained.

    I agree in this case but the general implementation and design of HDSimulator lead to that misuse of the class.

    plucia  (deleted user)

    We are in agreement that each test should be self contained. To ensure each t...

    We are in agreement that each test should be self contained.
    To ensure each test is self-contained, each test needs to have a separate instance of HDSimulator.
    The design of dialin is not the focus of this review...

    /shared/scripts/names.py Changed
    /simulator/run.py Changed
    /tst_AlarmCleared/test.py Changed
    /tst_AlarmStatusData/test.py Changed
    Open in IDE #permalink
    /tst_AlarmTriggered/test.py Changed
    Open in IDE #permalink
    /tst_Alarm_Colors/test.py Changed
    /tst_CANBusFaultCount/test.py Changed
    /tst_ConfirmPrimingBegin/test.py Changed
    /tst_CreateTreatment/test.py Changed
    /tst_DGDrainPumpData/test.py Changed
    Open in IDE #permalink
    /tst_DGHeatersData/test.py Changed
    /tst_DGLoadCellReadingsData/test.py Changed
    /tst_DGOperationMode/test.py Changed
    Open in IDE #permalink
    /tst_DGPressureData/test.py Changed
    /tst_DGROPumpData/test.py Changed
    Open in IDE #permalink
    /tst_DGReservoirData/test.py Changed
    /tst_DGTemperaturesData/test.py Changed
    /tst_DGValvesStatesData/test.py Changed
    /tst_DebugText/test.py Changed
    /tst_HDBloodFlowData/test.py Changed 9
    Open in IDE #permalink
    /tst_HDInletFlowData/test.py Changed
    Open in IDE #permalink
    /tst_HDOperationModeData/test.py Changed
    Open in IDE #permalink
    /tst_HDOutletFlowData/test.py Changed
    Open in IDE #permalink
    /tst_HDPressureOcclusionData/test.py Changed
    Open in IDE #permalink
    /tst_HomeScreen/test.py Changed
    /tst_Internals/test.py Changed
    Open in IDE #permalink
    /tst_ServiceShutdown/test.py Changed 5
    /tst_TreatmentSalineData/test.py Changed
    /tst_TreatmentScreen/test.py Changed
    Open in IDE #permalink
    /tst_TreatmentStatesData/test.py Changed 6
    /tst_Treatment_Adjustment_BloodDialysate/test.py Changed
    /tst_Treatment_Adjustment_Duration/test.py Changed
    Open in IDE #permalink
    /tst_Treatment_Adjustment_Saline/test.py Changed
    Open in IDE #permalink
    /tst_Treatment_Adjustment_Ultrafiltration/test.py Changed
    /tst_Treatment_BloodDialysateFlowRate/test.py Changed
    Open in IDE #permalink
    /tst_Treatment_ParametersRange/test.py Changed
    /tst_Treatment_PressureOcclusion/test.py Changed
    /tst_Treatment_Section_BloodDialysate/test.py Changed
    Open in IDE #permalink
    /tst_Treatment_Time/test.py Changed
    Open in IDE #permalink
    /tst_Treatment_Ultrafiltration/test.py Changed
    Open in IDE #permalink
    /requirements.txt Changed 3
    Open in IDE #permalink

    Review updated: Reload | Ignore | Collapse

    You cannot reload the review while writing a comment.

    Log time