Attach Method

Applies to TestComplete 15.70, last modified on December 17, 2024

Description

Use the Attach method to command AQtime to attach to the process with the specified process id. If the profiling status is enabled (see EnableProfiling), AQtime starts profiling the process right after attaching to it. If the profiling status is off, AQtime will start profiling when you enable it with the EnableProfiling method.

Declaration

AQtimeObj.Attach(ProcessId)

AQtimeObj An expression, variable or parameter that specifies a reference to an AQtime object
ProcessId [in]    Required    Integer    
Result Boolean

Applies To

The method is applied to the following object:

Parameters

The method has the following parameter:

ProcessId

An integer value specifying the process for attachment. You can find the process id in the Windows Task Manager, or in the TestComplete Object Browser (the Id property of the process objects).

Result Value

True, if the attachment was successful, False otherwise.

Remarks

Settings of profiling areas and triggers, selected profiling mode (Normal, ASP.NET, IIS, Service or COM Server), and currently selected profiler are stores in AQtime project files. When you profile your application using the Attach method, AQtime uses profiling mode and area and trigger settings stored in your AQtime project. Therefore, we recommend to prepare your project in AQtime before you profile that project with AQtime. If you need to change these settings, connect to and work with AQtime via its COM model.

Example

To view an example, see the Integration With AQtime Using the AQtimeIntegration and AQtime Objects help topic.

See Also

StartProfiling Method
IsProfilingStarted Method
WaitAndExportResults Method
WaitForEndOfProfiling Method
EnableProfiling Method
GetResults Method
TerminateProfiling Method

Highlight search results