WinRunner must learn the information about the GUI objects in your application in order to add it to the GUI map file. WinRunner can learn the information it needs about the properties of GUI objects in the following ways:
Teaching WinRunner the GUI with the RapidTest Script Wizard
You can use the RapidTest Script wizard before you start to test in order to teach WinRunner all the GUI objects in your application at once. This ensures that WinRunner has a complete, well-structured basis for all your Context Sensitive tests. The descriptions of GUI objects are saved in GUI map files. Since all test users can share these files, there is no need for each user to individually relearn the GUI.
The simplest and most thorough way for WinRunner to learn your application is by using the RapidTest Script wizard. The RapidTest Script wizard enables WinRunner to learn all windows and objects in yourapplication being tested at once. The wizard systematically opens each window in your application and learns the properties of the GUI objects it contains. WinRunner provides additional methods for learning the properties of individual objects.
WinRunner then saves the information in a GUI map file. WinRunner also creates a startup script which includes a GUI_load command that loads this GUI map file.
To teach WinRunner your application using the RapidTest Script wizard:
Click RapidTest Script Wizard in the WinRunner Welcome screen when you start WinRunner or choose Insert > RapidTest Script Wizard at any time. The RapidTest Script wizard welcome screen opens.
The Identify Your Application screen opens.
Click the pointing hand, and then click your application in order to identify it for the Script wizard. The name of the window you clicked appears in the Window Name box. Click Next.
The Select Tests screen opens.
Select the type(s) of test(s) you want WinRunner to create for you. When the Script Wizard finishes walking through your application, the tests you select are displayed in the WinRunner window.
You can choose any of the following tests:
When you run this test, WinRunner searches the user interface of your application and reports each case that does not adhere to Microsoft Windows standards.
The Define Navigation Controls screen opens.
Enter the characters that represent navigation controls in your application. If you want the RapidTest Script wizard to pause in each window in your application, so that you can confirm which objects will be activated to open additional windows, select the Pause to confirm for each window check box.
Choose Express or Comprehensive learning flow. Click Learn. WinRunner begins to systematically learn your application, one window at a time. This may take several minutes depending on the complexity of your application.
Choose Yes or Noto tell WinRunner whether or not you want WinRunner to automatically activate this application whenever you invoke WinRunner.
Enter the full path and file name where you want your startup script and GUI Map file to be stored, or accept the defaults.
Enter the full path and file name where you want your test files to be stored, or accept the defaults.
Click OK to close the RapidTest Script wizard. The test(s) that were created based on the application that WinRunner learned are displayed in the WinRunner window.
Teaching WinRunner the GUI by Recording
WinRunner can also learn objects while recording in Context Sensitive mode (the default mode) in your application: you simply start to record a test and WinRunner learns the properties of each GUI object you use in your application. This approach is fast and enables a beginning user to create test scripts immediately. This is an unsystematic method, however, and should not be used as a substitute for the RapidTest Script wizard or the GUI Map Editor if you plan to develop comprehensive test suites.
When you record a test, WinRunner first checks whether the objects you select are in the GUI map. If they are not in the GUI map, WinRunner learns the objects.
WinRunner adds the information it learned to the temporary GUI map file. To save the information in the temporary GUI map file, you must save this file before exiting WinRunner.
In general, you should use recording as a learning tool for small, temporary tests only. Use the RapidTest Script wizard or the GUI Map Editor to learn the entire GUI of your application.
Teaching WinRunner the GUI Using the GUI Map Editor
WinRunner can use the GUI Map Editor to learn an individual object or window, or all objects in a window.
To teach GUI objects to WinRunner using the GUI Map Editor:
Choose Tools GUI Map Editor. The GUI Map Editor opens.
Click Learn. The mouse pointer becomes a pointing hand.
(To cancel the operation, click the right mouse button.)
Place the pointing hand on the object to learn and click the left mouse button.
To learn all the objects in a window, place the pointing hand over the window’s title bar and click the left mouse button.
WinRunner adds the information it learns to the temporary GUI map file. To keep the information in the temporary GUI map file, you must save it before exiting WinRunner.
WinRunner Related Interview Questions
|SILK TEST Interview Questions||LoadRunner Interview Questions|
|WinRunner Interview Questions||HTML Interview Questions|
|QTP Interview Questions||Manual Testing Interview Questions|
|OpenStack Interview Questions||Automation Testing Interview Questions|
|API testing Interview Questions||Rational robot Interview Questions|
|Selenium IDE Interview Questions||Performance Testing Interview Questions|
|Test Director Interview Questions|
Winrunner At A Glance
Understanding How Winrunner Identifies Gui Objects
Understanding Basic Gui Map Concepts
Working In The Global Gui Map File Mode
Editing The Gui Map
Merging Gui Map Files
Configuring The Gui Map
Learning Virtual Objects
Checking Gui Objects
Working In The Gui Map File Per Test Mode
Working With Web Objects
Working With Activex And Visual Basic Controls
Checking Powerbuilder Applications
Checking Table Contents
Creating Data-driven Tests
Synchronizing The Test Run
Defining And Using Recovery Scenarios
Handling Web Exceptions
Using Regular Expressions
Enhancing Your Test Scripts With Programming
Creating User-defined Functions
Creating Compiled Modules
Calling Functions From External Libraries
Creating Dialog Boxes For Interactive Input
Understanding Test Runs
Analyzing Test Results
Running Batch Tests
Running Tests From The Command Line
Controlling Your Test Run
Setting Properties For A Single Test
Setting Global Testing Options
Customizing The Test Script Editor
Customizing The Winrunner User Interface
Setting Testing Options From A Test Script
Customizing The Function Generator
Initializing Special Configurations
Integrating With Quicktest Professional
Managing The Testing Process
Testing Systems Under Load
All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.