![]() ![]() ![]() ![]() |
| Topics this page:
|
![]() ![]()
Related Topics: |
|
Mercury Interactive
See how their stock is doing in the dot.bomb economy at MSN Money Central archives | ![]() ![]() ![]() |
| ![]() | ![]() ![]() ![]() |
|
Image Name | Mem Usage | v7.6 File Bytes | v8.2 File Bytes | |
---|---|---|---|---|
![]() | wrun.exe (with no scripts loaded) | 18,420 K | 4,157,490 | 4,628,530 |
![]() | crvw.exe (WinRunner Record/Run Engine) | 7,956 K | 802,865 | 815,153 |
MDM.EXE (Microsoft Windows Machine Debug Manager) startup program (not a Task Manager process) | 3,600 K | - | - | |
NTVDM.EXE (six_agnt.exe and wowexec.exe) | 3,416 K | - | - |
If WinRunner crashes and you don't want to reboot, press Ctrl-Alt-Del, select the Task Manager, click Processes Tab, Image Name. Then click on each of these processes (if they exist) and click "End Process" on each of the above. This should solve this error message in file wrstderr:
So exit WinRunner after you make a lot of changes to avoid getting them wiped out.
Zip up your script directory before you open your script after a crash.
It's a good idea to archive versions.
Rename each file with a sequential number.
Move them to an "arc" folder if you don't want to see them.
![]()
When WinRunner starts up for the first time, it asks whether you want to create a new script or open an existing script.
| ![]() ![]() ![]() |
|
| ![]() ![]() ![]() |
You can create your own (such as WRAFS did) by following the Customization Guide.
But the standard WinRunner installation comes with several
"additional support" "hooks" to the operating system:
| ![]()
| ![]() ![]() ![]() |
WinRunner begins by silently executing (in the background) scirpt
| ![]() ![]() ![]() |
![]() ![]() ![]() |
|
Tree | Item | Section | Key | Value | Run Parameter (getvar/setvar) | Note | ||
---|---|---|---|---|---|---|---|---|
Default | WRSFAS | |||||||
General | Back up test script automatically every __ minutes | [WrCfg] | TEST_AUTOSAVE= | 10 | 5 | -auto_save <minutes> | ||
Enable date operations | [WrEnv] | DATE_OPERATIONS= | blank | 1=checked | n/a | |||
Global GUI Map file | [WrCfg] | GUI_BUF_PER_TEST= | 1=selected | 0=unselected | -gui_buf_ per_test <on|off> | |||
GUI Map file per test | [WrCfg] | 0=unselected | 1=selected | |||||
Load temporary GUI map file | [WrCfg] | XR_AUTO_LOAD= | TRUE=selected | 1=selected | -auto_load <on|off> | [1] | ||
Keyboard file: | [WrCfg] | XR_INP_KBD_NAME= | - | %M_ROOT%\dat\win_scan.kbd | ||||
Folders | Temporary files: | [WrEnv] | TMP= | - | c:\Temp | ("tempdir") | ||
Temporary GUI map file: | [WrCfg] | XR_AUTO_LOAD_DIR= | - | %M_ROOT%\tmp | -auto_load_dir <path> | |||
Shared Checklists: | [WrCfg] | XR_SHARED_CHECKLIST_DIR= | %M_ROOT%\chklist | - | ("shared_checklist_dir") | [2] | ||
Documentation files: | [WrEnv] | DOCUMENTATION_DIR= | - | %M_ROOT%\doc\books | ||||
Search path for called tests: | [WrCfg] | XR_SEARCHPATH= | - | <.><%M_ROOT%\lib> | -search_path <path> ("searchpath") | |||
Record | Script Format | String indicating that what follows is a number: | [WrCfg] | HL_LIST_ITEM_ SEPARATOR_STRING=, | ("List_item_separator") | [5] | ||
String for separating Listbox or ComboBox items: | [WrCfg] | HL_LISTVIEW_ITEM_ SEPARATOR_STRING=, | ("ListView_item_ separator") | [5] | ||||
String for separating ListView or Treeview items: | [WrCfg] | HL_ITEM_NUMBER_STRING=# | ("item_number_seq") | [3] | ||||
String for parsing a TreeView path: | [WrCfg] | HL_TREEVIEW_PATH_ SEPARATOR_STRING=; | ("TreeView_path_ separator") | [3] | ||||
Script Readability Insert comments and indent statements | [WrCfg] | TEXT_INDENTATION= | 1=selected | -text_indentation <on|off> | ||||
Generate concise, more readable 'type' statements | [WrCfg] | XR_KEY_EDITING= | TRUE | 0=unselected | ("key_editing") | |||
Text Recog- nition | Use driver-based text recognition | [WrCfg] | blank=checked | [2] | ||||
Timeout for Text Recognition: msecs | [WrCfg] | XR_TEXT_ RECOGNITION_ TIMEOUT= | 500 | |||||
Use image-based text recognition - Font group | [WrCfg] | XR_FONT_GROUP= | stand | -fontgrp <groupname> ("fontgrp") | ||||
Insert comment containing recognized text | [WrCfg] | XR_TEXT_REMARKS= | TRUE =checked | 1=checked | ||||
Run | Settings | Timeout for checkpoints and CS statements: | [WrCfg] | XR_TIMEOUT= | 10000 | 5000 | -timeout_msec <time-miliseconds> ("timeout_msec") formerly -timeout <time> ("timeout") | [4] |
Threshold for difference between bitmaps: | [WrCfg] | XR_MIN_DIFF= | 1000 | 0 | -min_diff <threshold> ("min_diff") | |||
Beep when checking a window | [WrCfg] | XR_BEEP= | checked | checked | -beep <on|off> | |||
Fail test when Context Sensitive errors occur | [WrCfg] | CS_FAIL= | 0=unchecked | 0=unchecked | -cs_fail <on|off> ("cs_fail") | |||
Fail test when single property fails | [WrCfg] | SINGLE_PROP_CHECK_FAIL= | 1=checked | 0=unchecked | -single_prop_ check_fail <on|off> ("single_prop_check_fail") | |||
Break when verification fails | [WrCfg] | XR_MISMATCH_BREAK= | TRUE | FALSE | -mismatch_break <on|off> ("mismatch_break") | [3] | ||
Capture bitmap on verification failure | [WrCfg] | XR_CAPTURE_BITMAP= | 0=unchecked | 0=unchecked | -capture_bitmap <on|off> ("capture_bitmap") | |||
[WrCfg] | XR_CAPTURE_BITMAP_TYPE= | 0=Window | 1=Desktop | |||||
Syn- chron- ization | Delay for window synchronization: | [WrCfg] | XR_RETRY_DELAY= | 1000 | 0 | |||
Delay between execution of CS statements: | [WrCfg] | XR_CS_RUN_DELAY= | 0 | 0 | -cs_run_delay <miliseconds> ("cs_run_delay") | |||
Timeout for waiting for synchronization message: | [WrCfg] | XR_SYNCHRONIZATION_TIMEOUT= | 2000 | 0 | ("synchronization_ timeout") | |||
Drop synchronization timeout if failed | [WrCfg] | XR_DROP_SYNC_TIMEOUT= | TRUE=checked | 0=unchecked | <on|off> ("drop_sync_timeout") | [1] | ||
Beep when synchronization fails | [WrCfg] | XR_SYNC_FAIL_BEEP= | - | 0=FALSE | ("sync_fail_beep") | |||
Noti- fica- tions | Activiate e-mail service | [WrCfg] | XR_EMAIL_SERVICE= | FALSE | 1=TRUE | ("email_service") | ||
Mail Server Server address: | [WrCfg] | - | - | - | ||||
Mail Server Port: | [WrCfg] | XR_EMAIL_SVR_PORT | 25 | 25 | ||||
Use authentication | [WrCfg] | XR_EMAIL_AUTH | FALSE=0 | 0=FALSE |
[1]
Some values are set at "TRUE" when WinRunner establishes the defaults, but become "1" (which also means TRUE)
when the value is changed within WinRunner.
[2] Some values are set at blank and filled in with a default value when other fields in its dialog change value.
[3] Some values begin as "FALSE" and stay in "FALSE" (or begin as "TRUE" or switch to "TRUE").
[4] An exception (bug?): WinRunner 7.6 is storing "Timeout for checkpoints and CS statements" as "FALSE".
[5] This is not created in wrun.ini until a change is made in any field in its screen within Tools > General Options.
|
Grouping | Getvar/Setvar Parameter | Description |
---|---|---|
- | ("curr_dir") | Displays the current working directory for the test. (getvar only) |
("enum_descendent_toplevel") | Records actions on the child windows in MDI applications. Possible values: 1,0 | |
("line_no") | Displays the line number of the current location of the execution marker in the test script. | |
("rec_owner_drawn") | Maps all owner-drawn buttons to a standard button class (push_button, radio_button, or check_button), since WinRunner cannot identify the class of owner-drawn buttons and automatically maps them to the general "object" class text strings (object, push_button, radio_button, check_button) |
|
Setting | Section | Value in wrun.ini |
---|---|---|
WR main Window position | [WrWin] | WrX=374 WrY=181 WrMax=1 if maximized |
[GuiEditor] |
Left=311
Right=937
Top=-13
Bottom=419 VIEW=0 DESC=1 EXPAND=1 HIGHLIGHT=1 FILTER_NAME_FLAG=0 FILTER_DESC_FLAG=0 FILTER_CLASS_FLAG=0 FILTER_NAME_STRING= FILTER_DESC_STRING= FILTER_CLASS_STRING= | |
Watch List window position | [WatchList] | Left=0 Right=227 Top=0 Bottom=245 |
[GuiVer] |
Left=375
Right=961
Top=169
Bottom=479 HIGHLIGHT=1 LARGE_TBAR=1 | |
[UserBar] | ||
[SpyDlg] |
Left=884
Right=1275
Top=5
Bottom=652 AllAttr=0 SpyOnWin=1 |
If you have multiple monitors, put the WinRunner Editor window on the right monitor.
If you forget to move and save the position, change the win.ini and restart WinRunner.
Section | Value in wrun.ini | Description |
---|---|---|
[WrCfg] | MAX_ARR_SIZE = 5000 | Defines the maximum number of entries WinRunner allocates for arrays such as its Watch list. |
| ![]() ![]() ![]() |
| ![]()
Java Applications and Applets
| ![]() ![]() ![]() |
![]()
Unlike C or Java which require users to perform a separate compilation step using a separate program,
you make a Winrunner script module “Compiled” by changing the file's Test type
property from the File Properties screen shown at right.
Winrunner performs a pre-compilation automatically when it saves a module
assigned a property value of “Compiled Module”.
| ![]() ![]() ![]() |
| ![]() ![]() ![]() |
| ![]() ![]() ![]() |
By default, no key is assigned to “Sychronize Bitmap and Location of Window". So map it to something by using WinRunner utility softkey.exe from the Programs menu where WinRunner is invoked. This program updates wrun.ini .
|
![]() ![]() ![]() |
|
| ![]() ![]() ![]() |
|
| ![]() ![]() ![]() |
|
| ![]() ![]() ![]() |
|
Event | Source of info |
---|---|
start run | Automatically added with the name of the script in Details column and "run" in the Results column. |
stop run | Automatically added with the name of the script in Details column and "pass" or "fail" in the Results column. |
context sensitive error | Automatically generated when an item is not found in the GUI map or in the application. |
User Message | report_msg() function |
tl_step | tl_step() function |
Some prefer to read the plain-text version of this in the Results.txt file WinRunner generates.
But there you can't click on the
"Show TSL" icon (after a specific line is highlighted) to open the TSL script file at the line number indicated.
If you press an up/down cursor key (or a wheel mouse) when this dialog first appears, rather than scrolling lines on the page,
you will scroll from "debug" to "exp" and other result folders
(which are from previous runs).
So click on a line first before scrolling.
|
Quality Center (Test Director) | -dont_connect | Opens WinRunner without connecting to Quality Center, if the Reconnect on startup check box is selected in the Connection to Quality Center dialog box. | |
-td_log_dirname <path> | |||
-td_connection <on|off> ("qc_connection") | Displays whether WinRunner is currently connected to TestDirector. (Formerly td_connection or test_director.) | ||
-td_server_name <server name> ("qc_server_name") | Displays the name of the Quality Center server to which WinRunner is currently connected. (Formerly td_server_name) | ||
-td_database_name <database name> ("qc_database_name") | Displays the name of the Quality Center project database to which WinRunner is currently connected. (Formerly td_database_name) | ||
-td_cycle_name <cycle name> ("qc_cycle_name") | Displays the name of the Quality Center test set (formerly known as "cycle ") for the test. (Formerly td_cycle_name or cycle .) | ||
-td_user_name <user name> ("qc_user_name") | Displays the user name for opening the selected Quality Center database. (Formerly td_user_name or user) | ||
-qc_password <password> formerly -td_password <password> | Specifies the password for connecting to a database in a Quality Center server. | ||
("qc_test_instance") | Displays the instance of the test that is currently opened and running in the Quality Center test set. | ||
("qc_test_run_id") | displays the run name of the test that is currently opened and running in the Quality Center test set. |
[TestDirector] TDAllowLocalDB=1 ReconnectToServer=0 ReconnectToDB=0 ReconnectOnStart=1 UsePasswordOnStart=1
Ed Kit's "Software Testing in the Real World: Improving the Process".
|
Support.mercury.com requires you to register for a login. ![]() | ![]() ![]() ![]() |
|
|
![]() ![]() ![]() |
| ![]() |
![]() ![]() ![]() |
![]()
| Your first name: Your family name: Your location (city, country): Your Email address: |
Top of Page ![]() Thank you! |