From lattam at mac.com Tue Mar 11 19:25:39 2008 From: lattam at mac.com (Michael Latta) Date: Tue, 11 Mar 2008 16:25:39 -0700 Subject: [Funfx-user] ComboBox with scrolling? In-Reply-To: References: <888F2CC4-3C55-4292-8E3E-2401811276D6@mac.com> Message-ID: <208AAD43-657B-453B-933B-1E44CB6BD0EF@mac.com> Sorry for the delay. I have been working on other things. My file did not have those changes, though I thought I had 0.0.3. I have worked around a lot of things using custom methods on the flex_object in the AS code. This is probably the wrong way to do it, but it was expedient. I will see if this resolves the combo box issue when I get a chance. Thanks, Michael On Feb 24, 2008, at 11:34 PM, Peter.Motzfeldt at BEKK.no wrote: > Hi Michael > > Waht version of FunFX are you using. Because this was a problem I > solved for the 0.0.3 version. Take a look at the > AutomationGenericEnv file, and scroll down to the combobase class, > see if your file if you scroll event have these default values: > > > Type="scroll"/> > > > > > > > > > > > > It is the thumbposition at detail that is important. If you have > that you can write like this: > > @ie.combo_box("testScroll").open > @ie.combo_box("testScroll").scroll(:position => 3) > @ie.combo_box("testScroll").select(:item_renderer => 8) > > The combobox needs to be opened to be able to run the change event. > > Hope this helps, let me know if it was this that were wrong. If I > have forgot to add this to the automation file out there, I am > terible sorry. > > - Peter > > -----funfx-user-bounces at rubyforge.org wrote: ----- > > >To: funfx-user at rubyforge.org > >From: Michael Latta > >Sent by: funfx-user-bounces at rubyforge.org > >Date: 25.02.2008 2:24 > >Subject: [Funfx-user] ComboBox with scrolling? > > > >I have a combobox with a large number of entries so it needs to > >scroll. > > > >The :item_renderer => for select only works on the visible elements > >in > >the list. I have not been able to get the list to scroll using a > >scroll event. I have tried :position and :detail to make it scroll > >to > >the bottom. Neither has worked yet. I send the scroll event to the > > > >combobox. Does it need to go to another object? > > > >Michael > > > >_______________________________________________ > >Funfx-user mailing list > >Funfx-user at rubyforge.org > >http://rubyforge.org/mailman/listinfo/funfx-user > _______________________________________________ > Funfx-user mailing list > Funfx-user at rubyforge.org > http://rubyforge.org/mailman/listinfo/funfx-user -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/funfx-user/attachments/20080311/3e62e805/attachment-0001.html From alex.frid at gmail.com Thu Mar 13 06:04:12 2008 From: alex.frid at gmail.com (Alex Frid) Date: Thu, 13 Mar 2008 12:04:12 +0200 Subject: [Funfx-user] Testing flex app with FAB, has any one tried ? Message-ID: hi guys, i recently saw the following post http://labs.adobe.com/wiki/index.php/Flex_3:Release_Notes#Installing_and_Configuring_Flex_Automated_Testing which explains how to test the app with FA bridge, if any one tried it or compared it to the funfx i would be happy to hear. -- Alex Frid ////// ( ' , ' ) |_|_| -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/funfx-user/attachments/20080313/420c3fa1/attachment.html From david.spurr at gmail.com Thu Mar 13 07:35:19 2008 From: david.spurr at gmail.com (David Spurr) Date: Thu, 13 Mar 2008 11:35:19 +0000 Subject: [Funfx-user] Testing flex app with FAB, has any one tried ? In-Reply-To: References: Message-ID: <47D91177.8090201@gmail.com> FunFX requires you to use the Automated Testing SWC as that's the easiest way to be able to automate your interactively tests for your display components. FunFX is basically a different way of using Automated Testing to create and run automated UI interaction tests (the only other example I know of is QTP as mentioned on that page). -D Alex Frid wrote: > hi guys, > i recently saw the following post > http://labs.adobe.com/wiki/index.php/Flex_3:Release_Notes#Installing_and_Configuring_Flex_Automated_Testing > which explains how to test the app with FA bridge, if any one tried it > or compared it to the funfx i would be happy to hear. > > -- > Alex Frid > ////// > ( ' , ' ) > > |_|_| > ------------------------------------------------------------------------ > > _______________________________________________ > Funfx-user mailing list > Funfx-user at rubyforge.org > http://rubyforge.org/mailman/listinfo/funfx-user > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/funfx-user/attachments/20080313/c281f96b/attachment.html From alex.frid at gmail.com Thu Mar 13 08:29:45 2008 From: alex.frid at gmail.com (Alex Frid) Date: Thu, 13 Mar 2008 14:29:45 +0200 Subject: [Funfx-user] Testing flex app with FAB, has any one tried ? In-Reply-To: <47D91177.8090201@gmail.com> References: <47D91177.8090201@gmail.com> Message-ID: Hi David, you dont have to use qtp for that. you have to use java script in order to write your tests and FA bridge for the connection to the flex app'. i tried both methods already, it seems that the javascript method a bit more clumsy but it has the advantage of FA bridge usage that allows you to ran the test on any platform and browser, also the FunFx may be a bit more agile because it has the advantage of ruby that able to create mirror methods in runtime that you probably will have to code by your self for each component. the question is if there are more differences/advantages ? On Thu, Mar 13, 2008 at 1:35 PM, David Spurr wrote: > FunFX requires you to use the Automated Testing SWC as that's the easiest > way to be able to automate your interactively tests for your display > components. FunFX is basically a different way of using Automated Testing to > create and run automated UI interaction tests (the only other example I know > of is QTP as mentioned on that page). > > -D > > Alex Frid wrote: > > hi guys, > i recently saw the following post > http://labs.adobe.com/wiki/index.php/Flex_3:Release_Notes#Installing_and_Configuring_Flex_Automated_Testing > which explains how to test the app with FA bridge, if any one tried it or > compared it to the funfx i would be happy to hear. > > -- > Alex Frid > ////// > ( ' , ' ) > > |_|_| > > ------------------------------ > > _______________________________________________ > Funfx-user mailing listFunfx-user at rubyforge.orghttp://rubyforge.org/mailman/listinfo/funfx-user > > > > _______________________________________________ > Funfx-user mailing list > Funfx-user at rubyforge.org > http://rubyforge.org/mailman/listinfo/funfx-user > > -- Alex Frid ////// ( ' , ' ) |_|_| -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/funfx-user/attachments/20080313/6396513c/attachment.html From dmcnaught at symplified.com Thu Mar 13 13:20:10 2008 From: dmcnaught at symplified.com (Duncan McNaught) Date: Thu, 13 Mar 2008 11:20:10 -0600 Subject: [Funfx-user] Having problems, using ant to create FunFX application in war In-Reply-To: Message-ID: Dear FunFX users, We having a problem trying to run FunFX against our application. We?ve had some conversation with Peter Motzfeldt, but since he is not building with ant I am asking the list for help. If you are using ant to build flex and are using FunFX I?ll love to hear that you have it working, so we know it is possible. Here are the details. We?ve got the option set in the ant task to include FunFXAdapter.swc in the compile and also have the file AutomationGenericEnv.xml in our war (at the root directory ? see diagram at bottom). > 1) ANT TARGET: > > services="${war}/WEB-INF/flex/services-config.xml" context-root="${context}" > keep-generated-actionscript="true"> > dir="${FLEX_HOME}/frameworks/locale/en_US" append="true"> > > > > > > > When running a test we?re getting a WIN32OLERuntimeError (below) that seems to > indicate the FunFXAdapter hasn?t been included. > > 2) ERROR FROM TEST: >> Loaded suite C:/jean/workspace/SinglePoint/login >> Started >> E >> Finished in 8.094 seconds. >> >> 1) Error: >> test_enter_credentials(LoginTest): >> WIN32OLERuntimeError: unknown property or method `isSynchronized' >> HRESULT error code:0x80020006 >> Unknown name. >> c:/ruby/lib/ruby/gems/1.8/gems/FunFX-0.0.3/lib/flex.rb:105:in >> `method_missing' >> c:/ruby/lib/ruby/gems/1.8/gems/FunFX-0.0.3/lib/flex.rb:105:in `is_sync' >> c:/ruby/lib/ruby/gems/1.8/gems/FunFX-0.0.3/lib/flex.rb:27:in >> `method_missing' >> C:/jean/workspace/SinglePoint/login.rb:33:in `test_enter_credentials' >> >> 1 tests, 0 assertions, 0 failures, 1 errors > 3) OUR WAR STRUCTURE: >>> Project.war >>> META-INF >>> WEB-INF >>> classes >>> >>> flex >>> messaging-config.xml >>> proxy-config.xml >>> remoting-config.xml >>> services.config.xml >>> lib >>> web.xml >>> css >>> images >>> history >>> AC-OETags.js >>> AutomationGenericEnv.xml >>> FunFXAdapter.swc >>> automation_agent_rb.swc >>> automation_rb.swc >>> datavisualization_rb.swc >>> framework_rb.swc >>> main.html >>> main.swf >>> playerProductInstall.swf >>> Thanks --Duncan ----- Duncan McNaught Symplified Identity 2.0 Made Simple | Delivered On Demand ------ End of Forwarded Message From alex.frid at gmail.com Thu Mar 13 15:51:20 2008 From: alex.frid at gmail.com (Alex Frid) Date: Thu, 13 Mar 2008 21:51:20 +0200 Subject: [Funfx-user] Having problems, using ant to create FunFX application in war In-Reply-To: References: Message-ID: hi, i'm building our app' with ant, and it is working, the script is pretty much similar to what you have, i must remind you that if you are deleting the build lib before coping the new build result in there you should remember to copy the AutomationGenericEnv.xml in to your build dir' each time you run the ant task (you can do it with ant). On Thu, Mar 13, 2008 at 7:20 PM, Duncan McNaught wrote: > Dear FunFX users, > We having a problem trying to run FunFX against our application. > We?ve had some conversation with Peter Motzfeldt, but since he is not > building with ant I am asking the list for help. > If you are using ant to build flex and are using FunFX I?ll love to hear > that you have it working, so we know it is possible. > Here are the details. > > We?ve got the option set in the ant task to include FunFXAdapter.swc in > the > compile and also have the file AutomationGenericEnv.xml in our war (at the > root directory ? see diagram at bottom). > > > 1) ANT TARGET: > > > > > services="${war}/WEB-INF/flex/services-config.xml" > context-root="${context}" > > keep-generated-actionscript="true"> > > > dir="${FLEX_HOME}/frameworks/locale/en_US" append="true"> > > > > > > > > > > > > > > When running a test we?re getting a WIN32OLERuntimeError (below) that > seems to > > indicate the FunFXAdapter hasn?t been included. > > > > 2) ERROR FROM TEST: > >> Loaded suite C:/jean/workspace/SinglePoint/login > >> Started > >> E > >> Finished in 8.094 seconds. > >> > >> 1) Error: > >> test_enter_credentials(LoginTest): > >> WIN32OLERuntimeError: unknown property or method `isSynchronized' > >> HRESULT error code:0x80020006 > >> Unknown name. > >> c:/ruby/lib/ruby/gems/1.8/gems/FunFX-0.0.3/lib/flex.rb:105:in > >> `method_missing' > >> c:/ruby/lib/ruby/gems/1.8/gems/FunFX-0.0.3/lib/flex.rb:105:in > `is_sync' > >> c:/ruby/lib/ruby/gems/1.8/gems/FunFX-0.0.3/lib/flex.rb:27:in > >> `method_missing' > >> C:/jean/workspace/SinglePoint/login.rb:33:in > `test_enter_credentials' > >> > >> 1 tests, 0 assertions, 0 failures, 1 errors > > 3) OUR WAR STRUCTURE: > >>> Project.war > >>> META-INF > >>> WEB-INF > >>> classes > >>> > >>> flex > >>> messaging-config.xml > >>> proxy-config.xml > >>> remoting-config.xml > >>> services.config.xml > >>> lib > >>> web.xml > >>> css > >>> images > >>> history > >>> AC-OETags.js > >>> AutomationGenericEnv.xml > >>> FunFXAdapter.swc > >>> automation_agent_rb.swc > >>> automation_rb.swc > >>> datavisualization_rb.swc > >>> framework_rb.swc > >>> main.html > >>> main.swf > >>> playerProductInstall.swf > >>> > Thanks > --Duncan > > > > > ----- > Duncan McNaught > Symplified > Identity 2.0 Made Simple | Delivered On Demand > > ------ End of Forwarded Message > > _______________________________________________ > Funfx-user mailing list > Funfx-user at rubyforge.org > http://rubyforge.org/mailman/listinfo/funfx-user > -- Alex Frid ////// ( ' , ' ) |_|_| -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/funfx-user/attachments/20080313/6e24ad70/attachment.html From eiliv.aas at exie.com Thu Mar 13 16:44:34 2008 From: eiliv.aas at exie.com (Eiliv Aas) Date: Thu, 13 Mar 2008 17:44:34 -0300 Subject: [Funfx-user] Having problems, using ant to create FunFX application in war In-Reply-To: Message-ID: I suspect that perhaps the ant build is case sensitive...try FunFXAdapter instead of FunFxAdapter? Eiliv On 3/13/08 2:20 PM, "Duncan McNaught" wrote: > Dear FunFX users, > We having a problem trying to run FunFX against our application. > We?ve had some conversation with Peter Motzfeldt, but since he is not > building with ant I am asking the list for help. > If you are using ant to build flex and are using FunFX I?ll love to hear > that you have it working, so we know it is possible. > Here are the details. > > We?ve got the option set in the ant task to include FunFXAdapter.swc in the > compile and also have the file AutomationGenericEnv.xml in our war (at the > root directory ? see diagram at bottom). > >> 1) ANT TARGET: >> >> > services="${war}/WEB-INF/flex/services-config.xml" context-root="${context}" >> keep-generated-actionscript="true"> >> > dir="${FLEX_HOME}/frameworks/locale/en_US" append="true"> >> >> >> >> >> >> >> When running a test we?re getting a WIN32OLERuntimeError (below) that seems >> to >> indicate the FunFXAdapter hasn?t been included. >> >> 2) ERROR FROM TEST: >>> Loaded suite C:/jean/workspace/SinglePoint/login >>> Started >>> E >>> Finished in 8.094 seconds. >>> >>> 1) Error: >>> test_enter_credentials(LoginTest): >>> WIN32OLERuntimeError: unknown property or method `isSynchronized' >>> HRESULT error code:0x80020006 >>> Unknown name. >>> c:/ruby/lib/ruby/gems/1.8/gems/FunFX-0.0.3/lib/flex.rb:105:in >>> `method_missing' >>> c:/ruby/lib/ruby/gems/1.8/gems/FunFX-0.0.3/lib/flex.rb:105:in `is_sync' >>> c:/ruby/lib/ruby/gems/1.8/gems/FunFX-0.0.3/lib/flex.rb:27:in >>> `method_missing' >>> C:/jean/workspace/SinglePoint/login.rb:33:in `test_enter_credentials' >>> >>> 1 tests, 0 assertions, 0 failures, 1 errors >> 3) OUR WAR STRUCTURE: >>>> Project.war >>>> META-INF >>>> WEB-INF >>>> classes >>>> >>>> flex >>>> messaging-config.xml >>>> proxy-config.xml >>>> remoting-config.xml >>>> services.config.xml >>>> lib >>>> web.xml >>>> css >>>> images >>>> history >>>> AC-OETags.js >>>> AutomationGenericEnv.xml >>>> FunFXAdapter.swc >>>> automation_agent_rb.swc >>>> automation_rb.swc >>>> datavisualization_rb.swc >>>> framework_rb.swc >>>> main.html >>>> main.swf >>>> playerProductInstall.swf >>>> > Thanks > --Duncan > > > > > ----- > Duncan McNaught > Symplified > Identity 2.0 Made Simple | Delivered On Demand > > ------ End of Forwarded Message > > _______________________________________________ > Funfx-user mailing list > Funfx-user at rubyforge.org > http://rubyforge.org/mailman/listinfo/funfx-user From btorla at Endeca.com Fri Mar 14 17:24:24 2008 From: btorla at Endeca.com (Bill Torla) Date: Fri, 14 Mar 2008 17:24:24 -0400 Subject: [Funfx-user] Getting data from a tree Message-ID: <461F2530E704874A9CE27F0016DB66C0070A5FD2@hqexch01.ne.endeca.com> Hello FunFX folks, I'm having limited success extracting the data from a tree view. Using the "tabular_data" function seems to only get me the root item, as in: @ie.tree("myTree").tabular_data Even if I expand the root item to expose the entire tree I still get only the top item. What am I doing wrong? Thank you! -Bill -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/funfx-user/attachments/20080314/aa44c6cf/attachment.html From martin.walsh at rebelvox.com Fri Mar 14 18:14:40 2008 From: martin.walsh at rebelvox.com (Martin Walsh) Date: Fri, 14 Mar 2008 15:14:40 -0700 Subject: [Funfx-user] Flex trial version limits "replays" Message-ID: Hello, I have been using FunFX for a couple of months now. I am getting to the point where I am running more complex tests with more UI actions. I am using a trial version of Flex Builder 3.0 After several UI actions using FunFX, I get the popup - "License not present. With the trial version only limited replays are allowed". Is my only option to buy FlexBuilder? Do I need Pro. Or is Standard ok?. Thanks for any help. Martin Walsh From martin.walsh at rebelvox.com Mon Mar 17 15:32:44 2008 From: martin.walsh at rebelvox.com (Martin Walsh) Date: Mon, 17 Mar 2008 12:32:44 -0700 Subject: [Funfx-user] Accessing multiple IE/Flex sessions with FunFX from a single Ruby script? Message-ID: <534921F9-FBA0-4252-8DDD-98B17657EAF6@rebelvox.com> I am trying to control multiple UI sessions using FunFX from a single Ruby script. I need to emulate the experience of two users concurrently. However it appears that since FunFX is implemented as Singleton, i cannot access two browser sessions from a single script. Once I start the second session my script only accesses the second browser opened. I tried just removing the "include Singleton" from funfx.rb but that didn't work. I started getting warning messages about already initialized constants. The only option I have right now is to start two different Ruby scripts and somehow synchronize between them. I was hoping to synchronize the two IE sessions from the same Ruby script. Any ideas? I am sort of new to Ruby. Martin Walsh From neil.curzon at gmail.com Wed Mar 19 23:57:18 2008 From: neil.curzon at gmail.com (Neil Curzon) Date: Wed, 19 Mar 2008 23:57:18 -0400 Subject: [Funfx-user] Accessing multiple IE/Flex sessions with FunFX from a single Ruby script? In-Reply-To: <534921F9-FBA0-4252-8DDD-98B17657EAF6@rebelvox.com> References: <534921F9-FBA0-4252-8DDD-98B17657EAF6@rebelvox.com> Message-ID: <28ede29e0803192057k5605c4abp64414eb8443a6660@mail.gmail.com> Hi Martin, That sounds like a pretty reasonable test case. If you had any kind of interaction that you needed to see the result of one user's interactions affecting the interaction of another user (chat, etc). I've attached a patch that removes Singleton from Funfx and solves the issues you mention. Let me know if you have success with this. I've accomplished this by copying a reference to the root Funfx instance into each object created from it. This caused some weirdness in Safari, and I think I'm going to have to get on the Ruby OSA mailing list to figure out some of the issues I'm seeing (making a document doesn't return a usable instance of Document, and saved document instances change which document they represent), but the workarounds I've got seem to work. Neil On Mon, Mar 17, 2008 at 3:32 PM, Martin Walsh wrote: > > I am trying to control multiple UI sessions using FunFX from a single > Ruby script. I need to emulate the experience of two users > concurrently. > > However it appears that since FunFX is implemented as Singleton, i > cannot access two browser sessions from a single script. Once I start > the second session my script only accesses the second browser opened. > I tried just removing the "include Singleton" from funfx.rb but that > didn't work. I started getting warning messages about already > initialized constants. > > The only option I have right now is to start two different Ruby > scripts and somehow synchronize between them. I was hoping to > synchronize the two IE sessions from the same Ruby script. > > Any ideas? I am sort of new to Ruby. > > Martin Walsh > > > _______________________________________________ > Funfx-user mailing list > Funfx-user at rubyforge.org > http://rubyforge.org/mailman/listinfo/funfx-user > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/funfx-user/attachments/20080319/e96cbbd1/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: funfx-multisesson.patch Type: application/octet-stream Size: 3731 bytes Desc: not available Url : http://rubyforge.org/pipermail/funfx-user/attachments/20080319/e96cbbd1/attachment.obj From martin.walsh at rebelvox.com Thu Mar 20 12:24:08 2008 From: martin.walsh at rebelvox.com (Martin Walsh) Date: Thu, 20 Mar 2008 09:24:08 -0700 Subject: [Funfx-user] Accessing multiple IE/Flex sessions with FunFX from a single Ruby script? In-Reply-To: <28ede29e0803192057k5605c4abp64414eb8443a6660@mail.gmail.com> References: <534921F9-FBA0-4252-8DDD-98B17657EAF6@rebelvox.com> <28ede29e0803192057k5605c4abp64414eb8443a6660@mail.gmail.com> Message-ID: <5B500E93-0483-4C00-8E55-77D504408386@rebelvox.com> Thanks Neil, I really appreciate your time helping me. The email I received did not include the attached patch that you mentioned. Could you resend? I will give it a try and let you know how it goes. I have also considered another approach to the issue. Background: I have written an Ruby class which implements methods which correspond to the various user controls our UI has. It is used by my test case scripts and in turn uses FunFx to control an IE/Flex session. I have considered making the class into a Ruby distributed object. I would instantiate a distributed object for each user - each waiting on a different port. My test case script would then use the distributed objects. This may get around the current restriction caused by the FunFX class if each distributed class is a different "process". This approach also may be more scalable allowing me to simulate many users across multiple hosts. I haven't tried this yet so I am still interested in trying your solution. Regards, Martin Walsh On Mar 19, 2008, at 8:57 PM, Neil Curzon wrote: > --_005_28ede29e0803192057k5605c4abp64414eb8443a6660mailgmailco_ > Content-Type: multipart/alternative; > > boundary > ="_000_28ede29e0803192057k5605c4abp64414eb8443a6660mailgmailco_" > > --_000_28ede29e0803192057k5605c4abp64414eb8443a6660mailgmailco_ > Content-Type: text/plain; charset="iso-8859-1" > Content-Transfer-Encoding: quoted-printable > > Hi Martin, > > That sounds like a pretty reasonable test case. If you had any kind > of int= > eraction that you needed to see the result of one user's > interactions affec= > ting the interaction of another user (chat, etc). > > I've attached a patch that removes Singleton from Funfx and solves > the issu= > es you mention. Let me know if you have success with this. I've > accomplis= > hed this by copying a reference to the root Funfx instance into each > object= > created from it. > > This caused some weirdness in Safari, and I think I'm going to have > to get = > on the Ruby OSA mailing list to figure out some of the issues I'm > seeing (m= > aking a document doesn't return a usable instance of Document, and > saved do= > cument instances change which document they represent), but the > workarounds= > I've got seem to work. > > Neil > > On Mon, Mar 17, 2008 at 3:32 PM, Martin Walsh ilto:martin.walsh at rebelvox.com>> wrote: > > I am trying to control multiple UI sessions using FunFX from a single > Ruby script. I need to emulate the experience of two users > concurrently. > > However it appears that since FunFX is implemented as Singleton, i > cannot access two browser sessions from a single script. Once I start > the second session my script only accesses the second browser opened. > I tried just removing the "include Singleton" from funfx.rb but that > didn't work. I started getting warning messages about already > initialized constants. > > The only option I have right now is to start two different Ruby > scripts and somehow synchronize between them. I was hoping to > synchronize the two IE sessions from the same Ruby script. > > Any ideas? I am sort of new to Ruby. > > Martin Walsh > > > _______________________________________________ > Funfx-user mailing list > Funfx-user at rubyforge.org > http://rubyforge.org/mailman/listinfo/funfx-user > > > --_000_28ede29e0803192057k5605c4abp64414eb8443a6660mailgmailco_ > Content-Type: text/html; charset="iso-8859-1" > Content-Transfer-Encoding: quoted-printable > > Hi Martin,

That sounds like a pretty reasonable test > case.  If = > you had any kind of interaction that you needed to see the result of > one us= > er's interactions affecting the interaction of another user > (chat, etc)= > .
>
I've attached a patch that removes Singleton from Funfx and > solves = > the issues you mention.  Let me know if you have success with > this.&nb= > sp; I've accomplished this by copying a reference to the root > Funfx ins= > tance into each object created from it.
>
This caused some weirdness in Safari, and I think I'm going > to have= > to get on the Ruby OSA mailing list to figure out some of the issues > I'= > ;m seeing (making a document doesn't return a usable instance of > Docume= > nt, and saved document instances change which document they > represent), but= > the workarounds I've got seem to work.
>
Neil

On Mon, Mar 17, 2008 at > 3:32 PM,= > Martin Walsh < href=3D"mailto:martin.walsh at rebelvox.com">martin.walsh= > @rebelvox.com> wrote:
style=3D"= > border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt > 0.8ex; paddi= > ng-left: 1ex;"> >
> I am trying to control multiple UI sessions using FunFX from a > single
> Ruby script.  I need to emulate the experience of two users
> concurrently.
>
> However it appears that since FunFX is implemented as Singleton, i
> cannot access two browser sessions from a single script. Once I > start
> the second session my script only accesses the second browser > opened.
> I tried just removing the "include Singleton" From lattam at mac.com Fri Mar 21 15:53:01 2008 From: lattam at mac.com (Michael Latta) Date: Fri, 21 Mar 2008 12:53:01 -0700 Subject: [Funfx-user] Weird issue with FunFX Message-ID: I am moving a working project from one laptop to another. On the old laptop I was using an environment built form sources for Ruby and gems. For the new machine I am trying to use the built-in ruby so I can use DTrace. They have slightly different versions of several gems and a different patch level for ruby. On the new machine I get the following error: /Library/Ruby/Gems/1.8/gems/FunFX-0.0.3/lib/xml_parser.rb:109:in `add_event': You have a nil object when you didn't expect it! (NoMethodError) You might have expected an instance of ActiveRecord::Base. The error occurred while evaluating nil.attributes from /Library/Ruby/ Gems/1.8/gems/FunFX-0.0.3/lib/xml_parser.rb:39:in `parse_file' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ ruby/1.8/rexml/element.rb:890:in `each' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ ruby/1.8/rexml/xpath.rb:53:in `each' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ ruby/1.8/rexml/element.rb:890:in `each' from /Library/Ruby/Gems/1.8/gems/FunFX-0.0.3/lib/xml_parser.rb:38:in `parse_file' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ ruby/1.8/rexml/element.rb:890:in `each' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ ruby/1.8/rexml/xpath.rb:53:in `each' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ ruby/1.8/rexml/element.rb:890:in `each' ... 12 levels... from /Users/lattam/projects/espi/rep/espiapps/cam_on_rails/trunk/cam/ vendor/plugins/rspec_on_rails/lib/spec/rails/../../../../rspec/lib/ spec/story/runner/story_runner.rb:39:in `each' from /Users/lattam/projects/espi/rep/espiapps/cam_on_rails/trunk/cam/ vendor/plugins/rspec_on_rails/lib/spec/rails/../../../../rspec/lib/ spec/story/runner/story_runner.rb:39:in `run_stories' from /Users/lattam/projects/espi/rep/espiapps/cam_on_rails/trunk/cam/ vendor/plugins/rspec_on_rails/lib/spec/rails/../../../../rspec/lib/ spec/story/runner.rb:44:in `register_exit_hook' from stories/security/first_login.rb:5 But not on the original machine. I added a debug line to show the event object which the code expects to be an array (probably from a hash), and it shows just an XML element being passed into add_event. Error in parsing event ... Any pointers welcome. Michael From lattam at mac.com Fri Mar 21 16:02:26 2008 From: lattam at mac.com (Michael Latta) Date: Fri, 21 Mar 2008 13:02:26 -0700 Subject: [Funfx-user] Weird issue with FunFX Message-ID: <44305127-9EF4-4885-95A6-2FB628264750@mac.com> I am moving a working project from one laptop to another. On the old laptop I was using an environment built form sources for Ruby and gems. For the new machine I am trying to use the built-in ruby so I can use DTrace. They have slightly different versions of several gems and a different patch level for ruby. On the new machine I get the following error: /Library/Ruby/Gems/1.8/gems/FunFX-0.0.3/lib/xml_parser.rb:109:in `add_event': You have a nil object when you didn't expect it! (NoMethodError) You might have expected an instance of ActiveRecord::Base. The error occurred while evaluating nil.attributes from /Library/Ruby/ Gems/1.8/gems/FunFX-0.0.3/lib/xml_parser.rb:39:in `parse_file' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ ruby/1.8/rexml/element.rb:890:in `each' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ ruby/1.8/rexml/xpath.rb:53:in `each' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ ruby/1.8/rexml/element.rb:890:in `each' from /Library/Ruby/Gems/1.8/gems/FunFX-0.0.3/lib/xml_parser.rb:38:in `parse_file' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ ruby/1.8/rexml/element.rb:890:in `each' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ ruby/1.8/rexml/xpath.rb:53:in `each' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ ruby/1.8/rexml/element.rb:890:in `each' ... 12 levels... from /Users/lattam/projects/espi/rep/espiapps/cam_on_rails/trunk/cam/ vendor/plugins/rspec_on_rails/lib/spec/rails/../../../../rspec/lib/ spec/story/runner/story_runner.rb:39:in `each' from /Users/lattam/projects/espi/rep/espiapps/cam_on_rails/trunk/cam/ vendor/plugins/rspec_on_rails/lib/spec/rails/../../../../rspec/lib/ spec/story/runner/story_runner.rb:39:in `run_stories' from /Users/lattam/projects/espi/rep/espiapps/cam_on_rails/trunk/cam/ vendor/plugins/rspec_on_rails/lib/spec/rails/../../../../rspec/lib/ spec/story/runner.rb:44:in `register_exit_hook' from stories/security/first_login.rb:5 But not on the original machine. I added a debug line to show the event object which the code expects to be an array (probably from a hash), and it shows just an XML element being passed into add_event. From lattam at mac.com Sat Mar 22 15:06:12 2008 From: lattam at mac.com (Michael Latta) Date: Sat, 22 Mar 2008 12:06:12 -0700 Subject: [Funfx-user] Weird issue with FunFX In-Reply-To: <44305127-9EF4-4885-95A6-2FB628264750@mac.com> References: <44305127-9EF4-4885-95A6-2FB628264750@mac.com> Message-ID: The following change resolves this so FunFX can run in 1.8.6 p111. The event[1] in 0.0.3 is replaced with event.elements[1]. Michael # This method adds a method to a class that is corresponding to the FLex event of the Flex component def self.add_event(class_name,event) puts "Parsing event #{event.inspect}" event_class = event.elements[1].attributes["Class"] event_type = event.elements[1].attributes["Type"] On Mar 21, 2008, at 1:02 PM, Michael Latta wrote: > I am moving a working project from one laptop to another. On the old > laptop I was using an environment built form sources for Ruby and > gems. For the new machine I am trying to use the built-in ruby so I > can use DTrace. They have slightly different versions of several gems > and a different patch level for ruby. On the new machine I get the > following error: > > /Library/Ruby/Gems/1.8/gems/FunFX-0.0.3/lib/xml_parser.rb:109:in > `add_event': You have a nil object when you didn't expect it! > (NoMethodError) > You might have expected an instance of ActiveRecord::Base. > The error occurred while evaluating nil.attributes from /Library/Ruby/ > Gems/1.8/gems/FunFX-0.0.3/lib/xml_parser.rb:39:in `parse_file' > from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > ruby/1.8/rexml/element.rb:890:in `each' > from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > ruby/1.8/rexml/xpath.rb:53:in `each' > from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > ruby/1.8/rexml/element.rb:890:in `each' > from /Library/Ruby/Gems/1.8/gems/FunFX-0.0.3/lib/xml_parser.rb:38:in > `parse_file' > from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > ruby/1.8/rexml/element.rb:890:in `each' > from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > ruby/1.8/rexml/xpath.rb:53:in `each' > from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > ruby/1.8/rexml/element.rb:890:in `each' > ... 12 levels... > from /Users/lattam/projects/espi/rep/espiapps/cam_on_rails/trunk/cam/ > vendor/plugins/rspec_on_rails/lib/spec/rails/../../../../rspec/lib/ > spec/story/runner/story_runner.rb:39:in `each' > from /Users/lattam/projects/espi/rep/espiapps/cam_on_rails/trunk/cam/ > vendor/plugins/rspec_on_rails/lib/spec/rails/../../../../rspec/lib/ > spec/story/runner/story_runner.rb:39:in `run_stories' > from /Users/lattam/projects/espi/rep/espiapps/cam_on_rails/trunk/cam/ > vendor/plugins/rspec_on_rails/lib/spec/rails/../../../../rspec/lib/ > spec/story/runner.rb:44:in `register_exit_hook' > from stories/security/first_login.rb:5 > > But not on the original machine. I added a debug line to show the > event object which the code expects to be an array (probably from a > hash), and it shows just an XML element being passed into add_event. > > > _______________________________________________ > Funfx-user mailing list > Funfx-user at rubyforge.org > http://rubyforge.org/mailman/listinfo/funfx-user