RE: Cucumber/FunFX spørsmål

7 views
Skip to first unread message

Aslak Hellesøy

unread,
Nov 26, 2008, 7:58:25 PM11/26/08
to Espen Dalløkken, Peter Motzfeldt, fu...@googlegroups.com, Christian Mosveen
Hi,

I'm taking the liberty to move this conversation to the list. I'll do a quick translation:

------8<------
Subject: Cucumber/FunFX questions

Hi guys,
The hackfest last night was great. Cucumber + FunFX seems like a great combo.

I'm trying to run with FF, but no errors are shown. Nothing happens in the browser. I have installed JSSh 0.9. Still no action in the browser ant the funny part is that Cucumber says everything is a-ok, despite the fact that I have deliberately added erros in my Cucumber code.

If I run in IE, I get the following error. Have you seen it? Am I missing something?
(stacktrace)
------8<------

Yep it was fun. We identified a number of pain points that we need to fix. It's still too hard to get started with FunFX. We'll fix it!

Regarding FF+Cucumber - are you getting any output at all? What command are you running and what plain text steps and ruby step definitions do you have? Please send some code/info so we can try to reproduce it.

Regarding IE and "unknown property or method `fireFunFXEvent'"
This sounds like your Flex wasn't built with the FunFX.swc and the 3 automation swc files from Adobe. If you had, the fireFunFXEvent function (which is a js function exposed by FunFX' Proxy.as class) would have been available to the browser, watir and funfx on the ruby side. Please verify that.

There is a known bug with IE, so even if you build your Flex right it won't work. But you'll find another error. Stick to FF for the time being (or Safari).

Please report bugs here: http://bekkopen.lighthouseapp.com/projects/20367-funfx/

Cheers,
Aslak
________________________________________
From: Espen Dalløkken [leftie...@gmail.com]
Sent: Wednesday, November 26, 2008 8:44 PM
To: Aslak Hellesøy; Peter Motzfeldt
Cc: Christian Mosveen
Subject: Cucumber/FunFX spørsmål

Hallå boys,
det var en ekstremt inspirerende sesjon igår og FunFX kombinert med Cucumber virker som en utrolig spennende kombinasjon som garanert vil bli godt mottatt.

Jeg har fått testene du aslak og christian laget igår...
Jeg forsøker å bruke Firefox så får jeg ingen feil...men jeg ser ikke at noe skjer i nettleseren. Jeg har installert Firefox plugin'en JSSh 0.9, så jeg skal ha det som trengs. Likevel skjer det ikke noe i nettleseren, men det pussige er at cucumber testene sier at alt er fint. Tiltross for at jeg har lagt inn feil i testkoden.

Hvis jeg bytter til IE får jeg følgende feil, har dere sett denne før? det virker som det er noe jeg mangler...

Scenario: Log in # login.feature:4
Given I am on the login page # step_definitions/login_steps.rb:1
And I fill in username bob # step_definitions/login_steps.rb:4
unknown property or method `fireFunFXEvent'
HRESULT error code:0x80020006
Unknown name. (WIN32OLERuntimeError)
c:/dev/ruby/lib/ruby/gems/1.8/gems/funfx-0.2.0/lib/funfx/browser/watir.rb:24:in `method_missing'
c:/dev/ruby/lib/ruby/gems/1.8/gems/funfx-0.2.0/lib/funfx/browser/watir.rb:24:in `fire_event'
c:/dev/ruby/lib/ruby/gems/1.8/gems/funfx-0.2.0/lib/funfx/flex/element.rb:27:in `fire_event'
c:/dev/ruby/lib/ruby/gems/1.8/gems/funfx-0.2.0/lib/funfx/flex/element.rb:55:in `flex_invoke'
c:/dev/ruby/lib/ruby/gems/1.8/gems/funfx-0.2.0/lib/funfx/flex/element.rb:26:in `fire_event'
c:/dev/ruby/lib/ruby/gems/1.8/gems/funfx-0.2.0/lib/funfx/flex/elements.rb:836:in `input'
./step_definitions/login_steps.rb:6:in `And "I fill in username bob"'
login.feature:6:in `And I fill in username bob'
And I fill in password bob # step_definitions/login_steps.rb:9
When I click the Login button # step_definitions/login_steps.rb:14
Then I should see the front page # step_definitions/login_steps.rb:18

leif

unread,
Nov 27, 2008, 2:30:34 AM11/27/08
to FunFX
I had indeed made a mess of getting the SWC's compiled into the
applicaiton, but now that is all working.
Now I'm encountering something I suspect to be either lack of
knowledge on my part or something strange with Funfx. Regardless of
what ID I input for my username/password fields... the steps pass.
This doesn't seem right as the tests should fail. When I run the test
it seems as if it just stops when it runs the code looking for a
text_area which doesn't exist. Here Id' expect the steps to fail as
the "Given" condition is not met.

The code can be viewed here:
http://code.google.com/p/just-blaze-ds/source/browse/trunk/blaze-poc-flex/src/main/features/?r=54

Feature:
Feature: Login page
What should we write here?

Scenario: Log in
Given I am on the login page
And I fill in username bob
And I fill in password bob
When I click the Login button
Then I should see the front page

Step definition:
Given /^I am on the login page$/ do
end

Given /^I fill in username bob$/ do
username = @flex.text_input({:id => 'usernameInput'})
username.input("bob")
end

Given /^I fill in password bob$/ do
password = @flex.text_input({:id => 'passwordInputt'})
password.input("bob")
end

When /^I click the Login button$/ do

end

Then /^I should see the front page$/ do

end

On Nov 27, 1:58 am, Aslak Hellesøy <Aslak.Helle...@BEKK.no> wrote:
> Hi,
>
> I'm taking the liberty to move this conversation to the list. I'll do a quick translation:
>
> ------8<------
> Subject: Cucumber/FunFX questions
>
> Hi guys,
> The hackfest last night was great. Cucumber + FunFX seems like a great combo.
>
> I'm trying to run with FF, but no errors are shown. Nothing happens in the browser. I have installed JSSh 0.9. Still no action in the browser ant the funny part is that Cucumber says everything is a-ok, despite the fact that I have deliberately added erros in my Cucumber code.
>
> If I run in IE, I get the following error. Have you seen it? Am I missing something?
> (stacktrace)
> ------8<------
>
> Yep it was fun. We identified a number of pain points that we need to fix. It's still too hard to get started with FunFX. We'll fix it!
>
> Regarding FF+Cucumber - are you getting any output at all? What command are you running and what plain text steps and ruby step definitions do you have? Please send some code/info so we can try to reproduce it.
>
> Regarding IE and "unknown property or method `fireFunFXEvent'"
> This sounds like your Flex wasn't built with the FunFX.swc and the 3 automation swc files from Adobe. If you had, the fireFunFXEvent function (which is a js function exposed by FunFX' Proxy.as class) would have been available to the browser, watir and funfx on the ruby side. Please verify that.
>
> There is a known bug with IE, so even if you build your Flex right it won't work. But you'll find another error. Stick to FF for the time being (or Safari).
>
> Please report bugs here:http://bekkopen.lighthouseapp.com/projects/20367-funfx/
>
> Cheers,
> Aslak
> ________________________________________
> From: Espen Dalløkken [leftie.fri...@gmail.com]

Nebehr Gudahtt

unread,
Nov 27, 2008, 4:34:29 AM11/27/08
to FunFX
Sorry for cutting in, I have a question on this one: "This sounds like
your Flex wasn't built with the FunFX.swc and the 3 automation swc
files from Adobe."

What 3 automation swc files from Adobe? I thought there were two:
automation.swc and automation_agent.swc. Plus there is new FunFX.swc,
of course.

This may be an answer on the issue I'm having now. :)

On Nov 27, 2:58 am, Aslak Hellesøy <Aslak.Helle...@BEKK.no> wrote:
> Hi,
>
> I'm taking the liberty to move this conversation to the list. I'll do a quick translation:
>
> ------8<------
> Subject: Cucumber/FunFX questions
>
> Hi guys,
> The hackfest last night was great. Cucumber + FunFX seems like a great combo.
>
> I'm trying to run with FF, but no errors are shown. Nothing happens in the browser. I have installed JSSh 0.9. Still no action in the browser ant the funny part is that Cucumber says everything is a-ok, despite the fact that I have deliberately added erros in my Cucumber code.
>
> If I run in IE, I get the following error. Have you seen it? Am I missing something?
> (stacktrace)
> ------8<------
>
> Yep it was fun. We identified a number of pain points that we need to fix. It's still too hard to get started with FunFX. We'll fix it!
>
> Regarding FF+Cucumber - are you getting any output at all? What command are you running and what plain text steps and ruby step definitions do you have? Please send some code/info so we can try to reproduce it.
>
> Regarding IE and "unknown property or method `fireFunFXEvent'"
> This sounds like your Flex wasn't built with the FunFX.swc and the 3 automation swc files from Adobe. If you had, the fireFunFXEvent function (which is a js function exposed by FunFX' Proxy.as class) would have been available to the browser, watir and funfx on the ruby side. Please verify that.
>
> There is a known bug with IE, so even if you build your Flex right it won't work. But you'll find another error. Stick to FF for the time being (or Safari).
>
> Please report bugs here:http://bekkopen.lighthouseapp.com/projects/20367-funfx/
>
> Cheers,
> Aslak
> ________________________________________
> From: Espen Dalløkken [leftie.fri...@gmail.com]
> Sent: Wednesday, November 26, 2008 8:44 PM
> To: Aslak Hellesøy; Peter Motzfeldt
> Cc: Christian Mosveen
> Subject: Cucumber/FunFX spørsmål
>
> Hallå boys,
> det var en ekstremt inspirerende sesjon igår og FunFX kombinert med Cucumber virker som en utrolig spennende kombinasjon som garanert vil bli godt mottatt.
>
> Jeg har fått testene du aslak og christian laget igår...
> Jeg forsøker å bruke Firefox så får jeg ingen feil...men jeg ser ikke at noe skjer i nettleseren. Jeg har installert Firefox plugin'en JSSh 0.9, så jeg skal ha det som trengs. Likevel skjer det ikke noe i nettleseren, men det pussige er at cucumber testene sier at alt er fint. Tiltross for at jeg har lagt inn feil i testkoden.
>
> Hvis jeg bytter til IE får jeg følgende feil, har dere sett denne før? det virker som det er noe jeg mangler...
>
> Scenario: Log in                    # login.feature:4
>   Given I am on the login page      # step_definitions/login_steps.rb:1
>   And I fill in username bob        # step_definitions/login_steps.rb:4
>     unknown property or method `fireFunFXEvent'
>         HRESULT error code:0x80020006
>           Unknown name. (WIN32OLERuntimeError)
>     c:/dev/ruby/lib/ruby/gems/1.8/gems/funfx-0.2.0/lib/funfx/browser/watir.rb:2­4:in `method_missing'
>     c:/dev/ruby/lib/ruby/gems/1.8/gems/funfx-0.2.0/lib/funfx/browser/watir.rb:2­4:in `fire_event'
>     c:/dev/ruby/lib/ruby/gems/1.8/gems/funfx-0.2.0/lib/funfx/flex/element.rb:27­:in `fire_event'
>     c:/dev/ruby/lib/ruby/gems/1.8/gems/funfx-0.2.0/lib/funfx/flex/element.rb:55­:in `flex_invoke'
>     c:/dev/ruby/lib/ruby/gems/1.8/gems/funfx-0.2.0/lib/funfx/flex/element.rb:26­:in `fire_event'
>     c:/dev/ruby/lib/ruby/gems/1.8/gems/funfx-0.2.0/lib/funfx/flex/elements.rb:8­36:in `input'

aslak hellesoy

unread,
Nov 27, 2008, 7:44:14 AM11/27/08
to fu...@googlegroups.com
On Thu, Nov 27, 2008 at 10:34 AM, Nebehr Gudahtt <nebehr....@gmail.com> wrote:

Sorry for cutting in, I have a question on this one: "This sounds like
your Flex wasn't built with the FunFX.swc and the 3 automation swc
files from Adobe."

What 3 automation swc files from Adobe? I thought there were two:
automation.swc and automation_agent.swc. Plus there is new FunFX.swc,
of course.

There is automation_dmv.swc too.

See demo_app/build.sh for an example.

HTH,
Aslak

Reply all
Reply to author
Forward
0 new messages