From alex.frid at gmail.com Thu Jan 10 04:18:38 2008 From: alex.frid at gmail.com (Alex Frid) Date: Thu, 10 Jan 2008 11:18:38 +0200 Subject: [Funfx-developer] Problem with Automation of Tree custom component Message-ID: hi guys, i am using funfx for a while already till now had no problems with custom components also, but now i bumped on a tricky one. I have to test a tree that has checkbox abuility, the structure is like that: i have my custom checkbox (a three state checkbox) that extends mx:Button class. a CheckBox tree class that extends mx:Tree and have custom event TreeCheckBoxEvent that extands from mx:Event and in addition an ItemRenderer: CheckboxTreeItemRenderer that extends mx:UIComponent and adds two things to the item renderer, and additional icon near the text and the CheckBox (the ThreeStateCheckBox). so the creation of the component looks like that: so as you can see the tree is build dynamically from the data provider that changing with the program flow. i face couple of problems with this component. when i tried to select some item and typed the following: @ie.tree("editSvcTree").select(:item_renderer => "leaf text") it throws an error, i think it because the item renderer now holds icons and buttons except the text. so i typed the following (for a tree with 2 items) puts @ie.tree("editSvcTree").children and got that: "AutomationChildren 2 of CheckboxTree id addBussSvcTree autName addBussSvcTree: |CheckboxTreeItemRenderer, automationName: null, id: null, name: CheckboxTreeItemRenderer1684|CheckboxTreeItemRenderer, automationName: null, id: null, name: CheckboxTreeItemRenderer1651" so i saw that the: "automationName: null, id: null, name: CheckboxTreeItemRenderer1684" and i cant write the automation name or id for the children cause then creating dynamically and the name is not a constant. my question is: is there any way to modify an AutomationGenericEnv.xml so that i will be able to click on the checkbox item in the tree. i saw that if i parse the @ie.tree("editSvcTree").children to extract the name and write the following: @ie.tree("editSvcTree").select(:related_object => "name") i able to select the tree child but not to click (i.e. not to use the checkbox) Any help and device will be appreciated ! thank you. -- Alex Frid ////// ( ' , ' ) |_|_| -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/funfx-developer/attachments/20080110/d9628690/attachment.html From neil.curzon at gmail.com Wed Jan 16 23:23:27 2008 From: neil.curzon at gmail.com (Neil Curzon) Date: Wed, 16 Jan 2008 23:23:27 -0500 Subject: [Funfx-developer] Failing test Message-ID: <28ede29e0801162023oe0cb43fif45a92b99fec61b2@mail.gmail.com> Hi Peter/all, I noticed that if you gem install -t, the tests fail because a require is wrong (should require tests/base_test). Also a method getChildren in flex.rb was calling a non-existent method checkComponents, and was probably meant to be replaced by the method children. I've attached a patch. Some other questions: Are there plans for tagging 0.0.1 and 0.0.2 in the repository? If so, maybe the version reported in Rakefile should be changed to report the next release version on trunk (0.0.3?). The pkg folder might be better off svn ignored. Are there any plans for expanding the automated testing? The sample tests refer to localhost/FlexObjectTest.html, but this doesn't seem to be checked in. Maybe it would be a good idea to have a sample flex app, to test FunFX against. Related, maybe a Rake script to build the FunFX adapter might be helpful. I'd be interested in working on these if it's agreed that it would help, and/or anybody has input. Thanks Neil -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/funfx-developer/attachments/20080116/09ac53eb/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: failing-test.patch Type: application/octet-stream Size: 1079 bytes Desc: not available Url : http://rubyforge.org/pipermail/funfx-developer/attachments/20080116/09ac53eb/attachment.obj From Peter.Motzfeldt at BEKK.no Thu Jan 17 02:31:59 2008 From: Peter.Motzfeldt at BEKK.no (Peter.Motzfeldt at BEKK.no) Date: Thu, 17 Jan 2008 08:31:59 +0100 Subject: [Funfx-developer] Failing test Message-ID: An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/funfx-developer/attachments/20080117/26e2bb5e/attachment.html From neil.curzon at gmail.com Thu Jan 17 23:39:19 2008 From: neil.curzon at gmail.com (Neil Curzon) Date: Thu, 17 Jan 2008 23:39:19 -0500 Subject: [Funfx-developer] Failing test In-Reply-To: References: Message-ID: <28ede29e0801172039i7d283e09j4a585468c9be87a7@mail.gmail.com> Hi Peter, Sure, I'd like to participate in development. I'm not sure what the best capacity would be though. I don't think you have to be an admin to commit stuff. I'm not sure what exactly the rules for the different roles are. I think it's a good idea to have a set of sample apps checked in somewhere, even under FunFX would be fine. Selenium is a good example of this, they have pretty extensive sample apps for automatic testing. For Flex testing, it might be a good idea to build something like this: http://examples.adobe.com/flex3/componentexplorer/explorer.html . I thought last time I looked at it, the source was available, but it might be better that it's not since Adobe's licensing would probably be unfriendly there. I'd be interested in contributing to this, too. Neil On Jan 17, 2008 2:31 AM, wrote: > Hi Neil > > I have not seen these errors, thanks Neil. > > About the getChildren method, I think it was intended one time to help > with repeaters, but should not have surrvived :-) > > About the tagging of the different versions in the repository I am open > for any suggestions. I am not very experienced with svn and how an open > source project should be administrated in repository. > > I can give you admin rights if you would like, and then you could set up > the project as best fit. This goes out to everybody, if you feel you can > contribute in any way (small or large :-) > > FlexObjectTest.html is a Flex application I created while creating the > first version of FunFX, and it holds a lot of the different controllers. I > have been meening to put this application out on the web so everybody can > run and build test scripts against it as you mentioned Neil, but time has > not been on my side on this task, but I will try to get it out this weekend. > > > Maybe we could try to make this application and its tests a kind of open > source project also, that people can add some flex components with a test > showing how to test the component, or just add a flex component that they > does not know how to test and other people can contribute by trying to write > a test for the component. > I don't think we at this moment can make this adding of components > automatic, but I can take responsebility to update the test application. > What do you think guys? > > And a Rake script to build the adapter would be great Neil! > > -Peter > > > > > > ----- funfx-developer-bounces at rubyforge.org wrote: ----- > > To: "funfx-developer at rubyforge.org" > > From: "Neil Curzon" > Sent by: funfx-developer-bounces at rubyforge.org > Date: 17.01.2008 5:23 > Subject: [Funfx-developer] Failing test > > > Hi Peter/all, > > I noticed that if you gem install -t, the tests fail because a require is > wrong (should require tests/base_test). Also a method getChildren in > flex.rb was calling a non-existent method checkComponents, and was > probably meant to be replaced by the method children. I've attached a > patch. > > Some other questions: Are there plans for tagging 0.0.1 and 0.0.2 in the > repository? If so, maybe the version reported in Rakefile should be changed > to report the next release version on trunk (0.0.3?). The pkg folder > might be better off svn ignored. > > Are there any plans for expanding the automated testing? The sample tests > refer to localhost/FlexObjectTest.html, but this doesn't seem to be checked > in. Maybe it would be a good idea to have a sample flex app, to test FunFX > against. Related, maybe a Rake script to build the FunFX adapter might be > helpful. I'd be interested in working on these if it's agreed that it would > help, and/or anybody has input. > > Thanks > > Neil _______________________________________________ > Funfx-developer mailing list > Funfx-developer at rubyforge.org > http://rubyforge.org/mailman/listinfo/funfx-developer > > > > _______________________________________________ > Funfx-developer mailing list > Funfx-developer at rubyforge.org > http://rubyforge.org/mailman/listinfo/funfx-developer > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/funfx-developer/attachments/20080117/6b64e49c/attachment-0001.html From neil.curzon at gmail.com Thu Jan 24 01:00:26 2008 From: neil.curzon at gmail.com (Neil Curzon) Date: Thu, 24 Jan 2008 01:00:26 -0500 Subject: [Funfx-developer] Safari support Message-ID: <28ede29e0801232200s7834faa6s661a11be42e81b99@mail.gmail.com> Hi all, I've finished implementing Safari support using Ruby OSA (sudo gem install rubyosa). I've made the default browser IE on windows and Safari on OS X, so existing tests shouldn't have to change at all. I don't have any complicated FunFX tests at my disposal now, but I used the samples from Peter's blog (test_product_#.rb), and they worked for me. One difficulty was that to get a reference to Safari, if it's not already active, it causes a window to pop up before you can extract any information from the app, so I don't see any way to get around that. So if Safari isn't already active, your first test will start 2 windows, and close only one, but Safari itself will be active for subsequent tests, so it's only one extra browser total. The patch is attached. Feedback would be appreciated. Thanks Neil -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/funfx-developer/attachments/20080124/0d645a4e/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: funfx-safari.patch Type: application/octet-stream Size: 9527 bytes Desc: not available Url : http://rubyforge.org/pipermail/funfx-developer/attachments/20080124/0d645a4e/attachment.obj