Flex Builder License and Automation – Flex 3

July 28, 2009 at 8:34 am 12 comments

Automation is a premium feature in Flex Builder 3.  So to get the complete functionality of automation, user need to have a valid professional version of Flex Builder.

Here  I am mentioning the details of the same applicable to Flex3 or   FlexBuilder3.

Automation – Prerequisite

User need to have the automation swc’s (available in FlexBuilder)

User should have automation libraries linked in to the application using the -include-libraries.

At the time of application compilation, a valid professional license should be provided.

 

How to Provide the license ?

Option 1 – Using Flex Builder

If you have FlexBuilder installed, Help -> Manage Licenses . Here enter your professional key. FlexBuilder will inform whether the license was valid. This operation would have created a file in the following location with the required syntax. For windows : C:\Documents and Settings\All Users\Application Data\Adobe\Flex\license.properties  and /home/user/.Adobe/Flex (for UNIX and Linux)

This file will have the details as follows.

flexbuilder3=<your key>

Option 2 – Manually providing the file

If you don’t have FB installed on that machine, create a file as mentioned above and place it under the specified location.

Option 3-  Provide in the command.

If you are using a script to compile your application you can provide the license details as additional arguments to your compiler.

the syntax is as follows.

-licenses.license <product> <serial-number>   i.e  

-licenses.license  flexbuilder3 xxx-yyy-zzzzzzz

Option 4-  Specify in the flexconfig.xml file of your sdk.

<flex-config>

<licenses>

<license>

<product>flexbuilder3</product>

<serial-number>PUT NUMBER HERE</serial-number>

</license>

</licenses>

</flex-config>

 Note: Ensure that level of  <licenses> tag is just under the main <flex-config> .

 

Once you have provided the license don’t forget to recompile the application. License information is embedded in the application.  It is not checked at run time.

How do you know whether the licensing worked ?

If you don’t have a valid professional license, you will be restricted to perform only 30 operations (30 record or 30 replay) on the application.

Note: Using the license.properties inside flex sdk is applicable only for flex versions lesser than flex3.0.  i,e if you are using flex3.0 or higher, license needs to be applied using one of the ways mentioned above.

Happy Flex Automation!

Heard from a user about using the license when using flex wih maven, Flex-Mojos

The format of giving license in this scenario can be as follows

<plugins>

           <plugin>

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

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

<version>${flex-mojos.version}</version>

<extensions>true</extensions>

<configuration>

<licenses>

<flexbuilder3>the-client-fb-number-here</flexbuilder3>

</licenses>

<targetPlayer>10.0.0</targetPlayer>

<compiledLocales>

<locale>en_US</locale>

</compiledLocales>

<resourceBundlePath>${basedir}/src/main/locales/{locale}</resourceBundlePath>

<allowSourcePathOverlap>true</allowSourcePathOverlap>

<contextRoot>radon_java_webapp</contextRoot>

<showWarnings>true</showWarnings>

<sourceFile>Main.mxml</sourceFile>

</configuration>

</plugin>

</plugins>

Note that we use the latest flexmojos plugin, the groupId changed: it is org.sonatype.flexmojos

Entry filed under: Flex Automation, Flex Automation.

Automation Issues – controls non clickable

12 Comments Add your own

  • 1. Sreekanta Prasad  |  September 24, 2009 at 5:01 pm

    Our application has a FlexTree on the left for navigation.

    Problem 1: Using Flex automation, I cannot select the links on the left navigation if they are hidden

    Problem 2: There is no programmatic way to determine the bottom most scroll position. This becomes complicated because the left navigation links are organized as different folders. Expanding or collapsing the folders cause the vertical scroll position to change. If I try to specify a vertical scroll position 1 greater than is allowed, Flex throws error. What value should I use in this case ?

    Reply
    • 2. raniskumar  |  October 5, 2009 at 8:37 am

      Please file a case in JIRA with the sample.

      Reply
  • 3. Srinivas Annam  |  November 12, 2009 at 1:15 pm

    The location of “license.properties” file on Mac is
    /Library/Application Support/Adobe/Flex

    Reply
  • 5. Patrick  |  June 24, 2010 at 4:17 pm

    How does this work for Flash Builder licenses? I’m assuming the “flexbuilder3” product name no longer applies… but what should the value be for flash builder?

    I can’t find this information ANYWHERE and it’s driving me crazy!

    Reply
    • 6. raniskumar  |  April 6, 2011 at 10:10 am

      flashbuilder4 can be used for flashbuilder 4 and flashbuilder45 for the coming soon FlashBuilder45

      Reply
  • 7. Folakemi Fapohunda  |  March 28, 2011 at 5:29 pm

    Hi. We’ve been unable to run qtp scripts sucessfully on our deployed application using Maven even though we included the qtp libraries as dependencies in the POM and also flex builder license.

    http://pastie.org/private/ipt5snzvbtqwnurxypyrgw

    They seem to be included in the build as the swfs increases with qtp libs included.Despite this, QTP was unable to recognize the individual flex objects in the application hence testing hasnt been possible.

    Do you have any idea of any further configuration (apart from including the qtp libs) required to run qtp using Maven as build tool?

    Reply
    • 8. raniskumar  |  April 6, 2011 at 9:33 am

      Conact me with the details at ranik@adobe.com , how the qtp libraries are added ? They are not dependencies. They need to be forcefully added as no code in your application refer to the classes in those libraries.

      Reply
      • 9. Rick L  |  April 29, 2011 at 5:18 pm

        What do you mean by forcefully add? Without including as a dependency how can you add?

      • 10. raniskumar  |  July 21, 2011 at 12:56 pm

        -include-libraries (for all class in the library) and -includes(for a class) will add all the definitions in the swf, irrespective you have used or not.
        -library-path or external-library-path picks up what is used.

    • 11. Sachin  |  July 17, 2012 at 9:36 pm

      Hi Folakemi,

      Were you able to resolve this issue? I am facing same issue. Our code is compiled using maven and having same issue with QTP. Let me know what your resolution was.

      Reply
  • […] https://raniskumar.wordpress.com/2009/07/28/flex-builder-license-and-au tomation-flex-3/ explains different ways to apply license in Flex 3. Same steps apply for FB 4 as well but the name “flexbuilder3″ should be changed to “flashbuilder4″ in case of FB4. […]

    Reply

Leave a reply to Folakemi Fapohunda Cancel reply

Trackback this post  |  Subscribe to the comments via RSS Feed


Calendar

July 2009
M T W T F S S
 12345
6789101112
13141516171819
20212223242526
2728293031  

Most Recent Posts