FreeDesktop Web CVS Repositories

Please note, many of these repositories are now out of date, instead you really should try the git repositories at: http://cgit.freedesktop.org/

[ldtp] / ldtp / src / client-handler.c Repository:
fd.o logo

Log of /ldtp/src/client-handler.c

Parent Directory Parent Directory | Revision Log Revision Log


Links to HEAD: (view) (download) (as text) (annotate)
Sticky Tag:

Revision 1.56 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Feb 28 04:20:47 2008 UTC (8 months, 3 weeks ago) by nagappan
Branch: MAIN
CVS Tags: HEAD
Changes since 1.55: +1 -27 lines
Diff to previous 1.55
2008-02-27  Nagappan A  <nagappan@gmail.com>

	* client-handler.c (handle_request): Removed unnecessary code.

	* ldtp-appmap.c (get_window_def): Added new function to lookup for
	the window definition in hash table.

	* ldtp-gui.c (get_context_def): Added new function to check,
	whether multiple window title exist in hash table and also the
	relevant component name.

	* page-tab-list.c (get_tab_name): Added new function to get the
	name of a tab.

	* menu.c (menu_main): Removed unnecessary code.

	* check-menu-item.c (is_menu_item_enabled): New function added to
	verify whether a menu item is enabled or not.

	* radio-menu-item.c (is_menu_item_enabled): New function added to
	verify whether a menu item is enabled or not.

	* menu-item.c (is_menu_item_enabled): New function added to verify
	whether a menu item is enabled or not.

Revision 1.55 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Feb 19 03:18:07 2008 UTC (9 months ago) by nagappan
Branch: MAIN
CVS Tags: LDTP_1_0_0
Changes since 1.54: +1 -1 lines
Diff to previous 1.54
2008-02-18  Nagappan A  <nagappan@gmail.com>

	* client-handler.c (handle_request): Modified nano_sleep to sleep.

Revision 1.54 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Feb 11 09:15:19 2008 UTC (9 months, 1 week ago) by nagappan
Branch: MAIN
Changes since 1.53: +195 -10 lines
Diff to previous 1.53
2008-02-11  Nagappan A  <nagappan@gmail.com>

	* ldtp.c (main): Avoid using external XML file as data file, if
	environment varialbe LDTP_EXTERNAL_TEMP_FILE is set or command
	line argument -n or --no-external-xml-file is passed or started
	LDTP as an TCP service.

	* client-handler.c (write2file): Write the given data to a temp
	file and return the file name, if success.
	(generate_response_packet): If, data size is 512, then write it to
	a file.
	(is_role_matching): If given role matches with the list, then
	return true, elase false.
	(add_matching_item_to_list): Add all matching items to the list.
	(handle_request): Modified SELECTMENUITEM case to use g_strsplit
	instead of strtok.
	Added GETCHILD case, to get the child of a given role
	or component and role.

	* menu.c (menu_main): Modified strtok to use g_strsplit.

Revision 1.53 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Jan 30 05:50:27 2008 UTC (9 months, 3 weeks ago) by nagappan
Branch: MAIN
Changes since 1.52: +3 -3 lines
Diff to previous 1.52
2008-01-29  Nagappan A  <nagappan@gmail.com>

	* ldtp.c (main): Backported to support RHEL4, by adding getopt_long
	function instead of g_option_context_parse.

	* client-handler.c (generate_response_packet, handle_client):
	Fixed compilation warnings.

Revision 1.52 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Dec 6 20:31:28 2007 UTC (11 months, 2 weeks ago) by nagappan
Branch: MAIN
Changes since 1.51: +5 -0 lines
Diff to previous 1.51
2007-12-06  Nagappan A  <anagappan@novell.com>

	* scroll-pane.c: Added new file.

	* table.c (set_cell_value): Fixed minor bug.

Revision 1.51 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Sep 3 09:30:56 2007 UTC (14 months, 2 weeks ago) by nagappan
Branch: MAIN
CVS Tags: LDTP_0_9_1, LDTP_0_9_2
Changes since 1.50: +2 -2 lines
Diff to previous 1.50
2007-08-28  Nagappan A  <anagappan@novell.com>

	* *.[ch]: Updated all the files for the new address in LGPL
	license.

Revision 1.50 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Aug 28 13:11:21 2007 UTC (14 months, 3 weeks ago) by nagappan
Branch: MAIN
Changes since 1.49: +3 -3 lines
Diff to previous 1.49
2007-08-28  Nagappan A  <anagappan@novell.com>

	* calendar.c: Fixed compiler warnings.

	* client-handler.c: Fixed compiler warnings.

	* menu.c: Fixed compiler warnings.

Revision 1.49 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Aug 17 13:35:16 2007 UTC (15 months, 1 week ago) by uid2893
Branch: MAIN
CVS Tags: LDTP_0_9_0
Changes since 1.48: +15 -7 lines
Diff to previous 1.48
2007-08-17  Nagappan A  <anagappan@novell.com>

	* ldtp.c (report_window_event): Fixed the crasher in Solaris.
	Fixed few warnings.

	* ldtp-gui.c (trace_path_to_parent): Get the class of current
	object, can be used to verify whether we have traced the right
	object or not.
	(ldtp_gui_get_gui_handle): If the role type doesn't match between
	the current object to be selected and the one we have stored in
	appmap, then need to run remap.

	* ldtp-appmap.c (search_label_name): Commented this function as we
	no longer use them. Need to remove them at later point of time.

	* menu.c: Code alignment.

	* client-handler.c (is_cctxt_registered_callback): If the client
	disconnects, we have to destroy the client context stored.
	Fixed few warnings.

Revision 1.48 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Jun 26 06:13:43 2007 UTC (16 months, 4 weeks ago) by nagappan
Branch: MAIN
Changes since 1.47: +1 -0 lines
Diff to previous 1.47
2007-06-26  Nagappan A  <anagappan@novell.com>

	* client-handler.c (handle_request): Added a case for
	SPI_ROLE_TREE.

	* remap.c (filter_appmap_data): If the class name is not in our
	pre-defined list, then just get the accessible role name and dump
	as it is.

Revision 1.47 - (view) (download) (as text) (annotate) - [select for diffs]
Mon May 14 08:48:13 2007 UTC (18 months, 1 week ago) by nagappan
Branch: MAIN
Changes since 1.46: +6 -198 lines
Diff to previous 1.46
2007-05-14  Nagappan A  <anagappan@novell.com>

	* remap.c (get_object_info): Added code for new control types like
	ENTRY, AUTOCOMPLETE, PARAGRAPH.

	* tree-table.c (tree_table_cb): Removed recording related code.

	* toggle-button.c (toggle_button_cb): Removed recording related code.

	* text.c (text_cb): Removed recording related code.

	* table.c (table_cb): Removed recording related code.

	* spin-button.c (spin_button_cb): Removed recording related code.

	* radio-button.c (radio_button_cb): Removed recording related code.

	* push-button.c (push_button_cb): Removed recording related code.

	* page-tab-list.c (page_tab_cb): Removed recording related code.

	* menu-item.c (menu_item_cb): Removed recording related code.

	* ldtp.c (is_window_in_cctxt): Added new function to check whether
	a window exist in the current context.
	(report_window_event): Added new code to remove the context
	entries, when a window is closed.
	(ldtp_server_thread): If client the count is 0 for more than 5
	minutes, then let us quit the current instance.

	* ldtp-request.c (ldtp_request_fill_request): Removed recording
	related code.

	* ldtp-gui.c (window_info_added_hashtable): Added new function.
	* ldtp-gui.c: Added more verbose debug info.

	* ldtp-appmap.c (get_unknown_obj_label): Removed function.

	* client-handler.c (generate_record_response_packet)
	(search_recording_handler, remove_recording_handler)
	(register_recording_handler, unregister_recording_handler):
	Removed recording related code.

	* device.c (generate_keyboard_sequence): Updated the function to
	be accessible only to local file.

	* combo-box.c (combo_box_cb): Removed recording related code.

	* check-box.c (check_box_cb): Removed recording related code.

        * ldtp-gui-cb.h, ldtp-record.c, ldtp-record.h: Removed files

Revision 1.46 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Feb 14 11:46:42 2007 UTC (21 months, 1 week ago) by nagappan
Branch: MAIN
CVS Tags: LDTP_0_8_0
Changes since 1.45: +109 -59 lines
Diff to previous 1.45
2007-02-14  Nagappan A  <anagappan@novell.com>

	* remap.c (add_appmap_data): Updated this function to handle
	remaping of specific controls inside a window.

	* table.c (get_row): If the table cells are not present, will wait
	max of 5 seconds.

	* ldtp.c: Added command line option obj-timeout and gui-timeout.

	* ldtp-gui.c (update_cur_context_appmap_handle): Added a new
	function to remap based on object too.
	(ldtp_gui_get_gui_handle): In few cases the controls are created
	but by default the SPI ROLE assigned to them is UNKNOWN. So, if we
	get during our run-time remap, then wait for nano seconds and
	rescan.

	* ldtp-command.h (guitimeout, objtimeout): Added function to
	change the default global timeout period for an object and a window.

	* ldtp-appmap.c (key_destroy_func, value_destroy_func): Added
	function to free the resources allocated by key and value.
	(is_remaped): Added a new function, which checks whether the
	component is remaped or not.
	(remove_remapped_entry): Remove only remaped entry from the
	component table.
	(search_key_glob_based): Updated the lookup logic.
	(search_title_based): Added a new function which checks for the
	window name.

	* client-handler.c (unregister_window_creation_event): Now uses
	g_hash_table_find instead of g_hash_table_lookup_extended.

	* ldtp-gui.c (wait_till_object_state_contains): Added new
	function, which will wait for the object state to be
	enabled. Modified all the callers of object_state_contains to use
	this function. So time.sleep may not be required to be included in
	the script.

2007-02-08  Raghu Dandin  <Raghu.Dandin@palmsource.com>

	* combo-box.c (hide_list, show_list): Handles menu item under a
	combo box.

Revision 1.45 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Jan 25 17:52:16 2007 UTC (21 months, 4 weeks ago) by nagappan
Branch: MAIN
Changes since 1.44: +2 -2 lines
Diff to previous 1.44
2007-01-25  Nagappan A  <anagappan@novell.com>

	* ldtp-gui.c (get_object_handle): Fixed a crash, due to two
	Accessible_unref on same handle.

Revision 1.44 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Jan 22 11:18:47 2007 UTC (22 months ago) by nagappan
Branch: MAIN
Changes since 1.43: +1 -1 lines
Diff to previous 1.43
2007-01-22  Nagappan A  <anagappan@novell.com>

	* client-handler.c (unregister_window_creation_event): Added new
	function to unregister the callback function, that use to listen
	for window creation events.

Revision 1.43 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Jan 22 11:09:57 2007 UTC (22 months ago) by nagappan
Branch: MAIN
Changes since 1.42: +37 -1 lines
Diff to previous 1.42
2007-01-22  Nagappan A  <anagappan@novell.com>

	* ldtp.c (is_window_reg_for_events): Removed GHashTable argument
	as its already a globla variable.
	Added global pthread mutex to avoid a crash when the callback
	functions client connection disconnected.

	* text.c (append_text, set_cursor_position, text_main): Fixed
	crashers reported by Palm Source team.

	* menu.c (menu_main): Removed extra condtions that check for ';'.

	* ldtp-command.h: Added new command to the structure.

	* ldtp-error.[c,h] (ldtp_error_get_message): Added new error
	LDTP_ERROR_EVENT_NOTIFIER_NOT_ENABLED.

	* ldtp-appmap.c (get_property): Check the return value of
	g_hash_table_lookup_extended, apart from value.

	* client-handler.c (unregister_window_creation_event): Added new
	function to unregister the callback function, that use to listen
	for window creation events.
	Added global pthread mutex to avoid a crash when the callback
	functions client connection disconnected.

Revision 1.42 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Jan 18 17:13:34 2007 UTC (22 months ago) by nagappan
Branch: MAIN
Changes since 1.41: +32 -24 lines
Diff to previous 1.41
2007-01-18  Nagappan A  <anagappan@novell.com>

	* ldtp-gui.c (get_accessible_context_handle)
	(get_child_window_handle): Refined the object search algorithm.
	Recognize dialog with out any title, so it can accessed like dlg0,
	frm0 etc.
	You can access multiple windows with same title, so the first
	title will be same as the default one (example: frmNautilus), but
	the second title will be indexed from 1 (example: frmNautilus1).
	(get_accessible_component_handle): Modified function name from
	get_accessible_object_handle.
	(does_window_exist): Added new function to check whether a window
	exist or not.
	(remove_tmp_entries): Remove temporarily created hash table
	entries.

	* ldtp-appmap.c: Modified all g_hash_table_lookup to
	g_hash_table_lookup_extended. Because of this the appmap lookup
	now takes fast. Now we are not querying the accessible interface
	multiple times.

Revision 1.41 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Dec 20 11:29:00 2006 UTC (23 months ago) by nagappan
Branch: MAIN
Changes since 1.40: +1 -0 lines
Diff to previous 1.40
2006-12-20  Nagappan A  <anagappan@novell.com>

	* ldtp-response.c: Removed this file as we no longer use it.

Revision 1.40 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Nov 21 21:46:38 2006 UTC (2 years ago) by dobey
Branch: MAIN
CVS Tags: LDTP_0_7_0
Changes since 1.39: +189 -195 lines
Diff to previous 1.39
2006-11-21  Rodney Dawes  <dobey@novell.com>

	* ldtp-error.[ch]: Get rid of the LDTPError struct
	(ldtp_error_get_error, ldtp_error_free): Remove these methods as we
	don't need them any more
	(ldtp_error_get_message): Make this a public method that returns a
	const char * of the error message for when we need to print it

	* *.[ch]: Update the error handling code to use LDTPErrorCode instead
	of LDTPError everywhere, so we only pass around an enum value
	Call ldtp_error_get_message whenever we need to print an error message

	* ldtp-gui.c (object_state_contains): Unref the AccessibleStateSet when
	we are done using it
	(get_accessible_object_handle): Don't free the head struct that isn't
	owned by this method
	(ldtp_gui_get_gui_handle): Free the head pointer when done using it
	(ldtp_gui_wait_till_gui_exist, ldtp_gui_wait_till_gui_not_exist):
	(ldtp_gui_gui_exist): Free the accessible pointer when done with it

Revision 1.39 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Nov 20 18:17:47 2006 UTC (2 years ago) by dobey
Branch: MAIN
Changes since 1.38: +4 -7 lines
Diff to previous 1.38
2006-11-20  Rodney Dawes  <dobey@novell.com>

	* client-handler.c (handle_request): Just use g_strconcat instead of
	reallocing the size of rest_params and then using strcat

	* ldtp-appmap.c (search_label_based): Free the tmp pointer when we
	are done with it so we don't leak the memory
	(search_obj_after_stripping_space): Free the glob_str when we don't
	need it any more so we don't leak the memory
	glob_str will never be NULL as we're always duping at least "*", so
	we can simplify the code here by avoiding the check for non-NULL and
	stripping the else clause, since we were already validating the pattern
	match in the nested if statement anyway, and returning FALSE by default

Revision 1.38 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Nov 20 17:01:10 2006 UTC (2 years ago) by dobey
Branch: MAIN
Changes since 1.37: +12 -8 lines
Diff to previous 1.37
2006-11-20  Rodney Dawes  <dobey@novell.com>

	* Makefile.am: Remove ldtp-command.c, ldtp-memory.[ch], ldtp-state.[ch]

	* client-handler.c: Don't need ldtp-state.h or ldtp-memory.h any more
	(has_state): Change state_id to a long int
	Use atol to get the state_id now instead of looking up in a hash table,
	as we pass the state id as an integer in the XML now
	(handle_request): Change command to a long int
	Use atol to get the command id now instead of looking it up in a hash
	table, as we pass the command id as an integer in the XML now

	* ldtp-command.c: Remove this file as we don't need the method calls
	any longer, as we pass the command id as an integer instead of a string

	* ldtp-command.h: Remove the LDTPCommand struct and the method
	prototypes as we don't use them any more

	* ldtp-gui.c: Don't include ldtp-state.h any longer
	Define the structure layout for state_list internally now

	* ldtp-memory.[ch]:
	* ldtp-state.[ch]:
	Remove these files as we don't need them any longer

Revision 1.37 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Nov 16 16:31:19 2006 UTC (2 years ago) by dobey
Branch: MAIN
Changes since 1.36: +2 -2 lines
Diff to previous 1.36
2006-11-16  Rodney Dawes  <dobey@novell.com>

	* client-handler.c (has_state): Move the AccessibleStateSet_unref
	call below the error: label so that it always gets cleaned up properly
	(handle_client): Malloc packet_len + 1 for the packet buffer so that
	we have room for the NULL terminator to avoid an Invalid Read

	* ldtp-appmap.c (get_object_def, get_property):
	Don't use a static array size for the msg error message buffer
	Free the LDTPError objects after we finish using them
	Allocate and free the msg buffer as appropriate

	* ldtp-gui.c (ldtp_gui_get_gui_handle): Free ctxt_handle if we error

	* push-button.c (is_push_button_state_enabled): Add a boolean to store
	the return value and default it to FALSE
	Free the AccessibleStateSet before we return

	* remap.c (do_remap): Don't g_strdup name when passing it off to the
	accessible_object_handle method as it doesn't free the buffer

Revision 1.36 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Nov 15 16:01:57 2006 UTC (2 years ago) by dobey
Branch: MAIN
Changes since 1.35: +47 -20 lines
Diff to previous 1.35
2006-11-15  Rodney Dawes  <dobey@novell.com>

	* client-handler.c (generate_response_packet):
	Set the err to LDTP_ERROR_SUCCESS when we are succeeding
	(has_state): Unref the state_set when we're done with it
	(handle_client): New integer for keeping track of how much of the
	packet was read in, if we have to read in chunks
	Remove prev_pckt_len as we don't need it any more
	Replace calloc calls when initializing cctxt with g_new0 calls
	Free LDTPErrors where appropriate
	Just always g_malloc0 packet instead of trying to realloc as we free
	the packet when finished anyway, and don't need to resize in a loop
	Use packet_read to keep track of how many bytes of the packet were
	read rather than using pointer math on the buffers
	Use g_new0 instead of calloc when allocating the pckt structure
	Don't do the g_slist_remove_all as the items in the list get freed
	inside the ldtp-request code anyway, and simply removing them doesn't
	get them freed here
	Allocate new LDTPErrors when we want to copy the error data to a new
	place such as in the cctxt->resp structure
	Check if there was an error sending the response and log it
	Free the cctxt and other items inside it

	* ldtp-appmap.c (remove_component_entries, remove_context_entries):
	(remove_appmap_entries): We don't need these methods any more as the
	destroy handlers are set properly when we create the hash tables
	(ldtp_appmap_free): Just return if there is no hash table, and
	remove the g_hash_table_foreach call as the data gets freed by the
	hash table destroy handlers

	* ldtp-gui.c (init_stack): Replace malloc with g_new0
	(get_accessible_app_handle): Free window_title when we're done with it
	(get_relation_name): We need the k variable method-wide
	Unref all the items in the relation array and free the array before
	we return a value or NULL
	(get_child_window_handle): Free the tmp value when we don't need it
	(update_cur_window_appmap_handle): Create the hash table with destroy
	handlers as appropriate for the data in the hash table
	Destroy new_hashtable if we aren't going to use it
	(ldtp_gui_get_gui_handle): Use g_new0 instead of calloc

	* ldtp-request.c (ldtp_request_free): Don't need to check if the
	values are non-NULL before calling g_free
	We never get called with finalize != 0 so don't need to free ourselves
	as we must free the LDTPRequest elsewhere anyway
	(ldtp_request_fill_request): Inserting a NULL into the slist doesn't
	do anything for us

	* remap.c (get_keybinding): Restructure the code to be a little more
	readable
	Return duplicated strings as we don't know if the string we are
	returning is already duplicated or not
	(add_appmap_data): Create hash_attributes with appropriate destructors
	Always free label_by when done with it
	(get_window_text_in_appmap_format): Create a return value char * to
	return a duplicate string with, so we can free our own copies
	(do_remap): Create current_context with appropriate destructors

Revision 1.35 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Nov 7 22:01:25 2006 UTC (2 years ago) by dobey
Branch: MAIN
Changes since 1.34: +2 -0 lines
Diff to previous 1.34
2006-11-07  Rodney Dawes  <dobey@novell.com>

	* client-handler.c (generate_response_packet):
	Free the data_pckt buffer when we're doing with it

	* ldtp-error.c (ldtp_error_init): Remove this method, as we don't
	need to create a hash table to store the error data in
	(ldtp_error_get_error): Removed the _init method
	Just always malloc a new error structure to return with the right info
	(ldtp_error_free): Take an LDTPError * as an argument here
	Free the error structure and set the pointer to NULL

	* ldtp-error.h: Update the prototype for ldtp_error_free

	* ldtp.c (report_window_event): Allocate a new error in the cctxt->resp
	structure instead of assigning the value of the local err pointer
	Free the local err pointer where appropriate
	(accept_connection): Set the err to an LDTPError for success when we
	are within the code path that warrants a success
	(init_pollfd): Only create a new client_thraed_pool hash table if it
	has not already been initialized
	(ldtp_server_thread): Free local err structures where appropriate
	Check that err is valid memory before trying to test its members
	(main): Free the GError we get from the option context
	Exit with an exit code of 1 if option parsing failed
	Free the LDTPError we set when faliing to create the threads

Revision 1.34 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Oct 31 14:40:05 2006 UTC (2 years ago) by dobey
Branch: MAIN
Changes since 1.33: +2 -0 lines
Diff to previous 1.33
2006-10-31  Rodney Dawes  <dobey@novell.com>

	* client-handler.c: Add an include for locale.h to fix warnings

	* ldtp-gui.c (get_accessible_object_handle): Too many args to g_print
	(ldtp_gui_get_gui_handle): Passing an int not a long int

	* ldtp-record.c (stop_record): Pass an int for the fd instead of a FILE
	pointer to g_print, and change the formatting to use int

	* table.c (double_click): Variable cell not used

	* tree-table.c (double_click): Variable cell not used

Revision 1.33 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Oct 26 00:02:49 2006 UTC (2 years ago) by nagappan
Branch: MAIN
Changes since 1.32: +5 -1 lines
Diff to previous 1.32
2006-10-25  Nagappan A  <anagappan@novell.com>

	* remap.c (get_object_info): Added embedded component object type
	* embedded-component.c (invoke_menu, click): Implemented two new
	functions to handle embedded component

Revision 1.32 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Oct 12 21:10:24 2006 UTC (2 years, 1 month ago) by nagappan
Branch: MAIN
Changes since 1.31: +25 -24 lines
Diff to previous 1.31
2006-10-12  Nagappan A  <anagappan@novell.com>

	* client-handler.c (bind_text): Now checks for po file too
	(handle_request): Implemented new case SETLOCALE. In LAUNCHAPP If
	locale is set, then launch the application based on the given
	locale

Revision 1.31 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Sep 27 18:02:36 2006 UTC (2 years, 1 month ago) by nagappan
Branch: MAIN
CVS Tags: LDTP_0_6_0
Changes since 1.30: +144 -14 lines
Diff to previous 1.30
        * client-handler.c (search_recording_handler,
        remove_recording_handler, register_recording_handler,
        unregister_recording_handler): Added new functions to handle
        recording client context handler.
        (generate_record_response_packet): Modified response tag from
        RECORD to RESPONSE.
        (handle_request): Added generatemouseevent, a function.

        * combo-box.c (select_item): Modified C str* functions to use
        g_utf8*.

        * device.c (generate_keyboard_sequence): Modified this function to
        be generic, so it can be called even with out accessible handle.

        * ldtp-appmap.c: Modified all the function names having regexp
        string to glob as the actual implementation is glob based.

        * ldtp-gui.c (grab_focus): Moved implementation from text.c to
        here.

        * ldtp-record.c: Removed all static variables and added all of
        them as a structure LdtpRecord.
        (caculate_time_elapsed): To find the time difference between the
        current operation and the previous operation. Will be useful for
        playback.

       * remap.c (accessible_object_handle): Fixes a performance issue
        reported by Palm Source team.

        * text.c (grab_focus): Moved implementation from here to
        ldtp-gui.c.

        * toggle-button.c (toggle): Fixed a crasher bug, when the object
        state does not match FALSE flag is set in LDTPError, which crashed
        the LDTP engine.

Revision 1.30 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Sep 13 18:00:57 2006 UTC (2 years, 2 months ago) by nagappan
Branch: MAIN
Changes since 1.29: +4 -0 lines
Diff to previous 1.29
setenv GTK_MODULES, GNOME_ACCESSIBILITY

Revision 1.29 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Sep 12 10:14:02 2006 UTC (2 years, 2 months ago) by nagappan
Branch: MAIN
Changes since 1.28: +6 -19 lines
Diff to previous 1.28
Updated launchapp

Revision 1.28 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Sep 12 06:42:37 2006 UTC (2 years, 2 months ago) by nagappan
Branch: MAIN
Changes since 1.27: +7 -2 lines
Diff to previous 1.27
* client-handler.c (handle_request): launchapp can now take optional command line arguments

Revision 1.27 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Sep 11 08:58:39 2006 UTC (2 years, 2 months ago) by nagappan
Branch: MAIN
Changes since 1.26: +23 -13 lines
Diff to previous 1.26
* client-handler.c (handle_request): Moved launchapp from client side to server side, based on requirement from Palm Source.

Revision 1.26 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Aug 17 19:31:27 2006 UTC (2 years, 3 months ago) by nagappan
Branch: MAIN
Changes since 1.25: +1 -0 lines
Diff to previous 1.25
* Fixed compilation warnings

Revision 1.25 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Aug 17 18:06:23 2006 UTC (2 years, 3 months ago) by nagappan
Branch: MAIN
Changes since 1.24: +47 -20 lines
Diff to previous 1.24
        * client-handler.c (remove_app_list_table): Remove the app list
        table, when not required.

        * ldtp-gui.c (get_window_list): Implemented new function to get
        the list of accessibility application names that are currently
        opened.

Revision 1.24 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Aug 14 16:16:31 2006 UTC (2 years, 3 months ago) by nagappan
Branch: MAIN
Changes since 1.23: +14 -0 lines
Diff to previous 1.23
        * client-handler.c (handle_request): Grab focus based on window
        name.

Revision 1.23 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Aug 9 18:34:24 2006 UTC (2 years, 3 months ago) by nagappan
Branch: MAIN
CVS Tags: LDTP_0_5_0
Changes since 1.22: +14 -10 lines
Diff to previous 1.22
        * menu.c (menu_main): Fixed crash, when token is NULL, quiting
        with appropriate error message.
        * ldtp-appmap.c (search_label_regexp_based, search_label_based):
        Search window based on regexp.
        * ldtp-appmap.c (search_key_regexp_based): Search window based on
        regexp.
        * ldtp-gui.c (trace_path_to_parent): Trace parent based on regular
        expression too
        (get_child_window_handle): Trace child window handle based on
        regular epression too

Revision 1.22 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Aug 1 07:51:18 2006 UTC (2 years, 3 months ago) by nagappan
Branch: MAIN
Changes since 1.21: +16 -16 lines
Diff to previous 1.21
Print verbose, if LDTP_DEBUG=2 environment variable is set

Revision 1.21 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Jul 28 09:10:05 2006 UTC (2 years, 3 months ago) by nagappan
Branch: MAIN
Changes since 1.20: +19 -6 lines
Diff to previous 1.20
Fixed segfault, when stop called before start in recording

Revision 1.20 - (view) (download) (as text) (annotate) - [select for diffs]
Sat Jul 22 19:04:16 2006 UTC (2 years, 4 months ago) by nagappan
Branch: MAIN
Changes since 1.19: +1 -1 lines
Diff to previous 1.19
Nagappan
        * tool-bar.c (verify_visible_button_count, verify_button_count):
        Fixed implementations to work appropriately.
        * menu.c (list_child_menu_items): Returns all the sub menuitem of
        menu.
        * ldtp-gui.c (trace_path_to_parent): Fixed core dump, if
        child_index property is NULL, avoid calling atoi.
        * combo-box.c (capture_to_file): Fixed core dump, if filename is NULL.

Revision 1.19 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Jul 21 11:24:25 2006 UTC (2 years, 4 months ago) by nagappan
Branch: MAIN
Changes since 1.18: +51 -21 lines
Diff to previous 1.18
        * client-handler.c (has_state): Implemented new function.
        * *.[ch]: Code alignment.

Revision 1.18 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Jul 13 10:43:30 2006 UTC (2 years, 4 months ago) by prashmohan
Branch: MAIN
Changes since 1.17: +3 -4 lines
Diff to previous 1.17
Added small fixes. selectcalevent() now works properly

Revision 1.17 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Jul 12 18:26:46 2006 UTC (2 years, 4 months ago) by nagappan
Branch: MAIN
Changes since 1.16: +85 -10 lines
Diff to previous 1.16
        * ldtp-record.c: Main file recording which has all the event
        listeners. Added callbacks in all the corresponding objects.


        * push-button.c toggle-button.c (enterstring) Added
        LDTP_CMD_ENTERSTRING to the corresponding main functions

Revision 1.16 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Jul 5 10:12:45 2006 UTC (2 years, 4 months ago) by prashmohan
Branch: MAIN
Changes since 1.15: +1 -2 lines
Diff to previous 1.15
fixed a few minor bugs in remap, selectrowpartialmatch and enterstring

Revision 1.15 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Jul 3 12:18:17 2006 UTC (2 years, 4 months ago) by nagappan
Branch: MAIN
Changes since 1.14: +27 -12 lines
Diff to previous 1.14
        * client-handler.c (handle_request): getobjectlist,
        getobjectproperty, getobjectinfo functions will not call
        update_cur_window_appmap_handle function, unless the object
        information is found in the hash table.

Revision 1.14 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Jun 28 07:37:10 2006 UTC (2 years, 4 months ago) by nagappan
Branch: MAIN
Changes since 1.13: +30 -20 lines
Diff to previous 1.13
        * ldtp-logger.c (log_msg): Added comment, testcaseid tag to
        logging based on Alex request Hao.Yu@palmsource.com

Revision 1.13 - (view) (download) (as text) (annotate) - [select for diffs]
Sat Jun 24 16:45:23 2006 UTC (2 years, 5 months ago) by prashmohan
Branch: MAIN
Changes since 1.12: +13 -5 lines
Diff to previous 1.12
fixed bug #342679 and #339901.

Revision 1.12 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Jun 15 13:15:29 2006 UTC (2 years, 5 months ago) by nagappan
Branch: MAIN
Changes since 1.11: +21 -8 lines
Diff to previous 1.11
        * client-handler.c (handle_request): Added STOPSCRIPSERVER
        functionality, required for using with tinderbox
        * text.c (right_click): Added new function
        * ldtp.c (ldtp_server_thread): Added code for ldtp record handler
        * localization.c (ldtp_compare_with_locale): Regexp based search
        is implemented in localized object name too.
        * ldtp.c (ldtp_server_thread): Added a check in poll, whether the
        pollfd breaked due to ldtp script server thread or ldtp record
        server thread.
        * ldtp-server.c (init_ldtp_server): Removed LDTP_AUTH_SOCK
        environment variable setting, as its no longer been used.
        * ldtp-logger.c (close_log_file): NULL log file pointer after
        closing the file pointer.
        * ldtp-gui.c (get_accessible_context_handle): Fixed memory leak -
        freed the allocted string.
        * label.c (get_label_at_index): Implemented new function to get
        the label based on window, panel and index information.
        * client-handler.c (handle_client, handle_request): At end of
        stoplog, initialize log file pointer to NULL.

Revision 1.11 - (view) (download) (as text) (annotate) - [select for diffs]
Tue May 2 11:10:56 2006 UTC (2 years, 6 months ago) by nagappan
Branch: MAIN
Changes since 1.10: +317 -55 lines
Diff to previous 1.10
2006-05-02  Nagappan A <nagappan@gmail.com>

        * ldtp-gui.c (update_cur_window_appmap_handle): Added mutex lock /
        unlock to avoid corruption of application map

2006-04-27  Nagappan A <nagappan@gmail.com>

        * ldtp-logger.c (open_log_file): Modified the default option of
        opening file as overwrite - Bug # 339884

2006-04-25  Nagappan A <nagappan@gmail.com>

        * remap.c (get_object_info): Handles edit bar object type - Bug #
        339671

2006-04-17  Nagappan A <nagappan@gmail.com>

        * ldtp-gui.c (ldtp_gui_get_gui_handle): Handled multiple
        applications parallely - Bug # 338315

2006-04-14  Nagappan A <nagappan@gmail.com>

        * remap.c (strip_delim): Now this function is not static

2006-04-13  Nagappan A <nagappan@gmail.com>

        * ldtp-utils.c (read_line): Added new function to read data from
        given fd, line by line

2006-04-08  Nagappan A <nagappan@gmail.com>

        * ldtp-gui.c (get_relation_name, ldtp_gui_get_gui_handle):
        Valgrind and fixed memory leaks.

2006-04-07  Nagappan A <nagappan@gmail.com>

        * ldtp.c (main): Added command line options to ldtp engine

2006-04-06  Nagappan A <nagappan@gmail.com>

        * ldtp-appmap.c (search_label_based): Valgrind and fixed memory
        leaks.

2006-04-05  Nagappan A <nagappan@gmail.com>

        * client-handler.c (handle_request): Implemented reinitldtp

2006-04-04  Nagappan A <nagappan@gmail.com>

        * client-handler.c (createpo, deletepo, bind_text): Implemented
        new functions

2006-04-03  Nagappan A <nagappan@gmail.com>

        * calendar.c (select_calendar_date): Checked for NULL arguments to
        avoid crash
        * check-menu-item.c (uncheck_check_menu_item,
        verify_check_check_menu_item, verify_uncheck_check_menu_item):
        Removed functions

2006-04-01  Nagappan A <nagappan@gmail.com>

        * client-handler.h (_LDTPClientContext): Added individual log file
        for each new client connection

Revision 1.10 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Mar 30 11:38:34 2006 UTC (2 years, 7 months ago) by nagappan
Branch: MAIN
Changes since 1.9: +45 -43 lines
Diff to previous 1.9
        * ldtp-logger.c (log_msg): Pass / fail report of a group are now
        logged in the XML.
        * ldtp-logger.h: Updated #define entries to use enum and appended
        all LOG_ variables to LDTP_LOG_ enum variables. This impact all
        the usage of LOG_ variables, which has to be replaced with
        LDTP_LOG_.
        * label.c (select_labels_panel_by_name): New functions implemented
        - bug # 336458.
        * text.c (select_text_by_name): New functions implemented - bug #
        316044.

Revision 1.9 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Mar 16 08:56:31 2006 UTC (2 years, 8 months ago) by nagappan
Branch: MAIN
CVS Tags: LDTP_0_4_0
Changes since 1.8: +33 -54 lines
Diff to previous 1.8
        * client-handler.c (handle_request): Patch to fix bug # 334386

Revision 1.8 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Mar 16 04:56:42 2006 UTC (2 years, 8 months ago) by nagappan
Branch: MAIN
Changes since 1.7: +4 -1 lines
Diff to previous 1.7
        * calendar-view.c (select_event): Updated with appropriate error
        message
        * menu.c (menu_main): Patch to fix bug # 334401

Revision 1.7 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Mar 15 11:15:59 2006 UTC (2 years, 8 months ago) by nagappan
Branch: MAIN
Changes since 1.6: +85 -21 lines
Diff to previous 1.6
        * ldtp-response.h: Patch to fix bug # 333096 and bug # 334512
        * client-handler.c (handle_request): Patch to fix bug # 333096 and
        bug # 334512
        * remap.c (get_object_info): Patch to fix bug # 334520 and handles
        File Chooser object type
        * check-box.c (verify_check_check_box, verify_uncheck_check_box):
        Patch to fix bug # 334625, Now returns appropriate return value
        * ldtp-request.c (ldtp_request_fill_request): Patch to fix bug #
        333089 comment # 6
        * table.c (get_cell_value): Patch to fix bug # 333089 comment

Revision 1.6 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Mar 9 10:05:53 2006 UTC (2 years, 8 months ago) by nagappan
Branch: MAIN
Changes since 1.5: +251 -20 lines
Diff to previous 1.5
        * client-handler.c (add_item_to_list): A common function to
        generate XML object list.
        * client-handler.c (send_response):  If data sent in chunks from
        server to client, then the peek code in client was not able to
        continue reading the next chunk as the recv with peek option
        always returns the first chunk.
        * client-handler.c (handle_request): Implemented getwindowlist,
        getobjectlist, getobjectinfo, getobjectproperty. Modified
        initappmap to get the file name from gslist only once. Memory leak
        fixed - Freed memory resources when client disconnects.
        * ldtp.c (ldtp_print): Indentation
        * ldtp-appmap.c (remove_appmap_entries): Memory leak fixed - Freed
        memory resources when client disconnects.
        * ldtp-appmap.c (search_obj_after_stripping_space): Added new
        function to search for an object after stripping spaces.
        * ldtp-appmap.c (add_child_attributes): Modified it as static
        function.
        * ldtp-appmap.c (ldtp_appmap_free): If appmap is not NULL then
        only traverse the hash table. To avoid a critical warning.
        * ldtp-appmap.c (search_label_based): Modified the logic to check
        for label or label_by and also, if under score is in value, then
        remove it and then look for the match.
        * ldtp-command.c (ldtp_command_init_command_table): Added
        getwindowlist, getobjectlist, getobjectinfo, getobjectproperty
        commands to the list of commands.
        * ldtp-error.c (ldtp_error_get_error_message): Added new error
        messages.
        * ldtp-gui.c (ldtp_gui_get_gui_handle): If appmap is not
        initialized, then try to initialize it by updating the window
        handle.
        * ldtp-gui.c (update_cur_window_appmap_handle): Checked for
        argument NULL to avoid crash.
        * ldtp-logger.c (ldtp_log): vprintf also will be printed iff
        LDTP_DEBUG option is enabled.
        * ldtp-request.c (ldtp_request_fill_request): When XML packet is
        NULL don't process further, which avoids a crash.
        * ldtp-utils.c (escape_character): Modified function name
        escape_under_score to escape_character and also added one
        parameter to make this function a generic one. Check if argument
        is not NULL then continue else return immediately.
        * remap.c (get_keybinding, filter_appmap_data, get_object_info,
        add_appmap_data): Checked for NULL arguments to avoid crash.
        * remap.c (accessible_object_handle): Avoided memory fragmentation
        as the same data is allocated multiple times.

Revision 1.5 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Feb 24 05:52:47 2006 UTC (2 years, 8 months ago) by nagappan
Branch: MAIN
Changes since 1.4: +2 -5 lines
Diff to previous 1.4
        * tree-table.c (select_row): Fixed crash - bug #332346
        * text.c (select_text): Added new API selecttext - bug #323445
        * ldtp-response.h: Added encoding type and it defaults to utf-8.
        * page-tab-list.c (select_tab): Called
        AccessibleComponent_grabFocus function.

Revision 1.4 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Feb 9 10:21:56 2006 UTC (2 years, 9 months ago) by vvaradan
Branch: MAIN
Changes since 1.3: +142 -143 lines
Diff to previous 1.3
        * combo-box.c:
        * ldtp-appmap.c:
        * localization.c:
        * menu.c:
        * table.c: Don't use g_strdup_printf for message-logging, it
        defragments memory.  Static arrays should suffice.
        Coding style fixes.

Revision 1.3 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Feb 1 13:37:01 2006 UTC (2 years, 9 months ago) by nagappan
Branch: MAIN
Changes since 1.2: +58 -11 lines
Diff to previous 1.2
2006-02-01  Nagappan <nagappan@gmail.com>

        * client-handler.c (handle_request): Handled startlog, stoplog and
        log client functions

Revision 1.2 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Feb 1 13:10:33 2006 UTC (2 years, 9 months ago) by nagappan
Branch: MAIN
Changes since 1.1: +2 -3 lines
Diff to previous 1.1
2006-02-01  Nagappan <nagappan@gmail.com>

        * Makefile.am: Moved localization.h from ENABLE_LOCALIZATION
        section to ldtp_SOURCES
        * ldtp-gui.c (send_response, handle_client): Checked error and
        packet_len for any invalid value

Revision 1.1.1.1 - (view) (download) (as text) (annotate) - [select for diffs] (vendor branch)
Wed Feb 1 05:52:04 2006 UTC (2 years, 9 months ago) by nagappan
Branch: Novell
CVS Tags: rel1_0
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 , to next main 1.56
2006-01-16 Nagappan A <nagappan@gmail.com>
        * New LDTP arch based on Varadhan <v.varadhan@gmail.com> suggestion
        * Regular expression based object search (both context and
        component)
        * Run time appmap generation (initialization of appmap is
        optional)
        * For unexpected windows (example: connection reset by peer /
        connection timed out dialogs) can be handled by registering a
        callback function and the respective callback function will be called,
        whenever the registered window with the title appears and even this window
        could be based on regular expression
        * Now the scripts can be written in any language even though the
        default one is Python


Revision 1.1 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Feb 1 05:52:04 2006 UTC (2 years, 9 months ago) by nagappan
Branch: MAIN
Branch point for: Novell
Initial revision

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, select a symbolic revision name using the selection box, or choose 'Use Text Field' and enter a numeric revision.

  Diffs between and
  Type of Diff should be a

Sort log by:

CVS Admin
ViewVC Help
Powered by ViewVC 1.1-dev