LDTP Internals

From LDTP

appmap.c

 Reads application map from file and generates hash table in 3 levels.
 * First level contains the window level information. Second top level hash table entries will be stored in this level.
   - Example, [gedit], [dlgPreferences]
 * Second level contians individual object level information.  Third top level hash table entries will be stored in this level.
   - Example, mnuFile, mnuNew, btnNew, btnOpen
 * Third level contains individual attributes of object information.
   - Example, class=frame, app_name=gedit, label=New, label_by=Search for:, parent=mnuFile

setappmap function has been implemented using [initappmap] itself. If hash table is not NULL,

then the existing hash table will be freed and after that new appmap will be loaded,

just by calling initappmap internally.

Except initappmap, all other implemented functions are used only inside LDTP.

Two important internal functions

1. get_component_def

  Gets the hash table of the given component definition.
  * Example to get component definition of New button under gedit window, get_component_def ('gedit', 'btnNew').
    This will return btnNew hash table (Third level), which contains {class=push_button, label=New}.

2. get_property

  Kind of key and value pair. From the above get_component_def functions return value, you will get
  a hash table and that will be first argument to this function. Second argument will be the key
  for which the value will be returned.
  * Example: get_property (hash_table, 'class'), will return push_button with respect to
    the above mentioned scenario.

Ref: appmap.c (http://forge.novell.com/modules/xfmod/cvs/cvsbrowse.php/ldtp/pyldtp/appmap.c), initappmap, setappmap

calendar_view.c

To operate on calendar objects from scripts we have exported the required functions and their implementation details available in API Reference#Calendar View Functions

Ref: calendar_view.c (http://forge.novell.com/modules/xfmod/cvs/cvsbrowse.php/ldtp/pyldtp/calendar_view.c)

check_box.c

To operate on check box objects from scripts we have exported the required functions and their implementation details available in API Reference#Checkbox Functions

Ref: check_box.c (http://forge.novell.com/modules/xfmod/cvs/cvsbrowse.php/ldtp/pyldtp/check_box.c)

check_menu_item.c

To operate on check menuitem objects from scripts we have exported the required functions and their implementation details available in API Reference#Check MenuItem Functions

Ref: check_menu_item.c (http://forge.novell.com/modules/xfmod/cvs/cvsbrowse.php/ldtp/pyldtp/check_menu_item.c)

combo_box.c

To operate on combo box objects from scripts we have exported the required functions and their implementation details available in API Reference#Combobox Functions

Ref: combo_box.c (http://forge.novell.com/modules/xfmod/cvs/cvsbrowse.php/ldtp/pyldtp/combo_box.c)

gui.c

TO DO

Ref: gui.c (http://forge.novell.com/modules/xfmod/cvs/cvsbrowse.php/ldtp/pyldtp/gui.c)

icon.c

Ref: icon.c (http://forge.novell.com/modules/xfmod/cvs/cvsbrowse.php/ldtp/pyldtp/icon.c)

label.c

To operate on label objects from scripts we have exported the required functions and their implementation details available in API Reference#Label Functions

Ref: label.c (http://forge.novell.com/modules/xfmod/cvs/cvsbrowse.php/ldtp/pyldtp/label.c)

layered_pane.c

Ref: layered_pane.c (http://forge.novell.com/modules/xfmod/cvs/cvsbrowse.php/ldtp/pyldtp/layered_pane.c)

ldtp.c

TO DO

Ref: ldtp.c (http://forge.novell.com/modules/xfmod/cvs/cvsbrowse.php/ldtp/pyldtp/ldtp.c)

list.c

Ref: list.c (http://forge.novell.com/modules/xfmod/cvs/cvsbrowse.php/ldtp/pyldtp/list.c)

log.c

TO DO

Ref: log.c (http://forge.novell.com/modules/xfmod/cvs/cvsbrowse.php/ldtp/pyldtp/log.c)

menu.c

Ref: menu.c (http://forge.novell.com/modules/xfmod/cvs/cvsbrowse.php/ldtp/pyldtp/menu.c)

menu_item.c

To operate on menuitem objects from scripts we have exported the required functions and their implementation details available in API Reference#MenuItem Functions

Ref: menu_item.c (http://forge.novell.com/modules/xfmod/cvs/cvsbrowse.php/ldtp/pyldtp/menu_item.c)

page_tab_list.c

To operate on page tab objects from scripts we have exported the required functions and their implementation details available in API Reference#TabControl Functions

Ref: page_tab_list.c (http://forge.novell.com/modules/xfmod/cvs/cvsbrowse.php/ldtp/pyldtp/page_tab_list.c)

panel.c

To operate on panel objects from scripts we have exported the required functions and their implementation details available in API Reference#Panel Functions

Ref: panel.c (http://forge.novell.com/modules/xfmod/cvs/cvsbrowse.php/ldtp/pyldtp/panel.c)

push_button.c

To operate on push button objects from scripts we have exported the required functions and their implementation details available in API Reference#PushButton Functions

Ref: push_button.c (http://forge.novell.com/modules/xfmod/cvs/cvsbrowse.php/ldtp/pyldtp/push_button.c)

radio_button.c

To operate on radio button objects from scripts we have exported the required functions and their implementation details available in API Reference#RadioButton Functions

Ref: radio_button.c (http://forge.novell.com/modules/xfmod/cvs/cvsbrowse.php/ldtp/pyldtp/radio_button.c)

radio_menu_item.c

To operate on radio menuitem objects from scripts we have exported the required functions and their implementation details available in API Reference#RadioMenuItem Functions

Ref: radio_menu_item.c (http://forge.novell.com/modules/xfmod/cvs/cvsbrowse.php/ldtp/pyldtp/radio_menu_item.c)

scroll_bar.c

To operate on scrollbar objects from scripts we have exported the required functions and their implementation details available in API Reference#ScrollBar Functions

Ref: scroll_bar.c (http://forge.novell.com/modules/xfmod/cvs/cvsbrowse.php/ldtp/pyldtp/scroll_bar.c)

slider.c

To operate on slider objects from scripts we have exported the required functions and their implementation details available in API Reference#Slider Functions

Ref: slider.c (http://forge.novell.com/modules/xfmod/cvs/cvsbrowse.php/ldtp/pyldtp/slider.c)

spin_button.c

To operate on spin button objects from scripts we have exported the required functions and their implementation details available in API Reference#SpinButton Functions

Ref: spin_button.c (http://forge.novell.com/modules/xfmod/cvs/cvsbrowse.php/ldtp/pyldtp/spin_button.c)

status_bar.c

Ref: status_bar.c (http://forge.novell.com/modules/xfmod/cvs/cvsbrowse.php/ldtp/pyldtp/status_bar.c)

table.c

To operate on table objects from scripts we have exported the required functions and their implementation details available in API Reference#Table Functions

Ref: table.c (http://forge.novell.com/modules/xfmod/cvs/cvsbrowse.php/ldtp/pyldtp/table.c)

text.c

To operate on text objects from scripts we have exported the required functions and their implementation details available in API Reference#Text Functions

Ref: text.c (http://forge.novell.com/modules/xfmod/cvs/cvsbrowse.php/ldtp/pyldtp/text.c)

toggle_button.c

To operate on toggle objects from scripts we have exported the required functions and their implementation details available in API Reference#Toggle Functions

Ref: calendar_view.c (http://forge.novell.com/modules/xfmod/cvs/cvsbrowse.php/ldtp/pyldtp/calendar_view.c)

tool_bar.c

To operate on toolbar objects from scripts we have exported the required functions and their implementation details available in API Reference#Toolbar Functions

Ref: tool_bar.c (http://forge.novell.com/modules/xfmod/cvs/cvsbrowse.php/ldtp/pyldtp/tool_bar.c)

tree_table.c

To operate on tree table objects from scripts we have exported the required functions and their implementation details available in API Reference#TreeTable Functions

Ref: tree_table.c (http://forge.novell.com/modules/xfmod/cvs/cvsbrowse.php/ldtp/pyldtp/tree_table.c)