Additional Tips for Working with User-Defined Functions
Additional Tips for Working with User-Defined Functions When working with user-defined functions, consider the following tips and guidelines: For an in-depth view of the required syntax, you ca...
Unregistering User-Defined Test Object Methods
Unregistering User-Defined Test Object Methods When you register a method using a RegisterUserFunc statement, your method becomes a recognized method of the specified test object while it is being u...
Preparing the User-Defined Function
Preparing the User-Defined Function When you run a statement containing a registered method, it sends the test object as the first argument. For this reason, your user-defined function must have at...
Registering User-Defined Functions as Test Object Methods
Registering User-Defined Functions as Test Object Methods You can also use the RegisterUserFunc statement to add new methods to test objects or to change the behavior. of an existing test object me...
Registering a Function Using the Function Generator
Registering a Function Using the Function Generator You can register a public function to a test object to enable the function (operation) to be performed on a test object. When you register a func...
functions
Private functions cannot be registered to a test object。Note: Do not give the user-defined function the same name as a built-in function (for example, GetLastError, MsgBo...
Associating a Function Library with an Application Area
Associating a Function Library with an Application Area You can associate a function library with an open application area either from the Resources pane or from the currently active function libr...
Choosing Which Steps to Report During the Run Session
Choosing Which Steps to Report During the Run Session You can use the Report.Filter method to determine which steps or types of steps are included in the Test Results. You can completely disable o...
Enhancing Your Tests and Function Libraries Using the Windows API
Enhancing Your Tests and Function Libraries Using the Windows API Using the Windows API, you can extend testing abilities and add usability and flexibility to your function libraries. The Windows o...
Running DOS Commands
Running DOS Commands You can run standard DOS commands in your QuickTest function using the VBScript. Windows Scripting Host Shell object (WSCript.shell). For example, you can open a DOS command wi...
Accessing User-Defined Properties of Web Objects
Accessing User-Defined Properties of Web Objects You can use the notation to access native properties of Web objects and use these properties to identify such objects with programmatic description...
Activating Run-Time Object Methods
Activating Run-Time Object Methods You can use the Object property to activate the internal methods of any run-time object. For example, you can activate the native focus method of the edit box as...
Retrieving Run-Time Object Properties
Retrieving Run-Time Object Properties You can use the Object property to access the native properties of any run-time object. For example, you can retrieve the current value of the ActiveX calendar...
Accessing Run-Time Object Properties and Methods
Accessing Run-Time Object Properties and Methods If the test object methods and properties available for a particular test object do not provide the functionality you need, you can access the nativ...
Retrieving and Setting Test Object Property Values
Retrieving and Setting Test Object Property Values Test object properties are the set of properties defined by QuickTest for each object. You can set and retrieve a test object's property values, a...
Running and Closing Applications Programmatically
Running and Closing Applications Programmatically You can run any application from a specified location using a SystemUtil.Run statement in a function library. This is especially useful if you want...
Performing Programmatic Description Checks
Performing Programmatic Description Checks You can compare the run-time value of a specified object property with the expected value of that property using either programmatic descriptions or user-...
Retrieving Child Objects
Retrieving Child Objects You can use the ChildObjects method to retrieve all objects located inside a specified parent object, or only those child objects that fit a certain programmatic descriptio...
Using Description Objects for Programmatic Descriptions
Using Description Objects for Programmatic Descriptions You can use the Description object to return a Properties collection object containing a set of Property objects. A Property object consists...
Entering Programmatic Descriptions Directly into Statements
Entering Programmatic Descriptions Directly into Statements You can describe an object directly in a statement by specifying property:=value pairs describing the object instead of specifying an ob...