Attach Method

Applies to TestComplete 15.64, last modified on May 16, 2024


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.



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:


The method has the following parameter:


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.


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.


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