Hi I''m pleased to announce that a new version WxSugar is now available from http://rubyforge.org/frs/?group_id=35&release_id=10569 = CHANGES * Can now just do "require ''wx_sugar''" to load all behaviours * Added ''find_window'' and ''descendants'' methods to Wx::Window * :name and :validator constructor arguments now work correctly for subclasses of Wx::Control * Added ''traverse'' method to Wx::TreeCtrl * ''arrange_'' methods now yield the underlying sizer into the block, which is a more useful behaviour esp if swapping windows in and out = INSTALLATION (sudo) gem install wx_sugar or, from the tarball (sudo) rake install = NOTE This version requires wxruby2-preview 0.0.39 to be installed. It will *not* work with the old series of wxruby (0.6.0) or earlier versions of wxruby2-preview. The bump in version number from 0.1.3 to 0.1.14 has no particular significance other than me doing a release too soon after waking up... we''ll be releasing WxSugar as a stable version soon, as I think we''ve worked out most of the bugs in the current functionality. = CREDITS Thanks to Paul Allton and Philip Schalms who pointed out some bugs and omissions fixed in this release. cheers Alex
paul.allton at uk.bnpparibas.com
2007-Mar-27 12:56 UTC
[Wxruby-users] Test driving WxRuby2 apps
Before I forget, thanks for the new 0.0.39 and wx_sugar releases,
excellent work guys - its great to see the back of GC.disable ;)
I''ve been a bit tied up recently, so apologies that this topic has gone
quiet ... but I just wanted to let you know that this isn''t dead, in
fact
I''ve packaged up what I have so far into the attached gem.
Please note:
- wxruby2-preview 0.0.39 and wx_sugar 0.1.14 are required
- this is very much a preview, it basically works - except for the
problems listed in ''KNOWN ISSUES''.
- component support is a bit thin right now, I''ve only added support
for
what I''ve needed to test an application that I''m currently
building
- it works on Windows and OS X only, as I''ve no means to test on other
platforms.
- its based on an generic GUI driving api called ''Nobbie'',
which is a very
silly name, I won''t bore you with the history of how it came about
For usage info, please look at the README page of the gems rdoc ... but
here is a quick example:
require ''rubygems''
require_gem ''nobbie-wx-preview''
require ''your_application''
#important - tell nobbie which application you want to test
APPLICATION_UNDER_TEST = YourApp.new
class YourAppTest < Test::Unit::TestCase
def test_something_really_important
assert !enabled?(:save)
type ''fred'', :first_name
choosable(:male).choose
selection(:title).choose ''Mr''
assert enabled?(:save)
click :save
end
end
For more examples look at the ''test'' directory under the gem
install. Note
that if you run all_tests.rb, some of the tests will currently fail
(depending on platform), these tests expose some of the problems
highlighted in ''KNOWN ISSUES''.
p.
..
This message and any attachments (the "message") is
intended solely for the addressees and is confidential.
If you receive this message in error, please delete it and
immediately notify the sender. Any use not in accord with
its purpose, any dissemination or disclosure, either whole
or partial, is prohibited except formal approval. The internet
can not guarantee the integrity of this message.
BNP PARIBAS (and its subsidiaries) shall (will) not
therefore be liable for the message if modified.
**********************************************************************************************
BNP Paribas Private Bank London Branch is authorised
by CECEI & AMF and is regulated by the Financial Services
Authority for the conduct of its investment business in
the United Kingdom.
BNP Paribas Securities Services London Branch is authorised
by CECEI & AMF and is regulated by the Financial Services
Authority for the conduct of its investment business in
the United Kingdom.
BNP Paribas Fund Services UK Limited is authorised and
regulated by the Financial Services Authority
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://rubyforge.org/pipermail/wxruby-users/attachments/20070327/3f071802/attachment-0001.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nobbie-wx-preview-0.0.1.gem
Type: application/octet-stream
Size: 14848 bytes
Desc: not available
Url :
http://rubyforge.org/pipermail/wxruby-users/attachments/20070327/3f071802/attachment-0001.obj