Print Page | Close Window

Using GUI-Spy

Printed From: One Stop Testing
Category: Testing Tools @ OneStopTesting
Forum Name: WinRunner @ OneStopTesting
Forum Discription: WinRunner is an automated functional GUI testing tool that allows a user to record and play back UI interactions as test scripts using a proprietary Test Script Language (TSL).
URL: http://forum.onestoptesting.com/forum_posts.asp?TID=6568
Printed Date: 12Mar2025 at 10:33pm


Topic: Using GUI-Spy
Posted By: Mithi25
Subject: Using GUI-Spy
Date Posted: 07Jul2009 at 7:21am

Using GUI-SpyEmbarrassed

Using the GUI Spy, you can view and verify the properties of any GUI

object on selected application
  • Tools->Gui Spy…
  • Select Spy On ( select Object or Window)
  • Select Hand icon Button
  • Point the Object or window & Press Ctrl_L + F3.
  • You can view and verify the properties.
Using Virtual Object Wizard:

Using the Virtual Object wizard, you can assign a bitmap to a standard object class, define the coordinates of that object, and assign it a logical name

  • tools->Virtual Object Wizard.
  • Click Next Button
  • Select standard class object for the virtual object Ex: class:Push_button
  • Click Next button
  • Click Mark Object button
  • Drag the cursor to mark the area of the virtual object.
  • Click Next button
  • Assign the Logical Name, This name will appear in the test script when you record object.
  • Select Yes or No check box
  • Click Finish button
  • Go to winrunner window & Create->Start Recording.
  • Do some operations
  • Stop Recording
Using Gui Map Editor:

Using the GUI Map Editor, you can view and modify the properties of any GUI object on selected application.

To modify an object’s logical name in a GUI map file
  • Tools->GUI Map Editor
  • Select Learn button
  • Select the Application A winrunner message box informs “do you want to learn all objects within the window” & select ‘yes’’ button.
  • Select perticular object and select Modify Button
  • Change the Logical Name& click ‘OK’ Button
  • Save the File
To find an object in a GUI map file:
  • Choose Tools > GUI Map Editor.
  • Choose View > GUI Files.
  • Choose File > Open to load the GUI map file.
  • Click Find. The mouse pointer turns into a pointing hand.
  • Click the object in the application being tested. The object is highlighted in the GUI map file.
To highlight an object in a Application:
  • Choose Tools > GUI Map Editor.
  • Choose View > GUI Files.
  • Choose File > Open to load the GUI map file.
  • Select the object in the GUI map file
  • Click Show. The object is highlighted in the Application.
Data Driver Wizard
  • Start->Programs->Wirunner->Sample applications->Flight 1A
  • Open Flight Reservation Application
  • Go to Winrunner window
  • Create->Start recording
  • Select file->new order, insert the fields; Click the Insert Order
  • Tools->Data Table; Enter different Customer names in one row and Tickets in another row.
  • Default that two column names are Noname1 and Noname2.
  • Tools->Data Driver Wizard
  • Click Next button &select the data table
  • Select Parameterize the test; select Line by Line check box
  • Click Next Button
  • Parameterize each specific values with column names of tables;Repeat for all
  • Finalli Click finish button.
  • Run->Run from top;
  • View the results.


-------------
http://www.quick2sms.com - Send Unlimited FREE SMS to Any Mobile Anywhere in INDIA,
Click Here



Print Page | Close Window