Retrieving Testing Options with getvar - WinRunner

You use the getvar function to retrieve the current value of a testing option. The getvar function is a read-only function, and does not enable you to alter the value of the retrieved testing option.(To change the value of a testing option in a test script, use the setvar function, described above.) The syntax of this statement is:

user_variable = getvar ("testing_option");

In this function, testing_option may specify any one of the following:

attached_text_area
attached_text_search_radius
batch
beep capture_bitmap
cs_fail
cs_run_delay
curr_dir
delay_msec
drop_sync_timeout
email_service
enum_descendent_toplevel
exp
fontgrp
item_number_seq
key_editing
line_no
List_item_separator
Listview_item_separator
min_diff
mismatch_break
rec_item_name
rec_owner_drawn
result
runmode
searchpath
shared_checklist_dir
single_prop_check_fail
silent_mode
speed
sync_fail_beep
synchronization_timeout
td_log_dirname
td_connection
td_cycle_name
td_database_name
td_server_name
td_user_name
tempdir
testname
timeout_msec
Treeview_path_separator

For example:

currspeed = getvar ("speed");

assigns the current value of the run speed to the user-defined variable currspeed.


All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

WinRunner Topics