Forum Discussion

satinder_singh's avatar
12 years ago

How to access IaqCOMAccessAreaManager

I am using AQTime API to report unit test coverage



Documentation says (http://support.smartbear.com/viewarticle/17928/) there is a AreaManager property on IaqTimeIntegrationSupportManager object but it doesn't exist.

Here is the code snippet



 object aqTimeObject = Activator.CreateInstance(Type.GetTypeFromProgID("AQtime.AQtime.7"));

              
    IAQtimeManager aqManager = (IAQtimeManager) aqTimeObject;


IaqTimeIntegrationSupportManager integrationSupportManager = aqManager .IntegrationManager;




 if (!integrationSupportManager.NewProjectFromModule(file))
            {
                Console.WriteLine(string.Format("Could not create aqtime project for {0}", file));
                return;
            }

            if (!integrationSupportManager.SelectProfiler("Coverage Profiler"))
            {
                Console.WriteLine("Coverage profiler not found.");
                return;
            }

            integrationSupportManager.GetRunMode(4).SetParameterValue(2, m_testProjectsDirectoryPath);

            integrationSupportManager.SelectRunMode("Normal");
            integrationSupportManager.AddModule(file);

            IaqCOMAccessAreaManager accessAreaManager = integrationSupportManager.AreaManager;