From kennycruden at gmail.com Fri Dec 21 08:02:47 2007 From: kennycruden at gmail.com (Kenny Cruden) Date: Fri, 21 Dec 2007 14:02:47 +0100 Subject: [Funfx-user] Query on loggin out Message-ID: Wondering if anyone could help me with the following please? I've logged in and clicked a few buttons in my Flex app using funfx but, when I've selected the logout button, I get the following :- 1) Error: test_login(Login): WIN32OLERuntimeError: unknown property or method `isSynchronized' HRESULT error code:0x80070005 Acceso denegado. c:/ruby/lib/ruby/gems/1.8/gems/FunFX-0.0.2/lib/flex.rb:105:in `method_missing' c:/ruby/lib/ruby/gems/1.8/gems/FunFX-0.0.2/lib/flex.rb:105:in `is_sync' c:/ruby/lib/ruby/gems/1.8/gems/FunFX-0.0.2/lib/xml_parser.rb:156:in `click' login.rb:44:in `test_login' I've stripped the test down so that it's just login/out and still get the same - how do I get funfx to realise that everything's done, the Flex app is synched and we're good to click the button and teardown the session? Thanks for your help, Kenny. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/funfx-user/attachments/20071221/6e75e8bd/attachment.html From Peter.Motzfeldt at BEKK.no Sun Dec 23 04:03:55 2007 From: Peter.Motzfeldt at BEKK.no (Peter.Motzfeldt at BEKK.no) Date: Sun, 23 Dec 2007 10:03:55 +0100 Subject: [Funfx-user] Query on loggin out In-Reply-To: References: Message-ID: An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/funfx-user/attachments/20071223/5062271a/attachment.html From kennycruden at gmail.com Wed Dec 26 16:50:03 2007 From: kennycruden at gmail.com (Kenny Cruden) Date: Wed, 26 Dec 2007 22:50:03 +0100 Subject: [Funfx-user] Query on loggin out In-Reply-To: References: Message-ID: Hi Peter, thanks for getting back to me. Sorry for the delay in my response, the festive period has been longer than I had planned :-) Regarding the problem, I'm not sure what else I can provide for you re: the test script, I've reduced it to a simple login/logout. The set-up is basically as the demo is from the funfx homepage, nothing fancy added at all - we're actually just doing a proof of concept in the hope that funfx will meet our needs. So far it's going well, we can login, choose buttons simply from the ID and select various menu options. There's obviously a lot of drag and drop tasks involved, which I've still to have a go at, and I think the code may need to be altered re: unique IDs etc, but there's nothing that looks insurmountable. The issue may be in the way that the logout is set-up re: status, so I'll ask one of the developers to pass me on the relevant code, hopefully this could give you some decent information. Thanks again for your help. Cheers, Kenny. On 23/12/2007, Peter.Motzfeldt at bekk.no wrote: > > Hi Kenny > > This is strange. I have received this error sometimes when I have forgot > to add the AutomationGenericEnv.xml to the Flex application. But since you > are able to click other buttons, this cannot be the issue. > > So clicking other buttons is working it is just the logout button that > responds with this error messge? > > Is it possible to give me more details of the actual test script and the > Flex code that should be run? > > - Peter > > -----funfx-user-bounces at rubyforge.org wrote: ----- > > >To: "funfx-user at rubyforge.org" > > >From: "Kenny Cruden" > >Sent by: funfx-user-bounces at rubyforge.org > >Date: 21.12.2007 14:02 > >Subject: [Funfx-user] Query on loggin out > > > >Wondering if anyone could help me with the following please? > > > >I've logged in and clicked a few buttons in my Flex app using funfx > >but, when I've selected the logout button, I get the following :- > > > > 1) Error: > > > >test_login(Login): > >WIN32OLERuntimeError: unknown property or method `isSynchronized' > > HRESULT error code:0x80070005 > > Acceso denegado. > > c:/ruby/lib/ruby/gems/1.8/gems/FunFX-0.0.2/lib/flex.rb:105:in > >`method_missing' > > > > c:/ruby/lib/ruby/gems/1.8/gems/FunFX-0.0.2/lib/flex.rb:105:in > >`is_sync' > > > >c:/ruby/lib/ruby/gems/1.8/gems/FunFX-0.0.2/lib/xml_parser.rb:156:in > >`click' > > login.rb:44:in `test_login' > > > >I've stripped the test down so that it's just login/out and still get > >the same - how do I get funfx to realise that everything's done, the > >Flex app is synched and we're good to click the button and teardown > >the session? > > > > > >Thanks for your help, > >Kenny. > >_______________________________________________ > >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/20071226/43c30908/attachment.html From alex.frid at gmail.com Thu Dec 27 18:25:56 2007 From: alex.frid at gmail.com (Alex Frid) Date: Fri, 28 Dec 2007 01:25:56 +0200 Subject: [Funfx-user] popup window handling Message-ID: Hi guys, my question is - is there any way to identify popup window (in FunFx) and then drill down to its items ? for example if i have the following application: In order to click on the confirmation button in the popup window i'm doing the following: *@ie.button("OK").click * Is there any way to get the reference of the pop-up window instead of searching the desired button in the whole application. for example if i have more then one popup opened at the same time and they all have OK button etc... I'll appreciate any help, Thanks -- Alex Frid ////// ( ' , ' ) |_|_| -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/funfx-user/attachments/20071228/6246652c/attachment.html From neil.curzon at gmail.com Fri Dec 28 00:39:05 2007 From: neil.curzon at gmail.com (Neil Curzon) Date: Fri, 28 Dec 2007 00:39:05 -0500 Subject: [Funfx-user] popup window handling In-Reply-To: References: Message-ID: <28ede29e0712272139s4880018doff6b41b9701e44d2@mail.gmail.com> Hi Alex, If you give your alerts different titles (probably a good idea if you have more than one up at a time) you can do: @ie.alert("Alert Title1").button("OK").click @ie.alert("Alert Title2").button("OK").click So, yes, in general you can optionally choose a starting point to drill down from. You should also check out Peter's blog: http://peternic.blogspot.com/. He's the author of FunFX, and there's lots of useful information there. Neil On Dec 27, 2007 6:25 PM, Alex Frid wrote: > Hi guys, > my question is - is there any way to identify popup window (in FunFx) and > then drill down to its items ? > for example if i have the following application: > > xmlns:mx="http://www.adobe.com/2006/mxml" > layout="absolute" > name="PopupTest" > > > > > click="showAlertMsg()"/> > > > import mx.controls.Alert; > > private var buttons:uint = Alert.OK; > > public function showAlertMsg():void{ > *Alert.show ("Confirmation Alert" ,"Information", > this.buttons, null, null, null, Alert.OK);* > } > ]]> > > > > In order to click on the confirmation button in the popup window i'm doing > the following: > *@ie.button("OK").click > * > Is there any way to get the reference of the pop-up window instead of > searching the desired button in the whole application. > for example if i have more then one popup opened at the same time and they > all have OK button etc... > > I'll appreciate any help, > Thanks > > -- > 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/20071228/96af3ecb/attachment-0001.html From kennycruden at gmail.com Fri Dec 28 03:28:29 2007 From: kennycruden at gmail.com (Kenny Cruden) Date: Fri, 28 Dec 2007 09:28:29 +0100 Subject: [Funfx-user] Query on loggin out In-Reply-To: References: Message-ID: Hi Peter, further to this, the developer concerned is on holiday until next week so I can't access the code until then. One thing is that I remember the automated logout used to work i.e. we initially had a test simply logging in and out, then we added some menu-select operations. Could this have left some content open somehow? Any ideas as to what to try to resolve this? Thanks, Kenny. On 26/12/2007, Kenny Cruden wrote: > > Hi Peter, thanks for getting back to me. Sorry for the delay in my > response, the festive period has been longer than I had planned :-) > > Regarding the problem, I'm not sure what else I can provide for you re: > the test script, I've reduced it to a simple login/logout. The set-up is > basically as the demo is from the funfx homepage, nothing fancy added at all > - we're actually just doing a proof of concept in the hope that funfx will > meet our needs. > > So far it's going well, we can login, choose buttons simply from the ID > and select various menu options. There's obviously a lot of drag and drop > tasks involved, which I've still to have a go at, and I think the code may > need to be altered re: unique IDs etc, but there's nothing that looks > insurmountable. > > The issue may be in the way that the logout is set-up re: status, so I'll > ask one of the developers to pass me on the relevant code, hopefully this > could give you some decent information. > > Thanks again for your help. > > Cheers, > Kenny. > > On 23/12/2007, Peter.Motzfeldt at bekk.no < Peter.Motzfeldt at bekk.no> wrote: > > > Hi Kenny > > > > This is strange. I have received this error sometimes when I have forgot > > to add the AutomationGenericEnv.xml to the Flex application. But since > > you are able to click other buttons, this cannot be the issue. > > > > So clicking other buttons is working it is just the logout button that > > responds with this error messge? > > > > Is it possible to give me more details of the actual test script and the > > Flex code that should be run? > > > > - Peter > > > > ----- funfx-user-bounces at rubyforge.org wrote: ----- > > > > >To: "funfx-user at rubyforge.org" > > > > >From: "Kenny Cruden" > > >Sent by: funfx-user-bounces at rubyforge.org > > > > >Date: 21.12.2007 14:02 > > >Subject: [Funfx-user] Query on loggin out > > > > > >Wondering if anyone could help me with the following please? > > > > > >I've logged in and clicked a few buttons in my Flex app using funfx > > >but, when I've selected the logout button, I get the following :- > > > > > > 1) Error: > > > > > >test_login(Login): > > >WIN32OLERuntimeError: unknown property or method `isSynchronized' > > > HRESULT error code:0x80070005 > > > Acceso denegado. > > > c:/ruby/lib/ruby/gems/1.8/gems/FunFX- 0.0.2/lib/flex.rb:105:in > > >`method_missing' > > > > > > c:/ruby/lib/ruby/gems/1.8/gems/FunFX-0.0.2/lib/flex.rb:105:in > > >`is_sync' > > > > > >c:/ruby/lib/ruby/gems/1.8/gems/FunFX-0.0.2/lib/xml_parser.rb:156:in > > >`click' > > > login.rb:44:in `test_login' > > > > > >I've stripped the test down so that it's just login/out and still get > > >the same - how do I get funfx to realise that everything's done, the > > >Flex app is synched and we're good to click the button and teardown > > >the session? > > > > > > > > >Thanks for your help, > > >Kenny. > > >_______________________________________________ > > >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/20071228/7bb7b19c/attachment.html From kennycruden at gmail.com Fri Dec 28 10:32:03 2007 From: kennycruden at gmail.com (Kenny Cruden) Date: Fri, 28 Dec 2007 16:32:03 +0100 Subject: [Funfx-user] Query on loggin out In-Reply-To: References: Message-ID: Sorry for the continual bombardment of queries, but I?ve performed some tests on this issue and believe there?s another issue with the teardown not functioning correctly. What I?ve noticed is that, if the test fails for some reason, say after it?s logged in, the next time I run the test it launches with the application already logged in i.e. at the failure point for the previous test run. I?ve included the test I?ve written below to show that I have the teardown set to function. require "test/unit" require "funfx" class Login < Test::Unit::TestCase def setup @ie = Funfx.instance @ie.start(true) @ie.speed = 1 @ie.goto("http://application-location/index.html ", "index") end def teardown @ie.unload end def test_login @usuario = "kenny" @password = "kenny" @ie.text_area("userName").input(:text => @usuario) @ie.text_area("password").input(:text => @password) @ie.button("Login").click #Logout @ie.button("logOut_btn").click end end On 23/12/2007, Peter.Motzfeldt at bekk.no wrote: > > Hi Kenny > > This is strange. I have received this error sometimes when I have forgot > to add the AutomationGenericEnv.xml to the Flex application. But since you > are able to click other buttons, this cannot be the issue. > > So clicking other buttons is working it is just the logout button that > responds with this error messge? > > Is it possible to give me more details of the actual test script and the > Flex code that should be run? > > - Peter > > -----funfx-user-bounces at rubyforge.org wrote: ----- > > >To: "funfx-user at rubyforge.org" > >From: "Kenny Cruden" > >Sent by: funfx-user-bounces at rubyforge.org > >Date: 21.12.2007 14:02 > >Subject: [Funfx-user] Query on loggin out > > > >Wondering if anyone could help me with the following please? > > > >I've logged in and clicked a few buttons in my Flex app using funfx > >but, when I've selected the logout button, I get the following :- > > > > 1) Error: > > > >test_login(Login): > >WIN32OLERuntimeError: unknown property or method `isSynchronized' > > HRESULT error code:0x80070005 > > Acceso denegado. > > c:/ruby/lib/ruby/gems/1.8/gems/FunFX-0.0.2/lib/flex.rb:105:in > >`method_missing' > > > > c:/ruby/lib/ruby/gems/1.8/gems/FunFX-0.0.2/lib/flex.rb:105:in > >`is_sync' > > > >c:/ruby/lib/ruby/gems/1.8/gems/FunFX-0.0.2/lib/xml_parser.rb:156:in > >`click' > > login.rb:44:in `test_login' > > > >I've stripped the test down so that it's just login/out and still get > >the same - how do I get funfx to realise that everything's done, the > >Flex app is synched and we're good to click the button and teardown > >the session? > > > > > >Thanks for your help, > >Kenny. > >_______________________________________________ > >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/20071228/f2c854d6/attachment.html From Peter.Motzfeldt at BEKK.no Fri Dec 28 11:13:32 2007 From: Peter.Motzfeldt at BEKK.no (Peter.Motzfeldt at BEKK.no) Date: Fri, 28 Dec 2007 17:13:32 +0100 Subject: [Funfx-user] Query on loggin out In-Reply-To: References: , Message-ID: An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/funfx-user/attachments/20071228/261de2ce/attachment-0001.html From kennycruden at gmail.com Fri Dec 28 11:47:49 2007 From: kennycruden at gmail.com (Kenny Cruden) Date: Fri, 28 Dec 2007 17:47:49 +0100 Subject: [Funfx-user] Query on loggin out In-Reply-To: References: Message-ID: Hi Peter, I?m able to click all the other buttons but have just noticed as you suggested, the logout button doesn?t even look as if it?s pressed. I realise the logout obviously changes the view but I didn?t see it change at all before the session finished. Some more info that may be of use - I?ve hashed out the teardown so that I can see what?s left of the session. With that gone and the logout operation still present, the session does actually logout and the login screen is returned i.e. the login happens, various menus are selected, the logout occurs and a fresh login screen is displayed to finish, waiting for login details. The error occurs in Eclipse just before the logout operation is executed, so there?s something it?s not happy with at that point. As for the teardown scenario I detailed earlier, I?ll investigate that further later on, it appears to be unrelated to this issue. And this issue is frustrating me even more than that one :-) On 28/12/2007, Peter.Motzfeldt at bekk.no wrote: > > Hi Kenny > > You are able to click on the other buttons in the application right? Do > you see if the log out button is pushed by FunFX (that it is highlighted)? > > What I?ve noticed is that, if the test fails for some reason, say after > it?s logged in, the next time I run the test it launches with the > application already logged in i.e. at the failure point for the previous > test run. > > > I am not sure I undersatnd what you mean. Do you mean that when you run > the test again after it has failed it is still logged in? > > I am sorry that I do not see what is wrong. Please elaborate more. > > I hope we can get this working! > > - Peter > > > > -----funfx-user-bounces at rubyforge.org wrote: ----- > > >To: "funfx-user at rubyforge.org" > > >From: "Kenny Cruden" > >Sent by: funfx-user-bounces at rubyforge.org > >Date: 28.12.2007 16:32 > >Subject: Re: [Funfx-user] Query on loggin out > > > >Sorry for the continual bombardment of queries, but I?ve performed > >some tests on this issue and believe there?s another issue with the > >teardown not functioning correctly. > > > >What I?ve noticed is that, if the test fails for some reason, say > >after it?s logged in, the next time I run the test it launches with > >the application already logged in > >i.e. at the failure point for the previous test run. > > > >I?ve included the test I?ve written below to show that I have the > >teardown set to function. > > > >require "test/unit" > >require "funfx" > > > > > >class Login < Test::Unit::TestCase > > > > def setup > > @ie = Funfx.instance > > @ie.start(true) > > @ie.speed = 1 > > @ie.goto(" > >http://application-location/index.html ", "index") > > end > > > > def teardown > > @ie.unload > > end > > > > def test_login > > @usuario = "kenny" > > @password = "kenny" > > > > > > @ie.text_area("userName").input(:text => @usuario) > > @ie.text_area("password").input(:text => @password) > > @ie.button("Login").click > > > > #Logout > > @ > >ie.button("logOut_btn").click > > > > end > >end > > > > > >On 23/12/2007, Peter.Motzfeldt at bekk.no < > >Peter.Motzfeldt at bekk.no> wrote: > > > >Hi Kenny > > > >This is strange. I have received this error sometimes when I have > >forgot to add the AutomationGenericEnv.xml to the Flex application. > >But since you are able to click other buttons, this cannot be the > >issue. > > > > > >So clicking other buttons is working it is just the logout button > >that responds with this error messge? > > > >Is it possible to give me more details of the actual test script and > >the Flex code that should be run? > > > > > >- Peter > > > > > >-----funfx-user-bounces at rubyforge.org wrote: ----- > > > >>To: > >"funfx-user at rubyforge.org" > > > >>From: "Kenny Cruden" > > > >>Sent by: funfx-user-bounces at rubyforge.org > >>Date: 21.12.2007 14:02 > > > >>Subject: [Funfx-user] Query on loggin out > > > >> > >>Wondering if anyone could help me with the following please? > >> > >>I've logged in and clicked a few buttons in my Flex app using funfx > >>but, when I've selected the logout button, I get the following :- > > > >> > >> 1) Error: > >> > >>test_login(Login): > >>WIN32OLERuntimeError: unknown property or method `isSynchronized' > >> HRESULT error code:0x80070005 > >> Acceso denegado. > >> c:/ruby/lib/ruby/gems/1.8/gems/FunFX- > >0.0.2/lib/flex.rb:105:in > >>`method_missing' > >> > >> c:/ruby/lib/ruby/gems/1.8/gems/FunFX-0.0.2/lib/flex.rb:105:in > >>`is_sync' > >> > >>c:/ruby/lib/ruby/gems/1.8/gems/FunFX-0.0.2/lib/xml_parser.rb:156:in > > > >>`click' > >> login.rb:44:in `test_login' > >> > >>I've stripped the test down so that it's just login/out and still > >get > >>the same - how do I get funfx to realise that everything's done, the > > > >>Flex app is synched and we're good to click the button and teardown > >>the session? > >> > >> > >>Thanks for your help, > >>Kenny. > >>_______________________________________________ > > > >>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 > > > > > > > > > >_______________________________________________ > >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/20071228/827085d5/attachment.html