[flexcoders] How to find the actual type of a custom flex component?

2009-02-25 Thread pmotzfeldt
Hi, 

I am wondering if anybody knows how I can find the actual class type
of a custom component?

By that I mean I create a custom component that is a VBox, but I call
it MyCustomBox, and whenever I call className on that it returns
MyCustomBox, but I want to get the class VBox by any means.

Appreciate any help, thanks!



[flexcoders] Creating delegate for custom component, exception in UIComponentAutomationImpl

2008-02-21 Thread pmotzfeldt
Hi

Am am creating a custom component and a delegate that extends the
UIComponentAutomationImpl, so that it is possible to test the
component with either QTP or FunFX. 

(I am doing this to learn how to create such components, so the
components could have been created much easier, with a repeater).

I am able to create the delegate and make an swc of the delegate, and
when createing the custom component, the delegate is mixed in. But I
am getting a null pointer exception in the constructor of the
UIComponentAutomationImpl.

It seems that when I create an instance of CustomComponent, it sends a
null value to the constructor of the delegate. When I debug the init
method it gets a customcomponentapplication_manager.

Does anybody know what I am doing wrong? Thanks for any pointers.



// The delegate class
[Mixin]
public class CustomComponentDelegate extends UIComponentAutomationImpl
{   
  public static function init(root:DisplayObject):void {
Automation.registerDelegateClass(CustomComponent,
CustomComponentDelegate);
  }

  private var comp:CustomComponent;
  public function CustomComponentDelegate(component:CustomComponent) {
super(comp);
comp = component
  }
  //More methods eg numAutomationChildren etc
}

[Event(name=itemClick, type=event.CustomItemClickEvent)]
[DefaultProperty(dataProvider)]

public class CustomComponent extends VBox
{
  private var _dataProvider:Array;
  private var _renderers:Array = [];
  private var _itemRenderer:IFactory = new ClassFactory(Button);

  public function CustomComponent(){
super();
  }

  override protected function createChildren():void{
super.createChildren();
for(var i:int=0; i_dataProvider.length; i++){
  var inst:UIComponent = createInstance();
  Button(inst).label = _dataProvider[i];
}
invalidateSize();
invalidateDisplayList();
  }

  private function createInstance():UIComponent{
var inst:UIComponent = _itemRenderer.newInstance();
inst.addEventListener(MouseEvent.CLICK, itemClickHandler);
this.addChild(inst);
return inst;
  }
  //More method like itemClickHandler etc
}



[flexcoders] HashMap with an object as key transferred with livecycle returns null

2007-11-15 Thread pmotzfeldt
Hi

I have an HashMap in java that uses an object as the key (have also
tried using Integer), but when I in Flex access this object the value
of the key is null. If I switch the key to a String it works great.
But I need to be able to use an int(Integer) or an object as the key.

Anybody got any tips on how to do this. Am I doing something wrong or
does this just not work?

Thanks in advance! 



[flexcoders] Is it possible to use load-externs with Flex library?

2007-05-22 Thread pmotzfeldt
Hi

I am building a Flex Library that make use of some swc files that I do
not have permission to include in the library. The Applications that
uses my Library includes these swc files.

My library will not compile if I do not include the swc files.

I am aware that there is a way to to this with Modules. With
-link-report and then -load-externs. I have tried to do this with my
Flex library. Then I do not get any error messages, but the swc file
is not created.

Is this even possible with a Flex library, what can I do?

Thanks

Peter



[flexcoders] Re: Is it possible to use load-externs with Flex library?

2007-05-22 Thread pmotzfeldt
In case someone else is wondering I will answer my own question, since
I were able to do what I wanted to do.

What wanted to do was to create a library file that uses other library
files. A Flex application will include these library files. 

The simple step one needs to do to include a library file's
functionality but not the actual library file is to add it as a swc to
the project and edit the link type to external. This makes the Flex
application that uses this library to include the other library files.

That is it

--- In flexcoders@yahoogroups.com, pmotzfeldt [EMAIL PROTECTED] wrote:

 Hi
 
 I am building a Flex Library that make use of some swc files that I do
 not have permission to include in the library. The Applications that
 uses my Library includes these swc files.
 
 My library will not compile if I do not include the swc files.
 
 I am aware that there is a way to to this with Modules. With
 -link-report and then -load-externs. I have tried to do this with my
 Flex library. Then I do not get any error messages, but the swc file
 is not created.
 
 Is this even possible with a Flex library, what can I do?
 
 Thanks
 
 Peter





[flexcoders] Re: Difference between getChild and getAtomationChild

2007-05-18 Thread pmotzfeldt
I understand that it is a method of the IAutomationObject. But there
is still something that I do not figure out.

I have created an adapter that enables me to take advantage of the
automation package and replay events on a Flex application I have
created. With this application all the display components have
automation children. But with a mock class I have used to test the
adapter, where I just create a class that extends Application and add
some panels and buttons, none of those have automation children only
regular children. (Both projects implements the automation.swc and
automation_agent.swc. And all components are UIComponents, which
implements IAutomationObject)

What in Flex decides if a object has automation children or regular
children? 

Thank you


--- In flexcoders@yahoogroups.com, Peter Hall [EMAIL PROTECTED] wrote:

 Correct. getAutomationChild() is a method of the IAutomationObject
 interface, and only returns children that also implement that interface.
 IAutomationObject is part of the mx.automation package, which is
designed
 for automated testing. So basically, it's a filter for testing tools
so they
 only have to look at objects that can be automated. The Flex
extension for
 Mercury QTP is currently (I think) the only commercial tool that
makes use
 of it.
 
 Peter
 
 On 5/15/07, Johannes Nel [EMAIL PROTECTED] wrote:
 
my guess its the interface for QTP
 
 
  On 5/15/07, Tom Chiverton [EMAIL PROTECTED] wrote:
  
   On Tuesday 15 May 2007, pmotzfeldt wrote:
Hi, I am wondering what the difference between a regular child
and an
automation child of for instance an UIComponent.
  
   guess
   Some children are for purely GUI purposes, such as a title bar
or label.
  
   --
   Tom Chiverton
   Helping to administratively repurpose bricks-and-clicks clusters
   on: http://thefalken.livejournal.com
  
   
  
   This email is sent for and on behalf of Halliwells LLP.
  
   Halliwells LLP is a limited liability partnership registered in
England
   and Wales under registered number OC307980 whose registered
office address
   is at St James's Court Brown Street Manchester M2 2JF.  A list
of members is
   available for inspection at the registered office. Any reference
to a
   partner in relation to Halliwells LLP means a member of
Halliwells LLP.
   Regulated by the Law Society.
  
   CONFIDENTIALITY
  
   This email is intended only for the use of the addressee named
above and
   may be confidential or legally privileged.  If you are not the
addressee you
   must not read it and must not use any information contained in
nor copy it
   nor inform any person other than Halliwells LLP or the addressee
of its
   existence or contents.  If you have received this email in error
please
   delete it and notify Halliwells LLP IT Department on 0870 365 8008.
  
   For more information about Halliwells LLP visit www.halliwells.com.
  
  
  
   --
   Flexcoders Mailing List
   FAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
   Search Archives:
   http://www.mail-archive.com/flexcoders%40yahoogroups.com
   Yahoo! Groups Links
  
  
  
  
 
 
  --
  j:pn
  http://www.lennel.org
 
   
 





[flexcoders] Difference between getChild and getAtomationChild

2007-05-15 Thread pmotzfeldt
Hi, I am wondering what the difference between a regular child and an
automation child of for instance an UIComponent.

What makes a child added become a automation child and regular child?

Thanks in advance!



[flexcoders] Set an ID on the editable datagrid textinput?

2007-05-14 Thread pmotzfeldt
Hi, is it possible to set an ID of the textfield appearing when a row
in a datagrid is editable? I need to be able to reach it by id, and by
the default id Flex sets, because it is changing all the time.

Is this possible? Maybe with the use of a custom itemrenderer, but
preferably not..



[flexcoders] Re: Set an ID on the editable datagrid textinput?

2007-05-14 Thread pmotzfeldt
Hi, I am trying automate testing. I am setting the datagrid editable,
selecting a row, and then I want to be able to input text. I am able
to reach the textinput control, but the only identificator is the
automatically made id. 

So I want to be able to id the textinput when creating the datagrid.
Any type of id, maybe combination of the datavalue field of some sort.
Does not even need to know what id it creates, as long as the id is
consistent every time the application is built.

I am no sure if this made it any clearer?

Thanks in advance!

--- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED]
wrote:

 On Monday 14 May 2007, pmotzfeldt wrote:
  Hi, is it possible to set an ID of the textfield appearing when a row
  in a datagrid is editable? 
 
 Maybe.
 What problem are you trying to solve ?
 
 -- 
 Tom Chiverton
 Helping to biannually extend next-generation channels
 on: http://thefalken.livejournal.com
 
 
 
 This email is sent for and on behalf of Halliwells LLP.
 
 Halliwells LLP is a limited liability partnership registered in
England and Wales under registered number OC307980 whose registered
office address is at St James's Court Brown Street Manchester M2 2JF.
 A list of members is available for inspection at the registered
office. Any reference to a partner in relation to Halliwells LLP means
a member of Halliwells LLP. Regulated by the Law Society.
 
 CONFIDENTIALITY
 
 This email is intended only for the use of the addressee named above
and may be confidential or legally privileged.  If you are not the
addressee you must not read it and must not use any information
contained in nor copy it nor inform any person other than Halliwells
LLP or the addressee of its existence or contents.  If you have
received this email in error please delete it and notify Halliwells
LLP IT Department on 0870 365 8008.
 
 For more information about Halliwells LLP visit www.halliwells.com.





[flexcoders] Re: Set an ID on the editable datagrid textinput?

2007-05-14 Thread pmotzfeldt
With the use of the automation. I am playing with creating my own adapter.

I do not think it is possible just to give it a name, or how would I
do that?

An example grid is shown below. How would I set the name of the
textinput control appearing when the row is selected?

If have tried something like this (but it does not work):
mx:DataGridColumn dataField=label headerText=Label id=testID/

mx:DataGrid editable=true id=dgColor dataProvider={COLOR_ARRAY}
  mx:columns
mx:Array
  mx:DataGridColumn dataField=data headerText=Data/
  mx:DataGridColumn dataField=label headerText=Label/
/mx:Array
  /mx:columns
/mx:DataGrid

--- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED]
wrote:

 On Monday 14 May 2007, pmotzfeldt wrote:
  Hi, I am trying automate testing. 
 
 Without using the automation framework built into Flex ?
 
  selecting a row, and then I want to be able to input text. I am able
  to reach the textinput control, but the only identificator is the
  automatically made id.
 
 Give it a name property, and then use getChildByName() would be one
work 
 around.
 
 -- 
 Tom Chiverton
 Helping to collaboratively maintain user-centric networks
 on: http://thefalken.livejournal.com
 
 
 
 This email is sent for and on behalf of Halliwells LLP.
 
 Halliwells LLP is a limited liability partnership registered in
England and Wales under registered number OC307980 whose registered
office address is at St James's Court Brown Street Manchester M2 2JF.
 A list of members is available for inspection at the registered
office. Any reference to a partner in relation to Halliwells LLP means
a member of Halliwells LLP. Regulated by the Law Society.
 
 CONFIDENTIALITY
 
 This email is intended only for the use of the addressee named above
and may be confidential or legally privileged.  If you are not the
addressee you must not read it and must not use any information
contained in nor copy it nor inform any person other than Halliwells
LLP or the addressee of its existence or contents.  If you have
received this email in error please delete it and notify Halliwells
LLP IT Department on 0870 365 8008.
 
 For more information about Halliwells LLP visit www.halliwells.com.





[flexcoders] How to invoke a class built as a swc automatically with the use of mixin?

2007-04-03 Thread pmotzfeldt
Hi

My problem is that I have a Flex library file (swc) that contains a
class that holds several methods that I want several Flex-projects to
register with the ExternalInterface API so that they can be reached
from Javascript or ActiveX.

I want the Flex project to just include the swc file.

I figure that I need to use mixin and to register the library class
with the APPLICATION_COMPLETE.

I want to be able to add this swc file as a library, and without
making any calls to this class, making the addCallback methods be
registered automatically.

How do I do that?

Thanks

Peter


[Mixin]
public class ExternalLib
{
  public function ExternalLib(root:DisplayObject)
  {
root.addEventListener(FlexEvent.APPLICATION_COMPLETE,
applicationCompleteHandler);
  }

  public static function init(root:DisplayObject):void
  {
if(!externalLib)
{
_root = root;
externalLib= new ExternalLib(root);
}
  }

  private function applicationCompleteHandler(event:FlexEvent):void
  {
_root.removeEventListener(FlexEvent.APPLICATION_COMPLETE,
applicationCompleteHandler);

externalLib= this;

if(ExternalInterface.available)
{
  ExternalInterface.addCallback(addevent, catchEvent);
  ExternalInterface.addCallback(checkProperty, catchProperty);
}
else
  trace(Error: Not available);

  }

}



[flexcoders] Using states and addChild, the children gets new ID's. How to get around this?

2007-03-22 Thread pmotzfeldt
Hi

I am having a problem when I add components with the use of addChild
when switching states, and that is that the component's ID is not what
I specify in the code.

It is the VBox that I scpecify should have an id = vbAdvanced, but
when I iterate over the children of pState when switched states, it
has an id created by Flex with the name of for ex VBox124.

How do I get around this, I need to be able to reach the added child
by id?

mx:states
  mx:State name=Advanced id=idState
mx:AddChild relativeTo={pState} position=lastChild id=tull
mx:VBox x=20 y=160 height=80 id=vbAdvanced width=160
  mx:CheckBox label=Regular expression id=cbReg/
/mx:VBox
/mx:AddChild
mx:SetEventHandler target={lbAdvanced} name=click
handler=currentState=''/
  /mx:State
/mx:states
mx:transitions
  mx:Transition id=myTransision fromState=* toState=Advanced
mx:Parallel target={vbAdvanced}
mx:WipeDown duration=2000/
mx:Dissolve alphaFrom=0.0 alphaTo=1.0 duration=2000/
/mx:Parallel
  /mx:Transition
/mx:transitions
mx:Panel x=382 y=263 width=300 height=400 layout=absolute
id=pState
  mx:Label x=20 y=70 text=Search/
  mx:TextInput x=20 y=90/
  mx:Button x=185 y=90 label=Go id=bGo/
  mx:LinkButton x=20 y=120 label=Advanced Options
id=lbAdvanced click=currentState='Advanced'/
/mx:Panel



[flexcoders] Re: Automation API, Combobox and itemrenderer

2007-03-20 Thread pmotzfeldt
--- In flexcoders@yahoogroups.com, pmotzfeldt [EMAIL PROTECTED] wrote:

 Hi, I am playing with the automation API, to be able to automate events.
 
 I am having a problem with the Combobox. I have just created a simple
 combobox as shown below. I works great in the application. But my
 problem is that the itemRenderer is null, which is probably right.
 
 I am able to open the combobox with the automation api, but when I try
 to select an item with mx.automation.events.ListItemSelectEvent, it
 needs an itemRenderer (mx.controls.listClasses.ListItemRenderer).
 SInce the combobox's itemRenderer is null, I can't use that, so do I
 need to create an itemRenderer?
 
 Does anyone know how I do this?
 
 (I use the replayAutomatableEvent in the automationManager class to
 perform the events)
 
 mx:ComboBox id=cbCombo automationName=cbCombo
   mx:dataProvider
  mx:Array
   mx:StringTest1/mx:String
   mx:StringTest2/mx:String
  /mx:Array
   /mx:dataProvider
 /mx:ComboBox


I got an answer on this question from Adobe, if any is interested..

The thing I wanted to to, was to automate an selection of element with
value for ex Test2.

To do this I needed to iterate over the automationchildren of the
combobox, and compare the value Test2 with the automationValue, and
use the automationChild with this value as the itemRenderer in the
ListItemSelectEvent.

Works great.

Peter



[flexcoders] Automation API, Combobox and itemrenderer

2007-03-15 Thread pmotzfeldt
Hi, I am playing with the automation API, to be able to automate events.

I am having a problem with the Combobox. I have just created a simple
combobox as shown below. I works great in the application. But my
problem is that the itemRenderer is null, which is probably right.

I am able to open the combobox with the automation api, but when I try
to select an item with mx.automation.events.ListItemSelectEvent, it
needs an itemRenderer (mx.controls.listClasses.ListItemRenderer).
SInce the combobox's itemRenderer is null, I can't use that, so do I
need to create an itemRenderer?

Does anyone know how I do this?

(I use the replayAutomatableEvent in the automationManager class to
perform the events)

mx:ComboBox id=cbCombo automationName=cbCombo
  mx:dataProvider
 mx:Array
mx:StringTest1/mx:String
mx:StringTest2/mx:String
 /mx:Array
  /mx:dataProvider
/mx:ComboBox



[flexcoders] Creating a generic method for creating events from String

2007-03-09 Thread pmotzfeldt
Hi

I need som advice.

I am trying to create a generic method which will create an event of
the arguments of the method. I am able to create the rigth type of
event, but I am having trouble finding out how to be able to provide
additional attributes as text to the TextEvent etc...

private function catchEvent(event:String, eventtype:String,
attributes:Array = null):void
{
  var tempEvent:Class = getDefinitionByName(event) as Class;
  var event:* = new tempEvent(eventtype);
  //some code
}

I call it like this (only dynamically)
catchEvent(flash.events::MouseEvent, click);

This will create a MouseEvent with type click, but my problem is with
ex the TextEvent with type inputText, which needs the input text.

Is it some kind of way to be able to name the method to which I want
to give some value from a string?

Like I have a string: var methodName:String = text, and in some way
be able to call the text method to the TextEvent with the var methodName?

All in all I need a generic method to be able to create any events,
by providing the event class, type and attribute with a String.

Thank you for any advice!!







[flexcoders] Re: any interest in an alternative to QTP to automate Flex apps?

2007-03-06 Thread pmotzfeldt
Hi, since my message I have been able to create a simple adapter with
the use of the ExternalInterface and Automation API to be able to
perform actions on objects in a Flex application. 
My plan is to create the framework using Ruby, and maybe provide a
recording GUI with Flex on top of it. This way it will be possible to
provide acceptance testing for customers too.

But I am wondering how you are going to be able to perform actions on
objects, without the automation API?

What is the name of your project in sourceforge?

--- In flexcoders@yahoogroups.com, brian.knorr [EMAIL PROTECTED] wrote:

 
 If you are interested we can collaborate on creating this...we are
 taking a similar tdd approach to automating flex apps.  We too
 explored using the automation package and found some useful
 functionality, but we still intend to abstract this to a higher level
 api so one can write test scripts using AS3 and never have to deal
 with the automation packages.  Currently we are experimenting with
 using asunit and flexunit as our test runner...no need to reinvent the
 wheel here.  The one thing that they both lack though is a mechanism
 to handle async events in the setUp method.
 
 Also since the Flash Player is single threaded, everything is event
 based.  Which doesn't work very well with procedural scripts. 
 Basically you end up have to pass in continuation functions all over
 the place which is very messy.  Currently we are working with the
 Flash VM team to see if they can provide something that will help us
 get around this issue.
 
 Can your school assignment only be completed on your own, or can you
 collaborate with others in an open source project?  We have already
 created a project on sourceforge to house the new framework.  Would
 you like to join us in this endeavor?
 
 
 --- In flexcoders@yahoogroups.com, pmotzfeldt pmotzfeldt@ wrote:
 
  Hi, I am a last year student at Norwegian University of Science and
  Technology and in my assignment I will try to make an open source
  framework for functional testing of flex applications.
  
  I have been playing a bit with the automation in Flex and is capable
  to record event, even though I do not need that, because I am going to
  have an Test Driven Development approach for this framework.
  
  But one thing that I have not managed is to programatically drive the
  Flex application. What methods in the automation package do you use, I
  have tried the replay event stuff, but does not get any response?
  
  Do you have any pointers?
  
  --- In flexcoders@yahoogroups.com, brian.knorr wundahwheel@ wrote:
  
   
   I started playing around with the automation package.  I first
had to
   copy the automation source from the Flex SDK into my project and
   compile it...for some reason the classes are not accessible starting
   out.  I see that I can drive the Flex UI through the automation
events
   programmatically...I did a little test and it seems to work so
far.  I
   will continue looking into leveraging the automation classes
found in
   the SDK.  I still plan on creating a scripting layer that abstracts
   folks from having to do event based logic.  But why do I need
FDS?  It
   seems to work fine so far without it.
   
   
   --- In flexcoders@yahoogroups.com, Matt Chotin mchotin@ wrote:
   
FDS requirement first: it is a licensing requirement; it is not a
technical requirement.  And the license is that you need to pay
  for one
FDS CPU license per tester seat.  That license could be
Departmental
(list $6k) or Enterprise.  So if you're looking to create a tool
 that
can be used for free by the testers, the automation framework is
probably not for you.  But if you're just looking to avoid
using QTP
then this could give you a big head start.

 

We are working on documentation for writing an agent.  That
has been
slower to come out because it's primarily ISV/partners who are
interested in building agents.  When the docs are ready we'll post
  them.

 

I think it is fair to say that playback is essentially what you
  need to
support scripting, even if you don't need recording.  QTP for
 example
records actions into scripts, then the tool plays the script back
  and we
turn those into the playback commands.  You can do the same thing.
Either you can write to the automation framework directly with
 events,
or you could write some layer that takes your own scripting
 calls and
generates the automation events for you.  The automation
 framework is
written in AS and exposes classes, methods, and events, so it is
  capable
of being used programmatically.

 

Matt

 



From: flexcoders@yahoogroups.com
  [mailto:[EMAIL PROTECTED] On
Behalf Of brian.knorr
Sent: Thursday, February 08, 2007 7:35 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: any interest

[flexcoders] Add an actionscript class as a library and initialize automatic?

2007-03-06 Thread pmotzfeldt
Hi, maybe it is not possible what im asking, but I will try anyway..

I have a class, which contains some methods that I make available
through ExternalInterface.

The problem is that I want to be able to provide this class as a
library or something like that, to a bunch of Flex applications. And
not need to initialize the class from the Flex applications.

Is it possible to provide the class as a library or something, and
make it initialize itself in some way automatically?



[flexcoders] Re: any interest in an alternative to QTP to automate Flex apps?

2007-02-25 Thread pmotzfeldt
Hi, I am a last year student at Norwegian University of Science and
Technology and in my assignment I will try to make an open source
framework for functional testing of flex applications.

I have been playing a bit with the automation in Flex and is capable
to record event, even though I do not need that, because I am going to
have an Test Driven Development approach for this framework.

But one thing that I have not managed is to programatically drive the
Flex application. What methods in the automation package do you use, I
have tried the replay event stuff, but does not get any response?

Do you have any pointers?

--- In flexcoders@yahoogroups.com, brian.knorr [EMAIL PROTECTED] wrote:

 
 I started playing around with the automation package.  I first had to
 copy the automation source from the Flex SDK into my project and
 compile it...for some reason the classes are not accessible starting
 out.  I see that I can drive the Flex UI through the automation events
 programmatically...I did a little test and it seems to work so far.  I
 will continue looking into leveraging the automation classes found in
 the SDK.  I still plan on creating a scripting layer that abstracts
 folks from having to do event based logic.  But why do I need FDS?  It
 seems to work fine so far without it.
 
 
 --- In flexcoders@yahoogroups.com, Matt Chotin mchotin@ wrote:
 
  FDS requirement first: it is a licensing requirement; it is not a
  technical requirement.  And the license is that you need to pay
for one
  FDS CPU license per tester seat.  That license could be Departmental
  (list $6k) or Enterprise.  So if you're looking to create a tool that
  can be used for free by the testers, the automation framework is
  probably not for you.  But if you're just looking to avoid using QTP
  then this could give you a big head start.
  
   
  
  We are working on documentation for writing an agent.  That has been
  slower to come out because it's primarily ISV/partners who are
  interested in building agents.  When the docs are ready we'll post
them.
  
   
  
  I think it is fair to say that playback is essentially what you
need to
  support scripting, even if you don't need recording.  QTP for example
  records actions into scripts, then the tool plays the script back
and we
  turn those into the playback commands.  You can do the same thing.
  Either you can write to the automation framework directly with events,
  or you could write some layer that takes your own scripting calls and
  generates the automation events for you.  The automation framework is
  written in AS and exposes classes, methods, and events, so it is
capable
  of being used programmatically.
  
   
  
  Matt
  
   
  
  
  
  From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
  Behalf Of brian.knorr
  Sent: Thursday, February 08, 2007 7:35 AM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Re: any interest in an alternative to QTP to
  automate Flex apps?
  
   
  
  
  Is there any documentation on building an adapter to use the
  automation packages? I browsed through the source of the classes in
  the automation package and it appears to support the record and
  playback model of testing, which in my opinion what you want to avoid.
  Can the automation package be leveraged for programmatically
  controlling the Flex components like you would do in a tool like
  Watir, Watij, or Jemmy? Is FDS absolutely required to build on top of
  this system? 
  
  --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
  , Matt Chotin mchotin@ wrote:
  
   I am not looking to derail any interest in you guys building
   alternatives, but would like to point out that the Flex team did a
  large
   amount of work to enable the kind of functionality you're
looking for
   (minus the tool). Check out the mx.automation packages and
you'll see
   the infrastructure that is in place to solve problems like using
   semantic events instead of x/y coordinates, etc. Admittedly, this is
   the portion that we consider the more interesting IP rather than the
   plugin that enables QTP to leverage this functionality (and what you
   need to pay to use). If you have FDS or are willing to invest
money in
   the APIs even if not in QTP itself, I'd encourage you to build
on top
  of
   this system. Interest from other vendors is increasing as well and I
   hope that we'll see offerings in addition to QTP in the future (they
   will be built using this framework). 
   
   
   
   As I stated previously we will continue to examine licensing options
  for
   things like the automation package, but do not expect any changes in
  the
   short term.
   
   
   
   Matt
   
   
   
   
   
   From: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
  [mailto:flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
  ] On
   Behalf Of brian.knorr
   Sent: Wednesday, February 07, 

[flexcoders] Re: OSS, framework for functional testing. Error including automation_agent.swc

2007-02-13 Thread pmotzfeldt
Thank you Matt, thats what I was forgetting.

--- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote:

 There should be an automation_agent_rb.swc somewhere that needs to go in
 your locale folder I think.
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of pmotzfeldt
 Sent: Monday, February 12, 2007 6:16 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] OSS, framework for functional testing. Error
 including automation_agent.swc
 
  
 
 Hi, I am new to this group. Hope I am not posting wrong.
 
 I am on my last year at The Norwegian University of Science and
 Technology (NTNU) and in my last assignment I will try to develop a
 open source framework for functional testing of Flex application. 
 
 I see from other messages that there are others out there doing the
 same :-)
 
 I have just started, and I am having trouble with including the
 library automation_agent.swc.
 
 I get the error message:
 Unable to resolve the class for the ResourceBundle: automation_agent
 
 I have installed the Automation Package with the FDS2 serial and
 entered the following lines in the flex-config.xml:
 (the files are infact in the libs folder)
 
 include-libraries
 library/libs/automation.swc/library
 library/libs/automation_agent.swc/library
 library/libs/qtp.swc/library
 /include-libraries
 
 Does anybody know what I am doing wrong? Is it something wrong with
 the license...
 
 Thank you for any answer!





[flexcoders] OSS, framework for functional testing. Error including automation_agent.swc

2007-02-12 Thread pmotzfeldt
Hi, I am new to this group. Hope I am not posting wrong.

I am on my last year at The Norwegian University of Science and
Technology (NTNU) and in my last assignment I will try to develop a
open source framework for functional testing of Flex application. 

I see from other messages that there are others out there doing the
same :-)

I have just started, and I am having trouble with including the
library automation_agent.swc.

I get the error message:
Unable to resolve the class for the ResourceBundle: automation_agent

I have installed the Automation Package with the FDS2 serial and
entered the following lines in the flex-config.xml:
(the files are infact in the libs folder)

include-libraries
  library/libs/automation.swc/library
  library/libs/automation_agent.swc/library
  library/libs/qtp.swc/library
/include-libraries

Does anybody know what I am doing wrong? Is it something wrong with
the license...

Thank you for any answer!