Skip navigation
like_it
Currently Being Moderated

Flex 4.5 QTP build with maven

Jun 21, 2013 11:26 AM

Hi

 

I have been struggling for last 2 days to make my swf file compatible with QTP . Initially I used the Flash Builder’s Compiler options to include the swc’s inside the swf and it worked perferctly fine with QTP .

 

Then the next task was the build the swf through MAVEN so that it could be used with auto-build tools like Jenkins. But after changing the POM , I could see the swf size had increased but with this swf file, QTP is not able to identify the object.

 

We are using Flex sdk : 4.5.1.21328 and Flex MOJO’s 4.0.-RC1 , I tried using higher version of SDK and Mojo but was not of much use . Any suggestions would be of great help. PFB the POM i am using

 

 

<?xml version="1.0" encoding="UTF-8"?>

<project>

<modelVersion>4.0.0</modelVersion>

<groupId>org.dummy.test</groupId>

<artifactId>flexmojos-simplist</artifactId>

<version>0.1-SNAPSHOT</version>

<packaging>swf</packaging>

 

<build>

  <sourceDirectory>src</sourceDirectory>

  <plugins>

   <plugin>

    <groupId>org.sonatype.flexmojos</groupId>

     <artifactId>flexmojos-maven-plugin</artifactId>

     <version>4.0-RC1</version>

     <extensions>true</extensions>

     <configuration>

       <sourceFile>SparkQTPTesting.mxml</sourceFile>

       <incremental>false</incremental>

       <swfVersion>12</swfVersion>

          </configuration>

       <dependencies>

                                  <dependency>

                                         <groupId>com.adobe.flex</groupId>

                                         <artifactId>compiler</artifactId>

                                         <version>4.5.1.21328</version>

                                         <type>pom</type>

                                  </dependency>

                           </dependencies>

     </plugin>

    

    </plugins>

   </build>

   <dependencies>

       <dependency>

       <groupId>com.adobe.flex.framework</groupId>

       <artifactId>flex-framework</artifactId>

       <version>4.5.1.21328</version>

       <type>pom</type>

       </dependency>

      

      

       <dependency>

                      <groupId>com.adobe.flex.framework</groupId>

                       <artifactId>automation_flashflexkit</artifactId>

                       <version>4.5.1.21328</version>

                      <type>swc</type>

                                  <scope>internal</scope> 

                     </dependency>

 

              <dependency>

                      <groupId>com.adobe.flex.framework</groupId>

                       <artifactId>automation</artifactId>

                       <version>4.5.1.21328</version>

                      <type>swc</type>

                                  <scope>internal</scope> 

                     </dependency>

                    

                     <dependency>

                       <groupId>com.adobe.flex.framework</groupId>

                       <artifactId>automation_agent</artifactId>

                       <version>4.5.1.21328</version>

                       <type>swc</type>

                                   <scope>internal</scope>

                     </dependency>

 

              <dependency>

                      <groupId>com.automation</groupId>

                       <artifactId>automation_rb</artifactId>

                       <version>4.5.1.21328</version>

                      <type>swc</type>

                                  <scope>internal</scope> 

                     </dependency>

                    

                                         <dependency>

                       <groupId>com.automation</groupId>

                       <artifactId>automation_agent_rb</artifactId>

                       <version>4.5.1.21328</version>

                       <type>swc</type>

                                   <scope>internal</scope>

                     </dependency>

 

                           <dependency>

                             <groupId>com.adobe.flex.framework</groupId>

                             <artifactId>automation_dmv</artifactId>

                             <version>4.5.1.21328</version>

                             <type>swc</type>

                                         <scope>internal</scope> 

                           </dependency>

 

                                  <dependency>

                                      <groupId>com.adobe.flex.framework</groupId>

                                     <artifactId>automation_spark</artifactId>

                                     <version>4.5.1.21328</version>

                                      <type>swc</type>

                                      <scope>internal</scope> 

                                    </dependency>

      

      

       </dependencies>

   </project>

 

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points