Software QA FYI - SQAFYI

Mercury WinRunner FAQ

Part:   1  2  3  4  5   6  7  8  9  10  11  12  13  14  15  16  17  18  19  20  21  22  23  24  25  26  27  28  29  30  31  32  33  34  35  36  37  38  39  40  41  42  43  44  45 

Q: How to check property of specific Icon is highlighted or not?

set_window("Name of the window");
obj_check_info("Name of the object ","focused",0ut_value);

check for out_value & proceed further

Q: BitMap or GUI Checkpoints

DO NOT use BitMap or GUI Checkpoints for dynamic verification. These checkpoints are purely for static verifications. There are ofcourse, work-arounds, but mostly not worth the effort.


Q: How to to get the information from the status bar without doing any activity/click on the hyperlink?

You can use the "statusbar_get_text("Status Bar",0,text);" function 
"text" variable contains the status bar statement.

or

web_cursor_to_link ( link, x, y );

link	The name of the link.
x,y	The x- and y-coordinates of the mouse pointer when moved to a link,
relative to the upper left corner of the link.

Q: Object name Changing dynamically?

1.
logicalname:"chkESActivity"
 {
  class: check_button,
  MSW_class: html_check_button,
  html_name: chkESActivity,
  part_value: 90
 }   
2.
logical name "chkESActivity_1"
 
{
  class: check_button,
  MSW_class: html_check_button,
  html_name: chkESActivity,
  part_value: 91
}


Replace with:

Logical:"CheckBox"    # you give any name as the logical name
{
 class: check_button,
 MSW_class: html_check_button,
 html_name: chkESActivity,
 part_value: "![0-9][0-9]" 	# changes were done here
}

you can use any of the checkbox command like
button_set("CheckBox",ON); 	# the above statement will check any check 
box with part value ranging from 00 to 99

Part:   1  2  3  4  5   6  7  8  9  10  11  12  13  14  15  16  17  18  19  20  21  22  23  24  25  26  27  28  29  30  31  32  33  34  35  36  37  38  39  40  41  42  43  44  45 

Mercury WinRunner FAQ