Ask a Question

AQtime automation: how to change profiler settings?

SOLVED
Cavaler
New Contributor

AQtime automation: how to change profiler settings?

Hello everyone,

 

I am trying to use AQtime 8.0 COM interface to run Coverage analysis on a simple test app (for a start).

That's what I am doing on Python:

aqtime = Dispatch("AQtime.AQtime")
intmgr = aqtime.IntegrationManager

intmgr.NewProjectFromModule(sys.argv[1])
intmgr.SelectProfiler("Coverage Profiler")
intmgr.SelectRunMode("Normal")
intmgr.Start("C:\\test.xml", "")

Profiling runs, and results are generated.

But profiling is done by routines only, not by lines. It is changed in GUI easily, but I cannot find a way to change profiler settings automatically.

 

I assume it could be done using some Managers provided by IaqBaseManager - but there is no documentation on that interface and its derivatives.

 

Can anyone help me out?

3 REPLIES 3
Cavaler
New Contributor

Also, I would greatly appreciate a way to read generated results programmatically.

Theoretically I can parse generated xml - but there must be an easier way

HKosova
SmartBear Alumni (Retired)


@Cavaler wrote:

 

But profiling is done by routines only, not by lines. It is changed in GUI easily, but I cannot find a way to change profiler settings automatically.


Hi Cavaler,

 

To profile by lines, use:

intmgr.AreaManager.FullCheck = True
intmgr.AreaManager.FullCheckLevel = 2   # eplLines

See Managing Profiling Areas via COM for more info and examples.

 

Alternatively, you can create a pre-configured project and use that project instead.


Helen Kosova
SmartBear Documentation Team Lead
________________________
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️

Hi,

 

> Also, I would greatly appreciate a way to read generated results programmatically.

The answer may depend on your actual needs, but https://support.smartbear.com/viewarticle/43222/ might be an option.

Regards,
  /Alex [Community Champion]
____
[Community Champions] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Champions]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Champion] signature is assigned on quarterly basis and is used with permission by SmartBear Software.
https://community.smartbear.com/t5/Community-Champions/About-the-Community-Champions-Program/gpm-p/252662
================================
cancel
Showing results for 
Search instead for 
Did you mean: