def main(keyword, data_repository, args_repository): """Doc Strings """ # Declare a list of packages to be used by this driver, # if you want to add more packages import them outside the main function # and then add them to the package_list below package_list = [Actions.OneActions] return kw_driver.execute_keyword(keyword, data_repository, args_repository, package_list)
def main(keyword, data_repository, args_repository): """Import all actions related to gnmi driver and call the driver Utils to execute a keyword """ # Declare a list of packages to be used by this driver, # if you want to add more packages import them outside the main function # and then add them to the package_list below package_list = [Actions.GnmiActions] return kw_driver.execute_keyword(keyword, data_repository, args_repository, package_list)
def execute_keyword(keyword, data_repository, args_repository, package_list): """ Executes the keyword provided by product driver 1. searches for class methods in the package list 2. searches for independent functions in the package list 3. If class method matching the keyword is found in the actions package executes it else searches for independent fucntions matching the keyword name and executes it """ return kw_driver.execute_keyword(keyword, data_repository, args_repository, package_list)