flexconstructor / flexmonkey

Automatically exported from code.google.com/p/flexmonkey
0 stars 0 forks source link

Flex Monkey Flex 4 #72

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

What steps will reproduce the problem?
1. Download all projects from trunk, and set them up in Flash Builder 
2. Download all libs and compile them with flex 4 (no source code for gif
player, so commented, patched version for mate)
3. Launch air monkey or monkey agent 

What is the expected output? What do you see instead?
Air app shows or monkey agent loads

Air app launch VerifyError: Error #1053: Illegal override of
FlexModuleFactory in mx.core.FlexModuleFactory.

Monkey Agent shows 
Could not connect to RX channel in the Monkey agent console and 
Error #1065: No se ha definido la variable
mx.automation.delegates.core:UIComponentAutomationImpl::addMouseEvent.
Delegate object couldnot be created
Setting should not be done here
in flex builder console.

I 
What version of the Flex SDK are you using?
4.0.0.10485
What version of the FlexMonkey are you using?
trunk version
What version of the MonkeyAgent are you using? (if applicable)
trunk version
On what operating system?
Mac 

If I can help to make this working with flex4, i'll try.

Thanks
Nico

Original issue reported on code.google.com by nico.gom...@gtempaccount.com on 9 Oct 2009 at 3:12

GoogleCodeExporter commented 9 years ago
I'm having a similar issue:

VerifyError: Error #1053: Illegal override of
createAutomationIDPartWithRequiredProperties in
mx.automation.delegates.core.ContainerAutomationImpl.

when I try to run a Flex 4 application, with added support to link it to Flex 
Monkey
Console. I have even recompiled Easy2BuildMonkeyLink.swc using the Flex 4, but 
it
didn't help.

Is it because FlexMonkey doesn't support testing Flex 4 applications?  What is 
the
roadmap for this support? I can't find any information about it.

Original comment by stan.be...@gmail.com on 16 Oct 2009 at 9:14

GoogleCodeExporter commented 9 years ago
I've read in FlexMonkey site tet they will add support in version 1.1 of 
FlexMonkey,
and also when Flex4 has an official release.
I've setup all the projects in FlexMonkey sources with Flex4, adding the methods
which was needed in flexautomationlibraries required to compile with flex4, but 
i get
this error.
I'd like know how to help in developement of flexmonkey for flex4 but I've 
found no
doc on how to help.
I've questions on why FlexMonkey Automation libraries defines classes (like
UIComponentAutomationImpl) that are already defined in automation.swc  and on 
how to
debug-develop.
As far as I've read flex4 automation have no changed too much, only the new 
spark
automation, thus I think that it should work out of the box with Halo 
components in
flex 4, but I was wrong, maybe i should setup the projects with flex3 (as i did 
with
flexmonkey 0.8) to verify that dev setup is correct but really I'm inetreted in 
flex4
and I suppose that flexmokey team will take more time to explain how to dev it 
for
flex4 than doing themselves, so until no response is given by flexmonkey team, 
better
is to wait for them to add support.

Original comment by nico.gom...@gtempaccount.com on 17 Oct 2009 at 11:09

GoogleCodeExporter commented 9 years ago
Even I am facing the same problem using Flex 4 and FlexMonkey 4.
I added the automation packages at the specified location as per this link 
http://digitaldumptruck.jotabout.com/?p=369 

I recompiled my Flex AIR project in Flash builder 4 by adding this in the flex 
Compiler path.
-include-libraries "../libs/automation_monkey.swc"
-include-libraries "${flexlib}/libs/automation/automation.swc" 
-include-libraries "${flexlib}/libs/automation/automation_agent.swc" 
-include-libraries "${flexlib}/libs/automation/automation_dmv.swc"

The compilation is successful. But when I launch the app, the get series of 
errors with error#1014,1053,1009.
VerifyError: Error #1053: Illegal override of 
createAutomationIDPartWithRequiredProperties in 
mx.automation.delegates.controls.SWFLoaderAutomationImpl.

    at flash.display::MovieClip/nextFrame()
    at mx.managers::SystemManager/deferredNextFrame()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\managers\SystemManager.as:267]
    at mx.managers::SystemManager/preloader_preloaderDocFrameReadyHandler()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\managers\SystemManager.as:2460]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.preloaders::Preloader/timerHandler()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\preloaders\Preloader.as:488]
    at flash.utils::Timer/_timerDispatch()
    at flash.utils::Timer/tick()

VerifyError: Error #1014: Class 
mx.automation.delegates.core::ContainerAutomationImpl could not be found.

    at flash.display::MovieClip/nextFrame()
    at mx.managers::SystemManager/deferredNextFrame()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\managers\SystemManager.as:267]
    at mx.managers::SystemManager/preloader_preloaderDocFrameReadyHandler()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\managers\SystemManager.as:2460]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.preloaders::Preloader/timerHandler()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\preloaders\Preloader.as:488]
    at flash.utils::Timer/_timerDispatch()
    at flash.utils::Timer/tick()

TypeError: Error #1009: Cannot access a property or method of a null object 
reference.
    at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::kickOff()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\managers\SystemManager.as:2620]
    at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::preloader_completeHandler()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\managers\SystemManager.as:2539]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.preloaders::Preloader/timerHandler()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\preloaders\Preloader.as:515]
    at flash.utils::Timer/_timerDispatch()
    at flash.utils::Timer/tick()

Please let me know if there is any work around to get this going? 

I read somehwere that "Adobe is improving the automation system in Flex 4 to 
cover subwindows,
and FlexMonkey will support Flex 4 in a future release."  Has anyone succeeded 
in verifying this support(sub-windows,menus,pop-ups) so far?

Original comment by pushpa.d...@gmail.com on 28 Jun 2010 at 9:39

GoogleCodeExporter commented 9 years ago
Hi, 

first, your post seems to speak about flexmonkey 1, which doesn't support 
flex4, to use with flex4 you must download and setup flexmonkey 4 from gorilla 
logic.

(mainly you add automation_spark to include libraries)

I'm currently testing Flexmokey 4 beta 1 with flex 4, so far I've found some 
'issues'
* automation_monkey bundled  with monkey accesories seems to be compiled with 
sdk 4.0.0.14159 (first flex 4 release) and using it with another sdk build, 
4.1.x.x may throw a verify error
* I'm having some issues with a custom spark component (with and without 
automationName's) inside a mx:Form (maybe i should make a custom automation 
delegate for that component)
* I'm facing a problem with a remoteObject call (probably this is my fault) in 
a module, with other module remote object works.

I'm waiting to setup flexmonkey 'debug' environement to be able to track and 
fix easier the recording problems....

Regarding 'popups' I've got succes recording/replaying login screnn (wich is a 
PopUp)

Nico

Original comment by nico.gom...@gtempaccount.com on 28 Jun 2010 at 10:28