Index: shared/scripts/configuration/utility.py =================================================================== diff -u -r427a179e77bffa5f5beb1840df6ea7e6614e8787 -r6b19710351f0b217d2db86c52822ffbc9d33092b --- shared/scripts/configuration/utility.py (.../utility.py) (revision 427a179e77bffa5f5beb1840df6ea7e6614e8787) +++ shared/scripts/configuration/utility.py (.../utility.py) (revision 6b19710351f0b217d2db86c52822ffbc9d33092b) @@ -16,10 +16,11 @@ import sys import test import squish - +import object from configuration import config from dialin.ui import utils from builtins import int as pyInt +from builtins import str as pyStr from datetime import datetime @@ -31,12 +32,12 @@ @return boolean true/false """ container = squish.findObject(container) - containerPos = container.mapToGlobal(QPoint(0, 0)) + containerPos = container.mapToGlobal(squish.QPoint(0, 0)) container_x, container_y = pyInt(containerPos.x), pyInt(containerPos.y) container_width, container_height = pyInt(container.width), pyInt(container.height) obj = squish.findObject(obj) - objPos = obj.mapToGlobal(QPoint(0, 0)) + objPos = obj.mapToGlobal(squish.QPoint(0, 0)) obj_x, obj_y = pyInt(objPos.x), pyInt(objPos.y) obj_width, obj_height = pyInt(obj.width), pyInt(obj.height) @@ -69,7 +70,7 @@ screenHeight = pyInt(ScreenObj.height) screenWidth = pyInt(ScreenObj.width) squish.mouseWheel(ScreenObj, screenWidth-1000, - screenHeight-10, 0, -50, Qt.NoModifier) + screenHeight-10, 0, -50, squish.Qt.NoModifier) raise LookupError("zone object is not in view to the user after " + \ "trying 100 times") @@ -335,3 +336,15 @@ test.compare(ven_min, ven_low, "Actual Venous range minimum value: {} is equal to Expected value: {}".format(ven_min, ven_low)) test.endSection() + +def enter_keypad_value_bphr(entry): + """ + Method to enter user desired + value using keypad + @param entry: (str) User expected value + """ + test.startSection("Entering {}".format(entry)) + entry = pyStr(entry) #type casted into string format + for value in entry: + squish.mouseClick(squish.waitForObject(keypad_input(value))) + test.endSection() \ No newline at end of file