Index: shared/scripts/names.py =================================================================== diff -u -r48849c79a27af51cb7c8c580b26694b3a880c603 -rfa469c9c11cf97cf0157ab7478176897fae215cc --- shared/scripts/names.py (.../names.py) (revision 48849c79a27af51cb7c8c580b26694b3a880c603) +++ shared/scripts/names.py (.../names.py) (revision fa469c9c11cf97cf0157ab7478176897fae215cc) @@ -55,8 +55,13 @@ uf_close_button = {"container": o_Overlay, "id": "_image", "source": "qrc:/images/iClose", "type": "Image", "unnamed": 1, "visible": True} fluid_text = {"container": treatmentStack_treatmentHome_TreatmentHome, "text": "Volume Delivered", "type": "Text", "unnamed": 1, "visible": True} cumulative_fluid_text = {"container": treatmentStack_treatmentHome_TreatmentHome, "text": "Cumulative Delivered", "type": "Text", "unnamed": 1, "visible": True} +o_initialModeScreen_ScreenItem = {"container": o_Gui_MainView, "id": "_initialModeScreen", "type": "ScreenItem", "unnamed": 1, "visible": True} +#post screen +busy_indicator = {"container": o_initialModeScreen_ScreenItem, "id": "_busyIndicator", "source": "qrc:/images/iBusy", "type": "Image", "unnamed": 1, "visible": True} +check_indicator = {"container": o_initialModeScreen_ScreenItem, "id": "_checkIndicator", "source": "qrc:/images/iBusyDone", "type": "Image", "unnamed": 1, "visible": True} +fail_indicator = {"container": o_initialModeScreen_ScreenItem, "id": "_checkIndicator", "source": "qrc:/images/iBusyFail", "type": "Image", "unnamed": 1, "visible": True} Index: tst_post/test.py =================================================================== diff -u -red42bcf28d1d324fb3caff7301b4aeb03041d7ff -rfa469c9c11cf97cf0157ab7478176897fae215cc --- tst_post/test.py (.../test.py) (revision ed42bcf28d1d324fb3caff7301b4aeb03041d7ff) +++ tst_post/test.py (.../test.py) (revision fa469c9c11cf97cf0157ab7478176897fae215cc) @@ -16,8 +16,9 @@ # This test is a demo and is intended to be used as an example on how to call the dialin API within SquishQt. -# import names -from time import sleep +import names + +# from time import sleep from dialin.ui import utils from dialin.ui import unittests @@ -32,17 +33,22 @@ hd = HDSimulator() #dg = DGSimulator() - hd.cmd_send_power_on_self_test_version_request() + hd.cmd_send_hd_operation_mode(0, 0) + + hd.cmd_send_hd_post(19, True, True) + hd.cmd_send_hd_post(15, False, True) + test.log("done") + for i in range(20): hd.cmd_send_hd_post(i, True, False) - sleep(0.1) + snooze(0.1) hd.cmd_send_hd_post(0, True, True) - hd.cmd_send_hd_operation_mode(4, 0) + unittests.test_python_version() unittests.test_crc8() unittests.test_can0() utils.tstDone() - +