Micro Focus QTP (UFT) Forums
Having trouble integrating QTP with Ant and a multi-module Adobe Flex application - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Having trouble integrating QTP with Ant and a multi-module Adobe Flex application (/Thread-Having-trouble-integrating-QTP-with-Ant-and-a-multi-module-Adobe-Flex-application)



Having trouble integrating QTP with Ant and a multi-module Adobe Flex application - peachy32514 - 03-24-2012

The QTP Object Spy is unable to see past the enclosing project. The application uses portlets. Whenever I attempt to hover over an item in the portlet (i.e. button), I receive the following error message:

Code:
QTPAdapter:useErrorHandler() - Error #1009: Cannot access a property or method of a null object reference.

The portlets are in separate projects and each project has its own ant build script. There is also a main ant script that invokes each of the other ant scripts. I placed the following code block in each of the ant scripts mxmlc blocks:

Code:
<compiler.include-libraries dir="${FLEX_HOME}/frameworks/libs/automation" append="true">
                <include name="automation.swc" />
                <include name="automation_agent.swc" />
                <include name="automation_dmv.swc" />
                <include name="automation_flashflexkit.swc" />
                <include name="automation_spark.swc" />
                <include name="qtp.swc" />
            </compiler.include-libraries>

I also changed the keep-generated-actionscript attribute to true and set the static-link-runtime-shared-libraries attribute to false.

Any advice?