Index: shared/scripts/configuration/utility.py =================================================================== diff -u -rf334a1c3a2a5ef0d38fc9f2a22622d29d08edc78 -r0ae68e3bc7005f5a03eb5985677e13e5323680bd --- shared/scripts/configuration/utility.py (.../utility.py) (revision f334a1c3a2a5ef0d38fc9f2a22622d29d08edc78) +++ shared/scripts/configuration/utility.py (.../utility.py) (revision 0ae68e3bc7005f5a03eb5985677e13e5323680bd) @@ -12,8 +12,6 @@ # ############################################################################ - - import builtins import csv import names @@ -25,7 +23,6 @@ import squish import time import test - from builtins import format from builtins import int as pyInt from builtins import str as pyStr @@ -44,7 +41,6 @@ CLOUD_SYNC_LOG_LOCATION = '/home/denali/Desktop/sd-card/cloudsync/' LOG_LOCATION = "/home/denali/Desktop/sd-card/log/*.log" - def color_verification(exp_val = "Red", act_val = "#c53b33"): test.compare(config.COLOR_CODES[color_name],(act_val.color[name])) @@ -72,7 +68,7 @@ return names.o_bullet_object -def get_indicators(screen_obj, txt): +def scroll_to_zone(zone=None, screen_object=None): """ Verifying the busy indicators for BiCarb Pump Check and Acid Pump Check. indicator object of expected text @@ -1019,7 +1015,6 @@ except OSError: test.log("Directory can not be created") - def get_cloud_sync_input_file(): """ This function is the handler for getting file from log folder. @@ -1112,4 +1107,25 @@ if expected_epoch_value > minimum_epoch_value and expected_epoch_value < maximum_epoch_value : return True return False - + + +def keyboard_input(key_value): + names.o_keyboard_object["text"] = key_value + return names.o_keyboard_object + +def enter_keyboard_numeric_value(entry): + """ + Method to enter user desired + value using keypad + @param entry: (str) User expected value + """ + test.startSection("Entering {}".format(entry)) + for value in entry: + if value.isalpha(): + value = pyStr(value) + else: + value = pyInt(value) + key_val = squish.waitForObject(keyboard_input(value)) + squish.mouseClick(key_val) + utils.waitForGUI(0.1) + test.endSection()