Sponsored Links: |
Win Runner helps automate the testing system, check development to execution. You can generate check scripts adaptable & reusable, who challenge the functionality of your application. Before a program version, you can run these tests on a single race during the night allowing you to detect & ensure superior program quality.
Contents:
* Lab Exercise
* Features
* Checkpoints
* Synchronization point
* Merge
* GUI Spy
* TSL Scripts
Features:Recovery Manager provides an easy way to wizard that guides you through the system of defining a recovery scenario.
Auto Recovery:
Now you can install WinRunner unattended installation using the preferences historicallyin the past recorded. This feature is beneficial for those products that use business management application or any mechanism for automatic distribution of application.
Better integration with TestDirector.You can specify one or more operations that permit the trial to continue after an event of emergency. This feature is useful during the check is completed without supervision, when errors or accidents could disrupt the testing system until manual intervention occurs.
Silent Installation
TestDirector WinRunner works with both 6.0, which is a client / server based, & TestDirector 7. x, which is based on the Web. In reporting on the shortcomings of the window of WinRunner check results, basic information about the check & control stations can be automatically filled in the form of TestDirector's defect. WinRunner now supports versioning, which allows the updating & revision of check scripts while maintaining elderly versions of each check.
Support for Terminal Servers
Support Citrix & Microsoft Terminal Server
to open multiple clients of the window & run WinRunner on each client as a distinctive user. Moreover, this can be used to run multiple WinRunner LoadRunner Vusers.
Support environments WinRunner 7.5 includes support for Net Explorer 6.x, Netscape 6.x, Windows XP & Sybase PowerBuilder 8, in addition to 30 + the environment & supported by WinRunner 7.
WinRunner provides the most powerful, productive & cost effective solution for verifying the functionality of enterprise applications. For more information on WinRunner, contact a representative of Mercury Interactive for local pricing, evaluation & information distribution.
WinRunner (Features & Benefits)Try the functionality of multiple combinations of information in a single check WinRunner DataDriver Wizard eliminates the programming to automate testing of sizable volumes of information. This saves testers of sizable amounts of time preparing scripts & lets you check further.
Significantly increase the power & flexibility of tests without any programming The function generator provides a quick & error free for check & improve the scripts without any programming knowledge. Testers can basically point to a GUI object, & WinRunner will examine it, decide its class & suggest an appropriate function to use.Use multiple verification types to ensure sound functionality WinRunner provides checkpoints to the text, GUI, bitmaps, URL links & database, allowing testers to compare expected & actual results & identify potential problems with plenty of objects of GUI & its functionality.
Verify the integrity of the information in its database back-end Database verification confirms the values stored in the database & ensures accuracy of transactions & information integrity of records to be updated, deleted & added.View, store & verify at a glance every attribute of tested objects WinRunner GUI Spy automatically identifies, records & displays the properties of standard objects GUI, ActiveX controls & Java objects & methods. This ensures that every object in the user interface is recognized by the script & can be tested.Keep testing & reusable build scripts The map graphic user interface provides a centralized object repository, allowing testers to verify & change any tested object. These changes are automatically propagated to all appropriate scripts, eliminating the need to build new scripts each time the application is unchanged.Multiple check environments with a single application WinRunner supports over 30 environments, including Web, Java, Visual Basic, etc. It also provides specific solutions for leaders, ERP / CRM applications as SAP, Siebel, PeopleSoft as well as a quantity of others.
Lab Exercise:
* Start-> Program Files-> WinRunner-> WINRUN
* Select a quick check script wizard (or) create-> Speedy Check Script wizard
* Click the Next button of welcome to the script wizard
Using the Speedy Check Script wizard
* Find the results of each script & select Tools-> text document in the WinRunner check results.
* Select hand icon & click the application window & Cilck Next button
* Select the tests & click the Next button
* Select the navigation controls & click the Next button
* Set the learning flow (Express or global) & click the More Info button
* Select YES or NO start application, then click the Next button
* Save the start script & map files graphical user interface, click the Next button
* Save the selected tests, click the Next button
* Click the OK button
* Script generated.then the scripts are run. Run-> Run from top
* Open an application.
* Select Tools-map configuration graphical user interface, Windows pops-up.
* Click the Add button, click the hand icon.
* Click on the object, to be configurable. A user-defined class for that object is added to the list.
* Select the user defined class that you added & press the Configure button. "
* Assigned to the class (corresponding stanadard Select a class in the combo box).
* You can move the properties of all obtainable properties analysis. By selecting the Insert button
* Select the Selector & recording methods.
* Click the OK button
* Now, you identify the WinRunner observe objects configured.
Using GUI-Map Configuration Gizmo:
Recording mode using ContextSensitive:
o Create-> Record context sensitive
Select home o-> Program Files-> Accessories-> Calculator
Or some action on the application.
Stop recording or
or Run from Top; Click OK.
Registration Using analog mode:
o Create-> Insert function-> Function generator
Name of the function o: (select 'invoke_application' combo box).
or Click the button args; file: MSPaint.
o Click on the button "Paste" button Click "Run" to open the application, & finally click "Close".
o Create-> Record-Analog.
Draw or any picture in the brush.
or Stop Recording
or Run-> Run from Start, click "OK".
GUI check points-Single Property Check:
o Create-> Insert function-> Function Generator-> (Function name: Invoke_application; File: Flight 1a)
Click on'paste or 'y on'execute click' & then close the window.
o Create-> Record Context sensitive.
or any transaction & stop recording.
o Create-> GUI Check Point-> For individual property.
o Click on some button whose property to be checked.
Click or paste.
Now close the application or Flight1; Run-> Run from top.
or Press 'OK' displays the results of the window.
Double or click on the income statement. It shows the expected value & the actual value of the window.
GUI checkpoint for object / window property:
o Create-> Insert function-> Function Generator-> (Function Name: Invoke_application; File: Flight 1a)
Click on'paste or 'y on'execute click' & then close the window.
o Create-> Record Context sensitive.
or any transaction & stop recording.
o Create-> GUI Check Point-> Object / window properties.
o Click on some button whose property to be checked.
Click or paste.
40Now close the Flight or the 1st application; Run-> Run from top.
or Press 'OK' displays the results of the window.
Double or click on the income statement. It shows the expected value & the actual value of the window.
GUI CHECK POINTS-For Object/Window Property:
* On'paste Click 'on'execute and click' and then close the window.
* Create-> Record Context sensitive.
* Make sure operations and stop recording.
* Create-> Insert function-> Function Generator-> (Function name: Invoke_application; File: Flight 1a)
* Create-> GUI Check Point-> For Multiple Object.
* Click on some button whose property to be checked.
* Click the Add button.
* Click on a few objects and right click to quit.
* Select each object and select the properties to be checked for that object: click 'OK'.
* Run-> Run from Top. It displys results.
BITMAP CHECK POINT:
* Create-> Insert function-> Function Generator-> (Function name: Invoke_application; File: Flight 1a)
* On'paste Click 'on'execute and click' and then close the window.
* Create-> Record Context sensitive.
* Enter the user name, password and click the 'OK' button
* Open the Order in the Flight Reservation Application
* Select File-> Fax & Order enter Fax, Signature
Cancel '* Press the button. "
* Create-> Stop Recording.
* Then open Fax Order in Flight Reservation Application
* Create-> Bitmap Check-> For obj.window;
* Run-> Run from top.
* The check fails and you can see the difference.
For object / window.
* Open new Paint Brush file;
* Create-> Bitmapcheck point-> from screen area.
* Archive of painting appears, select an picture with the crosshair pointer.
* Make a slight modification in the paint file (you can also run in the same picture file);
* Run-> Run from Top.
* The check fails and you can see the difference in the images.
For Screen Area:
Use default check (for MS-Access only)
DATABASE CONTROL POINTS
* Create-> Database Check Point-> Default check
* Select the check box Specify SQL Statement
* Click the Next button
* Click on the Generate button
* Type New DSN name and click the New button
* Next, select a driver that you need to generate a database and double clcik that driver
* Then select the Browse button and retype the same DSN name and click the Save button.
* Click the Next button and click the Finish button
* Select the database and path set by the name of your database
Button OK '* Click' and click your DSN window 'OK' button
* Type of the SQL query in SQL table
* Thebe click the Finish button Note: The same technique will be Custom Check Point
Runtime Record Check Point.
* Repeat above 10 steps.
* Type of request from one related tables in SQL box Ex: select Orders.Order_Number, Flights.Flight_Number Orders, where flights Flight.Flight_Number = Orders.Flight_Number.
* Select the Finish button
* Select hand icon and select button on your application Order No
* Click Next.
* Select hand icon and select button in your application not Filght
* Click the Next button
* Select from the following check box: 1. A record match 2. Three or more match records. 3. No match registration
* Select Finish button the script will be generated.
Synchronization Point:
* Open the Start-> Programs-> Win Runner-> Sample applications-> Flight1.
* Open Window WinRunner
* Create-> RecordContext sensitive
* Insert the new order information & click "Order insert button
* After inserting, click the "Delete" button
* Stop recording & save the file.
* Run-> Run from top: Gives your results.
To Obj / Win Properties:
Without synchronization:
* Preferences-> General Options-> Click "Run" tab. "Timeout for checkpoints & conditions of value statements': 10000 follow 1 to 7 -> screen test" Error message "that the" Delete "button is disabled.
With synchronization:
* Keep the timeout value: 1000 only
* Go to file check script, said insert after "Insert Order", press release.
* Create-> Synchronization-> For obj / Window Property
* Click on "Delete Order" & select enable property, click Paste.
* Insert the synchronization statement.
(Note: Check if the order is not increasing when ever Order is created)
o Open Flight1; Analysis-> graphs (open)
o Create-> get text-> from screen area
Capture or # of tickets sold; right clcik & close the graph
or Now, insert new order, open the graph (Analysis-> graphs)
or Go to WinRunner window, create-> get text-> from screen area
Capture or # of tickets sold & right click, close the graph
or Save the script
o Add the script followinf; If (text2 == text1) tl_step ( "text comparison", 0, "Update"); more tl_step ( "text comparison", 1, "update property");
or Run-> Run from the top to see results.
Get Text: For Object / Window:
or open a "Calc" application in three windows (Assuming both are three versions)
o Create-> get text-> for obj / Window
or Click a button on a window
Stop recording or
Repeat or 1 to 4 to capture the text of three subject to another "Calc application.
o Add the following TSL (Note: Modify "text" Text1 & Text2 for each statement) if (text1 == text2) report_msg ( "correct" text1); sales report_msg ( "incorrect" text2);
or Run & see the results
To Obj / Win Bitmap:
o Create-> Record context.
Insert information or new order & click "Insert Object" button
Stop recording O & save the file.
or Go to TSL script, before the insertion of information in to "date of flight" insert pointer.
o Create-> Synchronization-> For Obj / Win Bitmap is selected.
or (Make sure to book your flight
empty), click "flight data" text box
or Run-> Run from the Start, is indicated. Note: (Keep "Timeout value": 1000)
Get Text: From Screen Area:
GUI-Spy:
Using the GUI Spy, you can view & verify the properties of any GUI
selected application object
* Tools-> Gui Spy \.
Subject * Select Spy On (select or window)
* Select the icon of the button by hand
* Point of view or the window & press Ctrl_L + F3.
* You can view & check the properties.
Using the Virtual Object wizard, you can assign a bitmap to a standard object class, define the coordinates of the object, & assign a logical name
Using Virtual Object Wizard:
& by GUI Map Editor
* Tools-> Virtual Object Wizard.
* Click the Next button
* Select the object class standard for the virtual object Ex: class: Push_button
* Click the Next button
* Click Mark Object button
* Drag the cursor to mark the area of the virtual object.
* Click the Next button
* Assign the logical name, this name will appear in the check script in order to register.
* Select Yes or No check box
* Click the Finish button
* Go to the WinRunner window & Create-> Start Recording.
* Do some operations
* Stop Recording
Using the map editor graphical user interface you can view & alter the properties of any object graphical user interface of the selected application.
To alter the logical name of an object in a GUI map file
* Tools-> GUI Map Editor
* Select the More Info button
* Select the WinRunner application message box informs "do you need to learn all the objects within the window" & select "Sí''botón.
* Select perticular object & select the Edit button
* Changing the logical name & click 'OK' button
* Save the file
To find an object in a map file graphical user interface:
* Select Tools> GUI Map Editor.
* Select View> GUI Files.
* Select File> Open to load the GUI map file.
* Click Search. The mouse pointer becomes a pointing hand.
* Click on the application object being tested. The object is highlighted in the GUI map file.
* Select Tools> GUI Map Editor.
* Select View> GUI Files.
* Select File> Open to load the GUI map file.
* Select the object on the map graphical user interface file
* Click on Show. The object is highlighted in the application.
To highlight an object in an application:
* Start-> Programs-> Wirunner-> Sample applications-> Flight 1A
* Open Flight Reservation Application
* Go to the window of WinRunner
* Create-> Start recording
* Select File-> new order, insert the fields, Click the Insert Order
* Tools-> Information Table; Type the names of customers in a row & second row tickets.
* By default five column names are Noname1 & Noname2.
* Tools-> Information Driver Wizard
* Click the Next button & select the information table
* Select Parameterizing the check, select the line of the check box line
* Click the Next button
* Parameterizing each specific values with column names of the tables; Repeat for all
* Finalli Click Finish button.
* Run-> Run from the top;
* See the results.
Merge the GUI Files:
Manual Merge
* Tools-> Merge GUI Map File a WinRunner message box informs you that all open GUI maps will be closed and all unsaved changes are discarded and OK button 'click'.
Auto merge
* Select the combination of manual. Manual Merge enables objects by hand add GUI from the source to target files.
* To specify the target file graphical user interface, click the Browse button map and GUI map to select the file
* To specify the source GUI map file user. Click the Add button and select source GUI map file.
Button OK '* Click'
* GUI Map File Manual Merge Tool opens, select the objects and move the file source to target file
* Close the GUI Map File Manual Merge Tool
By hand Retrive the Records form the basis
* Tools-> Merge GUI Map File a WinRunner message box informs you that all open GUI maps will be closed and all unsaved changes are discarded and OK button 'click'.
* Select the automatic combination combination. If you chose Auto Merge and the source of the map files graphical user interface merge successfully without conflicts,
* To specify the target file graphical user interface, click the Browse button map and GUI map to select the file
* To specify the source GUI map file user.
* Click the Add button and select source GUI map file.
Button OK '* Click' A message confirms the merge.
* Db_connect (query1, DSN = Flight32);
* Db_execute_query (query1, select * from Orders, rec);
* Db_get_field_value (query1, # 0, # 0);
* Db_get_headers (query1, field_num, headers);
* Db_get_row (query1, 5, row_con);
* Db_write_records (query1,, c: \ \ str.txt, TRUE, 10)
TSL SCRIPTS :
1. web_browser_invoke (browser, site);
/ / Invoke the browser & open a particular page. The name of the browser (Web Explorer or Netscape browser). The address of the world wide web-site.
/ / Move the cursor to an picture on a page. The picture of the logical name of the picture. x, & x & coordinates of the mouse pointer when moved to an picture
2. (web_cursor_to_image picture, x, y);
3. (web_cursor_to_label label, x, y);
/ / Move the cursor to a tag on a page. the label the name of the label. x, & x & coordinates of the mouse pointer when moved to a label.
/ / Move the cursor to a link on a page. link name link. x, & x & coordinates of the mouse pointer when moved to a link.
4.web_cursor_to_link link, x, y);
5.web_cursor_to_obj (object, x, y);
/ / Move the cursor to an object in a page. The object name of the object. x, & x & coordinates of the mouse pointer when moved to an object.
6.web_event object event_name [, x, y]);
/ / UNS an event on a specified object. object The logical name of the registered object. event_name The name of an event handler. x, & x & coordinates of the mouse pointer when moved to an object
7.web_file_browse (object);
/ / You click a navigation button. subject of an object file type.
8.web_file_set object, value);
/ / Set the text value in an object file type. subject of an object file type. The value of a string.
/ / Returns the location of text within a frame.
9. (web_find_text framework text_to_find, result_array [, text_before, text_after, index, display]);
/ / Retrieves the text content of a frame.
10. (web_frame_get_text framework out_text [, text_before, text_after, index]);
11. web_frame_get_text_count (frame, regex_text_to_find, count);
12. web_frame_text_exists (frame, text_to_find [, text_before, text_after]);
/ / Returns the number of occurrences of a regular expression in a frame.
/ / Returns a text value if it is in a frame.
13.web_get_run_event_mode (out_mode);
14. web_get_timeout (out_timeout);
/ / Returns the current execution mode out_mode The execution mode in use. If the mode is FALSE, the default setting, the check runs of mouse operations. If TRUE is specified, the check runs by events.
15.web_image_click picture, x, y);
/ / Returns the maximum time that WinRunner awaiting a reply from the world wide web. out_timeout The maximum interval in seconds
/ / Hypergraphic click a link or picture. The picture of the logical name of the picture. x, & x & coordinates of the mouse pointer when you click a link or picture hypergraphic.
16. web_label_click (label);
No comments:
Post a Comment