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 do text matching?

You could try embedding it in an if statement. If/when it fails use a tl_step statement to indicate passage and then do a texit to leave the test. Another idea would be to use win_get_text or web_frame_get_text to capture the text of the object and the do a comparison (using the match function) to determine it's existance.


Q: the MSW_id value sometimes changes, rendering the GUI map useless

MSW_Id's will continue to change as long as your developers are modifying your application. Having dealt with this, I determined that each MSW_Id shifted by the same amount and I was able to modify the entries in the gui map rather easily and continue testing.
Instead of using the MSW_id use the "location". If you use your GUI spy it will give you every detail it can. Then add or remove what you don't want.


Q: Having the DB Check point, its able to show the current values in form but its not showing the values that saved in the table

This looks like its happening because the data has
been written to the db after your checkpoint, so you
have to do a runtime record check Create>Database
Checkpoint>Runtime Record Check.  You may also have to
perform some customization if the data displayed in
the application is in a different format than the data
in the database by using TSL.  For example, converting
radio buttons to database readable form involves the
following:

# Flight Reservation
	set_window ("Flight Reservation", 2);
#	edit_set ("Date of Flight:", "06/08/02");

# retrieve the three button states
	button_get_state ( "First", first);
	button_get_state ( "Business", bus);
	button_get_state ( "Economy", econ);

# establish a variable with the correct numeric value
based on which radio button is set
	if (first)
		service="1";
		
	if (bus)
		service="2";
		
	if (econ)
		service="3";
	
	set_window("Untitled - Notepad",3);
	
	edit_set("Report Area",service);
	
	db_record_check("list1.cvr", DVR_ONE_MATCH,record_num);

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