Posted by Albert Gareev on Oct 23, 2007
In the code examples I present I often refer to routine functions. In my framework I have specialized libraries to call from. In my blog I maintain the similar structure. Working with HTML Table Web Table operations (WinRunner, TSL) Get cell text Get cell object Find column by RegEx Find row by RegEx Check table [...] ...
Posted by Albert Gareev on Oct 21, 2007
Service Functions – Windows Web GUI / WinRunner Loop through web page in order to find matching table # Attention! This is the low-level function which is supposed to be called in the loop # Set the proper window public function wb_ht_find_table(in key_cell, in key_row, in key_column, out table_desc, in regex_flag, in exp_location, in loc_start, [...] ...
Posted by Albert Gareev on Oct 19, 2007
Service Functions – Windows Web GUI / WinRunner Get cell text # Attention! This is the low-level function which is supposed to be called in the loop # Has no obj_exists verification inside - take care about it outside public function wb_ht_get_cell_text(in table, in row, in col, out value) { auto rc,actual_text_length,count; auto col_count, row_count; [...] ...
Posted by Albert Gareev on Oct 15, 2007
Declarations # extern int IsIconic(in int); # extern int IsZoomed(in int); # Restore window public function wg_win_restore(in wname) { auto hwnd; win_get_info(wname, "handle", hwnd); if (IsIconic(hwnd) == 1) win_restore(wname); if (IsZoomed(hwnd) == 1) win_restore(wname); } Minimize window public function wg_win_min(in wname) { auto hwnd; win_get_info(wname, "handle", hwnd); if ...
Posted by Albert Gareev on Oct 10, 2007
Synchronization in Test Automation What’s it about? As in regular, human-to-human conversation, it is important not to interrupt each other, and wait till a talker finishes a message, in human-to-program, and in program-to-program interaction, giving time is important. In conversation, we usually recognize end of a message by a pause in speech. In interaction with [...] ...