Index: tst_main_treatment_vitals/test.py =================================================================== diff -u -rbf0f91cc77deda73a01e96768c76160d71e46ddf -rb38389f9f6ed5e603368e16902671b824d8c9202 --- tst_main_treatment_vitals/test.py (.../test.py) (revision bf0f91cc77deda73a01e96768c76160d71e46ddf) +++ tst_main_treatment_vitals/test.py (.../test.py) (revision b38389f9f6ed5e603368e16902671b824d8c9202) @@ -105,7 +105,7 @@ """ test.startSection("Verify the last read of blood pressure and heart rate") expected_last_read = "Interval: 30min , Last Read: {}".format(saved_time) - last_read = waitForObject(names.vitals_reading_obj(expected_last_read)) + last_read = waitForObject(vitals_reading_obj(expected_last_read)) last_read = last_read.text.toUtf8().constData() test.compare(last_read, expected_last_read, "Last read time should be {}".format(last_read)) test.endSection() @@ -120,13 +120,13 @@ """ test.startSection("Verify the user entered {} value {} in main-treatment screen".format(vital, value)) if save: - input_field = waitForObject(names.vitals_reading_obj(value)) + input_field = waitForObject(vitals_reading_obj(value)) entered_value = input_field.text.toUtf8().constData() value = str(value) test.compare(entered_value, value, "Expected {} value: {} should be equal to Actual {} value: {}".format(vital, value, vital, entered_value)) elif (save is False): - if object.exists(names.vitals_reading_obj(value)) is False: + if object.exists(vitals_reading_obj(value)) is False: test.log("Entered is not saved and is not updated in main-treatment screen") test.endSection()