Index: suite_leahi/tst_main_treatment/test.py =================================================================== diff -u -r8bbe28832f6ddbac6a506f6a9db42d2cad5cca9f -rb0c0d20adce234e6693bc4f376949cf581638b9a --- suite_leahi/tst_main_treatment/test.py (.../test.py) (revision 8bbe28832f6ddbac6a506f6a9db42d2cad5cca9f) +++ suite_leahi/tst_main_treatment/test.py (.../test.py) (revision b0c0d20adce234e6693bc4f376949cf581638b9a) @@ -1,3 +1,23 @@ +# Subject/Title: LDT -1220 Main Treatment Screen - SW - 02 - Screen Integration (MSG,QML) - Q&R - 15: SIT - Software Integration Tests - Squish Qt +# +# Functionalities: Testing all functionalities of main treatment screen +# +# Steps: +# 1 Pressure Ranges: +# - Set lower and upper bound for Arterial and test each limit +# - Set lower and upper bound for Venous and test each limit +# - Set lower and upper bound for trancememberance and test each limit +# 2 Ultrafiltration +# -Set lower and upper bound for UF Volume and test each limit +# -Set lower and upper bound for UF Rate and test each limit +# 3 TX time +# -Test the TX time completed status and paused status +# -Test the Ellapsed time and completed time +# 4 Set Points for main treatement screen +# -Set lower and upper bound for blood flow and test each limit +# -Set lower and upper bound for dialysate temp and test each limit +# -Set lower and upper bound for dialysate flow and test each limit +# -Set lower and upper bound for dialysate cond and test each limit import names from leahi_dialin.ui import utils @@ -311,16 +331,19 @@ verify_arterial_and_venous_value_in_main_treatment_screen(ACCEPTED,ART_LOW_VAL_MINUS_390,ART_HIGH_VAL_220,VENOUS_LOW_VAL_MINUS_90,VENOUS_HIGH_VAL_410,TMP_LOW_VAL_MINUS_640,TMP_HIGH_VAL_210) #UltraFiltration state + test.startSection("Verifying Ultrafiltration values on main treatment screen") verification_of_uf_from_main_treatment() for value in uf_filtration: start_test_treatment_ultrafiltration(**value) + test.endSection() #TX Time #Calculating total seconds into minutes and passing to treatment time verification + test.startSection("Verifying TX time on main treatment screen") for value in total_time_list: treatment_time_verification(value) #Check the treatment complete text message - test.compare(waitForObjectExists(names.Treatment_Complete_Text).text, "Treatment Complete", "Tx time completed text should be :" + str("Treatment Complete")) + test.compare(waitForObjectExists(names.treatmentTimeNotificationBarSmall).text, "Treatment Complete", "Tx time completed text should be :" + str("Treatment Complete")) td.td_treatment_time( tx_duration_s = 51 , tx_elapsed_s = 5 , tx_remaining_s = 6 ) @@ -334,9 +357,11 @@ 0 , 0 , 0 ) - test.compare(waitForObjectExists(names.Treatment_Paused_Text).text, "Treatment Paused", "Tx time paused text should be :" + str("Treatment Paused")) + test.compare(waitForObjectExists(names.treatmentTimeNotificationBarSmall).text, "Treatment Paused", "Tx time paused text should be :" + str("Treatment Paused")) + test.endSection() #TX Parameter Set Points + test.startSection("Verifying blood flow, dialysate temp,dialysate flow and dialyste cond on main treatment screen") verify_setPoints_from_main_treatement() utils.tstDone()