Tuesday, April 15, 2008

FunFX 0.0.4 Released

Hi, have been a while now, sorry about that. But now thanks to Neil Curzon, Bill Torla and Mario Sanchez a new version is available. This version has added a patch that makes it possible to access different browsers with in the tests, to look at different sessions.

It is now also possible to use FunFX together with Watir. It was difficult before, due to FunFX's lack of ability to hook onto other browser windows.

It is also now possible to select a row in a datagrid by index instead of text. It still uses the item_renderer option, but if you give a integer into it that is within the grids row count it chooses row by index.

Let me know how things work.

16 comments:

Unknown said...

Hi, could you please send me your document of master thesis ? My master thesis relates to Flex too, mejmoo@gmail.com, thanks !

Peter Motzfeldt said...

Hi

I sent you the thesis on mail, but is also located here:

http://boss.bekk.no/download/attachments/317/FunFX.pdf?version=1

Whats your thesis about?

Btw, good luck!

- Peter

Venkat said...

Hi,
I am trying to automate the functional testing of an enterprise RIA application using QTP. I ran into a problem where QTP (using the runtime controlling of the application) does not recognize deferred loading of the controls architected due to performance considerations..Was wondering if FunFX supports this. I am trying to find out before I invest time into that. would you please tell me if you know that it works?
Thanks
Venkat

Unknown said...

Hi, could you please post how FunFx works with Watir. And with Watir, now FunFx can support platforms other than windows? richard.wang.wr@gmail.com. Thanks!

KaNaDa said...

Hi Peter,

Great job on FunFX!
We are using it for integration testing. Works great on Win Xp boxes, but refuses to hook up with IE & Flex on our build machine which is Win 2003 Server.

===========================================================
Loaded suite tests/login_test
Started
E
Finished in 6.86 seconds.

1) Error:
test_control(LoginTest):
WIN32OLERuntimeError: unknown property or method `isSynchronized'
HRESULT error code:0x80020006
Unknown name.
D:/sdtools/ruby/lib/ruby/gems/1.8/gems/FunFX-0.0.4/lib/flex.rb:106:in `method_missing'
D:/sdtools/ruby/lib/ruby/gems/1.8/gems/FunFX-0.0.4/lib/flex.rb:106:in `is_sync'
D:/sdtools/ruby/lib/ruby/gems/1.8/gems/FunFX-0.0.4/lib/flex.rb:28:in `method_missing'
tests/login_test.rb:26:in `test_control'

1 tests, 0 assertions, 0 failures, 1 errors
===========================================================

We compile the SWF on this machine and deploy it to remote machine. Runnig same test quite from my Win Xp box works, running on build machine Win 2003 Server fails.

How can I find the root cause of this? Looks like WinOLE issue.

Thanks,
Tomas

Unknown said...

hey tomas....i think the problm is the way u hv included ur automation files...u hv to put the AutomationGenericEnv.xml in the bin folder and compile the application with the swc files..its wrkin fr me..but do u knw hw to write tests for integration...cn u post a sample test whn u hv multiple pages passing values and whn an mxml page is loaded using swf loader within anothr mxml page..hw do u access the objects of the page within...

Thanks,
Abraham

Peter Motzfeldt said...

Hi Venkat

Sorry it has taken me a while to answer. I am not sure what you are trying to do. Please send me an email on the mailinglist, or another comment here.

- Peter

Peter Motzfeldt said...

Hi Rui/Richard

I can write a post about that tomorrow. Thanks for the pointer.

Peter Motzfeldt said...

Hi Tomas

Did the tip from Abraham work?

Peter Motzfeldt said...

Hi Abraham

Do you load an swf from the swf loader?

KaNaDa said...

Hi Guys,

My tests where woring when runnig localy pointing to the test server and failing then running on Win 2003 server build machine pointing to the same test server.

The problem on the Win 2003 Server was caused by "Internet Explorer Enhanced Security" crap. I had to create a custom security setting and add the testing site to the "local intranet" list.
The problem was that ruby WINOLE library was not able to communicate with IE.
At the same time I upgradet ruby gems which got updated version of the win-api. So between the two tweaks the tests started working.

thanks for an excelent product and all the help.

Tomas

Unknown said...

Hi peter,

Yea...the swf of the other page is loaded...also hw do u handle loading pages whn the application has a login session??....

Thanks,
Abraham

Peter Motzfeldt said...

I'm not sure if FunFX supports loading of other swf files, but I will take look at the problem.

What do you mean by handle loading pages whn the application has a login session?

Unknown said...

hi,

yea...meaning that u cant directly load pages in the application cuz each page depends on values input from the previous page...and u enter using an userid and password...the values are passed either as shared objects or as query string.

Thanks for the help,
Abraham

Intekhab Sadekin - Toolsmith said...

Does anyone know how to open a new tab using firewatir? Is it possible to go to an existing tab in a browser and eventually access the elements in that page? Btw, the new tab is not flex, its basic html.

Unknown said...

I am very new to Funfx and RUBY and WATIR or Fire Watir... currently I am doing some R&D on Flex Application Functional Automation so... Below is the error that I get in my eclipse console...

Error...
C:/Ruby193/lib/ruby/gems/1.9.1/gems/FunFX-0.0.4/lib/browsers.rb:26:in `': Unknown OS i386-mingw32 (RuntimeError)
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/FunFX-0.0.4/lib/browsers.rb:8:in `'
from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/FunFX-0.0.4/lib/funfx.rb:8:in `'
from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60:in `require'
from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60:in `rescue in require'
from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:35:in `require'
from D:/FUN_FX/WorkGroupTest/test_product_one.rb:2:in `'

and below is my script...

require 'test/unit'
require 'funfx'

class TestProductOne <>

def setup
@ie = Funfx.instance
@ie.start(true)
@ie.speed = 1
@ie.goto("http://funfx.rubyforge.org/Flex/FlexRepeater.html", "FlexRepeater")
end

def teardown
@ie.unload
end

def test_insert_product

assert_equal(0, @ie.data_grid("dgOffer").num_rows)

add_product("Shirt", "Tennis")
@ie.button("bOk").click

assert_equal(1, @ie.data_grid("dgOffer").num_rows)

end

def add_product(name, category)
@ie.button("bAddProduct").click

@ie.text_area("tName").input(:text => name)
@ie.text_area("tCategory").input(:text => category)
end
end

Can you please what should I do in order for this script to run on Windows XP with Ruby 1.9.3 Funfx 0.0.4

my email id is rajahvivek@gmail.com