Monday, January 22, 2007

What are the methods to unload GUI map?

Using GUI_close command we can unload a particular GUI map file or we can use GUI_close_all command to unload all the GUI map files which were loaded in memory.

Syntax : GUI_close() or GUI_close_all;

What are the methods to load GUI map? What happens when GUI map is loaded?

Using GUI_load command the GUI map can be loaded.

Syntax : GUI_load();

While loading the GUI map file, all the information about objects and windows with the physical description and logical names will get loaded in the memory. Whenever the winrunner executes the script, the objects will get identified using the information already loaded in the memory.

Wednesday, January 17, 2007

Define the purpose of set_window command?

The Set_Window command is used to set the focus for a specified window. Before executing a test on another window this command can be used to set focus to the required window.

Syntax: set_window(, time);

The set_window is the logical name of the window and time is the time the execution has to wait till it gets the given window into focus.

What is called logical name in an object?

The logical name in an object is said by its class. Most of the time, the logical name is the label that appears on an object.

Saturday, January 13, 2007

What is the use of Add-Ins in winrunner ?

It is used to load the function which is specific to a particular add-in the memory. During the script generation only those add-in functions will be listed in the function generator and during the script execution only those add-in functions will be loaded and executed. Otherwise the winrunner will show an error message that it couldn’t recognize the function.

How to analyze the results and report the defects?

In winrunner after a test run, the test results will get displayed in a report. All the major actions during the run like Checkpoints, Error messages, System messages will be displayed in the report. The mismatches in checkpoints during the test run can be viewed as expected results and actual results in Test results window. The information about a test run fail due to defect can also be reported to others through test results window.

How to run the test scripts?

To test the application it should be run on the verify mode, Winrunner run into a checkpoint in the test script, after that it compares the current data being tested with the expected data captured before. Winrunner displays the mismatches as the actual results.

How to debug the Test scripts?

To debug the Test scripts, it should be executed in the Debug Mode. Otherwise by using the functionalities like Step, Step Into and Step out we can debug the test script.