Index: tst_post/test.py =================================================================== diff -u -r4086fb88d2eb7386ca0d215e3b2c7df3d79b53a6 -r8fae5ddeb41efde040d5ca6a4314eca0425e5ca2 --- tst_post/test.py (.../test.py) (revision 4086fb88d2eb7386ca0d215e3b2c7df3d79b53a6) +++ tst_post/test.py (.../test.py) (revision 8fae5ddeb41efde040d5ca6a4314eca0425e5ca2) @@ -55,22 +55,7 @@ elif final_msg_posted is False: test.compare(value, progress, "{} should reflect on progress bar".format(value)) - -def post_a_message_and_verify_progress_and_completion(msgs_and_conditions): - """ - method to post a message and verify the progress bar and - if final message is posted - """ - for msg, conditions in msgs_and_conditions.items(): - final_msg = conditions[0] - final_msg_posted = conditions[1] - hd_simulator.cmd_send_hd_post(msg, final_msg, final_msg_posted) - dg_simulator.cmd_send_dg_post(msg, final_msg, final_msg_posted) - utils.waitForGUI(1) - verify_the_progress(value=msg, final_msg_posted=final_msg_posted) - verify_final_message_posted(final_msg=final_msg, final_msg_posted=final_msg_posted) - def verify_final_message_posted(final_msg=None, final_msg_posted=None) -> None: """ method to verify the indication of final @@ -100,6 +85,21 @@ test.endSection() +def post_a_message_and_verify_progress_and_completion(msgs_and_conditions): + """ + method to post a message and verify the progress bar and + if final message is posted + """ + for msg, conditions in msgs_and_conditions.items(): + final_msg = conditions[0] + final_msg_posted = conditions[1] + hd_simulator.cmd_send_hd_post(msg, final_msg, final_msg_posted) + dg_simulator.cmd_send_dg_post(msg, final_msg, final_msg_posted) + utils.waitForGUI(1) + verify_the_progress(value=msg, final_msg_posted=final_msg_posted) + verify_final_message_posted(final_msg=final_msg, final_msg_posted=final_msg_posted) + + def main(): utils.tstStart(__file__)