Expand my Community achievements bar.

serial number needed to try flex automation

Avatar

Level 1
I'm running the Flex Automation Installer to install the
plugins needed to evaluate use of QuickTest Professional for
automated Flex 2 testing. The Installer requires entry of a Flex
Data Services serial number. (The applications I want to test do
not use Flex Data Services, so this seems an odd requirement for
evaluation of the test tool.) How can I get the needed serial
number? If this requires discussion with someone at Adobe who
oversees my organization's Flex licenses, how would I determine who
that is and how to contact him or her? Is it necessary to purchase
a Flex Data Services license to evaluate QTP automated testing of
Flex 2 apps?
71 Replies

Avatar

Level 2
My latest experience is that QTP 9.2 works with LCDS 2.5. If
you also have FB3 on the same machine, that will work, too. If you
only have FB3, you need to compile in debug mode.

Avatar

Level 1
I have the QTP configured with Flex and I am able to record
most events. Attempting to record a mouse rollover results in the
following error : “Error: Unable to find automation method
'flash.events.MouseEvent' for class 'name: FlexImage
superClassName: FlexLoader”. My app is a simple image which
applies two states to display the image. It utilizes the
Automation.automationManager.recordAutomatableEvent method for the
target event, within the “rollover” event handler.
Also, I override the “replayAutomatableEvent(Event)”
method calling the
Automation.automationObjectHelper.replayMouseEvent() for the
MouseEvent.ROLL_OVER event. The error propagates from the MouseMove
event as reported in the stack trace –Click and ChangeFocus
also are reported. I’ve added the rollover event to the
“TEAFlex.xml” file. Its my understanding that any event
outside of those defined in the “QTP Object Type”
document for each control can be configured in the
“TEAFlex.xml” file, for any control descending from
UIComponent. I received a similar error after extending the
ProductCatalogThumbnail ( Canvas ) class contained in the flex
store code, though this error propogates from Scroll. Can you
determine why ( in the first case ), the rollover is failing?



Stack trace:

Error: Unable to find automation method
'flash.events.MouseEvent' for class 'name: FlexImage

superClassName: FlexLoader

event2descriptor: (Object)#0

flash.events.FocusEvent|keyFocusChange =
(mx.automation.qtp::QTPEventDescriptor)#1

eventClassName = "flash.events.FocusEvent"

eventType = "keyFocusChange"

name = "ChangeFocus"

flash.events.MouseEvent|click =
(mx.automation.qtp::QTPEventDescriptor)#2

eventClassName = "flash.events.MouseEvent"

eventType = "click"

name = "Click"

flash.events.MouseEvent|mouseMove =
(mx.automation.qtp::QTPEventDescriptor)#3

eventClassName = "flash.events.MouseEvent"

eventType = "mouseMove"

name = "MouseMove"'.

at mx.automation::AutomationManager/recordAutomatableEvent()

at ViewStates_wt3/dispatchLowLevelEvent()

at ViewStates_wt3/__soup_rollOver()

at [mouseEvent]


Text

Avatar

Level 1
Hi



I have installed QTP 9.2, Flex Automation Package / builder
/flex plug-in, QTP recognized the flex controls of sample
application (
http://examples.adobe.com/flex2/inproduct/lcds/flexstore/flexstore.html
): It worked after I ran build.bat from C:\Program Files\Adobe\Flex
Builder 3\sdks\moxie\samples\explorer: below is the sample script:



Browser("FlexStore").FlexApplication("flexstore").FlexImage("image").Click

Browser("FlexStore").FlexApplication("flexstore").FlexToggleButtonBar("_ToggleButtonBar1").Change
"Home"

Browser("FlexStore").FlexApplication("flexstore").FlexToggleButtonBar("_ToggleButtonBar1").Change
"Products"

Browser("FlexStore").FlexApplication("flexstore").FlexCanvas("Products").FlexPanel("Browse").FlexCanvas("Nokia
6010").FlexImage("assets/pic/Nokia_6010.gif").Click



BUT when i tried to record/recognise the flex controls of our
company's flex application to be automated, the whole application
is recognised as a single object "MacromediaFlashPlayerActiveX" and
the child controls are not recognised by QTP



How should I proceed further?, also please let me know the
way to compile my application: then it may work for me



Thanks in advance



-Girish.

Avatar

Level 2
Recording with QTP against anything (other than the
"automation ready" flexstore application on the Adobe website) will
not work unless you have a legitimate LCDS 2.5 license and follow
the instructions on their website for enabling automation. After
you get that to work, you also will be able to test FlexBuilder 3.0
BETA applications with QTP. Although Matt and other Adobe
representatives will tell you that it "should" work, the truth is
that it doesn't. Notice that they never say, "follow these steps
and it will work" or "I've been able to get FB3 to work with QTP".
I've spent countless hours following their suggestions so I'm
hoping to save you the same agony of being strung along
interminably (presumably until they finally actually support
automation with 3.x). Trust me: their suggestions never cease but
never actually tell you how to achieve success. You'll have to work
something out with Adobe Sales regarding a license for LCDS
2.

Avatar

Former Community Member
how did u downloaded the flex automation installer. where
could i get it.

Avatar

Level 2
Reply to: pramodreddy

You can download it from:

https://www.adobe.com/cfusion/tdrc/index.cfm?product=flex



For download first you have to register in the Adobe
site.

Avatar

Former Community Member
thank Q for replaying ,

we downloaded the file and it is asking for the serial
number , if you have that can you please post it

thankssssssssssss

Avatar

Level 2
Thanks for your reply...

I am also stuck with the same issue...also for me it is
asking for the serial no...If you get any update on this please
keep me informed...I will also...

Avatar

Former Community Member
we are working in FLEXbuilder3 and our application is that we
have to integrate the flex application Auomatedtesting , that is
not happening with this flexbuilder3 it is showing the error
messages License is limited and ,in that we have to record the no
of loops for this it is giving limited records are allowed, if any
one have the solution for this problem hlep out

Avatar

Former Community Member
product= flex

i'll inform to you . iam also posting the problem for others
, if i get i;ll inform you

Avatar

Former Community Member
matt_chottin,

is it possible to modify automation tool bar with out using
the qtp plugin.i used to modify the contents of automated tool by
putting the for loop to repeat the records of sequential steps.but
when i ran the application it is on flex

Avatar

Level 1
I'm sorry, I don't understand the question. If you download
the latest version of Flex Builder 3 Beta 2 you should be able to
use the QTP plugin without difficulty (you may need to apply your
Flex 2 Charting serial though).

Avatar

Former Community Member
matt_chotin,

Is it possible to access the data which was developed in flex
builder2 from fb3 beta2 version.i compiled the application in fb3
which was developed in fb2,it complied fine but i am unable to
acces the data. if any pls reply.



the second thing is, i was downloaded the automation
inataller for flex builder2,when i tried to install it, it is
asking for serial number.where could i find the serial
number.should i purchase any product for this. how ever i managed
to get the automation tool for flex builder3,but my application was
developed in flex builder2.how can i overcome this to get the
automation tessting tool for my application.pls reply as quick as
possible.

Avatar

Level 1
There should be no differences in the data consumption from
Flex 2 to Flex 3 as far as I know.



The QTP plugin that comes with Flex Builder 3 should work
with your Flex 2 app, look in the included 2.0.1 Hotfix 3 SDK and
you'll see the automation libraries are in there as well.

Avatar

Level 2
I was able to record and playback QTP tests against our
application, which is an Enterprise Java application on the back
end, with a Flex front end, which was built with FlexBuilder 3.0.0
Beta 2. I no longer needed a LCDS license (which I did with Beta
1). We even were successful when compiling with the automation
libraries, as well as with the runtimeloading files.



The trick now will be to instrument our custom Flash
components so they are automatable. It sure would be nice if Adobe
instrumented them for us...

Avatar

Level 2
dumb_drummer,

Great achievement....

Can you please let me know the steps you have followed
starting from installing Flex Builder?

Looking for your kind help...

Avatar

Level 2
These are instructions for installing QuickTest Pro (QTP) for
Flex and building the "explorer" sample app distributed with
FlexBuilder. Note that you do not have to install FlexBuilder on
every machine with QTP, but you will at least need all of the
plug-ins mentioned below (except for the FlexBuilder plugin). You
will, of course, need the FlexBuilder plugin installed on the
machine where you will be building the application under test.



1. Remove all Flash plugins

2. Get the “Eclipse Plugin” version of
FlexBuilder 3 Beta 2 from
http://labs.adobe.com/technologies/flex/flexbuilder3/

3. Install FlexBuilder

3.1. Note: this has the libraries and QTP plugin required for
automated testing.

3.2. After installation of FlexBuilder 3 BETA, you should
have the following

3.2.1. Adobe Flash Player ActiveX

3.2.2. Adobe Flash Player Plugin

3.2.3. Adobe FlexBuilder 3 Plug-in

4. Install QTP add-in for Flex

4.1. After installation of Flex Builder 3 beta 2, the QTP
add-in is located at C:\Program Files\Adobe\Flex Builder 3
Plug-in\Installers\QTP_Plugin_Installer.exe.

5. Build the ‘explorer’ sample Flex application,
including the automation libraries

5.1. Build at the commandline with flex-config.xml file

5.1.1. Modify the build configuration file by opening the
build configuration file at C:\Program Files\Adobe\Flex Builder 3
Plug-in\sdks\3.0.0\frameworks\flex-config.xml

5.1.2. Remove the XML comments symbols from the section for
the include-libraries by removing the preceeding <!-- and
appending -->

5.1.3. Make sure the following information is included:

<include-libraries>

<library>libs/automation.swc</library>

<library>libs/automation_agent.swc</library>

<library>libs/automation_dmv.swc</library>

<library>libs/datavisualization.swc</library>

<library>libs/flex.swc</library>

<library>libs/framework.swc</library>

<library>libs/qtp.swc</library>

<library>libs/rpc.swc</library>

<library>libs/utilities.swc</library>

<library>libs/player/playerglobal.swc</library>

</include-libraries>

5.1.4. Compile the application for testing:

5.1.4.1. Open the Flex command window at Start > Programs
> Adobe > Adobe Flex 3 SDK Command Prompt (Plug-in Version)

5.1.5. Run the build batch file, for example C:\Program
Files\Adobe\Flex Builder 3
Plug-in\sdks\3.0.0\samples\explorer\build.bat

5.2. Build RunTimeLoading wrapper (without including
automation libraries)

You can bypass this recompilation overhead by just using the
runtimeloading feature. This is an automation-compiled template
which loads production swf’s and makes them automation ready.
You can find the files at “C:\Program Files\Adobe\Flex
Builder 3
Plug-in\sdks\3.0.0\templates\automation-runtimeloading-files”.




All you have to do is copy the following 3 files into your
explorer app swf directory (or bin directory), host this on some
webserver and access runtimeloading html in this fashion:

1. RunTimeLoading.html

2. runtimeloading.mxml

3. runtimeloading.swf




http://localhost:8080/domain/RunTimeLoading.html?automationswfurl=explorer.swf




In this way, you don’t need to compile your application
with automation libraries, so you ship exactly what you build
(which turned out to be the only solution that satisfied my boss).



6. Reference

6.1. Flex Install info

6.2. Creating Applications for Testing

7. Troubleshooting:

This was only necessary for me in Beta 1 but if you have
troubles in Beta 2, you might try adding the following:

7.1. Add the following compiler option (project properties
> Flex Compiler) and recompile and record:

-include-libraries libs/automation.swc
libs/automation_agent.swc libs/automation_dmv.swc
libs/datavisualization.swc libs/flex.swc libs/framework.swc
libs/qtp.swc libs/rpc.swc libs/utilities.swc
libs/player/playerglobal.swc -locale en_US



Avatar

Level 2
dumb_drummer,

Thnks for your reply....I am trying for the same here....

Can u plz. telll me the URL from which you have downloaded
“Eclipse Plugin” version of FlexBuilder 3 Beta 2?

Avatar

Level 2
dumb_drummer,

Thanks for your reply...I am trying to do it.,..

Now I am running the Build.bat file....but it is running for
last 15 min without any interuption. Can you plz. tell me whether I
have to stop it or it will stop automatically..And if I have to
stop it, then how?

Avatar

Level 2
dumb_drammer,

I have installed the QTP Add-In for Flex, but still QTP is
not recognizing the object of the application I am working on.

Please advice....