Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
phone_sync Recorded after any phone navigation on the Nokia emulator, and instructs
WinRunner to wait until the phone is ready to handle the next operation.
web_browser_invoke Invokes the browser and opens a specified site.
web_cursor_to_image Moves the cursor to an image on a page.
web_cursor_to_label Moves the cursor to a label on a page.
web_cursor_to_link Moves the cursor to a link on a page.
web_cursor_to_obj Moves the cursor to an object on a page.
web_event Runs an event on a specified object.
web_file_browse Clicks a browse button.
web_file_set Sets the text value in a file-type object.
web_find_text Returns the location of text within a page.
web_frame_get_text Retrieves the text content of a page.
web_frame_get_text_count Returns the number of occurrences of a regular expression in a
page.
web_frame_text_exists Checks whether the specified text string is found in a frame.
web_get_run_event_mode Returns the current run mode.
web_get_timeout Returns the maximum time that WinRunner waits for response from the
web.
web_image_click Clicks a hypergraphic link or an image.
web_label_click Clicks the specified label.
web_link_click Clicks a hypertext link.
web_link_valid Checks whether a URL name of a link is valid (not broken).
web_obj_get_child_item Returns the description of the children in an object.
web_obj_get_child_item_count Returns the count of the children in an object.
web_obj_get_info Returns the value of an object property.
web_obj_get_text Returns a text string from an object.
web_obj_get_text_count Returns the number of occurrences of a regular expression string in
an object.
tl_step Divides a test script into sections and inserts a status message in the test results for the
previous section. When WinRunner is connected to a TestDirector project, the message is
inserted in the TestDirector_"step" table for each statement.
tl_step_once Divides a test script into sections and inserts a status message in the test results
for the previous section. When WinRunner is connected to a TestDirector
project, the message is inserted in the TestDirector "step" table once for
each step name.
unload_16_dll Unloads a 16-bit DLL from memory.
unload_dll Unloads a DLL from memory.
dos_system Executes a DOS system command.
invoke_application Invokes a Windows application from within a test script.
password_edit_set Sets the value of a password edit field to a given value.
password_encrypt Encrypts a plain password.
web_password_encrypt Encrypts a password on a Web page.
qt_force_send_key Instructs WinRunner 2000 to recognize an edit field which prompts a
screen change when information is inserted.
qt_reset_all_force_send_key Negates screen change configurations previously made using the
qt_force_send_key function.
ascii Returns the ASCII code of the first character in a string.
compare_text Compares two strings.
index Indicates the position of one string within another.
length Counts characters in a string.
match Finds a regular expression in a string.
split Divides an input string into fields and stores them in an array.
sprintf Returns a formatted string to a variable.
substr Extracts a substring from a given string.
tolower Converts uppercase characters to lowercase.
toupper Converts lowercase characters to uppercase.
To add the TDAPI functions to WinRunner’s Function Generator, run the tdapi test in the lib
folder of your WinRunner installation directory.
For explanations and examples of all TDAPI functions, refer to the TestDirector API Help.
Click a TDAPI function below to open the TestDirector API Help to the appropriate screen.
TDAPI AddStepToRun
TDAPI AddTestToCycle
TDAPI BugListMove
TDAPI Connect
TDAPI CreateBug
TDAPI CreateBugList
TDAPI CreateCycle
TDAPI CreateCycleList
TDAPI CreateDesStep
TDAPI CreateDesStepList
TDAPI CreateRun
TDAPI CreateRunList
TDAPI CreateStepList
TDAPI CreateTDDatabasesList
TDAPI CreateTest
TDAPI CreateTestInCycleList
TDAPI CreateTestList
TDAPI CreateUser
TDAPI CreateUserList
TDAPI CycleExists
TDAPI CycleListMove
TDAPI DeleteBug
TDAPI DeleteCycle
TDAPI DeleteDesStep
TDAPI DeleteRun
TDAPI DeleteStep
TDAPI DeleteTest
TDAPI DeleteTestFromCycle
TDAPI DeleteUser
TDAPI DesStepListMove
TDAPI Disconnect
TDAPI FindTestByPath
TDAPI FindTestBySubjectPath
TDAPI GetBugFieldSize
TDAPI GetBugValue
TDAPI GetCategoryTreeRoot
TDAPI GetCycleFieldSize
TDAPI GetCyclesForTest
TDAPI GetCycleValue
TDAPI GetDatabaseNameFromList
TDAPI GetDesStepFieldSize
TDAPI GetDesStepValue
TDAPI GetFieldProperty
TDAPI GetLastErrorString
TDAPI GetRunFieldSize
TDAPI GetRunValue
TDAPI GetStackErrorString
TDAPI GetStepFieldSize
TDAPI GetStepValue
TDAPI GetTestFieldSize
TDAPI GetTestFullPath
TDAPI GetTestInCycleFieldSize
TDAPI GetTestInCycleValue
TDAPI GetTestSubjectPath
TDAPI GetTestValue
TDAPI GetUserFieldSize
TDAPI GetUserValue
TDAPI RunListMove
TDAPI SetBugValue
TDAPI SetCycleValue
TDAPI SetDesStepValue
TDAPI SetRunValue
TDAPI SetStepValue
TDAPI SetTestInCycleValue
TDAPI SetTestValue
TDAPI SetUserValue
TDAPI StepListMove
TDAPI TestExists
TDAPI TestInCycleExists
TDAPI TestInCycleListMove
TDAPI TestListMove
TDAPI TreeAddNode
TDAPI TreeChanged
TDAPI TreeCreateRoot
TDAPI TreeGetChild
TDAPI TreeGetNodeAttribute
TDAPI TreeGetNumberOfChildren
TDAPI TreeGetRoot
TDAPI TreeGetSubjectIdFromPath
TDAPI UserExists
TDAPI UserListMove
tddb_get_step_value Returns the value of a field in the "dessteps" table in a TestDirector
project.
tddb_get_test_value Returns the value of a field in the "test" table in a TestDirector project.
tddb_get_testset_value Returns the value of a field in the "testcycl" table in a TestDirector
project.
tddb_load_attachment Loads a file attachment of a test and returns the location of the loaded
attachment.
tl_step Divides a test script into sections and inserts a status message in the test results for the
previous section. When WinRunner is connected to a TestDirector project, the message is
inserted in the TestDirector_"step" table for each statement.
tl_step_once Divides a test script into sections and inserts a status message in the test results
for the previous section. When WinRunner is connected to a TestDirector
project, the message is inserted in the TestDirector "step" table once for
each step name.
get_aut_var returns the value of a variable that determines how WinRunner learns descriptions
of objects, records tests, and runs tests on Java applets or applications.
getvar Returns the value of a testing option/configuration parameter.
set_aut_var Sets how WinRunner learns descriptions of objects, records tests, and runs tests
on Java applets or applications.
setvar Sets the value of a testing option/configuration parameter.
end_transaction Marks the end of a transaction for performance analysis.
get_time Returns the current system time.
pause Pauses test execution and displays a message.
start_transaction Marks the beginning of a transaction for performance analysis.
time_str Converts the integer returned by get_time to a string.
wait Causes test execution to pause for the specified amount of time.
Customization function
add_cust_record_class Associates a custom record function or a logical name function
with a custom class.
add_record_attr Registers a custom property.
add_record_message Adds a message to the list of Windows messages that WinRunner
processes.
delete_record_attr Removes a custom property.
generator_add_category Adds a category to the Function Generator.
generator_add_function Adds a function to the Function Generator.
generator_add_function_to_category Adds a function defined in the Function Generator to a
category.
generator_add_subcategory Adds a subcategory to a category in the Function Generator.
generator_set_default_function Sets a default function for a Function Generator category.
gui_ver_add_check Registers a new check for a GUI checkpoint.
gui_ver_add_check_to_class Adds a check to an object class, which can be viewed in the GUI
Checkpoint dialog boxes.
gui_ver_add_class Adds a checkpoint for a new object class.
gui_ver_set_default_checks Sets default checks for a GUI object class.
create_browse_file_dialog Displays a browse dialog box from which the user selects a file.
create_custom_dialog Creates a custom dialog box.
create_input_dialog Creates a dialog box with an edit field for use in interactive test execution.
create_list_dialog Creates a dialog box with a list of items for use in interactive test
execution.
create_password_dialog Creates a password dialog box.