This topic describes the changes made to TestComplete 3.01. For information on the changes made to other versions of the product, see Version History.
TestComplete Services
- HTTP Load Testing improvements: now you can easily modify
the parameters of the HTTP requests and check the properties of the
responses the server sends on these requests:
- TestComplete now provides access to the request properties and
variables from scripts. Each
HTTPRequest
object now contains theVariables
property for this. See alsoVariables
Object. - TestComplete provides access to the fields of the ContentDisposition structure (Web browsers use this structure to send the data of the Web forms to the server. Using this structure you can easily modify the properties of these requests).
- TestComplete offers a new program object for working with the request and response body.
OnLoadTestingRequest
andOnLoadTestingResponse
, that allow you to work with requests and responses during the load testing sessions. - TestComplete now provides access to the request properties and
variables from scripts. Each
- The unit testing support: has been enhanced. You can now run functions from Java Open Applications using test suites.
- The test suites and project suites have a new property, Timeout.
It lets you set a time limit for the test suite (or project suite)
execution. TestComplete stops all suites that run longer than their
Timeout values. TestComplete includes a new event,
OnTimeout
, that is generated when TestComplete stops a suite run. - Now you can specify values with wildcards (* and ?) for string properties that are displayed in the Objects page of the Stores panel. TestComplete will properly process these wildcards when comparing object properties.
- The Object-Driven
Testing plugin provides new ways to automatically walk down
the object hierarchy, calling object methods at each level of this
hierarchy and for selecting methods and objects that will participate
in testing. This option is especially useful if you have lots of
testing data and objects.
The Object-Driven Testing panel displays icons that indicate if an object is included in testing.
The plugin also introduces new programming objects, methods and properties that allow you to control the new testing facilities from scripts:- Methods and properties:
Data.Run
,Group.Run
,Object.Run
,ArrayObject.Run
,Object.IsFiltered
,ArrayObject.IsFiltered
,Property.Enabled
,Method.Enabled
,Group.Enabled
,Method.IsInit
. - Objects:
ODTVariables
,PropValueSet
,ArrayItem
.
- Methods and properties:
- The Outlining facility has been improved. The Editor’s context menu now holds a new item, Stop hiding current block without children, that commands TestComplete to stop outlining the current block, but keep outlining its child blocks.
- A number of bug fixes.
Scripting Support
- A new
OnOverlappingWindow
event allows you to perform specific actions when your script needs to simulate a mouse click or a keypress in a window and this window is being overlapped by another window. Previously, you could only handle these windows using the On overlapping window | Ignore overlapping window option. - The
Regions.Compare
andRegions.Find
methods use a new parameter, Tolerance, that allows you to ignore slight differences between the compared images. - The
TestedApp.Run
method's implementation has been changed. Now this method launches an application from the tested applications list and returns the process object that corresponds to the application process. This makes the script shorter. - The
Log
object contains two new methodsSaveResultsAs
andSaveTestAs
. They allow you to store test results to .htm, .xml and .xsl files. - The
Utilities
plugin provides two new functions:DirectoryExists
andForceDirectories
. - A number of changes in the Object-Driven Testing programming objects:
- The
AddArrayProperty
andAddClassProperty
methods of theClass
andObject
objects have been renamed toAddPropOfArrayType
andAddPropOfClassType
. - The
AddArrayVariable
andAddClassVariable
of theGroup
object have been replaced withAddVarOfArrayType
andAddVarOfClassType
. - The
AddArrayItem
andAddClassItem
methods of theArrayType
andArrayObject
objects have been renamed toAddItemOfArrayType
andAddItemOfClassType
. - The
Items
property andAddItem
method of theArrayType
andArrayObject
objects now return anArrayItem
object. - The
Group.Variables
property now returns anODTVariable
object.
- The
User Interface Changes
- The status bar of the Editor panel has a context menu with a single item that lets you copy the name and path of the currently open unit to the clipboard.