Index: suite_leahi/tst_headerbar_information_popup/test.py =================================================================== diff -u -rbf2ea2cbfd4e8cd89c5ef2b811c20d911d2d3250 -r2eb99d3d5db7c53fca759d79b73a096682c5c3e5 --- suite_leahi/tst_headerbar_information_popup/test.py (.../test.py) (revision bf2ea2cbfd4e8cd89c5ef2b811c20d911d2d3250) +++ suite_leahi/tst_headerbar_information_popup/test.py (.../test.py) (revision 2eb99d3d5db7c53fca759d79b73a096682c5c3e5) @@ -12,7 +12,7 @@ # 7 Set and Compare Information Parameters at their values Below the Minimum Allowed import names -from configuration import config, utility +from configuration import config from leahi_dialin.ui.td_messaging import TD_Messaging from leahi_dialin.ui import utils from leahi_dialin.ui.dd_messaging import DD_Messaging @@ -21,28 +21,21 @@ td_simulator = TD_Messaging() dd_simulator = DD_Messaging() -INFORMATION_PARAMETERS = [ - "OS Version", "UI Version", "TD Version", "TD FPGA Version", - "TD Serial Number", "DD Version", "DD FPGA Version", "DD Serial Number", -] - - def information_parameters(text): """ Method to set custom object property for information pop screen. @param text : (string) parameter text """ - names.o_informationParameters["text"] = text - return names.o_informationParameters + names.o_InformationParameters["text"] = text + return names.o_InformationParameters - def verify_parameters_under_information(): """ Method to verify the parameter under 'Information Popup' """ test.startSection("Verify the parameter under 'Information Popup '") test.log("Navigating to 'Information Popup' screen") - mouseClick(waitForObjectExists(names.o_informationIconButton)) + mouseClick(waitForObjectExists(names.o_InformationIconButton)) for info_parameter in config.INFORMATION_PARAMETERS: info_parameter_text = waitForObjectExists( @@ -52,7 +45,6 @@ test.endSection() - def findObjectById(parent, id): """ Recursively searches for a child object by its id. @@ -68,7 +60,6 @@ return None - def verify_td_and_dd_versions( td_major, td_minor, @@ -166,7 +157,7 @@ version_details["DD FPGA Version"] = dd_fpga_version version_details["DD Serial Number"] = dd_serial - column = waitForObject(names.o_versionColumn) + column = waitForObject(names.o_VersionColumn) # Get a list of the children to use with zip() children = object.children(column) @@ -181,7 +172,6 @@ test.endSection() - def main(): utils.tstStart(__file__) # Set OS version