Академический Документы
Профессиональный Документы
Культура Документы
AIM:
To check the properties of the GUI objects using GUI spy in winrunner
Procedure:
1. Open any Visual basic application
6. Position the GUI Spy on the desktop so that both the application window and
the GUI Spy are clearly visible
7. In the GUI Spy, click the Spy button. Move the pointer over objects in the
visual basic application window.
8. Each object will flashes as we move the pointer over it, and the GUI Spy
displays its properties.
10. Left Ctrl + F3. This freezes the OK button’s description in the GUI Spy
12. Like wise check the properties of all the objects in the visual basic application
Aim:
Procedure:
1. Open any Windows application
2. Start WinRunner choose Programs > WinRunner >WinRunner on the Start
menu
3. Open a new test choose File > New
4. Start the RapidTest Script wizard Choose Insert > RapidTest Script Wizard
5. Click Next in the wizard’s Welcome
6. Click the hand button and then click anywhere in the Windows application
7. The application’s window name appears in the wizard’s Window.Click Next
8. Clear all the check boxes in the wizard Click Next
9. Accept the default navigation controls (... and > >) And Click Next
10. Set the learning flow to “Express.” Click the Learn button
11. The Rapidscript Generator checks the application and starts to generate script
12. Save the script and GUI map file Click Next
13. RapidTest Script wizard will be closed now
14. Now open GUI Map editor Choose Tools>Gui Map Editor
15. Gui Map Editor Displayes all the object and the properties of the objects in
windows application which is checked.
16. Close GUI Map Editor
17. Save the test choose file>save
Result:
The give test condition is implemented and the output is verified successfully
Recording the Test
Aim:
To record the operations which are performed on an application and to run the test
again using winrunner
Procedure:
1. Start winrunner Choose Programs > WinRunner > WinRunner from start
menu
7. Stop the recording choose Test > Stop Recording or press Ctrl_L+F3 to stop-
the recording
9. Run the test choose Test> Run from top or press Ctrl_L+F5 to start the test
# Form1
set_window ("Form1", 6);
edit_set ("Text1", "arun");
obj_type ("Text1","<kTab>");
button_press ("Login");
# Project2_0
set_window ("Project2_0", 0);
button_press ("OK");
# Form1
set_window ("Form1", 8);
edit_set ("Text1", "praba");
button_press ("Login");
# Project2_0
set_window ("Project2_0", 0);
button_press ("OK");
# Form1
set_window ("Form1", 5);
edit_set ("Text1", "dina");
button_press ("Login");
# Project2_0
set_window ("Project2_0", 1);
button_press ("OK");
# Form1
set_window ("Form1", 2);
edit_set ("Text1", "ram");
button_press ("Login");
# Project2_0
set_window ("Project2_0", 1);
button_press ("OK");
# Form1
set_window ("Form1", 3);
edit_set ("Text1", "raju");
button_press ("Login");
# Project2_0
set_window ("Project2_0", 1);
button_press ("OK");
Result:
The give test condition is implemented and the output is verified successfully
Checking Text
Aim:
To check the text in an application using winrunner
Procedure:
1. Start Winrunner choose Programs > WinRunner > WinRunner From the
start menu
6. Stop the recording choose Test > Stop Recording or press Ctrl_L+F3 to stop-
the recording
11. Create the function for the required object using Function generator
13. Run the test choose Test> Run from top or press Ctrl_L+F5 to start the test
14. the test will be performed and result is displayed in the test results window
Validation part:
edit_get_text("Text1",t1);
edit_get_text("Text2",t2);
edit_get_text("Text3",res);
if(t1+t2 == res)
tl_step("Test",0,"True");
else
tl_step("test",1,"false");
Result:
The give test condition is implemented and the output is verified successfully.
Checking Bitmaps
Aim:
To check the bitmap images in a project and to verify that both the image are same
Procedure:
1. Start winrunner. Choose Programs > WinRunner > WinRunner from start
menu
6. insert the bitmap check point. Choose Insert > Bitmap Check point >For
Object/Windows or press Ctrl_L+F2
9. insert the bitmap check point. Choose Insert > Bitmap Check point >For
Object/Windows or press Ctrl_L+F2
11. Now we can view the bitmaps in the testresults window. Choose Tools>Test
Results or press ALT_R+F8.
13. Run the test choose Test> Run from top or press Ctrl_L+F5 to start the test
14. the test will be performed and result is displayed in the test results window
15. To know the Difference between two bitmap images double click on the first
bitmap image
16. the difference will be show between the bit map images
The give test condition is implemented and the output is verified successfully
Batch Mode Testing
Aim:
To test multiple application multiple times with the help of batch mode testing
Procedure:
1. Open the first application
2. Start winrunner. Choose Programs > WinRunner > WinRunner from
start menu
3. Open a new test. Choose File > New
Aim:
To test synchronize tests for the application
Procedure:
1. Start WinRunner and open a new testchoose Programs > WinRunner
>WinRunner on the Start menu
2. Start the Flight Reservation application and log in.Choose Programs >
WinRunner > Sample Applications > Flight 1A on the Start menu
4. Create a new order.Choose File > New Order in the Flight Reservation
application
5. Insert the order into the database.Click the Insert Order button
6. Delete the order.Click the Delete Order button and click Yes in the message
window to confirmthe deletion.
7. Stop recording.Choose Create > Stop Recording or click the Stop button
9. Open the General Options dialog box.Choose Settings > General Options
10. Change the value to 1000 milliseconds (1 second).In the Timeout for
Checkpoints and CS statements box, change the value to“1000”
11. Make sure that the lesson4 test window is active in WinRunner
12. Run the test Choose Run > Run from Top
13. Create > Synchronization Point > For Object/Window Bitmap or click the
Synchronization Point for Object/Window Bitmap
# Flights Table
set_window ("Flights Table", 1);
button_press ("OK");
# Flight Reservation
set_window ("Flight Reservation", 1);
button_set ("First", ON);
edit_set ("txtCustomerName", "arun");
button_press ("Insert Order");
set_window ("Flight Reservation", 3);
button_press ("Delete Order");
# Flights Table
set_window ("Flights Table", 1);
button_press ("OK");
# Flight Reservation
set_window ("Flight Reservation", 1);
button_set ("First", ON);
edit_set ("txtCustomerName", "arun");
button_press ("Insert Order");
obj_wait_bitmap("Insert Done...", "Img2", 1);
set_window ("Flight Reservation", 3);
button_press ("Delete Order");
The give test condition is implemented and the output is verified successfully